SAP Function Modules

EIS_TR_SENDER_STRUCTURE_MAINTA SAP Function module







EIS_TR_SENDER_STRUCTURE_MAINTA 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 EIS_TR_SENDER_STRUCTURE_MAINTA into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM EIS_TR_SENDER_STRUCTURE_MAINTA - EIS TR SENDER STRUCTURE MAINTA





CALL FUNCTION 'EIS_TR_SENDER_STRUCTURE_MAINTA' "
  EXPORTING
    repid =                     " sy-repid
*   initialise = 'X'            "
*   anwdg = '1'                 " kcdsm-anwdg
*   rule_maintenance = 'X'      "
*   ddic_structure =            " kcdsp-sstrc
*   i_with_dialog = 'X'         " kcdu_byte
*   i_aspet = '000'             " tkca-aspet
*   i_dkey = 'X'                " kcdsm-dkey
*   i_repid_text = SPACE        " kcdsmt-text
  IMPORTING
    changed_structure =         "
    aspet =                     " tkca-aspet
    grpid =                     " t242i-grpid
  TABLES
    send_struct =               " cfsend_tab
*   defrl =                     " kcdu_defrl
  EXCEPTIONS
    EXIT_WANTED = 1             "
    NOT_SAVED = 2               "
    INVALID_CALL = 3            "
    EXISTING_STRUCTURE_DIFFERS = 4  "
    NO_FREE_NUMBER = 5          "
    .  "  EIS_TR_SENDER_STRUCTURE_MAINTA

ABAP code example for Function Module EIS_TR_SENDER_STRUCTURE_MAINTA





The ABAP code below is a full code listing to execute function module EIS_TR_SENDER_STRUCTURE_MAINTA 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:
ld_changed_structure  TYPE STRING ,
ld_aspet  TYPE TKCA-ASPET ,
ld_grpid  TYPE T242I-GRPID ,
it_send_struct  TYPE STANDARD TABLE OF CFSEND_TAB,"TABLES PARAM
wa_send_struct  LIKE LINE OF it_send_struct ,
it_defrl  TYPE STANDARD TABLE OF KCDU_DEFRL,"TABLES PARAM
wa_defrl  LIKE LINE OF it_defrl .

DATA(ld_repid) = 'Check type of data required'.
DATA(ld_initialise) = 'some text here'.

SELECT single ANWDG
FROM KCDSM
INTO @DATA(ld_anwdg).

DATA(ld_rule_maintenance) = 'some text here'.

SELECT single SSTRC
FROM KCDSP
INTO @DATA(ld_ddic_structure).

DATA(ld_i_with_dialog) = 'some text here'.

SELECT single ASPET
FROM TKCA
INTO @DATA(ld_i_aspet).


SELECT single DKEY
FROM KCDSM
INTO @DATA(ld_i_dkey).


SELECT single TEXT
FROM KCDSMT
INTO @DATA(ld_i_repid_text).


"populate fields of struture and append to itab
append wa_send_struct to it_send_struct.

"populate fields of struture and append to itab
append wa_defrl to it_defrl. . CALL FUNCTION 'EIS_TR_SENDER_STRUCTURE_MAINTA' EXPORTING repid = ld_repid * initialise = ld_initialise * anwdg = ld_anwdg * rule_maintenance = ld_rule_maintenance * ddic_structure = ld_ddic_structure * i_with_dialog = ld_i_with_dialog * i_aspet = ld_i_aspet * i_dkey = ld_i_dkey * i_repid_text = ld_i_repid_text IMPORTING changed_structure = ld_changed_structure aspet = ld_aspet grpid = ld_grpid TABLES send_struct = it_send_struct * defrl = it_defrl EXCEPTIONS EXIT_WANTED = 1 NOT_SAVED = 2 INVALID_CALL = 3 EXISTING_STRUCTURE_DIFFERS = 4 NO_FREE_NUMBER = 5 . " EIS_TR_SENDER_STRUCTURE_MAINTA
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 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_changed_structure  TYPE STRING ,
ld_repid  TYPE SY-REPID ,
it_send_struct  TYPE STANDARD TABLE OF CFSEND_TAB ,
wa_send_struct  LIKE LINE OF it_send_struct,
ld_aspet  TYPE TKCA-ASPET ,
ld_initialise  TYPE STRING ,
it_defrl  TYPE STANDARD TABLE OF KCDU_DEFRL ,
wa_defrl  LIKE LINE OF it_defrl,
ld_grpid  TYPE T242I-GRPID ,
ld_anwdg  TYPE KCDSM-ANWDG ,
ld_rule_maintenance  TYPE STRING ,
ld_ddic_structure  TYPE KCDSP-SSTRC ,
ld_i_with_dialog  TYPE KCDU_BYTE ,
ld_i_aspet  TYPE TKCA-ASPET ,
ld_i_dkey  TYPE KCDSM-DKEY ,
ld_i_repid_text  TYPE KCDSMT-TEXT .

ld_repid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_send_struct to it_send_struct.
ld_initialise = 'some text here'.

"populate fields of struture and append to itab
append wa_defrl to it_defrl.

SELECT single ANWDG
FROM KCDSM
INTO ld_anwdg.

ld_rule_maintenance = 'some text here'.

SELECT single SSTRC
FROM KCDSP
INTO ld_ddic_structure.

ld_i_with_dialog = 'some text here'.

SELECT single ASPET
FROM TKCA
INTO ld_i_aspet.


SELECT single DKEY
FROM KCDSM
INTO ld_i_dkey.


SELECT single TEXT
FROM KCDSMT
INTO ld_i_repid_text.

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 EIS_TR_SENDER_STRUCTURE_MAINTA or its description.