SAP PROMOTION_PRICE_DEACTIVATE_RFC Function Module for NOTRANSL: Preisdeaktivierung Aktion (rfc-fähig)
PROMOTION_PRICE_DEACTIVATE_RFC is a standard promotion price deactivate rfc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Preisdeaktivierung Aktion (rfc-fähig) 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 promotion price deactivate rfc FM, simply by entering the name PROMOTION_PRICE_DEACTIVATE_RFC into the relevant SAP transaction such as SE37 or SE38.
Function Group: WAK1
Program Name: SAPLWAK1
Main Program: SAPLWAK1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function PROMOTION_PRICE_DEACTIVATE_RFC 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 'PROMOTION_PRICE_DEACTIVATE_RFC'"NOTRANSL: Preisdeaktivierung Aktion (rfc-fähig).
EXPORTING
PI_WAKHD = "Screen Field String for Promotion Header Data
PI_TESTRUN = "
* PI_NO_COMMIT = "
* PI_WAKH_DB = "Promotion Header Data, IS-R
* PI_FEHLP = "Checkbox for printout of log for sales price calculations
* PI_DRUKZ = "Checkbox for print output
TABLES
PI_T_WAKPD = "Promotion Item Data
PI_T_WAGUD = "
PI_T_WALED = "
* PE_T_XERRO = "Error Message Table
* PI_T_WAKP_DB = "Table Type for DB Table WAKP
IMPORTING Parameters details for PROMOTION_PRICE_DEACTIVATE_RFC
PI_WAKHD - Screen Field String for Promotion Header Data
Data type: WAKHDOptional: No
Call by Reference: No ( called with pass by value option)
PI_TESTRUN -
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
PI_NO_COMMIT -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_WAKH_DB - Promotion Header Data, IS-R
Data type: WAKHOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_FEHLP - Checkbox for printout of log for sales price calculations
Data type: PISPC-FEHLPOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_DRUKZ - Checkbox for print output
Data type: PISPC-DRUKZOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PROMOTION_PRICE_DEACTIVATE_RFC
PI_T_WAKPD - Promotion Item Data
Data type: WAKPDOptional: No
Call by Reference: Yes
PI_T_WAGUD -
Data type: WAGUDOptional: No
Call by Reference: Yes
PI_T_WALED -
Data type: WALEDOptional: No
Call by Reference: Yes
PE_T_XERRO - Error Message Table
Data type: ERROOptional: Yes
Call by Reference: Yes
PI_T_WAKP_DB - Table Type for DB Table WAKP
Data type: WAKP_TABOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for PROMOTION_PRICE_DEACTIVATE_RFC 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_pi_wakhd | TYPE WAKHD, " | |||
| lt_pi_t_wakpd | TYPE STANDARD TABLE OF WAKPD, " | |||
| lv_pi_testrun | TYPE XFELD, " | |||
| lt_pi_t_wagud | TYPE STANDARD TABLE OF WAGUD, " | |||
| lt_pi_t_waled | TYPE STANDARD TABLE OF WALED, " | |||
| lv_pi_no_commit | TYPE XFELD, " | |||
| lt_pe_t_xerro | TYPE STANDARD TABLE OF ERRO, " | |||
| lv_pi_wakh_db | TYPE WAKH, " | |||
| lv_pi_fehlp | TYPE PISPC-FEHLP, " | |||
| lt_pi_t_wakp_db | TYPE STANDARD TABLE OF WAKP_TAB, " | |||
| lv_pi_drukz | TYPE PISPC-DRUKZ. " |
|   CALL FUNCTION 'PROMOTION_PRICE_DEACTIVATE_RFC' "NOTRANSL: Preisdeaktivierung Aktion (rfc-fähig) |
| EXPORTING | ||
| PI_WAKHD | = lv_pi_wakhd | |
| PI_TESTRUN | = lv_pi_testrun | |
| PI_NO_COMMIT | = lv_pi_no_commit | |
| PI_WAKH_DB | = lv_pi_wakh_db | |
| PI_FEHLP | = lv_pi_fehlp | |
| PI_DRUKZ | = lv_pi_drukz | |
| TABLES | ||
| PI_T_WAKPD | = lt_pi_t_wakpd | |
| PI_T_WAGUD | = lt_pi_t_wagud | |
| PI_T_WALED | = lt_pi_t_waled | |
| PE_T_XERRO | = lt_pe_t_xerro | |
| PI_T_WAKP_DB | = lt_pi_t_wakp_db | |
| . " PROMOTION_PRICE_DEACTIVATE_RFC | ||
ABAP code using 7.40 inline data declarations to call FM PROMOTION_PRICE_DEACTIVATE_RFC
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 FEHLP FROM PISPC INTO @DATA(ld_pi_fehlp). | ||||
| "SELECT single DRUKZ FROM PISPC INTO @DATA(ld_pi_drukz). | ||||
Search for further information about these or an SAP related objects