SAP FAA_INIT_CMP_ROOT Function Module for Insert or Delete CMP_ROOT after V_T093C_00 Assignment









FAA_INIT_CMP_ROOT is a standard faa init cmp root SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Insert or Delete CMP_ROOT after V_T093C_00 Assignment 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 faa init cmp root FM, simply by entering the name FAA_INIT_CMP_ROOT into the relevant SAP transaction such as SE37 or SE38.

Function Group: FAA_CMP_UPD
Program Name: SAPLFAA_CMP_UPD
Main Program: SAPLFAA_CMP_UPD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FAA_INIT_CMP_ROOT 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_INIT_CMP_ROOT'"Insert or Delete CMP_ROOT after V_T093C_00 Assignment
EXPORTING
* IV_CLIENT = SY-MANDT "Client

IMPORTING
ET_CMP_DEL = "Table of deleted FAA Company Codes
ET_CMP_INS = "Table of inserted FAA Company Codes
ET_CMP_LDT_DEL = "
ET_CMP_LEDGER_INS = "
ET_CMP_LEDGER_DEL = "
ET_CMP_DEPR_AREA_INS = "
ET_CMP_DEPR_AREA_DEL = "
.



IMPORTING Parameters details for FAA_INIT_CMP_ROOT

IV_CLIENT - Client

Data type: MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FAA_INIT_CMP_ROOT

ET_CMP_DEL - Table of deleted FAA Company Codes

Data type: FAA_T_CMP
Optional: No
Call by Reference: Yes

ET_CMP_INS - Table of inserted FAA Company Codes

Data type: FAA_T_CMP
Optional: No
Call by Reference: Yes

ET_CMP_LDT_DEL -

Data type: FAA_T_CMP_LDT
Optional: No
Call by Reference: Yes

ET_CMP_LEDGER_INS -

Data type: FAA_T_CMP_LEDGER
Optional: No
Call by Reference: Yes

ET_CMP_LEDGER_DEL -

Data type: FAA_T_CMP_LEDGER
Optional: No
Call by Reference: Yes

ET_CMP_DEPR_AREA_INS -

Data type: FAA_T_CMP_DEPR_AREA
Optional: No
Call by Reference: Yes

ET_CMP_DEPR_AREA_DEL -

Data type: FAA_T_CMP_DEPR_AREA
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FAA_INIT_CMP_ROOT 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_iv_client  TYPE MANDT, "   SY-MANDT
lv_et_cmp_del  TYPE FAA_T_CMP, "   
lv_et_cmp_ins  TYPE FAA_T_CMP, "   
lv_et_cmp_ldt_del  TYPE FAA_T_CMP_LDT, "   
lv_et_cmp_ledger_ins  TYPE FAA_T_CMP_LEDGER, "   
lv_et_cmp_ledger_del  TYPE FAA_T_CMP_LEDGER, "   
lv_et_cmp_depr_area_ins  TYPE FAA_T_CMP_DEPR_AREA, "   
lv_et_cmp_depr_area_del  TYPE FAA_T_CMP_DEPR_AREA. "   

  CALL FUNCTION 'FAA_INIT_CMP_ROOT'  "Insert or Delete CMP_ROOT after V_T093C_00 Assignment
    EXPORTING
         IV_CLIENT = lv_iv_client
    IMPORTING
         ET_CMP_DEL = lv_et_cmp_del
         ET_CMP_INS = lv_et_cmp_ins
         ET_CMP_LDT_DEL = lv_et_cmp_ldt_del
         ET_CMP_LEDGER_INS = lv_et_cmp_ledger_ins
         ET_CMP_LEDGER_DEL = lv_et_cmp_ledger_del
         ET_CMP_DEPR_AREA_INS = lv_et_cmp_depr_area_ins
         ET_CMP_DEPR_AREA_DEL = lv_et_cmp_depr_area_del
. " FAA_INIT_CMP_ROOT




ABAP code using 7.40 inline data declarations to call FM FAA_INIT_CMP_ROOT

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_iv_client) = SY-MANDT.
 
 
 
 
 
 
 
 


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!