SAP Function Modules

JIT16_GET_OUTBOUND_COMPONENTS SAP Function module







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

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


Pattern for FM JIT16_GET_OUTBOUND_COMPONENTS - JIT16 GET OUTBOUND COMPONENTS





CALL FUNCTION 'JIT16_GET_OUTBOUND_COMPONENTS' "
  IMPORTING
    jitodiait_et =              " jitodiait_tt  Table Type for JITODIAIT
    jitodiaco_et =              " jitodiaco_tt  Table Type for JITODIACO
* TABLES
*   jitdiahd_it =               " jitdiahd      JIT : Dialog Structure for JITHD
*   jitdiapo_it =               " jitdiapo      JIT : Dialog Structure Seq.JIT Entry
*   mssg_ret_ct =               " mssg_ret      Transfer Structure for System Messages
* CHANGING
*   jitodata_cs =               " jitodata      Interface Structure for Outbound Action Control
  EXCEPTIONS
    NO_OUTBOUND_COMPONENTS = 1  "
    GENERAL_ERROR = 2           "
    .  "  JIT16_GET_OUTBOUND_COMPONENTS

ABAP code example for Function Module JIT16_GET_OUTBOUND_COMPONENTS





The ABAP code below is a full code listing to execute function module JIT16_GET_OUTBOUND_COMPONENTS 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_jitodiait_et  TYPE JITODIAIT_TT ,
ld_jitodiaco_et  TYPE JITODIACO_TT ,
it_jitdiahd_it  TYPE STANDARD TABLE OF JITDIAHD,"TABLES PARAM
wa_jitdiahd_it  LIKE LINE OF it_jitdiahd_it ,
it_jitdiapo_it  TYPE STANDARD TABLE OF JITDIAPO,"TABLES PARAM
wa_jitdiapo_it  LIKE LINE OF it_jitdiapo_it ,
it_mssg_ret_ct  TYPE STANDARD TABLE OF MSSG_RET,"TABLES PARAM
wa_mssg_ret_ct  LIKE LINE OF it_mssg_ret_ct .

DATA(ld_jitodata_cs) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_jitdiahd_it to it_jitdiahd_it.

"populate fields of struture and append to itab
append wa_jitdiapo_it to it_jitdiapo_it.

"populate fields of struture and append to itab
append wa_mssg_ret_ct to it_mssg_ret_ct. . CALL FUNCTION 'JIT16_GET_OUTBOUND_COMPONENTS' IMPORTING jitodiait_et = ld_jitodiait_et jitodiaco_et = ld_jitodiaco_et * TABLES * jitdiahd_it = it_jitdiahd_it * jitdiapo_it = it_jitdiapo_it * mssg_ret_ct = it_mssg_ret_ct * CHANGING * jitodata_cs = ld_jitodata_cs EXCEPTIONS NO_OUTBOUND_COMPONENTS = 1 GENERAL_ERROR = 2 . " JIT16_GET_OUTBOUND_COMPONENTS
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_jitodata_cs  TYPE JITODATA ,
ld_jitodiait_et  TYPE JITODIAIT_TT ,
it_jitdiahd_it  TYPE STANDARD TABLE OF JITDIAHD ,
wa_jitdiahd_it  LIKE LINE OF it_jitdiahd_it,
ld_jitodiaco_et  TYPE JITODIACO_TT ,
it_jitdiapo_it  TYPE STANDARD TABLE OF JITDIAPO ,
wa_jitdiapo_it  LIKE LINE OF it_jitdiapo_it,
it_mssg_ret_ct  TYPE STANDARD TABLE OF MSSG_RET ,
wa_mssg_ret_ct  LIKE LINE OF it_mssg_ret_ct.

ld_jitodata_cs = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_jitdiahd_it to it_jitdiahd_it.

"populate fields of struture and append to itab
append wa_jitdiapo_it to it_jitdiapo_it.

"populate fields of struture and append to itab
append wa_mssg_ret_ct to it_mssg_ret_ct.

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