SAP EXIT_SAPLPREF_002 Function Module for Customer enhancement security surcharge for components cost/standard price









EXIT_SAPLPREF_002 is a standard exit saplpref 002 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Customer enhancement security surcharge for components cost/standard price 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 saplpref 002 FM, simply by entering the name EXIT_SAPLPREF_002 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XMF1
Program Name: SAPLXMF1
Main Program: SAPLXMF1
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPLPREF_002 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_SAPLPREF_002'"Customer enhancement security surcharge for components cost/standard price
EXPORTING
KP_MATNR = "
KP_WERKS = "
KP_STB = "DE-EN-LANG-SWITCH-NO-TRANSLATION

CHANGING
VS_PROZEN = "Security percent
KP_MATWERT = "Price
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
LFEI_MANCO_MANFO_UPDATE NOTRANSL: Präferenzkalkulation Update MARC-Präferenzkennzeichen
PREFERENCE_COSTING NOTRANSL: Präferenzkalkualtion
PREFERENCE_COSTING_BG NOTRANSL: Präferenzkalkualtion
PREFERENCE_COSTING_BGWG NOTRANSL: Präferenzkalkualtion
PREFERENCE_COSTING_KMAT NOTRANSL: Präferenzkalkualtion
PREFERENCE_DETERMINE_SD NOTRANSL: Präferenzabwicklung: Setzen des Präferenzkennzeichens im SD-Bele
PREFERENCE_PRE_CHECK_PRICING NOTRANSL: Präferenzabwicklung: Prüfung in der Preisfindung: Art der Präfer
PREFERENCE_PRICE_UPDATE NOTRANSL: Präferenzkalkulation Update MARC-Präferenzkennzeichen
PREFERENCE_PRICE_UPDATE_WG NOTRANSL: Präferenzkalkulation-werksübergreifend Update MAPE-Daten
PREFERENCE_PROTOCOL_UPDATE NOTRANSL: Präferenzprotokolltabellen schreiben
PREFERENCE_PROTOCOL_WG_UPDATE NOTRANSL: Präferenzprotokolltabellen schreiben

IMPORTING Parameters details for EXIT_SAPLPREF_002

KP_MATNR -

Data type: CSTMAT-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

KP_WERKS -

Data type: T001W-WERKS
Optional: No
Call by Reference: No ( called with pass by value option)

KP_STB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: RL0PRE_2
Optional: No
Call by Reference: Yes

CHANGING Parameters details for EXIT_SAPLPREF_002

VS_PROZEN - Security percent

Data type: RVSEL-P_PROZEN
Optional: No
Call by Reference: No ( called with pass by value option)

KP_MATWERT - Price

Data type: RL0PRE_2-MATWERT
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for EXIT_SAPLPREF_002 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_kp_matnr  TYPE CSTMAT-MATNR, "   
lv_vs_prozen  TYPE RVSEL-P_PROZEN, "   
lv_kp_werks  TYPE T001W-WERKS, "   
lv_kp_matwert  TYPE RL0PRE_2-MATWERT, "   
lv_kp_stb  TYPE RL0PRE_2. "   

  CALL FUNCTION 'EXIT_SAPLPREF_002'  "Customer enhancement security surcharge for components cost/standard price
    EXPORTING
         KP_MATNR = lv_kp_matnr
         KP_WERKS = lv_kp_werks
         KP_STB = lv_kp_stb
    CHANGING
         VS_PROZEN = lv_vs_prozen
         KP_MATWERT = lv_kp_matwert
. " EXIT_SAPLPREF_002




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLPREF_002

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 MATNR FROM CSTMAT INTO @DATA(ld_kp_matnr).
 
"SELECT single P_PROZEN FROM RVSEL INTO @DATA(ld_vs_prozen).
 
"SELECT single WERKS FROM T001W INTO @DATA(ld_kp_werks).
 
"SELECT single MATWERT FROM RL0PRE_2 INTO @DATA(ld_kp_matwert).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!