SAP BAPI_WRF_PPW_PRICEPLAN_CREATE Function Module for









BAPI_WRF_PPW_PRICEPLAN_CREATE is a standard bapi wrf ppw priceplan create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 bapi wrf ppw priceplan create FM, simply by entering the name BAPI_WRF_PPW_PRICEPLAN_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: WRF_PPW_BAPI_PRICE_PLAN
Program Name: SAPLWRF_PPW_BAPI_PRICE_PLAN
Main Program: SAPLWRF_PPW_BAPI
Appliation area:
Release date: 16-Dec-2010
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_WRF_PPW_PRICEPLAN_CREATE 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 'BAPI_WRF_PPW_PRICEPLAN_CREATE'"
EXPORTING
* TESTRUN = ' ' "
HEADER = "
* PROMO_HEADER = "
* NO_WARNINGS = "General Flag
* I_ABORT_ON_ERROR = '1' "General Flag

IMPORTING
PRICE_PLAN = "

TABLES
* PLANTGROUPS = "
* PLANTS = "
* ITEMS = "
* PROMO_ITEMS = "
* RETURN = "
.



IMPORTING Parameters details for BAPI_WRF_PPW_PRICEPLAN_CREATE

TESTRUN -

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

HEADER -

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

PROMO_HEADER -

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

NO_WARNINGS - General Flag

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

I_ABORT_ON_ERROR - General Flag

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

EXPORTING Parameters details for BAPI_WRF_PPW_PRICEPLAN_CREATE

PRICE_PLAN -

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

TABLES Parameters details for BAPI_WRF_PPW_PRICEPLAN_CREATE

PLANTGROUPS -

Data type: BAPI_WRF_PPW_PPD_CRE_PLGR_STY
Optional: Yes
Call by Reference: Yes

PLANTS -

Data type: BAPI_WRF_PPW_PPD_CRE_PLTS_STY
Optional: Yes
Call by Reference: Yes

ITEMS -

Data type: BAPI_WRF_PPW_PPD_CRE_ITEM_STY
Optional: Yes
Call by Reference: Yes

PROMO_ITEMS -

Data type: BAPI_WRF_PPW_PPD_CRE_PRIT_STY
Optional: Yes
Call by Reference: Yes

RETURN -

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BAPI_WRF_PPW_PRICEPLAN_CREATE 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:
lv_testrun  TYPE BAPIFLAG-BAPIFLAG, "   SPACE
lv_price_plan  TYPE BAPI_WRF_PPW_PPD_GETL_HEAD_STY-PRICE_PLAN, "   
lt_plantgroups  TYPE STANDARD TABLE OF BAPI_WRF_PPW_PPD_CRE_PLGR_STY, "   
lv_header  TYPE BAPI_WRF_PPW_PPD_CRE_HEAD_STY, "   
lt_plants  TYPE STANDARD TABLE OF BAPI_WRF_PPW_PPD_CRE_PLTS_STY, "   
lt_items  TYPE STANDARD TABLE OF BAPI_WRF_PPW_PPD_CRE_ITEM_STY, "   
lv_promo_header  TYPE BAPI_WRF_PPW_PPD_CRE_PRHE_STY, "   
lv_no_warnings  TYPE FLAG, "   
lt_promo_items  TYPE STANDARD TABLE OF BAPI_WRF_PPW_PPD_CRE_PRIT_STY, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_i_abort_on_error  TYPE BOOLEAN_01. "   '1'

  CALL FUNCTION 'BAPI_WRF_PPW_PRICEPLAN_CREATE'  "
    EXPORTING
         TESTRUN = lv_testrun
         HEADER = lv_header
         PROMO_HEADER = lv_promo_header
         NO_WARNINGS = lv_no_warnings
         I_ABORT_ON_ERROR = lv_i_abort_on_error
    IMPORTING
         PRICE_PLAN = lv_price_plan
    TABLES
         PLANTGROUPS = lt_plantgroups
         PLANTS = lt_plants
         ITEMS = lt_items
         PROMO_ITEMS = lt_promo_items
         RETURN = lt_return
. " BAPI_WRF_PPW_PRICEPLAN_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_WRF_PPW_PRICEPLAN_CREATE

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 BAPIFLAG FROM BAPIFLAG INTO @DATA(ld_testrun).
DATA(ld_testrun) = ' '.
 
"SELECT single PRICE_PLAN FROM BAPI_WRF_PPW_PPD_GETL_HEAD_STY INTO @DATA(ld_price_plan).
 
 
 
 
 
 
 
 
 
DATA(ld_i_abort_on_error) = '1'.
 


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!