SAP FAA_DC_ENGINE_CALL Function Module for
FAA_DC_ENGINE_CALL is a standard faa dc engine call 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 faa dc engine call FM, simply by entering the name FAA_DC_ENGINE_CALL into the relevant SAP transaction such as SE37 or SE38.
Function Group: FAA_DC_ERP
Program Name: SAPLFAA_DC_ERP
Main Program: SAPLFAA_DC_ERP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FAA_DC_ENGINE_CALL 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 'FAA_DC_ENGINE_CALL'".
EXPORTING
* ID_POSTING_DATE = "Posting Date
* IB_COLLECT_MESSAGES = ' ' "Checkbox
* IS_ANTS = "
* ID_VALUE_DATE = "Asset Value Date
ID_PROCESS = "Process
* ID_DATE_TO = "To Date
* ID_FYEAR_TO = "Fiscal Year
* ID_PERIOD_TO = "Numc3, internal use
* IB_READ_ITEMS = ' ' "Checkbox
* IB_WRITE_TRACE = ' ' "Checkbox
* IB_CALC_CLOSED_YEARS = ' ' "Checkbox
IMPORTING
EB_USE_OLD_CALC = "
EO_SEGMENT_HANDLE = "Data Object Reference
CHANGING
* CB_CARRY_FORWARD = 'X' "Boolean Variable (X=True, -=False, Space=Unknown)
TABLES
* IT_ANEPI = "Interface Structure for Posting to Assets
* IT_ANLZ = "
* IT_ANEA = "Asset Line Items for Proportional Values
* IT_ANLBZA = "
* CT_ANEP = "Asset Line Items
* CT_ANLB = "Depreciation Terms
* CT_ANLC = "Asset Value Fields
* ET_ANFM = "Error messages from dep. calc.
EXCEPTIONS
INVALID_PROCESS = 1
IMPORTING Parameters details for FAA_DC_ENGINE_CALL
ID_POSTING_DATE - Posting Date
Data type: DATSOptional: Yes
Call by Reference: Yes
IB_COLLECT_MESSAGES - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IS_ANTS -
Data type: ANTSOptional: Yes
Call by Reference: Yes
ID_VALUE_DATE - Asset Value Date
Data type: DATSOptional: Yes
Call by Reference: Yes
ID_PROCESS - Process
Data type: FAA_PC_PROCESSOptional: No
Call by Reference: Yes
ID_DATE_TO - To Date
Data type: DATSOptional: Yes
Call by Reference: Yes
ID_FYEAR_TO - Fiscal Year
Data type: GJAHROptional: Yes
Call by Reference: Yes
ID_PERIOD_TO - Numc3, internal use
Data type: NUMC3Optional: Yes
Call by Reference: Yes
IB_READ_ITEMS - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IB_WRITE_TRACE - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IB_CALC_CLOSED_YEARS - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FAA_DC_ENGINE_CALL
EB_USE_OLD_CALC -
Data type: BOOLEANOptional: No
Call by Reference: Yes
EO_SEGMENT_HANDLE - Data Object Reference
Data type: FAA_DC_SEGMENT_HANDLEOptional: No
Call by Reference: Yes
CHANGING Parameters details for FAA_DC_ENGINE_CALL
CB_CARRY_FORWARD - Boolean Variable (X=True, -=False, Space=Unknown)
Data type: BOOLEANDefault: 'X'
Optional: No
Call by Reference: Yes
TABLES Parameters details for FAA_DC_ENGINE_CALL
IT_ANEPI - Interface Structure for Posting to Assets
Data type: ANEPIOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ANLZ -
Data type: ANLZOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ANEA - Asset Line Items for Proportional Values
Data type: ANEAOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ANLBZA -
Data type: ANLBZAOptional: Yes
Call by Reference: Yes
CT_ANEP - Asset Line Items
Data type: ANEPOptional: Yes
Call by Reference: No ( called with pass by value option)
CT_ANLB - Depreciation Terms
Data type: ANLBOptional: Yes
Call by Reference: No ( called with pass by value option)
CT_ANLC - Asset Value Fields
Data type: ANLCOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_ANFM - Error messages from dep. calc.
Data type: ANFMOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_PROCESS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FAA_DC_ENGINE_CALL 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_it_anepi | TYPE STANDARD TABLE OF ANEPI, " | |||
| lv_eb_use_old_calc | TYPE BOOLEAN, " | |||
| lv_id_posting_date | TYPE DATS, " | |||
| lv_invalid_process | TYPE DATS, " | |||
| lv_cb_carry_forward | TYPE BOOLEAN, " 'X' | |||
| lv_ib_collect_messages | TYPE XFELD, " SPACE | |||
| lv_is_ants | TYPE ANTS, " | |||
| lt_it_anlz | TYPE STANDARD TABLE OF ANLZ, " | |||
| lv_id_value_date | TYPE DATS, " | |||
| lv_eo_segment_handle | TYPE FAA_DC_SEGMENT_HANDLE, " | |||
| lt_it_anea | TYPE STANDARD TABLE OF ANEA, " | |||
| lv_id_process | TYPE FAA_PC_PROCESS, " | |||
| lt_it_anlbza | TYPE STANDARD TABLE OF ANLBZA, " | |||
| lv_id_date_to | TYPE DATS, " | |||
| lt_ct_anep | TYPE STANDARD TABLE OF ANEP, " | |||
| lv_id_fyear_to | TYPE GJAHR, " | |||
| lt_ct_anlb | TYPE STANDARD TABLE OF ANLB, " | |||
| lv_id_period_to | TYPE NUMC3, " | |||
| lt_ct_anlc | TYPE STANDARD TABLE OF ANLC, " | |||
| lv_ib_read_items | TYPE XFELD, " SPACE | |||
| lt_et_anfm | TYPE STANDARD TABLE OF ANFM, " | |||
| lv_ib_write_trace | TYPE XFELD, " SPACE | |||
| lv_ib_calc_closed_years | TYPE XFELD. " SPACE |
|   CALL FUNCTION 'FAA_DC_ENGINE_CALL' " |
| EXPORTING | ||
| ID_POSTING_DATE | = lv_id_posting_date | |
| IB_COLLECT_MESSAGES | = lv_ib_collect_messages | |
| IS_ANTS | = lv_is_ants | |
| ID_VALUE_DATE | = lv_id_value_date | |
| ID_PROCESS | = lv_id_process | |
| ID_DATE_TO | = lv_id_date_to | |
| ID_FYEAR_TO | = lv_id_fyear_to | |
| ID_PERIOD_TO | = lv_id_period_to | |
| IB_READ_ITEMS | = lv_ib_read_items | |
| IB_WRITE_TRACE | = lv_ib_write_trace | |
| IB_CALC_CLOSED_YEARS | = lv_ib_calc_closed_years | |
| IMPORTING | ||
| EB_USE_OLD_CALC | = lv_eb_use_old_calc | |
| EO_SEGMENT_HANDLE | = lv_eo_segment_handle | |
| CHANGING | ||
| CB_CARRY_FORWARD | = lv_cb_carry_forward | |
| TABLES | ||
| IT_ANEPI | = lt_it_anepi | |
| IT_ANLZ | = lt_it_anlz | |
| IT_ANEA | = lt_it_anea | |
| IT_ANLBZA | = lt_it_anlbza | |
| CT_ANEP | = lt_ct_anep | |
| CT_ANLB | = lt_ct_anlb | |
| CT_ANLC | = lt_ct_anlc | |
| ET_ANFM | = lt_et_anfm | |
| EXCEPTIONS | ||
| INVALID_PROCESS = 1 | ||
| . " FAA_DC_ENGINE_CALL | ||
ABAP code using 7.40 inline data declarations to call FM FAA_DC_ENGINE_CALL
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.| DATA(ld_cb_carry_forward) | = 'X'. | |||
| DATA(ld_ib_collect_messages) | = ' '. | |||
| DATA(ld_ib_read_items) | = ' '. | |||
| DATA(ld_ib_write_trace) | = ' '. | |||
| DATA(ld_ib_calc_closed_years) | = ' '. | |||
Search for further information about these or an SAP related objects