SAP KKP_PARA_HIER_SURCHARGE_CALC Function Module for
KKP_PARA_HIER_SURCHARGE_CALC is a standard kkp para hier surcharge calc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 kkp para hier surcharge calc FM, simply by entering the name KKP_PARA_HIER_SURCHARGE_CALC into the relevant SAP transaction such as SE37 or SE38.
Function Group: KKPL
Program Name: SAPLKKPL
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function KKP_PARA_HIER_SURCHARGE_CALC 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 'KKP_PARA_HIER_SURCHARGE_CALC'".
EXPORTING
* I_TCODE = SY-TCODE "
I_STORNO_FLG = "
I_KKP_CH = "
TABLES
KKHIE_TAB = "
PROTOKOLL_TAB = "
EXCEPTIONS
SYSTEM_FAILURE = 1 COMMUNICATION_FAILURE = 2
IMPORTING Parameters details for KKP_PARA_HIER_SURCHARGE_CALC
I_TCODE -
Data type: SY-TCODEDefault: SY-TCODE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STORNO_FLG -
Data type: KAZB-TESTLAUFOptional: No
Call by Reference: No ( called with pass by value option)
I_KKP_CH -
Data type: KKP_CHOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for KKP_PARA_HIER_SURCHARGE_CALC
KKHIE_TAB -
Data type: KKHIEOptional: No
Call by Reference: No ( called with pass by value option)
PROTOKOLL_TAB -
Data type: T100Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SYSTEM_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COMMUNICATION_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for KKP_PARA_HIER_SURCHARGE_CALC 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_tcode | TYPE SY-TCODE, " SY-TCODE | |||
| lt_kkhie_tab | TYPE STANDARD TABLE OF KKHIE, " | |||
| lv_system_failure | TYPE KKHIE, " | |||
| lv_i_storno_flg | TYPE KAZB-TESTLAUF, " | |||
| lt_protokoll_tab | TYPE STANDARD TABLE OF T100, " | |||
| lv_communication_failure | TYPE T100, " | |||
| lv_i_kkp_ch | TYPE KKP_CH. " |
|   CALL FUNCTION 'KKP_PARA_HIER_SURCHARGE_CALC' " |
| EXPORTING | ||
| I_TCODE | = lv_i_tcode | |
| I_STORNO_FLG | = lv_i_storno_flg | |
| I_KKP_CH | = lv_i_kkp_ch | |
| TABLES | ||
| KKHIE_TAB | = lt_kkhie_tab | |
| PROTOKOLL_TAB | = lt_protokoll_tab | |
| EXCEPTIONS | ||
| SYSTEM_FAILURE = 1 | ||
| COMMUNICATION_FAILURE = 2 | ||
| . " KKP_PARA_HIER_SURCHARGE_CALC | ||
ABAP code using 7.40 inline data declarations to call FM KKP_PARA_HIER_SURCHARGE_CALC
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 TCODE FROM SY INTO @DATA(ld_i_tcode). | ||||
| DATA(ld_i_tcode) | = SY-TCODE. | |||
| "SELECT single TESTLAUF FROM KAZB INTO @DATA(ld_i_storno_flg). | ||||
Search for further information about these or an SAP related objects