SAP Function Modules

OIJW_RD SAP Function module - Rundown reason code checks







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

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


Pattern for FM OIJW_RD - OIJW RD





CALL FUNCTION 'OIJW_RD' "Rundown reason code checks
  EXPORTING
*   p_print = 'X'               " c
*   p_waitu = ' '               " boole-boole   Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
    i_wlrc =                    " oijwl-wlrc    TSW: Worklist reason code
  TABLES
    g_wlrc_tab =                " roijwlrc      OIL-TSW: Used and selected reason codes
    g_oijrd_obj =               " v_oijrdsel    Generated Table for View V_OIJRDSEL
*   g_v_nomtk_tab =             " oijw0_g_v_nomtk_tab
*   i_s_tsyst =                 " oij_el_range  Ranges structure for selections
*   i_s_locid =                 " oij_el_range  Ranges structure for selections
*   i_s_nomnr =                 " oij_el_range  Ranges structure for selections
*   i_s_matnr =                 " oij_el_range  Ranges structure for selections
*   i_s_datum =                 " oij_el_range  Ranges structure for selections
    junction_funcs =            " roij_el_scenario_detail  Detailed information on a movement sccenario
    check_funcs =               " oijwlrcf      TSW Worklist Reason Code to invidual check function
    .  "  OIJW_RD

ABAP code example for Function Module OIJW_RD





The ABAP code below is a full code listing to execute function module OIJW_RD 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:
it_g_wlrc_tab  TYPE STANDARD TABLE OF ROIJWLRC,"TABLES PARAM
wa_g_wlrc_tab  LIKE LINE OF it_g_wlrc_tab ,
it_g_oijrd_obj  TYPE STANDARD TABLE OF V_OIJRDSEL,"TABLES PARAM
wa_g_oijrd_obj  LIKE LINE OF it_g_oijrd_obj ,
it_g_v_nomtk_tab  TYPE STANDARD TABLE OF OIJW0_G_V_NOMTK_TAB,"TABLES PARAM
wa_g_v_nomtk_tab  LIKE LINE OF it_g_v_nomtk_tab ,
it_i_s_tsyst  TYPE STANDARD TABLE OF OIJ_EL_RANGE,"TABLES PARAM
wa_i_s_tsyst  LIKE LINE OF it_i_s_tsyst ,
it_i_s_locid  TYPE STANDARD TABLE OF OIJ_EL_RANGE,"TABLES PARAM
wa_i_s_locid  LIKE LINE OF it_i_s_locid ,
it_i_s_nomnr  TYPE STANDARD TABLE OF OIJ_EL_RANGE,"TABLES PARAM
wa_i_s_nomnr  LIKE LINE OF it_i_s_nomnr ,
it_i_s_matnr  TYPE STANDARD TABLE OF OIJ_EL_RANGE,"TABLES PARAM
wa_i_s_matnr  LIKE LINE OF it_i_s_matnr ,
it_i_s_datum  TYPE STANDARD TABLE OF OIJ_EL_RANGE,"TABLES PARAM
wa_i_s_datum  LIKE LINE OF it_i_s_datum ,
it_junction_funcs  TYPE STANDARD TABLE OF ROIJ_EL_SCENARIO_DETAIL,"TABLES PARAM
wa_junction_funcs  LIKE LINE OF it_junction_funcs ,
it_check_funcs  TYPE STANDARD TABLE OF OIJWLRCF,"TABLES PARAM
wa_check_funcs  LIKE LINE OF it_check_funcs .

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

DATA(ld_p_waitu) = some text here

SELECT single WLRC
FROM OIJWL
INTO @DATA(ld_i_wlrc).


"populate fields of struture and append to itab
append wa_g_wlrc_tab to it_g_wlrc_tab.

"populate fields of struture and append to itab
append wa_g_oijrd_obj to it_g_oijrd_obj.

"populate fields of struture and append to itab
append wa_g_v_nomtk_tab to it_g_v_nomtk_tab.

"populate fields of struture and append to itab
append wa_i_s_tsyst to it_i_s_tsyst.

"populate fields of struture and append to itab
append wa_i_s_locid to it_i_s_locid.

"populate fields of struture and append to itab
append wa_i_s_nomnr to it_i_s_nomnr.

"populate fields of struture and append to itab
append wa_i_s_matnr to it_i_s_matnr.

"populate fields of struture and append to itab
append wa_i_s_datum to it_i_s_datum.

"populate fields of struture and append to itab
append wa_junction_funcs to it_junction_funcs.

"populate fields of struture and append to itab
append wa_check_funcs to it_check_funcs. . CALL FUNCTION 'OIJW_RD' EXPORTING * p_print = ld_p_print * p_waitu = ld_p_waitu i_wlrc = ld_i_wlrc TABLES g_wlrc_tab = it_g_wlrc_tab g_oijrd_obj = it_g_oijrd_obj * g_v_nomtk_tab = it_g_v_nomtk_tab * i_s_tsyst = it_i_s_tsyst * i_s_locid = it_i_s_locid * i_s_nomnr = it_i_s_nomnr * i_s_matnr = it_i_s_matnr * i_s_datum = it_i_s_datum junction_funcs = it_junction_funcs check_funcs = it_check_funcs . " OIJW_RD
IF SY-SUBRC EQ 0. "All OK 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_p_print  TYPE C ,
it_g_wlrc_tab  TYPE STANDARD TABLE OF ROIJWLRC ,
wa_g_wlrc_tab  LIKE LINE OF it_g_wlrc_tab,
ld_p_waitu  TYPE BOOLE-BOOLE ,
it_g_oijrd_obj  TYPE STANDARD TABLE OF V_OIJRDSEL ,
wa_g_oijrd_obj  LIKE LINE OF it_g_oijrd_obj,
ld_i_wlrc  TYPE OIJWL-WLRC ,
it_g_v_nomtk_tab  TYPE STANDARD TABLE OF OIJW0_G_V_NOMTK_TAB ,
wa_g_v_nomtk_tab  LIKE LINE OF it_g_v_nomtk_tab,
it_i_s_tsyst  TYPE STANDARD TABLE OF OIJ_EL_RANGE ,
wa_i_s_tsyst  LIKE LINE OF it_i_s_tsyst,
it_i_s_locid  TYPE STANDARD TABLE OF OIJ_EL_RANGE ,
wa_i_s_locid  LIKE LINE OF it_i_s_locid,
it_i_s_nomnr  TYPE STANDARD TABLE OF OIJ_EL_RANGE ,
wa_i_s_nomnr  LIKE LINE OF it_i_s_nomnr,
it_i_s_matnr  TYPE STANDARD TABLE OF OIJ_EL_RANGE ,
wa_i_s_matnr  LIKE LINE OF it_i_s_matnr,
it_i_s_datum  TYPE STANDARD TABLE OF OIJ_EL_RANGE ,
wa_i_s_datum  LIKE LINE OF it_i_s_datum,
it_junction_funcs  TYPE STANDARD TABLE OF ROIJ_EL_SCENARIO_DETAIL ,
wa_junction_funcs  LIKE LINE OF it_junction_funcs,
it_check_funcs  TYPE STANDARD TABLE OF OIJWLRCF ,
wa_check_funcs  LIKE LINE OF it_check_funcs.

ld_p_print = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_g_wlrc_tab to it_g_wlrc_tab.

ld_p_waitu = some text here

"populate fields of struture and append to itab
append wa_g_oijrd_obj to it_g_oijrd_obj.

SELECT single WLRC
FROM OIJWL
INTO ld_i_wlrc.


"populate fields of struture and append to itab
append wa_g_v_nomtk_tab to it_g_v_nomtk_tab.

"populate fields of struture and append to itab
append wa_i_s_tsyst to it_i_s_tsyst.

"populate fields of struture and append to itab
append wa_i_s_locid to it_i_s_locid.

"populate fields of struture and append to itab
append wa_i_s_nomnr to it_i_s_nomnr.

"populate fields of struture and append to itab
append wa_i_s_matnr to it_i_s_matnr.

"populate fields of struture and append to itab
append wa_i_s_datum to it_i_s_datum.

"populate fields of struture and append to itab
append wa_junction_funcs to it_junction_funcs.

"populate fields of struture and append to itab
append wa_check_funcs to it_check_funcs.

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