SAP PROMOTION_WLBM_POSITION_GET Function Module for NOTRANSL: Select von Aktionspositionen für Artikel-Werbemittel-Zuordnung









PROMOTION_WLBM_POSITION_GET is a standard promotion wlbm position get 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 für Artikel-Werbemittel-Zuordnung 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 wlbm position get FM, simply by entering the name PROMOTION_WLBM_POSITION_GET 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_WLBM_POSITION_GET 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_WLBM_POSITION_GET'"NOTRANSL: Select von Aktionspositionen für Artikel-Werbemittel-Zuordnung
EXPORTING
FWAKHD = "Promotion Header Data
FLAYVR = "

CHANGING
FWAZWD = "
* FWLBMD_MAX = "
* FMAXPOSNR = "

TABLES
FXWAKPD = "Promotion Items
FXWLBMD = "

EXCEPTIONS
NO_POSITION = 1
.



IMPORTING Parameters details for PROMOTION_WLBM_POSITION_GET

FWAKHD - Promotion Header Data

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

FLAYVR -

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

CHANGING Parameters details for PROMOTION_WLBM_POSITION_GET

FWAZWD -

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

FWLBMD_MAX -

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

FMAXPOSNR -

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

TABLES Parameters details for PROMOTION_WLBM_POSITION_GET

FXWAKPD - Promotion Items

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

FXWLBMD -

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

EXCEPTIONS details

NO_POSITION - No other items available

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

Copy and paste ABAP code example for PROMOTION_WLBM_POSITION_GET 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_fwakhd  TYPE WAKHD, "   
lv_fwazwd  TYPE WAZWD, "   
lt_fxwakpd  TYPE STANDARD TABLE OF WAKPD, "   
lv_no_position  TYPE WAKPD, "   
lv_flayvr  TYPE WWMI-LAYVR, "   
lt_fxwlbmd  TYPE STANDARD TABLE OF WLBMD, "   
lv_fwlbmd_max  TYPE SY-TABIX, "   
lv_fmaxposnr  TYPE WLBM-SORF1. "   

  CALL FUNCTION 'PROMOTION_WLBM_POSITION_GET'  "NOTRANSL: Select von Aktionspositionen für Artikel-Werbemittel-Zuordnung
    EXPORTING
         FWAKHD = lv_fwakhd
         FLAYVR = lv_flayvr
    CHANGING
         FWAZWD = lv_fwazwd
         FWLBMD_MAX = lv_fwlbmd_max
         FMAXPOSNR = lv_fmaxposnr
    TABLES
         FXWAKPD = lt_fxwakpd
         FXWLBMD = lt_fxwlbmd
    EXCEPTIONS
        NO_POSITION = 1
. " PROMOTION_WLBM_POSITION_GET




ABAP code using 7.40 inline data declarations to call FM PROMOTION_WLBM_POSITION_GET

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 LAYVR FROM WWMI INTO @DATA(ld_flayvr).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_fwlbmd_max).
 
"SELECT single SORF1 FROM WLBM INTO @DATA(ld_fmaxposnr).
 


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!