SAP CONDITION_RECORD_FORMULA_597 Function Module for NOTRANSL: Aplly condition formula 597 to found condition record
CONDITION_RECORD_FORMULA_597 is a standard condition record formula 597 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: Aplly condition formula 597 to found condition record 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 condition record formula 597 FM, simply by entering the name CONDITION_RECORD_FORMULA_597 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 CONDITION_RECORD_FORMULA_597 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 'CONDITION_RECORD_FORMULA_597'"NOTRANSL: Aplly condition formula 597 to found condition record.
EXPORTING
I_AKTNR = "Promotion
I_MATNR = "Material Number
I_SATNR = "Cross-Plant Configurable Material
I_ATTYP = "Material Category
I_PMATN = "Pricing Reference Material
I_KOBED = "Requirement
IMPORTING
EV_XKOMV_KINAK = "Condition is inactive
IMPORTING Parameters details for CONDITION_RECORD_FORMULA_597
I_AKTNR - Promotion
Data type: KOMP-AKTNROptional: No
Call by Reference: Yes
I_MATNR - Material Number
Data type: KOMP-MATNROptional: No
Call by Reference: Yes
I_SATNR - Cross-Plant Configurable Material
Data type: KOMP-SATNROptional: No
Call by Reference: Yes
I_ATTYP - Material Category
Data type: KOMP-ATTYPOptional: No
Call by Reference: Yes
I_PMATN - Pricing Reference Material
Data type: KOMP-PMATNOptional: No
Call by Reference: Yes
I_KOBED - Requirement
Data type: KOMT2-KOBEDOptional: No
Call by Reference: Yes
EXPORTING Parameters details for CONDITION_RECORD_FORMULA_597
EV_XKOMV_KINAK - Condition is inactive
Data type: KOMV_INDEX-KINAKOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CONDITION_RECORD_FORMULA_597 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_aktnr | TYPE KOMP-AKTNR, " | |||
| lv_ev_xkomv_kinak | TYPE KOMV_INDEX-KINAK, " | |||
| lv_i_matnr | TYPE KOMP-MATNR, " | |||
| lv_i_satnr | TYPE KOMP-SATNR, " | |||
| lv_i_attyp | TYPE KOMP-ATTYP, " | |||
| lv_i_pmatn | TYPE KOMP-PMATN, " | |||
| lv_i_kobed | TYPE KOMT2-KOBED. " |
|   CALL FUNCTION 'CONDITION_RECORD_FORMULA_597' "NOTRANSL: Aplly condition formula 597 to found condition record |
| EXPORTING | ||
| I_AKTNR | = lv_i_aktnr | |
| I_MATNR | = lv_i_matnr | |
| I_SATNR | = lv_i_satnr | |
| I_ATTYP | = lv_i_attyp | |
| I_PMATN | = lv_i_pmatn | |
| I_KOBED | = lv_i_kobed | |
| IMPORTING | ||
| EV_XKOMV_KINAK | = lv_ev_xkomv_kinak | |
| . " CONDITION_RECORD_FORMULA_597 | ||
ABAP code using 7.40 inline data declarations to call FM CONDITION_RECORD_FORMULA_597
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 AKTNR FROM KOMP INTO @DATA(ld_i_aktnr). | ||||
| "SELECT single KINAK FROM KOMV_INDEX INTO @DATA(ld_ev_xkomv_kinak). | ||||
| "SELECT single MATNR FROM KOMP INTO @DATA(ld_i_matnr). | ||||
| "SELECT single SATNR FROM KOMP INTO @DATA(ld_i_satnr). | ||||
| "SELECT single ATTYP FROM KOMP INTO @DATA(ld_i_attyp). | ||||
| "SELECT single PMATN FROM KOMP INTO @DATA(ld_i_pmatn). | ||||
| "SELECT single KOBED FROM KOMT2 INTO @DATA(ld_i_kobed). | ||||
Search for further information about these or an SAP related objects