SAP EXIT_SAPLAFAR_001 Function Module for Allows Modification of Base Value for Depreciation Calculation
EXIT_SAPLAFAR_001 is a standard exit saplafar 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 Allows Modification of Base Value for Depreciation Calculation 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 saplafar 001 FM, simply by entering the name EXIT_SAPLAFAR_001 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XAFA
Program Name: SAPLXAFA
Main Program:
Appliation area: A
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function EXIT_SAPLAFAR_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_SAPLAFAR_001'"Allows Modification of Base Value for Depreciation Calculation.
EXPORTING
I_AFABE = "Depreciation Area of Base Value
I_ANLB = "Depreciation Terms of Depreciation Area
I_ANTS = "Substructure of Asset Master Record (ANLA)
I_BEZWKZ = "Base Value Indicator
I_GANLC = "
I_SUMLFDAFA = "Total of Current Depreciation
IMPORTING
E_BEZWRT = "Base Value
E_SUMLFDAFA = "Total of Current Depreciation
TABLES
T_ANEA = "Asset Line Items for Proportional Values
T_ANEP = "Asset Line Items
T_ANLC = "Asset Value Fields
T_ANLZ = "Asset Allocations with Validity Date
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.AFAR_CLEAR_TRACETAB
AM_PSTEND_SET
ANEPS_ON_ASSET_DISPOSAL
ANEPS_ON_SPEZ_RETIREMENTS
ANEP_AFARECHNEN
ANLC_AFARECHNEN
ANLC_VORTRAGEN
ANSWERT_PRUEFEN
ANSWERT_PRUEFEN_TOTAL
ASSET_ITEMS_ON_RETIREMENT
DEPR_CALCULATE_FOR_RETIREMENT
DEPR_RECALCULATE
ERMITTELN_VERGANGENHEITSAFA
FAA_NEWDCP_BUFFER_REFRESH
GANLC_AUFBAUEN
NEURECHNEN_KUMAFA
RA_AFABUCHEN
RA_AFANEURECHNEN
RA_AFANEURECHNEN_PLANSATZ
RA_FISCAL_YEAR_CHANGE
T097_0612_CREATE
IMPORTING Parameters details for EXIT_SAPLAFAR_001
I_AFABE - Depreciation Area of Base Value
Data type: ANLC-AFABEOptional: No
Call by Reference: No ( called with pass by value option)
I_ANLB - Depreciation Terms of Depreciation Area
Data type: ANLBOptional: No
Call by Reference: No ( called with pass by value option)
I_ANTS - Substructure of Asset Master Record (ANLA)
Data type: ANTSOptional: No
Call by Reference: No ( called with pass by value option)
I_BEZWKZ - Base Value Indicator
Data type: T090P-BEZWKZOptional: No
Call by Reference: No ( called with pass by value option)
I_GANLC -
Data type: GANLCOptional: No
Call by Reference: No ( called with pass by value option)
I_SUMLFDAFA - Total of Current Depreciation
Data type: ANLC-NAFAPOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EXIT_SAPLAFAR_001
E_BEZWRT - Base Value
Data type: ANLC-KANSWOptional: No
Call by Reference: No ( called with pass by value option)
E_SUMLFDAFA - Total of Current Depreciation
Data type: ANLC-NAFAPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EXIT_SAPLAFAR_001
T_ANEA - Asset Line Items for Proportional Values
Data type: ANEAOptional: No
Call by Reference: No ( called with pass by value option)
T_ANEP - Asset Line Items
Data type: ANEPOptional: No
Call by Reference: No ( called with pass by value option)
T_ANLC - Asset Value Fields
Data type: ANLCOptional: No
Call by Reference: No ( called with pass by value option)
T_ANLZ - Asset Allocations with Validity Date
Data type: ANLZOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLAFAR_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_anea | TYPE STANDARD TABLE OF ANEA, " | |||
lv_i_afabe | TYPE ANLC-AFABE, " | |||
lv_e_bezwrt | TYPE ANLC-KANSW, " | |||
lv_i_anlb | TYPE ANLB, " | |||
lt_t_anep | TYPE STANDARD TABLE OF ANEP, " | |||
lv_e_sumlfdafa | TYPE ANLC-NAFAP, " | |||
lv_i_ants | TYPE ANTS, " | |||
lt_t_anlc | TYPE STANDARD TABLE OF ANLC, " | |||
lt_t_anlz | TYPE STANDARD TABLE OF ANLZ, " | |||
lv_i_bezwkz | TYPE T090P-BEZWKZ, " | |||
lv_i_ganlc | TYPE GANLC, " | |||
lv_i_sumlfdafa | TYPE ANLC-NAFAP. " |
  CALL FUNCTION 'EXIT_SAPLAFAR_001' "Allows Modification of Base Value for Depreciation Calculation |
EXPORTING | ||
I_AFABE | = lv_i_afabe | |
I_ANLB | = lv_i_anlb | |
I_ANTS | = lv_i_ants | |
I_BEZWKZ | = lv_i_bezwkz | |
I_GANLC | = lv_i_ganlc | |
I_SUMLFDAFA | = lv_i_sumlfdafa | |
IMPORTING | ||
E_BEZWRT | = lv_e_bezwrt | |
E_SUMLFDAFA | = lv_e_sumlfdafa | |
TABLES | ||
T_ANEA | = lt_t_anea | |
T_ANEP | = lt_t_anep | |
T_ANLC | = lt_t_anlc | |
T_ANLZ | = lt_t_anlz | |
. " EXIT_SAPLAFAR_001 |
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLAFAR_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 AFABE FROM ANLC INTO @DATA(ld_i_afabe). | ||||
"SELECT single KANSW FROM ANLC INTO @DATA(ld_e_bezwrt). | ||||
"SELECT single NAFAP FROM ANLC INTO @DATA(ld_e_sumlfdafa). | ||||
"SELECT single BEZWKZ FROM T090P INTO @DATA(ld_i_bezwkz). | ||||
"SELECT single NAFAP FROM ANLC INTO @DATA(ld_i_sumlfdafa). | ||||
Search for further information about these or an SAP related objects