SAP Function Modules

JITOUT03_CONVERT_DB_TO_DIA SAP Function module







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

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


Pattern for FM JITOUT03_CONVERT_DB_TO_DIA - JITOUT03 CONVERT DB TO DIA





CALL FUNCTION 'JITOUT03_CONVERT_DB_TO_DIA' "
* EXPORTING
*   jitohd_it =                 " jitohd_tt     JIT Outbound Call Header
*   jitoit_it =                 " jitoit_tt     JIT Outbound Components Group
*   jitoco_it =                 " jitoco_tt     JIT Outbound Components
*   timezone_iv =               " systzonlo     Date and time, time zone of user
*   calc_gr_qty_iv = SPACE      " xfeld
*   no_dialogue_iv =            " char1         Single-Character Indicator
  IMPORTING
    jitodiahd_et =              " jitodiahd_tt  Table Type for JITODIAHD
    jitodiait_et =              " jitodiait_tt  Table Type for JITODIAIT
    jitodiaco_et =              " jitodiaco_tt  Table Type for JITODIACO
* CHANGING
*   jitoad_ct =                 " jitoad_tt     Additional Data for JIT Outbound
  EXCEPTIONS
    CONVERSION_ERROR = 1        "
    .  "  JITOUT03_CONVERT_DB_TO_DIA

ABAP code example for Function Module JITOUT03_CONVERT_DB_TO_DIA





The ABAP code below is a full code listing to execute function module JITOUT03_CONVERT_DB_TO_DIA 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_jitodiahd_et  TYPE JITODIAHD_TT ,
ld_jitodiait_et  TYPE JITODIAIT_TT ,
ld_jitodiaco_et  TYPE JITODIACO_TT .

DATA(ld_jitoad_ct) = 'Check type of data required'.
DATA(ld_jitohd_it) = 'Check type of data required'.
DATA(ld_jitoit_it) = 'Check type of data required'.
DATA(ld_jitoco_it) = 'Check type of data required'.
DATA(ld_timezone_iv) = '20210129'.
DATA(ld_calc_gr_qty_iv) = '20210129'.
DATA(ld_no_dialogue_iv) = '20210129'. . CALL FUNCTION 'JITOUT03_CONVERT_DB_TO_DIA' * EXPORTING * jitohd_it = ld_jitohd_it * jitoit_it = ld_jitoit_it * jitoco_it = ld_jitoco_it * timezone_iv = ld_timezone_iv * calc_gr_qty_iv = ld_calc_gr_qty_iv * no_dialogue_iv = ld_no_dialogue_iv IMPORTING jitodiahd_et = ld_jitodiahd_et jitodiait_et = ld_jitodiait_et jitodiaco_et = ld_jitodiaco_et * CHANGING * jitoad_ct = ld_jitoad_ct EXCEPTIONS CONVERSION_ERROR = 1 . " JITOUT03_CONVERT_DB_TO_DIA
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_jitoad_ct  TYPE JITOAD_TT ,
ld_jitodiahd_et  TYPE JITODIAHD_TT ,
ld_jitohd_it  TYPE JITOHD_TT ,
ld_jitodiait_et  TYPE JITODIAIT_TT ,
ld_jitoit_it  TYPE JITOIT_TT ,
ld_jitodiaco_et  TYPE JITODIACO_TT ,
ld_jitoco_it  TYPE JITOCO_TT ,
ld_timezone_iv  TYPE SYSTZONLO ,
ld_calc_gr_qty_iv  TYPE XFELD ,
ld_no_dialogue_iv  TYPE CHAR1 .

ld_jitoad_ct = '20210129'.
ld_jitohd_it = '20210129'.
ld_jitoit_it = '20210129'.
ld_jitoco_it = '20210129'.
ld_timezone_iv = '20210129'.
ld_calc_gr_qty_iv = '20210129'.
ld_no_dialogue_iv = '20210129'.

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