SAP OII_WRPL_PARAMETER Function Module for Maintain replenishment parameters per customer/material









OII_WRPL_PARAMETER is a standard oii wrpl parameter SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintain replenishment parameters per customer/material processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for oii wrpl parameter FM, simply by entering the name OII_WRPL_PARAMETER into the relevant SAP transaction such as SE37 or SE38.

Function Group: OIIW
Program Name: SAPLOIIW
Main Program: SAPLOIIW
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function OII_WRPL_PARAMETER pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'OII_WRPL_PARAMETER'"Maintain replenishment parameters per customer/material
EXPORTING
I_HEADER = "
* I_TRTYP = 'A' "
* I_APPLSPECIFIC = "
* I_TABSTRIP = "

IMPORTING
E_FCODE = "
E_EXITCOMMAND = "

CHANGING
E_DATALOSS = "Screens, display user entry

TABLES
* T_WRPL = "

EXCEPTIONS
PARAMETERS_LOCKED = 1 DATA_EXISTS = 2
.



IMPORTING Parameters details for OII_WRPL_PARAMETER

I_HEADER -

Data type: ROILITRNS
Optional: No
Call by Reference: No ( called with pass by value option)

I_TRTYP -

Data type: T180-TRTYP
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_APPLSPECIFIC -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TABSTRIP -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for OII_WRPL_PARAMETER

E_FCODE -

Data type: T185-FCODE
Optional: No
Call by Reference: No ( called with pass by value option)

E_EXITCOMMAND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for OII_WRPL_PARAMETER

E_DATALOSS - Screens, display user entry

Data type: SYDATAR
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for OII_WRPL_PARAMETER

T_WRPL -

Data type: WRPL
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

PARAMETERS_LOCKED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DATA_EXISTS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for OII_WRPL_PARAMETER Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_t_wrpl  TYPE STANDARD TABLE OF WRPL, "   
lv_e_fcode  TYPE T185-FCODE, "   
lv_i_header  TYPE ROILITRNS, "   
lv_e_dataloss  TYPE SYDATAR, "   
lv_parameters_locked  TYPE SYDATAR, "   
lv_i_trtyp  TYPE T180-TRTYP, "   'A'
lv_data_exists  TYPE T180, "   
lv_e_exitcommand  TYPE T180, "   
lv_i_applspecific  TYPE T180, "   
lv_i_tabstrip  TYPE T180. "   

  CALL FUNCTION 'OII_WRPL_PARAMETER'  "Maintain replenishment parameters per customer/material
    EXPORTING
         I_HEADER = lv_i_header
         I_TRTYP = lv_i_trtyp
         I_APPLSPECIFIC = lv_i_applspecific
         I_TABSTRIP = lv_i_tabstrip
    IMPORTING
         E_FCODE = lv_e_fcode
         E_EXITCOMMAND = lv_e_exitcommand
    CHANGING
         E_DATALOSS = lv_e_dataloss
    TABLES
         T_WRPL = lt_t_wrpl
    EXCEPTIONS
        PARAMETERS_LOCKED = 1
        DATA_EXISTS = 2
. " OII_WRPL_PARAMETER




ABAP code using 7.40 inline data declarations to call FM OII_WRPL_PARAMETER

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single FCODE FROM T185 INTO @DATA(ld_e_fcode).
 
 
 
 
"SELECT single TRTYP FROM T180 INTO @DATA(ld_i_trtyp).
DATA(ld_i_trtyp) = 'A'.
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!