SAP PROMOTION_POSITION_SELECT Function Module for NOTRANSL: Select von Aktionspositionen über Ankreuzliste
PROMOTION_POSITION_SELECT is a standard promotion position select 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: Select von Aktionspositionen über Ankreuzliste 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 position select FM, simply by entering the name PROMOTION_POSITION_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: WAK1
Program Name: SAPLWAK1
Main Program: SAPLWAK1
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PROMOTION_POSITION_SELECT 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_POSITION_SELECT'"NOTRANSL: Select von Aktionspositionen über Ankreuzliste.
EXPORTING
* FPROMOTION = "Promotion number
* FTHEME = "Promotion theme
* FCATEGORY = "Base Material Group
* FREADFLAG = "
TABLES
FWAKPD = "Promotion Items
EXCEPTIONS
PROMOTION_NOT_FOUND = 1 NO_ITEMS_FOUND = 2 OTHER = 3
IMPORTING Parameters details for PROMOTION_POSITION_SELECT
FPROMOTION - Promotion number
Data type: WAKH-AKTNROptional: Yes
Call by Reference: No ( called with pass by value option)
FTHEME - Promotion theme
Data type: TWAT-AKTHEOptional: Yes
Call by Reference: No ( called with pass by value option)
FCATEGORY - Base Material Group
Data type: WAKP-MATKLOptional: Yes
Call by Reference: No ( called with pass by value option)
FREADFLAG -
Data type: RWAKA-CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PROMOTION_POSITION_SELECT
FWAKPD - Promotion Items
Data type: WAKPDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PROMOTION_NOT_FOUND - No items exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ITEMS_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTHER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PROMOTION_POSITION_SELECT 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_fwakpd | TYPE STANDARD TABLE OF WAKPD, " | |||
| lv_fpromotion | TYPE WAKH-AKTNR, " | |||
| lv_promotion_not_found | TYPE WAKH, " | |||
| lv_ftheme | TYPE TWAT-AKTHE, " | |||
| lv_no_items_found | TYPE TWAT, " | |||
| lv_other | TYPE TWAT, " | |||
| lv_fcategory | TYPE WAKP-MATKL, " | |||
| lv_freadflag | TYPE RWAKA-CHAR1. " |
|   CALL FUNCTION 'PROMOTION_POSITION_SELECT' "NOTRANSL: Select von Aktionspositionen über Ankreuzliste |
| EXPORTING | ||
| FPROMOTION | = lv_fpromotion | |
| FTHEME | = lv_ftheme | |
| FCATEGORY | = lv_fcategory | |
| FREADFLAG | = lv_freadflag | |
| TABLES | ||
| FWAKPD | = lt_fwakpd | |
| EXCEPTIONS | ||
| PROMOTION_NOT_FOUND = 1 | ||
| NO_ITEMS_FOUND = 2 | ||
| OTHER = 3 | ||
| . " PROMOTION_POSITION_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM PROMOTION_POSITION_SELECT
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 AKTNR FROM WAKH INTO @DATA(ld_fpromotion). | ||||
| "SELECT single AKTHE FROM TWAT INTO @DATA(ld_ftheme). | ||||
| "SELECT single MATKL FROM WAKP INTO @DATA(ld_fcategory). | ||||
| "SELECT single CHAR1 FROM RWAKA INTO @DATA(ld_freadflag). | ||||
Search for further information about these or an SAP related objects