SAP BAPI_WRF_PPW_PRICEPLAN_GETDET Function Module for









BAPI_WRF_PPW_PRICEPLAN_GETDET is a standard bapi wrf ppw priceplan getdet 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 getdet FM, simply by entering the name BAPI_WRF_PPW_PRICEPLAN_GETDET 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_GETDET 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_GETDET'"
EXPORTING
PRICEPLAN = "

IMPORTING
HEADER = "
PROMO_HEADER = "

TABLES
* PLANTGROUPS = "
* PLANTS = "
* ORGSET_HEADS = "
* ORGSET_ITEMS = "
* ITEMS = "
* ACCUMULATED_ITEMS = "
* PROMO_ITEMS = "
* RETURN = "
.



IMPORTING Parameters details for BAPI_WRF_PPW_PRICEPLAN_GETDET

PRICEPLAN -

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

EXPORTING Parameters details for BAPI_WRF_PPW_PRICEPLAN_GETDET

HEADER -

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

PROMO_HEADER -

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

TABLES Parameters details for BAPI_WRF_PPW_PRICEPLAN_GETDET

PLANTGROUPS -

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

PLANTS -

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

ORGSET_HEADS -

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

ORGSET_ITEMS -

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

ITEMS -

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

ACCUMULATED_ITEMS -

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

PROMO_ITEMS -

Data type: BAPI_WRF_PPW_PPD_DET_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_GETDET 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_header  TYPE BAPI_WRF_PPW_PPD_DET_HEAD_STY, "   
lv_priceplan  TYPE BAPI_WRF_PPW_PPD_GETL_HEAD_STY-PRICE_PLAN, "   
lt_plantgroups  TYPE STANDARD TABLE OF BAPI_WRF_PPW_PPD_DET_PLGR_STY, "   
lt_plants  TYPE STANDARD TABLE OF BAPI_WRF_PPW_PPD_DET_PLTS_STY, "   
lv_promo_header  TYPE BAPI_WRF_PPW_PPD_DET_PRHE_STY, "   
lt_orgset_heads  TYPE STANDARD TABLE OF BAPI_WRF_PPW_PPD_DET_OSHD_STY, "   
lt_orgset_items  TYPE STANDARD TABLE OF BAPI_WRF_PPW_PPD_DET_OSIT_STY, "   
lt_items  TYPE STANDARD TABLE OF BAPI_WRF_PPW_PPD_DET_ITEM_STY, "   
lt_accumulated_items  TYPE STANDARD TABLE OF BAPI_WRF_PPW_PPD_DET_ARTIT_STY, "   
lt_promo_items  TYPE STANDARD TABLE OF BAPI_WRF_PPW_PPD_DET_PRIT_STY, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2. "   

  CALL FUNCTION 'BAPI_WRF_PPW_PRICEPLAN_GETDET'  "
    EXPORTING
         PRICEPLAN = lv_priceplan
    IMPORTING
         HEADER = lv_header
         PROMO_HEADER = lv_promo_header
    TABLES
         PLANTGROUPS = lt_plantgroups
         PLANTS = lt_plants
         ORGSET_HEADS = lt_orgset_heads
         ORGSET_ITEMS = lt_orgset_items
         ITEMS = lt_items
         ACCUMULATED_ITEMS = lt_accumulated_items
         PROMO_ITEMS = lt_promo_items
         RETURN = lt_return
. " BAPI_WRF_PPW_PRICEPLAN_GETDET




ABAP code using 7.40 inline data declarations to call FM BAPI_WRF_PPW_PRICEPLAN_GETDET

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 PRICE_PLAN FROM BAPI_WRF_PPW_PPD_GETL_HEAD_STY INTO @DATA(ld_priceplan).
 
 
 
 
 
 
 
 
 
 


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!