SAP EXIT_SAPLAFAR_004 Function Module for Customer-Specific Determination of Proportional Values at Retirement









EXIT_SAPLAFAR_004 is a standard exit saplafar 004 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-Specific Determination of Proportional Values at Retirement 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 004 FM, simply by entering the name EXIT_SAPLAFAR_004 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_004 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_004'"Customer-Specific Determination of Proportional Values at Retirement
EXPORTING
I_ANLC = "Annual Values up to Retirement Date
I_ANLB = "Depreciation Area Data
I_ANEP = "Retirement Line Items
I_ANEA = "Proportiional Values before the Retirement
I_CUMDEPR = "Total Depreciation
* I_ANTS = "

IMPORTING
E_PERCENTAGE = "Percentage Rate in Relation to Total Depreciation
E_AKTIV = "Customer Exit is Active = 'X'
E_PERCENT_ACT = "Activity Flag for Individual Value Adjustment
E_PERCENT_V = "Percentage of Value Adjustment from Previous Year (=1 for 100%)
.



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_004

I_ANLC - Annual Values up to Retirement Date

Data type: ANLC
Optional: No
Call by Reference: No ( called with pass by value option)

I_ANLB - Depreciation Area Data

Data type: ANLB
Optional: No
Call by Reference: No ( called with pass by value option)

I_ANEP - Retirement Line Items

Data type: ANEP
Optional: No
Call by Reference: No ( called with pass by value option)

I_ANEA - Proportiional Values before the Retirement

Data type: ANEA
Optional: No
Call by Reference: No ( called with pass by value option)

I_CUMDEPR - Total Depreciation

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

I_ANTS -

Data type: ANTS
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for EXIT_SAPLAFAR_004

E_PERCENTAGE - Percentage Rate in Relation to Total Depreciation

Data type: FIAA_PERC_RETIRE
Optional: No
Call by Reference: No ( called with pass by value option)

E_AKTIV - Customer Exit is Active = 'X'

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_PERCENT_ACT - Activity Flag for Individual Value Adjustment

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

E_PERCENT_V - Percentage of Value Adjustment from Previous Year (=1 for 100%)

Data type: F
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for EXIT_SAPLAFAR_004 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_anlc  TYPE ANLC, "   
lv_e_percentage  TYPE FIAA_PERC_RETIRE, "   
lv_i_anlb  TYPE ANLB, "   
lv_e_aktiv  TYPE XFELD, "   
lv_i_anep  TYPE ANEP, "   
lv_e_percent_act  TYPE C, "   
lv_i_anea  TYPE ANEA, "   
lv_e_percent_v  TYPE F, "   
lv_i_cumdepr  TYPE ANLCV-AFA_GJE, "   
lv_i_ants  TYPE ANTS. "   

  CALL FUNCTION 'EXIT_SAPLAFAR_004'  "Customer-Specific Determination of Proportional Values at Retirement
    EXPORTING
         I_ANLC = lv_i_anlc
         I_ANLB = lv_i_anlb
         I_ANEP = lv_i_anep
         I_ANEA = lv_i_anea
         I_CUMDEPR = lv_i_cumdepr
         I_ANTS = lv_i_ants
    IMPORTING
         E_PERCENTAGE = lv_e_percentage
         E_AKTIV = lv_e_aktiv
         E_PERCENT_ACT = lv_e_percent_act
         E_PERCENT_V = lv_e_percent_v
. " EXIT_SAPLAFAR_004




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLAFAR_004

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 AFA_GJE FROM ANLCV INTO @DATA(ld_i_cumdepr).
 
 


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!