SAP PROMOTION_REBATE_IN_SITE Function Module for NOTRANSL: Aktionsrabatte für eine Filiale









PROMOTION_REBATE_IN_SITE is a standard promotion rebate in site 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: Aktionsrabatte für eine Filiale 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 rebate in site FM, simply by entering the name PROMOTION_REBATE_IN_SITE into the relevant SAP transaction such as SE37 or SE38.

Function Group: WAK8
Program Name: SAPLWAK8
Main Program: SAPLWAK8
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function PROMOTION_REBATE_IN_SITE 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_REBATE_IN_SITE'"NOTRANSL: Aktionsrabatte für eine Filiale
EXPORTING
PI_AKTNR = "Promotion
PI_KUNNR = "Customer Number for Plant
PI_VKORG = "Sales Organization: Promotion Header
PI_VTWEG = "Distribution Channel: Promotion Header
PI_DATAB = "POS Outbound: Analysis Period From
PI_DATBI = "POS Outbound: Analysis Period To

IMPORTING
PE_WAKH = "Promotion Header Data, IS-R

TABLES
PE_T_WAKR = "Promotion Discounts

EXCEPTIONS
WRONG_INPUT = 1 PROMOTION_NOT_FOUND = 2 PROMOTION_OUT_OF_PERIOD = 3 NO_REBATE_FOUND = 4 SITE_NOT_PARTICIPATING = 5 MERCHANDISE_CATEGORY_ERROR = 6 UNKNOWN_REBATE_LEVEL = 7 UNKNOWN_ACTIVATION_LEVEL = 8
.



IMPORTING Parameters details for PROMOTION_REBATE_IN_SITE

PI_AKTNR - Promotion

Data type: WAKTION
Optional: No
Call by Reference: Yes

PI_KUNNR - Customer Number for Plant

Data type: LOCNR
Optional: No
Call by Reference: Yes

PI_VKORG - Sales Organization: Promotion Header

Data type: W_VKORG_HEADER
Optional: No
Call by Reference: Yes

PI_VTWEG - Distribution Channel: Promotion Header

Data type: W_VTWEG_HEADER
Optional: No
Call by Reference: Yes

PI_DATAB - POS Outbound: Analysis Period From

Data type: W_OBS_FR
Optional: No
Call by Reference: Yes

PI_DATBI - POS Outbound: Analysis Period To

Data type: W_OBS_TO
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for PROMOTION_REBATE_IN_SITE

PE_WAKH - Promotion Header Data, IS-R

Data type: WAKH
Optional: No
Call by Reference: Yes

TABLES Parameters details for PROMOTION_REBATE_IN_SITE

PE_T_WAKR - Promotion Discounts

Data type: WAKR_TAB
Optional: No
Call by Reference: Yes

EXCEPTIONS details

WRONG_INPUT - Import parameters are incorrect

Data type:
Optional: No
Call by Reference: Yes

PROMOTION_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

PROMOTION_OUT_OF_PERIOD - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

NO_REBATE_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

SITE_NOT_PARTICIPATING - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

MERCHANDISE_CATEGORY_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

UNKNOWN_REBATE_LEVEL - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

UNKNOWN_ACTIVATION_LEVEL - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PROMOTION_REBATE_IN_SITE 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_pe_wakh  TYPE WAKH, "   
lv_pi_aktnr  TYPE WAKTION, "   
lt_pe_t_wakr  TYPE STANDARD TABLE OF WAKR_TAB, "   
lv_wrong_input  TYPE WAKR_TAB, "   
lv_pi_kunnr  TYPE LOCNR, "   
lv_promotion_not_found  TYPE LOCNR, "   
lv_pi_vkorg  TYPE W_VKORG_HEADER, "   
lv_promotion_out_of_period  TYPE W_VKORG_HEADER, "   
lv_pi_vtweg  TYPE W_VTWEG_HEADER, "   
lv_no_rebate_found  TYPE W_VTWEG_HEADER, "   
lv_pi_datab  TYPE W_OBS_FR, "   
lv_site_not_participating  TYPE W_OBS_FR, "   
lv_pi_datbi  TYPE W_OBS_TO, "   
lv_merchandise_category_error  TYPE W_OBS_TO, "   
lv_unknown_rebate_level  TYPE W_OBS_TO, "   
lv_unknown_activation_level  TYPE W_OBS_TO. "   

  CALL FUNCTION 'PROMOTION_REBATE_IN_SITE'  "NOTRANSL: Aktionsrabatte für eine Filiale
    EXPORTING
         PI_AKTNR = lv_pi_aktnr
         PI_KUNNR = lv_pi_kunnr
         PI_VKORG = lv_pi_vkorg
         PI_VTWEG = lv_pi_vtweg
         PI_DATAB = lv_pi_datab
         PI_DATBI = lv_pi_datbi
    IMPORTING
         PE_WAKH = lv_pe_wakh
    TABLES
         PE_T_WAKR = lt_pe_t_wakr
    EXCEPTIONS
        WRONG_INPUT = 1
        PROMOTION_NOT_FOUND = 2
        PROMOTION_OUT_OF_PERIOD = 3
        NO_REBATE_FOUND = 4
        SITE_NOT_PARTICIPATING = 5
        MERCHANDISE_CATEGORY_ERROR = 6
        UNKNOWN_REBATE_LEVEL = 7
        UNKNOWN_ACTIVATION_LEVEL = 8
. " PROMOTION_REBATE_IN_SITE




ABAP code using 7.40 inline data declarations to call FM PROMOTION_REBATE_IN_SITE

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!