SAP Function Modules

OIJW_DELETE_WL_PLAN SAP Function module - OIL-TSW :Mark planning-worklist entries in internal tables for deletion







OIJW_DELETE_WL_PLAN 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_DELETE_WL_PLAN 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_DELETE_WL_PLAN - OIJW DELETE WL PLAN





CALL FUNCTION 'OIJW_DELETE_WL_PLAN' "OIL-TSW :Mark planning-worklist entries in internal tables for deletion
  EXPORTING
    i_wlrc =                    " oijwl-wlrc    Reason code :used for searching in oijwl
    i_oijrdplan_wa =            " oijrdplan     OIJPLANWL,OIJWL row corr to this
  TABLES
    t_oijplanwl_tab =           " oijg0_oijplanwl_tab  Mark in this for deletion
    t_oijwl_tab =               " roijwl_upd    Mark in this for deletion
  EXCEPTIONS
    INPUT_MISSING = 1           "               When OIJRDPLAN wa is empty.WLRC not specified.
    ENTRY_NOT_FOUND = 2         "               Entr corresponding to OIJRDPLAN not found.
    .  "  OIJW_DELETE_WL_PLAN

ABAP code example for Function Module OIJW_DELETE_WL_PLAN





The ABAP code below is a full code listing to execute function module OIJW_DELETE_WL_PLAN 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_t_oijplanwl_tab  TYPE STANDARD TABLE OF OIJG0_OIJPLANWL_TAB,"TABLES PARAM
wa_t_oijplanwl_tab  LIKE LINE OF it_t_oijplanwl_tab ,
it_t_oijwl_tab  TYPE STANDARD TABLE OF ROIJWL_UPD,"TABLES PARAM
wa_t_oijwl_tab  LIKE LINE OF it_t_oijwl_tab .


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

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

"populate fields of struture and append to itab
append wa_t_oijplanwl_tab to it_t_oijplanwl_tab.

"populate fields of struture and append to itab
append wa_t_oijwl_tab to it_t_oijwl_tab. . CALL FUNCTION 'OIJW_DELETE_WL_PLAN' EXPORTING i_wlrc = ld_i_wlrc i_oijrdplan_wa = ld_i_oijrdplan_wa TABLES t_oijplanwl_tab = it_t_oijplanwl_tab t_oijwl_tab = it_t_oijwl_tab EXCEPTIONS INPUT_MISSING = 1 ENTRY_NOT_FOUND = 2 . " OIJW_DELETE_WL_PLAN
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_i_wlrc  TYPE OIJWL-WLRC ,
it_t_oijplanwl_tab  TYPE STANDARD TABLE OF OIJG0_OIJPLANWL_TAB ,
wa_t_oijplanwl_tab  LIKE LINE OF it_t_oijplanwl_tab,
ld_i_oijrdplan_wa  TYPE OIJRDPLAN ,
it_t_oijwl_tab  TYPE STANDARD TABLE OF ROIJWL_UPD ,
wa_t_oijwl_tab  LIKE LINE OF it_t_oijwl_tab.


SELECT single WLRC
FROM OIJWL
INTO ld_i_wlrc.


"populate fields of struture and append to itab
append wa_t_oijplanwl_tab to it_t_oijplanwl_tab.
ld_i_oijrdplan_wa = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_oijwl_tab to it_t_oijwl_tab.

SAP Documentation for FM OIJW_DELETE_WL_PLAN


This function module finds a row in OIJPLANWL and OIJWL internal tables corresponding to an RDPLAN record and sets the update-flag for deletion. ...See here for full SAP fm documentation








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