SAP ENH_REBATE_VAKEY_HEADER Function Module for NOTRANSL: Überschriftszeile des VAKEYs
ENH_REBATE_VAKEY_HEADER is a standard enh rebate vakey header 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: Überschriftszeile des VAKEYs 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 enh rebate vakey header FM, simply by entering the name ENH_REBATE_VAKEY_HEADER into the relevant SAP transaction such as SE37 or SE38.
Function Group: BON_ENH
Program Name: SAPLBON_ENH
Main Program: SAPLBON_ENH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ENH_REBATE_VAKEY_HEADER 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 'ENH_REBATE_VAKEY_HEADER'"NOTRANSL: Überschriftszeile des VAKEYs.
EXPORTING
* I_KVEWE = 'E' "Usage of the Condition Table
I_KOTABNR = "Condition Table
* I_KAPPL = 'V ' "Application
I_BOART = "Arrangement Type
* I_STARTCOL = 1 "DE-EN-LANG-SWITCH-NO-TRANSLATION
* DRILL_DOWN = ' ' "Checkbox
IMPORTING
P_TEXT_STRING = "Literal for variable key
TABLES
VAKEY_FIELDS = "
IMPORTING Parameters details for ENH_REBATE_VAKEY_HEADER
I_KVEWE - Usage of the Condition Table
Data type: KVEWEDefault: 'E'
Optional: Yes
Call by Reference: Yes
I_KOTABNR - Condition Table
Data type: KOTABNROptional: No
Call by Reference: Yes
I_KAPPL - Application
Data type: KAPPLDefault: 'V '
Optional: Yes
Call by Reference: Yes
I_BOART - Arrangement Type
Data type: BOARTOptional: No
Call by Reference: Yes
I_STARTCOL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: SY-COLNODefault: 1
Optional: Yes
Call by Reference: Yes
DRILL_DOWN - Checkbox
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ENH_REBATE_VAKEY_HEADER
P_TEXT_STRING - Literal for variable key
Data type: RV13A-VAKEY1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ENH_REBATE_VAKEY_HEADER
VAKEY_FIELDS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ENH_REBATE_VAKEY_HEADER 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_i_kvewe | TYPE KVEWE, " 'E' | |||
| lt_vakey_fields | TYPE STANDARD TABLE OF KVEWE, " | |||
| lv_p_text_string | TYPE RV13A-VAKEY1, " | |||
| lv_i_kotabnr | TYPE KOTABNR, " | |||
| lv_i_kappl | TYPE KAPPL, " 'V ' | |||
| lv_i_boart | TYPE BOART, " | |||
| lv_i_startcol | TYPE SY-COLNO, " 1 | |||
| lv_drill_down | TYPE XFELD. " ' ' |
|   CALL FUNCTION 'ENH_REBATE_VAKEY_HEADER' "NOTRANSL: Überschriftszeile des VAKEYs |
| EXPORTING | ||
| I_KVEWE | = lv_i_kvewe | |
| I_KOTABNR | = lv_i_kotabnr | |
| I_KAPPL | = lv_i_kappl | |
| I_BOART | = lv_i_boart | |
| I_STARTCOL | = lv_i_startcol | |
| DRILL_DOWN | = lv_drill_down | |
| IMPORTING | ||
| P_TEXT_STRING | = lv_p_text_string | |
| TABLES | ||
| VAKEY_FIELDS | = lt_vakey_fields | |
| . " ENH_REBATE_VAKEY_HEADER | ||
ABAP code using 7.40 inline data declarations to call FM ENH_REBATE_VAKEY_HEADER
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.| DATA(ld_i_kvewe) | = 'E'. | |||
| "SELECT single VAKEY1 FROM RV13A INTO @DATA(ld_p_text_string). | ||||
| DATA(ld_i_kappl) | = 'V '. | |||
| "SELECT single COLNO FROM SY INTO @DATA(ld_i_startcol). | ||||
| DATA(ld_i_startcol) | = 1. | |||
| DATA(ld_drill_down) | = ' '. | |||
Search for further information about these or an SAP related objects