SAP Function Modules

C14DVS_EHSDOKAR_INTO_API_TABS SAP Function module







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

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


Pattern for FM C14DVS_EHSDOKAR_INTO_API_TABS - C14DVS EHSDOKAR INTO API TABS





CALL FUNCTION 'C14DVS_EHSDOKAR_INTO_API_TABS' "
* EXPORTING
*   i_flg_header = ESP1_FALSE   " esp1_boolean
*   i_flg_docfile = ESP1_FALSE  " esp1_boolean
*   i_flg_doctext = ESP1_FALSE  " esp1_boolean
*   i_flg_classvalues = ESP1_FALSE  " esp1_boolean
*   i_flg_statuslog = ESP1_FALSE  " esp1_boolean
*   i_flg_exterror = ESP1_FALSE  " esp1_boolean
*   i_flg_initial_dokar_is_ok = ESP1_FALSE  " esp1_boolean
  IMPORTING
    e_flg_error =               " esp1_boolean
    e_flg_no_matching_customized =   " esp1_boolean
* TABLES
*   x_api_header_tab =          " espdv_apidraw_tab_type
*   x_api_docfiles_tab =        " espdv_apidrao_tab_type
*   x_api_doctext_tab =         " espdv_apidrat_tab_type
*   x_api_classvalues_tab =     " espdv_apiclass_tab_type
*   x_api_statuslog_tab =       " espdv_apidrap_tab_type
*   x_exterror_tab =            " espap_exterror_tab_type
  EXCEPTIONS
    NO_OBJECT_SPECIFIED = 1     "
    PARAMETER_ERROR = 2         "
    .  "  C14DVS_EHSDOKAR_INTO_API_TABS

ABAP code example for Function Module C14DVS_EHSDOKAR_INTO_API_TABS





The ABAP code below is a full code listing to execute function module C14DVS_EHSDOKAR_INTO_API_TABS 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_e_flg_error  TYPE ESP1_BOOLEAN ,
ld_e_flg_no_matching_customized  TYPE ESP1_BOOLEAN ,
it_x_api_header_tab  TYPE STANDARD TABLE OF ESPDV_APIDRAW_TAB_TYPE,"TABLES PARAM
wa_x_api_header_tab  LIKE LINE OF it_x_api_header_tab ,
it_x_api_docfiles_tab  TYPE STANDARD TABLE OF ESPDV_APIDRAO_TAB_TYPE,"TABLES PARAM
wa_x_api_docfiles_tab  LIKE LINE OF it_x_api_docfiles_tab ,
it_x_api_doctext_tab  TYPE STANDARD TABLE OF ESPDV_APIDRAT_TAB_TYPE,"TABLES PARAM
wa_x_api_doctext_tab  LIKE LINE OF it_x_api_doctext_tab ,
it_x_api_classvalues_tab  TYPE STANDARD TABLE OF ESPDV_APICLASS_TAB_TYPE,"TABLES PARAM
wa_x_api_classvalues_tab  LIKE LINE OF it_x_api_classvalues_tab ,
it_x_api_statuslog_tab  TYPE STANDARD TABLE OF ESPDV_APIDRAP_TAB_TYPE,"TABLES PARAM
wa_x_api_statuslog_tab  LIKE LINE OF it_x_api_statuslog_tab ,
it_x_exterror_tab  TYPE STANDARD TABLE OF ESPAP_EXTERROR_TAB_TYPE,"TABLES PARAM
wa_x_exterror_tab  LIKE LINE OF it_x_exterror_tab .

DATA(ld_i_flg_header) = 'Check type of data required'.
DATA(ld_i_flg_docfile) = 'Check type of data required'.
DATA(ld_i_flg_doctext) = 'Check type of data required'.
DATA(ld_i_flg_classvalues) = 'Check type of data required'.
DATA(ld_i_flg_statuslog) = 'Check type of data required'.
DATA(ld_i_flg_exterror) = 'Check type of data required'.
DATA(ld_i_flg_initial_dokar_is_ok) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_api_header_tab to it_x_api_header_tab.

"populate fields of struture and append to itab
append wa_x_api_docfiles_tab to it_x_api_docfiles_tab.

"populate fields of struture and append to itab
append wa_x_api_doctext_tab to it_x_api_doctext_tab.

"populate fields of struture and append to itab
append wa_x_api_classvalues_tab to it_x_api_classvalues_tab.

"populate fields of struture and append to itab
append wa_x_api_statuslog_tab to it_x_api_statuslog_tab.

"populate fields of struture and append to itab
append wa_x_exterror_tab to it_x_exterror_tab. . CALL FUNCTION 'C14DVS_EHSDOKAR_INTO_API_TABS' * EXPORTING * i_flg_header = ld_i_flg_header * i_flg_docfile = ld_i_flg_docfile * i_flg_doctext = ld_i_flg_doctext * i_flg_classvalues = ld_i_flg_classvalues * i_flg_statuslog = ld_i_flg_statuslog * i_flg_exterror = ld_i_flg_exterror * i_flg_initial_dokar_is_ok = ld_i_flg_initial_dokar_is_ok IMPORTING e_flg_error = ld_e_flg_error e_flg_no_matching_customized = ld_e_flg_no_matching_customized * TABLES * x_api_header_tab = it_x_api_header_tab * x_api_docfiles_tab = it_x_api_docfiles_tab * x_api_doctext_tab = it_x_api_doctext_tab * x_api_classvalues_tab = it_x_api_classvalues_tab * x_api_statuslog_tab = it_x_api_statuslog_tab * x_exterror_tab = it_x_exterror_tab EXCEPTIONS NO_OBJECT_SPECIFIED = 1 PARAMETER_ERROR = 2 . " C14DVS_EHSDOKAR_INTO_API_TABS
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 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_e_flg_error  TYPE ESP1_BOOLEAN ,
ld_i_flg_header  TYPE ESP1_BOOLEAN ,
it_x_api_header_tab  TYPE STANDARD TABLE OF ESPDV_APIDRAW_TAB_TYPE ,
wa_x_api_header_tab  LIKE LINE OF it_x_api_header_tab,
ld_e_flg_no_matching_customized  TYPE ESP1_BOOLEAN ,
ld_i_flg_docfile  TYPE ESP1_BOOLEAN ,
it_x_api_docfiles_tab  TYPE STANDARD TABLE OF ESPDV_APIDRAO_TAB_TYPE ,
wa_x_api_docfiles_tab  LIKE LINE OF it_x_api_docfiles_tab,
ld_i_flg_doctext  TYPE ESP1_BOOLEAN ,
it_x_api_doctext_tab  TYPE STANDARD TABLE OF ESPDV_APIDRAT_TAB_TYPE ,
wa_x_api_doctext_tab  LIKE LINE OF it_x_api_doctext_tab,
ld_i_flg_classvalues  TYPE ESP1_BOOLEAN ,
it_x_api_classvalues_tab  TYPE STANDARD TABLE OF ESPDV_APICLASS_TAB_TYPE ,
wa_x_api_classvalues_tab  LIKE LINE OF it_x_api_classvalues_tab,
ld_i_flg_statuslog  TYPE ESP1_BOOLEAN ,
it_x_api_statuslog_tab  TYPE STANDARD TABLE OF ESPDV_APIDRAP_TAB_TYPE ,
wa_x_api_statuslog_tab  LIKE LINE OF it_x_api_statuslog_tab,
ld_i_flg_exterror  TYPE ESP1_BOOLEAN ,
it_x_exterror_tab  TYPE STANDARD TABLE OF ESPAP_EXTERROR_TAB_TYPE ,
wa_x_exterror_tab  LIKE LINE OF it_x_exterror_tab,
ld_i_flg_initial_dokar_is_ok  TYPE ESP1_BOOLEAN .

ld_i_flg_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_api_header_tab to it_x_api_header_tab.
ld_i_flg_docfile = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_api_docfiles_tab to it_x_api_docfiles_tab.
ld_i_flg_doctext = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_api_doctext_tab to it_x_api_doctext_tab.
ld_i_flg_classvalues = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_api_classvalues_tab to it_x_api_classvalues_tab.
ld_i_flg_statuslog = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_api_statuslog_tab to it_x_api_statuslog_tab.
ld_i_flg_exterror = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_exterror_tab to it_x_exterror_tab.
ld_i_flg_initial_dokar_is_ok = '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 C14DVS_EHSDOKAR_INTO_API_TABS or its description.