SAP PARA_COMP_PRICE_HANDLING Function Module for Processing of parallel prices (kschl2) und comparison prices (kschl3)
PARA_COMP_PRICE_HANDLING is a standard para comp price handling SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Processing of parallel prices (kschl2) und comparison prices (kschl3) 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 para comp price handling FM, simply by entering the name PARA_COMP_PRICE_HANDLING into the relevant SAP transaction such as SE37 or SE38.
Function Group: WVKC
Program Name: SAPLWVKC
Main Program: SAPLWVKC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PARA_COMP_PRICE_HANDLING 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 'PARA_COMP_PRICE_HANDLING'"Processing of parallel prices (kschl2) und comparison prices (kschl3).
EXPORTING
* IV_KAPPL = 'V' "Application
* IV_DATAB = SY-DATUM "ABAP System Field: Current Date of Application Server
IS_KSCHL = "POS Interface: Table for Cond. Types with Parallel/Basic Pr.
IS_KOMP = "Communication Item for Pricing
IS_VAKE = "Structure from VAKE, condition record and special fields
IS_KOMK = "Communication Header for Pricing
CHANGING
CS_SACO_MAP = "structure to hold item to saco mapping
IMPORTING Parameters details for PARA_COMP_PRICE_HANDLING
IV_KAPPL - Application
Data type: KAPPLDefault: 'V'
Optional: No
Call by Reference: Yes
IV_DATAB - ABAP System Field: Current Date of Application Server
Data type: SY-DATUMDefault: SY-DATUM
Optional: No
Call by Reference: Yes
IS_KSCHL - POS Interface: Table for Cond. Types with Parallel/Basic Pr.
Data type: WPKSCHL_PPOptional: No
Call by Reference: Yes
IS_KOMP - Communication Item for Pricing
Data type: KOMPOptional: No
Call by Reference: Yes
IS_VAKE - Structure from VAKE, condition record and special fields
Data type: VAKEKOND_SPECIALOptional: No
Call by Reference: Yes
IS_KOMK - Communication Header for Pricing
Data type: KOMKOptional: No
Call by Reference: Yes
CHANGING Parameters details for PARA_COMP_PRICE_HANDLING
CS_SACO_MAP - structure to hold item to saco mapping
Data type: ITEM_SACO_MAPPINGOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for PARA_COMP_PRICE_HANDLING 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_iv_kappl | TYPE KAPPL, " 'V' | |||
| lv_cs_saco_map | TYPE ITEM_SACO_MAPPING, " | |||
| lv_iv_datab | TYPE SY-DATUM, " SY-DATUM | |||
| lv_is_kschl | TYPE WPKSCHL_PP, " | |||
| lv_is_komp | TYPE KOMP, " | |||
| lv_is_vake | TYPE VAKEKOND_SPECIAL, " | |||
| lv_is_komk | TYPE KOMK. " |
|   CALL FUNCTION 'PARA_COMP_PRICE_HANDLING' "Processing of parallel prices (kschl2) und comparison prices (kschl3) |
| EXPORTING | ||
| IV_KAPPL | = lv_iv_kappl | |
| IV_DATAB | = lv_iv_datab | |
| IS_KSCHL | = lv_is_kschl | |
| IS_KOMP | = lv_is_komp | |
| IS_VAKE | = lv_is_vake | |
| IS_KOMK | = lv_is_komk | |
| CHANGING | ||
| CS_SACO_MAP | = lv_cs_saco_map | |
| . " PARA_COMP_PRICE_HANDLING | ||
ABAP code using 7.40 inline data declarations to call FM PARA_COMP_PRICE_HANDLING
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_iv_kappl) | = 'V'. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_iv_datab). | ||||
| DATA(ld_iv_datab) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects