SAP PROMOTION_FOLLOW_ON_FUNCTIONS Function Module for NOTRANSL: Aufruf der Funktionen zur Folgeverarbeitung.
PROMOTION_FOLLOW_ON_FUNCTIONS is a standard promotion follow on functions 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: Aufruf der Funktionen zur Folgeverarbeitung. 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 follow on functions FM, simply by entering the name PROMOTION_FOLLOW_ON_FUNCTIONS 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_FOLLOW_ON_FUNCTIONS 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_FOLLOW_ON_FUNCTIONS'"NOTRANSL: Aufruf der Funktionen zur Folgeverarbeitung..
EXPORTING
PI_I_WAKHD = "
PI_I_FOLGEVERARBEITUNG = "
PI_I_STAT_FLGVER = "
PI_I_SELECTION = "
PI_FCODE = "
IMPORTING
PE_I_WAKHD = "
PE_I_STAT_FLGVER = "
TABLES
PI_T_WAKPD = "
PI_T_AUFI = "
PI_T_AULW = "
PI_T_AUVZ = "
PI_T_AUVW = "
PI_T_LWAALD = "
PI_T_SWAALD = "
PI_T_WERKS = "
PI_T_LIFNR = "
PI_T_TWAKP = "
PI_T_DISTR = "
PI_T_WAGUD = "Plant Groups
PI_T_BEK_SELECTION = "
PI_T_WAZBD = "
PI_T_WALED = "
PI_T_WAALD = "
PI_T_WAZTD = "
PI_T_DWAZBD = "
PI_T_AUPO = "
PI_T_AUFG = "
EXCEPTIONS
PROMOTION_NOT_FOUND = 1 OTHER_ERROR = 2 USER_BREAK = 3 NO_RECORD_TO_PROCESS = 4
IMPORTING Parameters details for PROMOTION_FOLLOW_ON_FUNCTIONS
PI_I_WAKHD -
Data type: WAKHDOptional: No
Call by Reference: No ( called with pass by value option)
PI_I_FOLGEVERARBEITUNG -
Data type: WAFLGBEARBOptional: No
Call by Reference: No ( called with pass by value option)
PI_I_STAT_FLGVER -
Data type: WAFLGBEARBOptional: No
Call by Reference: No ( called with pass by value option)
PI_I_SELECTION -
Data type: WABEK_SELEOptional: No
Call by Reference: No ( called with pass by value option)
PI_FCODE -
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PROMOTION_FOLLOW_ON_FUNCTIONS
PE_I_WAKHD -
Data type: WAKHDOptional: No
Call by Reference: No ( called with pass by value option)
PE_I_STAT_FLGVER -
Data type: WAFLGBEARBOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PROMOTION_FOLLOW_ON_FUNCTIONS
PI_T_WAKPD -
Data type: WAKPDOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_AUFI -
Data type: RW019AOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_AULW -
Data type: RW020AOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_AUVZ -
Data type: RW022AOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_AUVW -
Data type: RW017AOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_LWAALD -
Data type: WAALDOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_SWAALD -
Data type: WAALDOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_WERKS -
Data type: WAKWOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_LIFNR -
Data type: WAKWOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_TWAKP -
Data type: WAKPOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_DISTR -
Data type: WAKWOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_WAGUD - Plant Groups
Data type: WAGUDOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_BEK_SELECTION -
Data type: BEK_STATUSOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_WAZBD -
Data type: WAZBDOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_WALED -
Data type: WALEDOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_WAALD -
Data type: WAALDOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_WAZTD -
Data type: WAZTDOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_DWAZBD -
Data type: WAZBDOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_AUPO -
Data type: RW016AOptional: No
Call by Reference: No ( called with pass by value option)
PI_T_AUFG -
Data type: RW018AOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PROMOTION_NOT_FOUND - Action Not Available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTHER_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
USER_BREAK - Terminated by user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_RECORD_TO_PROCESS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PROMOTION_FOLLOW_ON_FUNCTIONS 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_i_wakhd | TYPE WAKHD, " | |||
| lv_pi_i_wakhd | TYPE WAKHD, " | |||
| lt_pi_t_wakpd | TYPE STANDARD TABLE OF WAKPD, " | |||
| lv_promotion_not_found | TYPE WAKPD, " | |||
| lt_pi_t_aufi | TYPE STANDARD TABLE OF RW019A, " | |||
| lt_pi_t_aulw | TYPE STANDARD TABLE OF RW020A, " | |||
| lt_pi_t_auvz | TYPE STANDARD TABLE OF RW022A, " | |||
| lt_pi_t_auvw | TYPE STANDARD TABLE OF RW017A, " | |||
| lt_pi_t_lwaald | TYPE STANDARD TABLE OF WAALD, " | |||
| lt_pi_t_swaald | TYPE STANDARD TABLE OF WAALD, " | |||
| lt_pi_t_werks | TYPE STANDARD TABLE OF WAKW, " | |||
| lt_pi_t_lifnr | TYPE STANDARD TABLE OF WAKW, " | |||
| lt_pi_t_twakp | TYPE STANDARD TABLE OF WAKP, " | |||
| lt_pi_t_distr | TYPE STANDARD TABLE OF WAKW, " | |||
| lt_pi_t_wagud | TYPE STANDARD TABLE OF WAGUD, " | |||
| lv_other_error | TYPE WAGUD, " | |||
| lv_pe_i_stat_flgver | TYPE WAFLGBEARB, " | |||
| lv_pi_i_folgeverarbeitung | TYPE WAFLGBEARB, " | |||
| lt_pi_t_bek_selection | TYPE STANDARD TABLE OF BEK_STATUS, " | |||
| lt_pi_t_wazbd | TYPE STANDARD TABLE OF WAZBD, " | |||
| lv_user_break | TYPE WAZBD, " | |||
| lv_pi_i_stat_flgver | TYPE WAFLGBEARB, " | |||
| lt_pi_t_waled | TYPE STANDARD TABLE OF WALED, " | |||
| lv_pi_i_selection | TYPE WABEK_SELE, " | |||
| lv_no_record_to_process | TYPE WABEK_SELE, " | |||
| lv_pi_fcode | TYPE SY-UCOMM, " | |||
| lt_pi_t_waald | TYPE STANDARD TABLE OF WAALD, " | |||
| lt_pi_t_waztd | TYPE STANDARD TABLE OF WAZTD, " | |||
| lt_pi_t_dwazbd | TYPE STANDARD TABLE OF WAZBD, " | |||
| lt_pi_t_aupo | TYPE STANDARD TABLE OF RW016A, " | |||
| lt_pi_t_aufg | TYPE STANDARD TABLE OF RW018A. " |
|   CALL FUNCTION 'PROMOTION_FOLLOW_ON_FUNCTIONS' "NOTRANSL: Aufruf der Funktionen zur Folgeverarbeitung. |
| EXPORTING | ||
| PI_I_WAKHD | = lv_pi_i_wakhd | |
| PI_I_FOLGEVERARBEITUNG | = lv_pi_i_folgeverarbeitung | |
| PI_I_STAT_FLGVER | = lv_pi_i_stat_flgver | |
| PI_I_SELECTION | = lv_pi_i_selection | |
| PI_FCODE | = lv_pi_fcode | |
| IMPORTING | ||
| PE_I_WAKHD | = lv_pe_i_wakhd | |
| PE_I_STAT_FLGVER | = lv_pe_i_stat_flgver | |
| TABLES | ||
| PI_T_WAKPD | = lt_pi_t_wakpd | |
| PI_T_AUFI | = lt_pi_t_aufi | |
| PI_T_AULW | = lt_pi_t_aulw | |
| PI_T_AUVZ | = lt_pi_t_auvz | |
| PI_T_AUVW | = lt_pi_t_auvw | |
| PI_T_LWAALD | = lt_pi_t_lwaald | |
| PI_T_SWAALD | = lt_pi_t_swaald | |
| PI_T_WERKS | = lt_pi_t_werks | |
| PI_T_LIFNR | = lt_pi_t_lifnr | |
| PI_T_TWAKP | = lt_pi_t_twakp | |
| PI_T_DISTR | = lt_pi_t_distr | |
| PI_T_WAGUD | = lt_pi_t_wagud | |
| PI_T_BEK_SELECTION | = lt_pi_t_bek_selection | |
| PI_T_WAZBD | = lt_pi_t_wazbd | |
| PI_T_WALED | = lt_pi_t_waled | |
| PI_T_WAALD | = lt_pi_t_waald | |
| PI_T_WAZTD | = lt_pi_t_waztd | |
| PI_T_DWAZBD | = lt_pi_t_dwazbd | |
| PI_T_AUPO | = lt_pi_t_aupo | |
| PI_T_AUFG | = lt_pi_t_aufg | |
| EXCEPTIONS | ||
| PROMOTION_NOT_FOUND = 1 | ||
| OTHER_ERROR = 2 | ||
| USER_BREAK = 3 | ||
| NO_RECORD_TO_PROCESS = 4 | ||
| . " PROMOTION_FOLLOW_ON_FUNCTIONS | ||
ABAP code using 7.40 inline data declarations to call FM PROMOTION_FOLLOW_ON_FUNCTIONS
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 UCOMM FROM SY INTO @DATA(ld_pi_fcode). | ||||
Search for further information about these or an SAP related objects