SAP Function Modules

JITOUT07_GET_DATA_FOR_OUTPUT SAP Function module







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

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


Pattern for FM JITOUT07_GET_DATA_FOR_OUTPUT - JITOUT07 GET DATA FOR OUTPUT





CALL FUNCTION 'JITOUT07_GET_DATA_FOR_OUTPUT' "
  EXPORTING
    outpo_iv =                  " jitoit-outpo  Components Group Number JIT Outbound
    langu_iv =                  " nast-spras    Message Status
  IMPORTING
    lfa1_es =                   " lfa1          Vendor Master (General Section)
    lfm1_es =                   " lfm1          Vendor Master Record: Purchasing Organization Data
    t001w_es =                  " t001w         Plants/Subsidiaries
    adr_werk_es =               " addr1_val     Address Return Structure
    jitodiahd_et =              " jitodiahd_tt  Table Type for JITODIAHD
    jitodiait_et =              " jitodiait_tt  Table Type for JITODIAIT
    jitodiaco_et =              " jitodiaco_tt  Table Type for JITODIACO
    jitoad_et =                 " jitoad_tt     Additional Data for JIT Outbound
* TABLES
*   ekko_et =                   " ekko          Purchasing Document Header
*   ekpo_et =                   " ekpo          Purchasing Document Item
*   makt_et =                   " makt          Material Descriptions
*   pkhd_et =                   " pkhd          Control Cycle
*   pvbe_et =                   " v_pvbe        Generate Table for view V_PVBE
*   t024d_et =                  " t024d         MRP controllers
*   values_jit_et =             " values_jit    Characteristic Value Assignment for JIT Calls
  EXCEPTIONS
    ERROR_MESSAGE_RECEIVED = 1  "
    .  "  JITOUT07_GET_DATA_FOR_OUTPUT

ABAP code example for Function Module JITOUT07_GET_DATA_FOR_OUTPUT





The ABAP code below is a full code listing to execute function module JITOUT07_GET_DATA_FOR_OUTPUT 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_lfa1_es  TYPE LFA1 ,
ld_lfm1_es  TYPE LFM1 ,
ld_t001w_es  TYPE T001W ,
ld_adr_werk_es  TYPE ADDR1_VAL ,
ld_jitodiahd_et  TYPE JITODIAHD_TT ,
ld_jitodiait_et  TYPE JITODIAIT_TT ,
ld_jitodiaco_et  TYPE JITODIACO_TT ,
ld_jitoad_et  TYPE JITOAD_TT ,
it_ekko_et  TYPE STANDARD TABLE OF EKKO,"TABLES PARAM
wa_ekko_et  LIKE LINE OF it_ekko_et ,
it_ekpo_et  TYPE STANDARD TABLE OF EKPO,"TABLES PARAM
wa_ekpo_et  LIKE LINE OF it_ekpo_et ,
it_makt_et  TYPE STANDARD TABLE OF MAKT,"TABLES PARAM
wa_makt_et  LIKE LINE OF it_makt_et ,
it_pkhd_et  TYPE STANDARD TABLE OF PKHD,"TABLES PARAM
wa_pkhd_et  LIKE LINE OF it_pkhd_et ,
it_pvbe_et  TYPE STANDARD TABLE OF V_PVBE,"TABLES PARAM
wa_pvbe_et  LIKE LINE OF it_pvbe_et ,
it_t024d_et  TYPE STANDARD TABLE OF T024D,"TABLES PARAM
wa_t024d_et  LIKE LINE OF it_t024d_et ,
it_values_jit_et  TYPE STANDARD TABLE OF VALUES_JIT,"TABLES PARAM
wa_values_jit_et  LIKE LINE OF it_values_jit_et .


SELECT single OUTPO
FROM JITOIT
INTO @DATA(ld_outpo_iv).


SELECT single SPRAS
FROM NAST
INTO @DATA(ld_langu_iv).


"populate fields of struture and append to itab
append wa_ekko_et to it_ekko_et.

"populate fields of struture and append to itab
append wa_ekpo_et to it_ekpo_et.

"populate fields of struture and append to itab
append wa_makt_et to it_makt_et.

"populate fields of struture and append to itab
append wa_pkhd_et to it_pkhd_et.

"populate fields of struture and append to itab
append wa_pvbe_et to it_pvbe_et.

"populate fields of struture and append to itab
append wa_t024d_et to it_t024d_et.

"populate fields of struture and append to itab
append wa_values_jit_et to it_values_jit_et. . CALL FUNCTION 'JITOUT07_GET_DATA_FOR_OUTPUT' EXPORTING outpo_iv = ld_outpo_iv langu_iv = ld_langu_iv IMPORTING lfa1_es = ld_lfa1_es lfm1_es = ld_lfm1_es t001w_es = ld_t001w_es adr_werk_es = ld_adr_werk_es jitodiahd_et = ld_jitodiahd_et jitodiait_et = ld_jitodiait_et jitodiaco_et = ld_jitodiaco_et jitoad_et = ld_jitoad_et * TABLES * ekko_et = it_ekko_et * ekpo_et = it_ekpo_et * makt_et = it_makt_et * pkhd_et = it_pkhd_et * pvbe_et = it_pvbe_et * t024d_et = it_t024d_et * values_jit_et = it_values_jit_et EXCEPTIONS ERROR_MESSAGE_RECEIVED = 1 . " JITOUT07_GET_DATA_FOR_OUTPUT
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_lfa1_es  TYPE LFA1 ,
ld_outpo_iv  TYPE JITOIT-OUTPO ,
it_ekko_et  TYPE STANDARD TABLE OF EKKO ,
wa_ekko_et  LIKE LINE OF it_ekko_et,
ld_lfm1_es  TYPE LFM1 ,
ld_langu_iv  TYPE NAST-SPRAS ,
it_ekpo_et  TYPE STANDARD TABLE OF EKPO ,
wa_ekpo_et  LIKE LINE OF it_ekpo_et,
ld_t001w_es  TYPE T001W ,
it_makt_et  TYPE STANDARD TABLE OF MAKT ,
wa_makt_et  LIKE LINE OF it_makt_et,
ld_adr_werk_es  TYPE ADDR1_VAL ,
it_pkhd_et  TYPE STANDARD TABLE OF PKHD ,
wa_pkhd_et  LIKE LINE OF it_pkhd_et,
ld_jitodiahd_et  TYPE JITODIAHD_TT ,
it_pvbe_et  TYPE STANDARD TABLE OF V_PVBE ,
wa_pvbe_et  LIKE LINE OF it_pvbe_et,
ld_jitodiait_et  TYPE JITODIAIT_TT ,
it_t024d_et  TYPE STANDARD TABLE OF T024D ,
wa_t024d_et  LIKE LINE OF it_t024d_et,
ld_jitodiaco_et  TYPE JITODIACO_TT ,
it_values_jit_et  TYPE STANDARD TABLE OF VALUES_JIT ,
wa_values_jit_et  LIKE LINE OF it_values_jit_et,
ld_jitoad_et  TYPE JITOAD_TT .


SELECT single OUTPO
FROM JITOIT
INTO ld_outpo_iv.


"populate fields of struture and append to itab
append wa_ekko_et to it_ekko_et.

SELECT single SPRAS
FROM NAST
INTO ld_langu_iv.


"populate fields of struture and append to itab
append wa_ekpo_et to it_ekpo_et.

"populate fields of struture and append to itab
append wa_makt_et to it_makt_et.

"populate fields of struture and append to itab
append wa_pkhd_et to it_pkhd_et.

"populate fields of struture and append to itab
append wa_pvbe_et to it_pvbe_et.

"populate fields of struture and append to itab
append wa_t024d_et to it_t024d_et.

"populate fields of struture and append to itab
append wa_values_jit_et to it_values_jit_et.

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