SAP PROMOTION_LISTING_RFC Function Module for NOTRANSL: Aktionslistung (RFC-fähig)
PROMOTION_LISTING_RFC is a standard promotion listing 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: Aktionslistung (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 listing rfc FM, simply by entering the name PROMOTION_LISTING_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_LISTING_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_LISTING_RFC'"NOTRANSL: Aktionslistung (RFC-fähig).
EXPORTING
PI_I_WAKHD = "Promotion Header Data
PI_I_TEST = "Indicator: Test Run
* PI_PARAL = "
PI_I_WAZB_ZUPOS = "
* PI_I_WAKH_DB = "Table Type for Database Table WAKH
TABLES
PI_T_XWAGUD = "
PI_T_MESSAGES = "Message table message collector
* PI_T_XWAGU_DB = "Table Type for DB Table WAGU
* PI_T_XWAKP_DB = "Table Type for DB Table WAKP
* PI_T_XWAZB_DB = "Table Type for DB-TAB WAZB
PI_T_XWAKPD = "Promotion Item Data
PI_T_XWAZBD = "
PI_T_XWSOHD = "
PI_T_XWSOPD = "Module Items
PI_T_XWSOTD = "
PI_T_XWALED = "
PI_T_XWAZTD = "Promotion/themes assignment
PI_T_BSTARTNR = "
IMPORTING Parameters details for PROMOTION_LISTING_RFC
PI_I_WAKHD - Promotion Header Data
Data type: WAKHDOptional: No
Call by Reference: No ( called with pass by value option)
PI_I_TEST - Indicator: Test Run
Data type: RWAKA-KZ_TESTOptional: No
Call by Reference: No ( called with pass by value option)
PI_PARAL -
Data type: RWAKA-KZ_PARALLELOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_I_WAZB_ZUPOS -
Data type: WAZB-ZUPOSOptional: No
Call by Reference: No ( called with pass by value option)
PI_I_WAKH_DB - Table Type for Database Table WAKH
Data type: WAKHOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PROMOTION_LISTING_RFC
PI_T_XWAGUD -
Data type: WAGUDOptional: No
Call by Reference: Yes
PI_T_MESSAGES - Message table message collector
Data type: TSMESGOptional: No
Call by Reference: Yes
PI_T_XWAGU_DB - Table Type for DB Table WAGU
Data type: WAGU_TABOptional: Yes
Call by Reference: Yes
PI_T_XWAKP_DB - Table Type for DB Table WAKP
Data type: WAKP_TABOptional: Yes
Call by Reference: Yes
PI_T_XWAZB_DB - Table Type for DB-TAB WAZB
Data type: WAZB_TABOptional: Yes
Call by Reference: Yes
PI_T_XWAKPD - Promotion Item Data
Data type: WAKPDOptional: No
Call by Reference: Yes
PI_T_XWAZBD -
Data type: WAZBDOptional: No
Call by Reference: Yes
PI_T_XWSOHD -
Data type: WSOHDOptional: No
Call by Reference: Yes
PI_T_XWSOPD - Module Items
Data type: WSOPDOptional: No
Call by Reference: Yes
PI_T_XWSOTD -
Data type: WSOTDOptional: No
Call by Reference: Yes
PI_T_XWALED -
Data type: WALEDOptional: No
Call by Reference: Yes
PI_T_XWAZTD - Promotion/themes assignment
Data type: WAZTDOptional: No
Call by Reference: Yes
PI_T_BSTARTNR -
Data type: WABSTARTNROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for PROMOTION_LISTING_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_i_wakhd | TYPE WAKHD, " | |||
| lt_pi_t_xwagud | TYPE STANDARD TABLE OF WAGUD, " | |||
| lt_pi_t_messages | TYPE STANDARD TABLE OF TSMESG, " | |||
| lt_pi_t_xwagu_db | TYPE STANDARD TABLE OF WAGU_TAB, " | |||
| lt_pi_t_xwakp_db | TYPE STANDARD TABLE OF WAKP_TAB, " | |||
| lt_pi_t_xwazb_db | TYPE STANDARD TABLE OF WAZB_TAB, " | |||
| lv_pi_i_test | TYPE RWAKA-KZ_TEST, " | |||
| lt_pi_t_xwakpd | TYPE STANDARD TABLE OF WAKPD, " | |||
| lv_pi_paral | TYPE RWAKA-KZ_PARALLEL, " | |||
| lt_pi_t_xwazbd | TYPE STANDARD TABLE OF WAZBD, " | |||
| lt_pi_t_xwsohd | TYPE STANDARD TABLE OF WSOHD, " | |||
| lv_pi_i_wazb_zupos | TYPE WAZB-ZUPOS, " | |||
| lt_pi_t_xwsopd | TYPE STANDARD TABLE OF WSOPD, " | |||
| lv_pi_i_wakh_db | TYPE WAKH, " | |||
| lt_pi_t_xwsotd | TYPE STANDARD TABLE OF WSOTD, " | |||
| lt_pi_t_xwaled | TYPE STANDARD TABLE OF WALED, " | |||
| lt_pi_t_xwaztd | TYPE STANDARD TABLE OF WAZTD, " | |||
| lt_pi_t_bstartnr | TYPE STANDARD TABLE OF WABSTARTNR. " |
|   CALL FUNCTION 'PROMOTION_LISTING_RFC' "NOTRANSL: Aktionslistung (RFC-fähig) |
| EXPORTING | ||
| PI_I_WAKHD | = lv_pi_i_wakhd | |
| PI_I_TEST | = lv_pi_i_test | |
| PI_PARAL | = lv_pi_paral | |
| PI_I_WAZB_ZUPOS | = lv_pi_i_wazb_zupos | |
| PI_I_WAKH_DB | = lv_pi_i_wakh_db | |
| TABLES | ||
| PI_T_XWAGUD | = lt_pi_t_xwagud | |
| PI_T_MESSAGES | = lt_pi_t_messages | |
| PI_T_XWAGU_DB | = lt_pi_t_xwagu_db | |
| PI_T_XWAKP_DB | = lt_pi_t_xwakp_db | |
| PI_T_XWAZB_DB | = lt_pi_t_xwazb_db | |
| PI_T_XWAKPD | = lt_pi_t_xwakpd | |
| PI_T_XWAZBD | = lt_pi_t_xwazbd | |
| PI_T_XWSOHD | = lt_pi_t_xwsohd | |
| PI_T_XWSOPD | = lt_pi_t_xwsopd | |
| PI_T_XWSOTD | = lt_pi_t_xwsotd | |
| PI_T_XWALED | = lt_pi_t_xwaled | |
| PI_T_XWAZTD | = lt_pi_t_xwaztd | |
| PI_T_BSTARTNR | = lt_pi_t_bstartnr | |
| . " PROMOTION_LISTING_RFC | ||
ABAP code using 7.40 inline data declarations to call FM PROMOTION_LISTING_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 KZ_TEST FROM RWAKA INTO @DATA(ld_pi_i_test). | ||||
| "SELECT single KZ_PARALLEL FROM RWAKA INTO @DATA(ld_pi_paral). | ||||
| "SELECT single ZUPOS FROM WAZB INTO @DATA(ld_pi_i_wazb_zupos). | ||||
Search for further information about these or an SAP related objects