SAP ANLC_VORTRAGEN Function Module for
ANLC_VORTRAGEN is a standard anlc vortragen SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 anlc vortragen FM, simply by entering the name ANLC_VORTRAGEN into the relevant SAP transaction such as SE37 or SE38.
Function Group: AFAR
Program Name: SAPLAFAR
Main Program: SAPLAFAR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ANLC_VORTRAGEN 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 'ANLC_VORTRAGEN'".
EXPORTING
I_ANTS = "Field string of the DDIC structure
* I_FEHLER = ' ' "Suppress error output (x)
* I_TRACE = ' ' "Depreciation trace switch
* I_VORTRAG = 'X' "Indicator carry asset forward
* I_CAL_CLOSED_FYEARS = ' ' "
* I_INVEST = ' ' "
* I_LIMIT_DATA = "
IMPORTING
E_KAFABE = "
E_VORTRAG = "Indicator carry asset forward
TABLES
T_ANEP = "Table of the line items
T_ANFM = "Error table
T_ANLB = "Table of the company code dependen
T_ANLC = "Table of the year-related values o
T_ANLZ = "Table of the year-dependent Featur
* T_ANLBZA = "Time-Dependent Depreciation Terms
EXCEPTIONS
ANSWPRUEF_VERLETZT = 1 DEPR_NOT_POSIBLE = 2 MINWERT_VERLETZT = 3 NORMAL_AFA_VERLETZT = 4 PERIOD_FALSE = 5 RBW_VIRT_AFABER_VERLETZT = 6 SONDER_AFA_VERLETZT = 7
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLAFAR_001 Allows Modification of Base Value for Depreciation Calculation
EXIT_SAPLAFAR_002 Customer-Specific Calculation of Depreciation on Transaction
EXIT_SAPLAFAR_003 Customer-Specific Changeover Method
EXIT_SAPLAFAR_004 Customer-Specific Determination of Proportional Values at Retirement
IMPORTING Parameters details for ANLC_VORTRAGEN
I_ANTS - Field string of the DDIC structure
Data type: ANTSOptional: No
Call by Reference: No ( called with pass by value option)
I_FEHLER - Suppress error output (x)
Data type: ANLB-XNEGADefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TRACE - Depreciation trace switch
Data type: ANLB-XNEGADefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VORTRAG - Indicator carry asset forward
Data type: ANLB-XNEGADefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CAL_CLOSED_FYEARS -
Data type: ANLB-XNEGADefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_INVEST -
Data type: ANLB-XNEGADefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LIMIT_DATA -
Data type: BOOLEANOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ANLC_VORTRAGEN
E_KAFABE -
Data type: ANLB-AFABEOptional: No
Call by Reference: No ( called with pass by value option)
E_VORTRAG - Indicator carry asset forward
Data type: ANLB-XNEGAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ANLC_VORTRAGEN
T_ANEP - Table of the line items
Data type: ANEPOptional: No
Call by Reference: No ( called with pass by value option)
T_ANFM - Error table
Data type: ANFMOptional: No
Call by Reference: No ( called with pass by value option)
T_ANLB - Table of the company code dependen
Data type: ANLBOptional: No
Call by Reference: No ( called with pass by value option)
T_ANLC - Table of the year-related values o
Data type: ANLCOptional: No
Call by Reference: No ( called with pass by value option)
T_ANLZ - Table of the year-dependent Featur
Data type: ANLZOptional: No
Call by Reference: No ( called with pass by value option)
T_ANLBZA - Time-Dependent Depreciation Terms
Data type: ANLBZAOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ANSWPRUEF_VERLETZT - Error in acquisition value check
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DEPR_NOT_POSIBLE - no depreciation invoice since tab.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MINWERT_VERLETZT - Line item violates minimum value r
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NORMAL_AFA_VERLETZT - +/- sign regulation f. normal depr
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PERIOD_FALSE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RBW_VIRT_AFABER_VERLETZT - Declining balance regulation for v
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SONDER_AFA_VERLETZT - +/- sign regulation f. special dep
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ANLC_VORTRAGEN 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_ants | TYPE ANTS, " | |||
lt_t_anep | TYPE STANDARD TABLE OF ANEP, " | |||
lv_e_kafabe | TYPE ANLB-AFABE, " | |||
lv_answpruef_verletzt | TYPE ANLB, " | |||
lt_t_anfm | TYPE STANDARD TABLE OF ANFM, " | |||
lv_i_fehler | TYPE ANLB-XNEGA, " SPACE | |||
lv_e_vortrag | TYPE ANLB-XNEGA, " | |||
lv_depr_not_posible | TYPE ANLB, " | |||
lt_t_anlb | TYPE STANDARD TABLE OF ANLB, " | |||
lv_i_trace | TYPE ANLB-XNEGA, " SPACE | |||
lv_minwert_verletzt | TYPE ANLB, " | |||
lt_t_anlc | TYPE STANDARD TABLE OF ANLC, " | |||
lv_i_vortrag | TYPE ANLB-XNEGA, " 'X' | |||
lv_normal_afa_verletzt | TYPE ANLB, " | |||
lt_t_anlz | TYPE STANDARD TABLE OF ANLZ, " | |||
lv_period_false | TYPE ANLZ, " | |||
lv_i_cal_closed_fyears | TYPE ANLB-XNEGA, " SPACE | |||
lv_i_invest | TYPE ANLB-XNEGA, " SPACE | |||
lt_t_anlbza | TYPE STANDARD TABLE OF ANLBZA, " | |||
lv_rbw_virt_afaber_verletzt | TYPE ANLBZA, " | |||
lv_i_limit_data | TYPE BOOLEAN, " | |||
lv_sonder_afa_verletzt | TYPE BOOLEAN. " |
  CALL FUNCTION 'ANLC_VORTRAGEN' " |
EXPORTING | ||
I_ANTS | = lv_i_ants | |
I_FEHLER | = lv_i_fehler | |
I_TRACE | = lv_i_trace | |
I_VORTRAG | = lv_i_vortrag | |
I_CAL_CLOSED_FYEARS | = lv_i_cal_closed_fyears | |
I_INVEST | = lv_i_invest | |
I_LIMIT_DATA | = lv_i_limit_data | |
IMPORTING | ||
E_KAFABE | = lv_e_kafabe | |
E_VORTRAG | = lv_e_vortrag | |
TABLES | ||
T_ANEP | = lt_t_anep | |
T_ANFM | = lt_t_anfm | |
T_ANLB | = lt_t_anlb | |
T_ANLC | = lt_t_anlc | |
T_ANLZ | = lt_t_anlz | |
T_ANLBZA | = lt_t_anlbza | |
EXCEPTIONS | ||
ANSWPRUEF_VERLETZT = 1 | ||
DEPR_NOT_POSIBLE = 2 | ||
MINWERT_VERLETZT = 3 | ||
NORMAL_AFA_VERLETZT = 4 | ||
PERIOD_FALSE = 5 | ||
RBW_VIRT_AFABER_VERLETZT = 6 | ||
SONDER_AFA_VERLETZT = 7 | ||
. " ANLC_VORTRAGEN |
ABAP code using 7.40 inline data declarations to call FM ANLC_VORTRAGEN
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 ANLB INTO @DATA(ld_e_kafabe). | ||||
"SELECT single XNEGA FROM ANLB INTO @DATA(ld_i_fehler). | ||||
DATA(ld_i_fehler) | = ' '. | |||
"SELECT single XNEGA FROM ANLB INTO @DATA(ld_e_vortrag). | ||||
"SELECT single XNEGA FROM ANLB INTO @DATA(ld_i_trace). | ||||
DATA(ld_i_trace) | = ' '. | |||
"SELECT single XNEGA FROM ANLB INTO @DATA(ld_i_vortrag). | ||||
DATA(ld_i_vortrag) | = 'X'. | |||
"SELECT single XNEGA FROM ANLB INTO @DATA(ld_i_cal_closed_fyears). | ||||
DATA(ld_i_cal_closed_fyears) | = ' '. | |||
"SELECT single XNEGA FROM ANLB INTO @DATA(ld_i_invest). | ||||
DATA(ld_i_invest) | = ' '. | |||
Search for further information about these or an SAP related objects