SAP EXIT_SAPLF048_002 Function Module for Exit Financial Statement Adjustment, Event Calculate: Customer Rules
EXIT_SAPLF048_002 is a standard exit saplf048 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 Exit Financial Statement Adjustment, Event Calculate: Customer Rules 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 saplf048 002 FM, simply by entering the name EXIT_SAPLF048_002 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XF48
Program Name: SAPLXF48
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPLF048_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_SAPLF048_002'"Exit Financial Statement Adjustment, Event Calculate: Customer Rules.
EXPORTING
DOC_HEAD = "Document header
* DOC_ITEM_TAB = "Document Line Items (Tables)
IMPORTING
ITEMS_FOR_SPLIT_TAB = "Line Items to be Split (Table)
DIFFERENT_REL_FOR_ITEMS = "Different Apportionment Factor per Item
REL_FROM_RELITEMTAB = "Create Apportionment Factor from REL_ITEM_TAB
ITEMS_FOR_REL_TAB = "Line Items for Creation of Apportionment Factor (Table)
ADD_TAX_NETDISC_TO_REL = "Add Tax/Discount Procedure to Apportionment Factor
CHANGING
* REL_ITEM_TAB = "Apportionment Factor(s) (Tables)
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.BREAKDOWN_ACTIVITY_GET
BREAKDOWN_DOCUMENT Split Receipt
BREAKDOWN_DOCUMENT_SHOW_ERROR
BREAKDOWN_RELATION_DETERMINE
BREAKDOWN_RELATION_FI_DOC
BREAKDOWN_RELATION_FI_DOC_SUB
BREAKDOWN_RELATION_REMEMBER
BREAKDOWN_RELATION_SAVE
BREAKDOWN_RESET_CLEARED_ITEMS Reset Cleared Items
BREAKDOWN_SUMMARIZATION_GET
IMPORTING Parameters details for EXIT_SAPLF048_002
DOC_HEAD - Document header
Data type: F180A_DOC_HEADOptional: No
Call by Reference: No ( called with pass by value option)
DOC_ITEM_TAB - Document Line Items (Tables)
Data type: F180A_DOC_ITEM_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EXIT_SAPLF048_002
ITEMS_FOR_SPLIT_TAB - Line Items to be Split (Table)
Data type: F180A_POSITION_TABOptional: No
Call by Reference: No ( called with pass by value option)
DIFFERENT_REL_FOR_ITEMS - Different Apportionment Factor per Item
Data type: F180A_FLAGOptional: No
Call by Reference: No ( called with pass by value option)
REL_FROM_RELITEMTAB - Create Apportionment Factor from REL_ITEM_TAB
Data type: F180A_FLAGOptional: No
Call by Reference: No ( called with pass by value option)
ITEMS_FOR_REL_TAB - Line Items for Creation of Apportionment Factor (Table)
Data type: F180A_POSITION_TABOptional: No
Call by Reference: No ( called with pass by value option)
ADD_TAX_NETDISC_TO_REL - Add Tax/Discount Procedure to Apportionment Factor
Data type: F180A_FLAGOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EXIT_SAPLF048_002
REL_ITEM_TAB - Apportionment Factor(s) (Tables)
Data type: F180A_REL_ITEM_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLF048_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_doc_head | TYPE F180A_DOC_HEAD, " | |||
| lv_rel_item_tab | TYPE F180A_REL_ITEM_TAB, " | |||
| lv_items_for_split_tab | TYPE F180A_POSITION_TAB, " | |||
| lv_doc_item_tab | TYPE F180A_DOC_ITEM_TAB, " | |||
| lv_different_rel_for_items | TYPE F180A_FLAG, " | |||
| lv_rel_from_relitemtab | TYPE F180A_FLAG, " | |||
| lv_items_for_rel_tab | TYPE F180A_POSITION_TAB, " | |||
| lv_add_tax_netdisc_to_rel | TYPE F180A_FLAG. " |
|   CALL FUNCTION 'EXIT_SAPLF048_002' "Exit Financial Statement Adjustment, Event Calculate: Customer Rules |
| EXPORTING | ||
| DOC_HEAD | = lv_doc_head | |
| DOC_ITEM_TAB | = lv_doc_item_tab | |
| IMPORTING | ||
| ITEMS_FOR_SPLIT_TAB | = lv_items_for_split_tab | |
| DIFFERENT_REL_FOR_ITEMS | = lv_different_rel_for_items | |
| REL_FROM_RELITEMTAB | = lv_rel_from_relitemtab | |
| ITEMS_FOR_REL_TAB | = lv_items_for_rel_tab | |
| ADD_TAX_NETDISC_TO_REL | = lv_add_tax_netdisc_to_rel | |
| CHANGING | ||
| REL_ITEM_TAB | = lv_rel_item_tab | |
| . " EXIT_SAPLF048_002 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLF048_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.Search for further information about these or an SAP related objects