SAP EXIT_SAPLJKC4_001 Function Module for IS-M/SD: Determine Renewal Offer Item to Be Accepted
EXIT_SAPLJKC4_001 is a standard exit sapljkc4 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/SD: Determine Renewal Offer Item to Be Accepted 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 exit sapljkc4 001 FM, simply by entering the name EXIT_SAPLJKC4_001 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XJK3
Program Name: SAPLXJK3
Main Program: SAPLXJK3
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPLJKC4_001 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 'EXIT_SAPLJKC4_001'"IS-M/SD: Determine Renewal Offer Item to Be Accepted.
EXPORTING
VBELN_OFFER = "Renewal Offer
I_ZUONR = "Assignment Number
I_PAYMENT_AMOUNT = "Total Payment Amount
I_JKAK = "Offer Header
I_WAERS = "Currency key
I_WO_AMOUNT_OFFER = "IS-M/SD: Write-Off Amount per Offer Item
CHANGING
POSNR_OFFER = "Accepted Offer Item
TABLES
T_JKAP = "Quotation Items
T_JKEP = "Offer Schedule Lines
T_JKKD = "Business Data on Offer
T_JKPROM = "Sales Order: Introduction Data
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.ISM_INC_PAYMENT_CHECK IS-M/SD: General Checks in IS-M/SD for FI Incoming Payment
ISM_INC_PAYMENT_PREP IS-M/SD: General Checks in IS-M/SD for FI Incoming Payment
ISM_INC_PAYMENT_PREP_REDO
ISM_INC_PAYMENT_REVERSE_CHECK IS-M/SD: General Checks in IS-M/SD for FI Incoming Payment
ISM_INC_PAYMENT_REVERSE_PREP IS-M/SD: General Checks in IS-M/SD for FI Incoming Payment
IMPORTING Parameters details for EXIT_SAPLJKC4_001
VBELN_OFFER - Renewal Offer
Data type: JKAK-VBELNOptional: No
Call by Reference: No ( called with pass by value option)
I_ZUONR - Assignment Number
Data type: RJKRIP-ZUONROptional: No
Call by Reference: No ( called with pass by value option)
I_PAYMENT_AMOUNT - Total Payment Amount
Data type: JKACCOUNT-ZBETROptional: No
Call by Reference: No ( called with pass by value option)
I_JKAK - Offer Header
Data type: JKAKOptional: No
Call by Reference: No ( called with pass by value option)
I_WAERS - Currency key
Data type: RJKRIP-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_WO_AMOUNT_OFFER - IS-M/SD: Write-Off Amount per Offer Item
Data type: RJK_WRITEOFF_AMOUNT_OFFER_TABOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EXIT_SAPLJKC4_001
POSNR_OFFER - Accepted Offer Item
Data type: JKAP-POSNROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EXIT_SAPLJKC4_001
T_JKAP - Quotation Items
Data type: JKAPOptional: No
Call by Reference: No ( called with pass by value option)
T_JKEP - Offer Schedule Lines
Data type: JKEPOptional: No
Call by Reference: No ( called with pass by value option)
T_JKKD - Business Data on Offer
Data type: JKKDOptional: No
Call by Reference: No ( called with pass by value option)
T_JKPROM - Sales Order: Introduction Data
Data type: JKPROMOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for EXIT_SAPLJKC4_001 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: | ||||
| lt_t_jkap | TYPE STANDARD TABLE OF JKAP, " | |||
| lv_posnr_offer | TYPE JKAP-POSNR, " | |||
| lv_vbeln_offer | TYPE JKAK-VBELN, " | |||
| lt_t_jkep | TYPE STANDARD TABLE OF JKEP, " | |||
| lv_i_zuonr | TYPE RJKRIP-ZUONR, " | |||
| lt_t_jkkd | TYPE STANDARD TABLE OF JKKD, " | |||
| lv_i_payment_amount | TYPE JKACCOUNT-ZBETR, " | |||
| lv_i_jkak | TYPE JKAK, " | |||
| lt_t_jkprom | TYPE STANDARD TABLE OF JKPROM, " | |||
| lv_i_waers | TYPE RJKRIP-WAERS, " | |||
| lv_i_wo_amount_offer | TYPE RJK_WRITEOFF_AMOUNT_OFFER_TAB. " |
|   CALL FUNCTION 'EXIT_SAPLJKC4_001' "IS-M/SD: Determine Renewal Offer Item to Be Accepted |
| EXPORTING | ||
| VBELN_OFFER | = lv_vbeln_offer | |
| I_ZUONR | = lv_i_zuonr | |
| I_PAYMENT_AMOUNT | = lv_i_payment_amount | |
| I_JKAK | = lv_i_jkak | |
| I_WAERS | = lv_i_waers | |
| I_WO_AMOUNT_OFFER | = lv_i_wo_amount_offer | |
| CHANGING | ||
| POSNR_OFFER | = lv_posnr_offer | |
| TABLES | ||
| T_JKAP | = lt_t_jkap | |
| T_JKEP | = lt_t_jkep | |
| T_JKKD | = lt_t_jkkd | |
| T_JKPROM | = lt_t_jkprom | |
| . " EXIT_SAPLJKC4_001 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLJKC4_001
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 POSNR FROM JKAP INTO @DATA(ld_posnr_offer). | ||||
| "SELECT single VBELN FROM JKAK INTO @DATA(ld_vbeln_offer). | ||||
| "SELECT single ZUONR FROM RJKRIP INTO @DATA(ld_i_zuonr). | ||||
| "SELECT single ZBETR FROM JKACCOUNT INTO @DATA(ld_i_payment_amount). | ||||
| "SELECT single WAERS FROM RJKRIP INTO @DATA(ld_i_waers). | ||||
Search for further information about these or an SAP related objects