SAP Function Modules

ASSIGNMENT_SKOART_SKOTYP_TABLE SAP Function module







ASSIGNMENT_SKOART_SKOTYP_TABLE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ASSIGNMENT_SKOART_SKOTYP_TABLE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FVIK
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ASSIGNMENT_SKOART_SKOTYP_TABLE - ASSIGNMENT SKOART SKOTYP TABLE





CALL FUNCTION 'ASSIGNMENT_SKOART_SKOTYP_TABLE' "
  EXPORTING
    ip_sikotyp =                " sikotyp
*   ip_check_nonambig = 'X'     " xfeld
*   ip_emessages_show = SPACE   " xfeld
*   ip_emessages_itab = 'X'     " xfeld
  TABLES
    et_skotypart_tab =          " rfviskotypartassign
*   et_mesg =                   " smesg
* CHANGING
*   eflg_nonambiguous =         " xfeld
  EXCEPTIONS
    NO_SIKOTYP_ASSIGNED = 1     "
    NO_SKOART_ASSIGNED = 2      "
    NO_SKOARTTYP_MAINTAINED = 3  "
    NO_SKOTYP_MAINTAINED = 4    "
    ERROR_IN_MESSAGE_SET_DEF = 5  "
    ERROR_IN_MESSAGE_STORE = 6  "
    ERROR_IN_MESSAGE_SHOW = 7   "
    .  "  ASSIGNMENT_SKOART_SKOTYP_TABLE

ABAP code example for Function Module ASSIGNMENT_SKOART_SKOTYP_TABLE





The ABAP code below is a full code listing to execute function module ASSIGNMENT_SKOART_SKOTYP_TABLE including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
it_et_skotypart_tab  TYPE STANDARD TABLE OF RFVISKOTYPARTASSIGN,"TABLES PARAM
wa_et_skotypart_tab  LIKE LINE OF it_et_skotypart_tab ,
it_et_mesg  TYPE STANDARD TABLE OF SMESG,"TABLES PARAM
wa_et_mesg  LIKE LINE OF it_et_mesg .

DATA(ld_eflg_nonambiguous) = 'Check type of data required'.
DATA(ld_ip_sikotyp) = 'Check type of data required'.
DATA(ld_ip_check_nonambig) = 'Check type of data required'.
DATA(ld_ip_emessages_show) = 'Check type of data required'.
DATA(ld_ip_emessages_itab) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_skotypart_tab to it_et_skotypart_tab.

"populate fields of struture and append to itab
append wa_et_mesg to it_et_mesg. . CALL FUNCTION 'ASSIGNMENT_SKOART_SKOTYP_TABLE' EXPORTING ip_sikotyp = ld_ip_sikotyp * ip_check_nonambig = ld_ip_check_nonambig * ip_emessages_show = ld_ip_emessages_show * ip_emessages_itab = ld_ip_emessages_itab TABLES et_skotypart_tab = it_et_skotypart_tab * et_mesg = it_et_mesg * CHANGING * eflg_nonambiguous = ld_eflg_nonambiguous EXCEPTIONS NO_SIKOTYP_ASSIGNED = 1 NO_SKOART_ASSIGNED = 2 NO_SKOARTTYP_MAINTAINED = 3 NO_SKOTYP_MAINTAINED = 4 ERROR_IN_MESSAGE_SET_DEF = 5 ERROR_IN_MESSAGE_STORE = 6 ERROR_IN_MESSAGE_SHOW = 7 . " ASSIGNMENT_SKOART_SKOTYP_TABLE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_eflg_nonambiguous  TYPE XFELD ,
ld_ip_sikotyp  TYPE SIKOTYP ,
it_et_skotypart_tab  TYPE STANDARD TABLE OF RFVISKOTYPARTASSIGN ,
wa_et_skotypart_tab  LIKE LINE OF it_et_skotypart_tab,
ld_ip_check_nonambig  TYPE XFELD ,
it_et_mesg  TYPE STANDARD TABLE OF SMESG ,
wa_et_mesg  LIKE LINE OF it_et_mesg,
ld_ip_emessages_show  TYPE XFELD ,
ld_ip_emessages_itab  TYPE XFELD .

ld_eflg_nonambiguous = 'Check type of data required'.
ld_ip_sikotyp = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_skotypart_tab to it_et_skotypart_tab.
ld_ip_check_nonambig = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_mesg to it_et_mesg.
ld_ip_emessages_show = 'Check type of data required'.
ld_ip_emessages_itab = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ASSIGNMENT_SKOART_SKOTYP_TABLE or its description.