SAP Function Modules

FAA_DC_DATA_PASS_TO_MNGR SAP Function module







FAA_DC_DATA_PASS_TO_MNGR is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FAA_DC_DATA_PASS_TO_MNGR into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FAA_DC_ERP
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FAA_DC_DATA_PASS_TO_MNGR - FAA DC DATA PASS TO MNGR





CALL FUNCTION 'FAA_DC_DATA_PASS_TO_MNGR' "
  EXPORTING
    is_ants =                   " ants
    id_process =                " faa_pc_process  Process
*   ib_collect_messages = SPACE  " xfeld        Checkbox
*   ib_read_items = SPACE       " xfeld         Checkbox
*   id_reporting_date =         " faa_dc_s_processing_info-reporting_date  Reporting date in program
  IMPORTING
    es_asset_mngr =             " faa_dc_s_asset_reference_mngr
  TABLES
*   it_anlz =                   " anlz
*   it_anea =                   " anea          Asset Line Items for Proportional Values
*   it_anep =                   " anep          Asset Line Items
*   it_anlb =                   " anlb          Depreciation Terms
*   it_anlbza =                 " anlbza
*   it_anlc =                   " anlc          Asset Value Fields
    et_anfm =                   " anfm          Error messages from dep. calc.
    .  "  FAA_DC_DATA_PASS_TO_MNGR

ABAP code example for Function Module FAA_DC_DATA_PASS_TO_MNGR





The ABAP code below is a full code listing to execute function module FAA_DC_DATA_PASS_TO_MNGR including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_es_asset_mngr  TYPE FAA_DC_S_ASSET_REFERENCE_MNGR ,
it_it_anlz  TYPE STANDARD TABLE OF ANLZ,"TABLES PARAM
wa_it_anlz  LIKE LINE OF it_it_anlz ,
it_it_anea  TYPE STANDARD TABLE OF ANEA,"TABLES PARAM
wa_it_anea  LIKE LINE OF it_it_anea ,
it_it_anep  TYPE STANDARD TABLE OF ANEP,"TABLES PARAM
wa_it_anep  LIKE LINE OF it_it_anep ,
it_it_anlb  TYPE STANDARD TABLE OF ANLB,"TABLES PARAM
wa_it_anlb  LIKE LINE OF it_it_anlb ,
it_it_anlbza  TYPE STANDARD TABLE OF ANLBZA,"TABLES PARAM
wa_it_anlbza  LIKE LINE OF it_it_anlbza ,
it_it_anlc  TYPE STANDARD TABLE OF ANLC,"TABLES PARAM
wa_it_anlc  LIKE LINE OF it_it_anlc ,
it_et_anfm  TYPE STANDARD TABLE OF ANFM,"TABLES PARAM
wa_et_anfm  LIKE LINE OF it_et_anfm .

DATA(ld_is_ants) = 'Check type of data required'.
DATA(ld_id_process) = 'Check type of data required'.
DATA(ld_ib_collect_messages) = 'Check type of data required'.
DATA(ld_ib_read_items) = 'Check type of data required'.

DATA(ld_id_reporting_date) = 20210129

"populate fields of struture and append to itab
append wa_it_anlz to it_it_anlz.

"populate fields of struture and append to itab
append wa_it_anea to it_it_anea.

"populate fields of struture and append to itab
append wa_it_anep to it_it_anep.

"populate fields of struture and append to itab
append wa_it_anlb to it_it_anlb.

"populate fields of struture and append to itab
append wa_it_anlbza to it_it_anlbza.

"populate fields of struture and append to itab
append wa_it_anlc to it_it_anlc.

"populate fields of struture and append to itab
append wa_et_anfm to it_et_anfm. . CALL FUNCTION 'FAA_DC_DATA_PASS_TO_MNGR' EXPORTING is_ants = ld_is_ants id_process = ld_id_process * ib_collect_messages = ld_ib_collect_messages * ib_read_items = ld_ib_read_items * id_reporting_date = ld_id_reporting_date IMPORTING es_asset_mngr = ld_es_asset_mngr TABLES * it_anlz = it_it_anlz * it_anea = it_it_anea * it_anep = it_it_anep * it_anlb = it_it_anlb * it_anlbza = it_it_anlbza * it_anlc = it_it_anlc et_anfm = it_et_anfm . " FAA_DC_DATA_PASS_TO_MNGR
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_es_asset_mngr  TYPE FAA_DC_S_ASSET_REFERENCE_MNGR ,
ld_is_ants  TYPE ANTS ,
it_it_anlz  TYPE STANDARD TABLE OF ANLZ ,
wa_it_anlz  LIKE LINE OF it_it_anlz,
ld_id_process  TYPE FAA_PC_PROCESS ,
it_it_anea  TYPE STANDARD TABLE OF ANEA ,
wa_it_anea  LIKE LINE OF it_it_anea,
ld_ib_collect_messages  TYPE XFELD ,
it_it_anep  TYPE STANDARD TABLE OF ANEP ,
wa_it_anep  LIKE LINE OF it_it_anep,
ld_ib_read_items  TYPE XFELD ,
it_it_anlb  TYPE STANDARD TABLE OF ANLB ,
wa_it_anlb  LIKE LINE OF it_it_anlb,
ld_id_reporting_date  TYPE FAA_DC_S_PROCESSING_INFO-REPORTING_DATE ,
it_it_anlbza  TYPE STANDARD TABLE OF ANLBZA ,
wa_it_anlbza  LIKE LINE OF it_it_anlbza,
it_it_anlc  TYPE STANDARD TABLE OF ANLC ,
wa_it_anlc  LIKE LINE OF it_it_anlc,
it_et_anfm  TYPE STANDARD TABLE OF ANFM ,
wa_et_anfm  LIKE LINE OF it_et_anfm.

ld_is_ants = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_anlz to it_it_anlz.
ld_id_process = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_anea to it_it_anea.
ld_ib_collect_messages = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_anep to it_it_anep.
ld_ib_read_items = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_anlb to it_it_anlb.

ld_id_reporting_date = 20210129

"populate fields of struture and append to itab
append wa_it_anlbza to it_it_anlbza.

"populate fields of struture and append to itab
append wa_it_anlc to it_it_anlc.

"populate fields of struture and append to itab
append wa_et_anfm to it_et_anfm.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FAA_DC_DATA_PASS_TO_MNGR or its description.