SAP Function Modules

ITSAMCG_DDIF_TABL_GET SAP Function module - For checking the existence of a structure







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

Associated Function Group: ITSAM_CODEGENERATOR
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM ITSAMCG_DDIF_TABL_GET - ITSAMCG DDIF TABL GET





CALL FUNCTION 'ITSAMCG_DDIF_TABL_GET' "For checking the existence of a structure
  EXPORTING
    name =                      " ddobjname     Name of ABAP Dictionary Object
    state = 'A'                 " ddobjstate    Read status of an ABAP/4 Dictionary object
    langu = ' '                 " sy-langu      Language Key for the Current Text Environment
    devclass =                  " devclass      Package
    reqno =                     " trkorr_old    Request/task up to and including Release 3.0
    masterlang = 'E'            " masterlang    Original Language in Repository objects
    srcsystem =                 " srcsystem     Original System of Object
  IMPORTING
    gotstate =                  " ddgotstate    Status of an ABAP/4 Dictionary object
    dd02v_wa =                  " dd02v         Generated Table for View DD02V
    dd09l_wa =                  " dd09v         Interface: Technical Settings Table/View
    returncode =                " i             return code based on sy-subrc value
    returndesc =                " string        error description based on exceptions
* TABLES
*   dd03p_tab =                 " dd03p         Structure
*   dd05m_tab =                 " dd05m         Interface Structure for DD_TBFK_GET
*   dd08v_tab =                 " dd08v         Generated Table for View DD08V
*   dd12v_tab =                 " dd12v         Generated Table for View DD12V
*   dd17v_tab =                 " dd17v         Secondary index fields with language key
*   dd35v_tab =                 " dd35v         Assignment of structure fields and search helps: Headers
*   dd36m_tab =                 " dd36m         Interface structure for field assignments table-search help
  EXCEPTIONS
    ILLEGAL_INPUT = 1           "
    .  "  ITSAMCG_DDIF_TABL_GET

ABAP code example for Function Module ITSAMCG_DDIF_TABL_GET





The ABAP code below is a full code listing to execute function module ITSAMCG_DDIF_TABL_GET 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_gotstate  TYPE DDGOTSTATE ,
ld_dd02v_wa  TYPE DD02V ,
ld_dd09l_wa  TYPE DD09V ,
ld_returncode  TYPE I ,
ld_returndesc  TYPE STRING ,
it_dd03p_tab  TYPE STANDARD TABLE OF DD03P,"TABLES PARAM
wa_dd03p_tab  LIKE LINE OF it_dd03p_tab ,
it_dd05m_tab  TYPE STANDARD TABLE OF DD05M,"TABLES PARAM
wa_dd05m_tab  LIKE LINE OF it_dd05m_tab ,
it_dd08v_tab  TYPE STANDARD TABLE OF DD08V,"TABLES PARAM
wa_dd08v_tab  LIKE LINE OF it_dd08v_tab ,
it_dd12v_tab  TYPE STANDARD TABLE OF DD12V,"TABLES PARAM
wa_dd12v_tab  LIKE LINE OF it_dd12v_tab ,
it_dd17v_tab  TYPE STANDARD TABLE OF DD17V,"TABLES PARAM
wa_dd17v_tab  LIKE LINE OF it_dd17v_tab ,
it_dd35v_tab  TYPE STANDARD TABLE OF DD35V,"TABLES PARAM
wa_dd35v_tab  LIKE LINE OF it_dd35v_tab ,
it_dd36m_tab  TYPE STANDARD TABLE OF DD36M,"TABLES PARAM
wa_dd36m_tab  LIKE LINE OF it_dd36m_tab .

DATA(ld_name) = 'Check type of data required'.
DATA(ld_state) = 'Check type of data required'.
DATA(ld_langu) = 'Check type of data required'.
DATA(ld_devclass) = 'Check type of data required'.
DATA(ld_reqno) = 'Check type of data required'.
DATA(ld_masterlang) = 'Check type of data required'.
DATA(ld_srcsystem) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dd03p_tab to it_dd03p_tab.

"populate fields of struture and append to itab
append wa_dd05m_tab to it_dd05m_tab.

"populate fields of struture and append to itab
append wa_dd08v_tab to it_dd08v_tab.

"populate fields of struture and append to itab
append wa_dd12v_tab to it_dd12v_tab.

"populate fields of struture and append to itab
append wa_dd17v_tab to it_dd17v_tab.

"populate fields of struture and append to itab
append wa_dd35v_tab to it_dd35v_tab.

"populate fields of struture and append to itab
append wa_dd36m_tab to it_dd36m_tab. . CALL FUNCTION 'ITSAMCG_DDIF_TABL_GET' EXPORTING name = ld_name state = ld_state langu = ld_langu devclass = ld_devclass reqno = ld_reqno masterlang = ld_masterlang srcsystem = ld_srcsystem IMPORTING gotstate = ld_gotstate dd02v_wa = ld_dd02v_wa dd09l_wa = ld_dd09l_wa returncode = ld_returncode returndesc = ld_returndesc * TABLES * dd03p_tab = it_dd03p_tab * dd05m_tab = it_dd05m_tab * dd08v_tab = it_dd08v_tab * dd12v_tab = it_dd12v_tab * dd17v_tab = it_dd17v_tab * dd35v_tab = it_dd35v_tab * dd36m_tab = it_dd36m_tab EXCEPTIONS ILLEGAL_INPUT = 1 . " ITSAMCG_DDIF_TABL_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_gotstate  TYPE DDGOTSTATE ,
ld_name  TYPE DDOBJNAME ,
it_dd03p_tab  TYPE STANDARD TABLE OF DD03P ,
wa_dd03p_tab  LIKE LINE OF it_dd03p_tab,
ld_dd02v_wa  TYPE DD02V ,
ld_state  TYPE DDOBJSTATE ,
it_dd05m_tab  TYPE STANDARD TABLE OF DD05M ,
wa_dd05m_tab  LIKE LINE OF it_dd05m_tab,
ld_dd09l_wa  TYPE DD09V ,
ld_langu  TYPE SY-LANGU ,
it_dd08v_tab  TYPE STANDARD TABLE OF DD08V ,
wa_dd08v_tab  LIKE LINE OF it_dd08v_tab,
ld_returncode  TYPE I ,
ld_devclass  TYPE DEVCLASS ,
it_dd12v_tab  TYPE STANDARD TABLE OF DD12V ,
wa_dd12v_tab  LIKE LINE OF it_dd12v_tab,
ld_returndesc  TYPE STRING ,
ld_reqno  TYPE TRKORR_OLD ,
it_dd17v_tab  TYPE STANDARD TABLE OF DD17V ,
wa_dd17v_tab  LIKE LINE OF it_dd17v_tab,
ld_masterlang  TYPE MASTERLANG ,
it_dd35v_tab  TYPE STANDARD TABLE OF DD35V ,
wa_dd35v_tab  LIKE LINE OF it_dd35v_tab,
ld_srcsystem  TYPE SRCSYSTEM ,
it_dd36m_tab  TYPE STANDARD TABLE OF DD36M ,
wa_dd36m_tab  LIKE LINE OF it_dd36m_tab.

ld_name = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dd03p_tab to it_dd03p_tab.
ld_state = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dd05m_tab to it_dd05m_tab.
ld_langu = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dd08v_tab to it_dd08v_tab.
ld_devclass = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dd12v_tab to it_dd12v_tab.
ld_reqno = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dd17v_tab to it_dd17v_tab.
ld_masterlang = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dd35v_tab to it_dd35v_tab.
ld_srcsystem = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dd36m_tab to it_dd36m_tab.

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