SAP Function Modules

FMCA_GET_ARC_FORM_BUNDLE SAP Function module - Read single form bundle from archive







FMCA_GET_ARC_FORM_BUNDLE 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 FMCA_GET_ARC_FORM_BUNDLE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FMCA_GET_ARC_FORM_BUNDLE - FMCA GET ARC FORM BUNDLE





CALL FUNCTION 'FMCA_GET_ARC_FORM_BUNDLE' "Read single form bundle from archive
* EXPORTING
*   iv_case_guid =              " rseloption    Technical Key of Carrying Object
*   iv_taxpayer =               " rseloption    Business Partner Number
*   iv_account =                " rseloption    Contract Account Number
*   iv_reg_id =                 " rseloption    Reference Specifications from Contract
*   iv_reg_type =               " rseloption    Subapplication in Contract Accounts Receivable and Payable
*   iv_bu_id_type =             " rseloption    Identification Type
*   iv_taxpayer_id =            " rseloption    Identification Number
*   iv_joint_filer =            " rseloption    Joint Business Partner Number
*   iv_joint_account =          " rseloption    Joint Contract Account Number
*   iv_joint_reg_id =           " rseloption    Joint Reference Specifications from Contract
*   iv_joint_reg_type =         " rseloption    Joint Subapplication in Contract Accounts Receivable and Payable
*   iv_joint_id_type =          " rseloption    Joint Identification Type
*   iv_joint_filer_id =         " rseloption    Joint Identification Number
*   iv_revenue_type =           " rseloption    Revenue Type
*   iv_fbtyp =                  " rseloption    Form Bundle Type
*   iv_fbnum =                  " rseloption    Number of a Form Bundle
*   iv_period_key =             " rseloption    Key for Period Assignment
*   i_maxrec = 0                " i             Maximum Number of Entries
* TABLES
*   t_dfmca_return =            " dfmca_return  Data Table for Tax Returns
*   t_dfmca_forms =             " dfmca_forms   Data Table for Tax Forms
*   t_dfmca_form_vers =         " dfmca_form_vers  Versions of Form Data
*   t_dfmca_brf_msg =           " dfmca_brf_msg  Tax Calculation and Validation: Error Messages
*   t_dfmca_fpf_his =           " dfmca_fpf_his  FPF: Form Processing History
*   t_dfmca_op_refdoc =         " dfmca_op_refdoc  ##Items in contract account document of a Form Bundle
*   t_dfmca_wihead =            " dfmca_wihead  Additional Data for Workflow Item
*   t_dfmca_wiheadh =           " dfmca_wiheadh  Additional Data for Workflow Item (History)
*   t_dfkkdoc_con =             " dfkkdoc_con   FKKDMS: Links Between Application Objects and Documents
*   t_dfmca_trace_0100 =        " dfmca_trace_0100  TRM BRF+: Indx-typed table for Lean Trace
* CHANGING
*   t_dfmca_note_att =          " fmca_t_dfmca_note_att  Table Type for Data Table DFMCA_NOTE_ATT
  EXCEPTIONS
    NO_ENTRY_FOUND = 1          "               Keinen Eintrag gefunden
    NO_INFOSTRUCTURE_FOUND = 2  "               Keine Infostruktur gefunden
    NO_SELECTION_CRITERIA = 3   "               Keine Selektionen eingegeben
    FIELD_MISSING_IN_FIELDCAT = 4  "            Ein Feld der Selektionkriterien fehlt im Feldkatalog
    AS_ERROR = 5                "               AS Fehler
    WRONG_SELECTION_CRITERIA = 6  "             Selektionskriterien falsch definiert
    E_TOO_MANY_SELTYPES = 7     "               Es wurde sowohl ein Bereich als auch ein Einzelwert als Selektion angegeben
    .  "  FMCA_GET_ARC_FORM_BUNDLE

ABAP code example for Function Module FMCA_GET_ARC_FORM_BUNDLE





The ABAP code below is a full code listing to execute function module FMCA_GET_ARC_FORM_BUNDLE 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:
it_t_dfmca_return  TYPE STANDARD TABLE OF DFMCA_RETURN,"TABLES PARAM
wa_t_dfmca_return  LIKE LINE OF it_t_dfmca_return ,
it_t_dfmca_forms  TYPE STANDARD TABLE OF DFMCA_FORMS,"TABLES PARAM
wa_t_dfmca_forms  LIKE LINE OF it_t_dfmca_forms ,
it_t_dfmca_form_vers  TYPE STANDARD TABLE OF DFMCA_FORM_VERS,"TABLES PARAM
wa_t_dfmca_form_vers  LIKE LINE OF it_t_dfmca_form_vers ,
it_t_dfmca_brf_msg  TYPE STANDARD TABLE OF DFMCA_BRF_MSG,"TABLES PARAM
wa_t_dfmca_brf_msg  LIKE LINE OF it_t_dfmca_brf_msg ,
it_t_dfmca_fpf_his  TYPE STANDARD TABLE OF DFMCA_FPF_HIS,"TABLES PARAM
wa_t_dfmca_fpf_his  LIKE LINE OF it_t_dfmca_fpf_his ,
it_t_dfmca_op_refdoc  TYPE STANDARD TABLE OF DFMCA_OP_REFDOC,"TABLES PARAM
wa_t_dfmca_op_refdoc  LIKE LINE OF it_t_dfmca_op_refdoc ,
it_t_dfmca_wihead  TYPE STANDARD TABLE OF DFMCA_WIHEAD,"TABLES PARAM
wa_t_dfmca_wihead  LIKE LINE OF it_t_dfmca_wihead ,
it_t_dfmca_wiheadh  TYPE STANDARD TABLE OF DFMCA_WIHEADH,"TABLES PARAM
wa_t_dfmca_wiheadh  LIKE LINE OF it_t_dfmca_wiheadh ,
it_t_dfkkdoc_con  TYPE STANDARD TABLE OF DFKKDOC_CON,"TABLES PARAM
wa_t_dfkkdoc_con  LIKE LINE OF it_t_dfkkdoc_con ,
it_t_dfmca_trace_0100  TYPE STANDARD TABLE OF DFMCA_TRACE_0100,"TABLES PARAM
wa_t_dfmca_trace_0100  LIKE LINE OF it_t_dfmca_trace_0100 .

DATA(ld_t_dfmca_note_att) = 'Check type of data required'.
DATA(ld_iv_case_guid) = 'Check type of data required'.
DATA(ld_iv_taxpayer) = 'Check type of data required'.
DATA(ld_iv_account) = 'Check type of data required'.
DATA(ld_iv_reg_id) = 'Check type of data required'.
DATA(ld_iv_reg_type) = 'Check type of data required'.
DATA(ld_iv_bu_id_type) = 'Check type of data required'.
DATA(ld_iv_taxpayer_id) = 'Check type of data required'.
DATA(ld_iv_joint_filer) = 'Check type of data required'.
DATA(ld_iv_joint_account) = 'Check type of data required'.
DATA(ld_iv_joint_reg_id) = 'Check type of data required'.
DATA(ld_iv_joint_reg_type) = 'Check type of data required'.
DATA(ld_iv_joint_id_type) = 'Check type of data required'.
DATA(ld_iv_joint_filer_id) = 'Check type of data required'.
DATA(ld_iv_revenue_type) = 'Check type of data required'.
DATA(ld_iv_fbtyp) = 'Check type of data required'.
DATA(ld_iv_fbnum) = 'Check type of data required'.
DATA(ld_iv_period_key) = 'Check type of data required'.
DATA(ld_i_maxrec) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_dfmca_return to it_t_dfmca_return.

"populate fields of struture and append to itab
append wa_t_dfmca_forms to it_t_dfmca_forms.

"populate fields of struture and append to itab
append wa_t_dfmca_form_vers to it_t_dfmca_form_vers.

"populate fields of struture and append to itab
append wa_t_dfmca_brf_msg to it_t_dfmca_brf_msg.

"populate fields of struture and append to itab
append wa_t_dfmca_fpf_his to it_t_dfmca_fpf_his.

"populate fields of struture and append to itab
append wa_t_dfmca_op_refdoc to it_t_dfmca_op_refdoc.

"populate fields of struture and append to itab
append wa_t_dfmca_wihead to it_t_dfmca_wihead.

"populate fields of struture and append to itab
append wa_t_dfmca_wiheadh to it_t_dfmca_wiheadh.

"populate fields of struture and append to itab
append wa_t_dfkkdoc_con to it_t_dfkkdoc_con.

"populate fields of struture and append to itab
append wa_t_dfmca_trace_0100 to it_t_dfmca_trace_0100. . CALL FUNCTION 'FMCA_GET_ARC_FORM_BUNDLE' * EXPORTING * iv_case_guid = ld_iv_case_guid * iv_taxpayer = ld_iv_taxpayer * iv_account = ld_iv_account * iv_reg_id = ld_iv_reg_id * iv_reg_type = ld_iv_reg_type * iv_bu_id_type = ld_iv_bu_id_type * iv_taxpayer_id = ld_iv_taxpayer_id * iv_joint_filer = ld_iv_joint_filer * iv_joint_account = ld_iv_joint_account * iv_joint_reg_id = ld_iv_joint_reg_id * iv_joint_reg_type = ld_iv_joint_reg_type * iv_joint_id_type = ld_iv_joint_id_type * iv_joint_filer_id = ld_iv_joint_filer_id * iv_revenue_type = ld_iv_revenue_type * iv_fbtyp = ld_iv_fbtyp * iv_fbnum = ld_iv_fbnum * iv_period_key = ld_iv_period_key * i_maxrec = ld_i_maxrec * TABLES * t_dfmca_return = it_t_dfmca_return * t_dfmca_forms = it_t_dfmca_forms * t_dfmca_form_vers = it_t_dfmca_form_vers * t_dfmca_brf_msg = it_t_dfmca_brf_msg * t_dfmca_fpf_his = it_t_dfmca_fpf_his * t_dfmca_op_refdoc = it_t_dfmca_op_refdoc * t_dfmca_wihead = it_t_dfmca_wihead * t_dfmca_wiheadh = it_t_dfmca_wiheadh * t_dfkkdoc_con = it_t_dfkkdoc_con * t_dfmca_trace_0100 = it_t_dfmca_trace_0100 * CHANGING * t_dfmca_note_att = ld_t_dfmca_note_att EXCEPTIONS NO_ENTRY_FOUND = 1 NO_INFOSTRUCTURE_FOUND = 2 NO_SELECTION_CRITERIA = 3 FIELD_MISSING_IN_FIELDCAT = 4 AS_ERROR = 5 WRONG_SELECTION_CRITERIA = 6 E_TOO_MANY_SELTYPES = 7 . " FMCA_GET_ARC_FORM_BUNDLE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here 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_t_dfmca_note_att  TYPE FMCA_T_DFMCA_NOTE_ATT ,
ld_iv_case_guid  TYPE RSELOPTION ,
it_t_dfmca_return  TYPE STANDARD TABLE OF DFMCA_RETURN ,
wa_t_dfmca_return  LIKE LINE OF it_t_dfmca_return,
ld_iv_taxpayer  TYPE RSELOPTION ,
it_t_dfmca_forms  TYPE STANDARD TABLE OF DFMCA_FORMS ,
wa_t_dfmca_forms  LIKE LINE OF it_t_dfmca_forms,
ld_iv_account  TYPE RSELOPTION ,
it_t_dfmca_form_vers  TYPE STANDARD TABLE OF DFMCA_FORM_VERS ,
wa_t_dfmca_form_vers  LIKE LINE OF it_t_dfmca_form_vers,
ld_iv_reg_id  TYPE RSELOPTION ,
it_t_dfmca_brf_msg  TYPE STANDARD TABLE OF DFMCA_BRF_MSG ,
wa_t_dfmca_brf_msg  LIKE LINE OF it_t_dfmca_brf_msg,
it_t_dfmca_fpf_his  TYPE STANDARD TABLE OF DFMCA_FPF_HIS ,
wa_t_dfmca_fpf_his  LIKE LINE OF it_t_dfmca_fpf_his,
ld_iv_reg_type  TYPE RSELOPTION ,
it_t_dfmca_op_refdoc  TYPE STANDARD TABLE OF DFMCA_OP_REFDOC ,
wa_t_dfmca_op_refdoc  LIKE LINE OF it_t_dfmca_op_refdoc,
ld_iv_bu_id_type  TYPE RSELOPTION ,
it_t_dfmca_wihead  TYPE STANDARD TABLE OF DFMCA_WIHEAD ,
wa_t_dfmca_wihead  LIKE LINE OF it_t_dfmca_wihead,
ld_iv_taxpayer_id  TYPE RSELOPTION ,
it_t_dfmca_wiheadh  TYPE STANDARD TABLE OF DFMCA_WIHEADH ,
wa_t_dfmca_wiheadh  LIKE LINE OF it_t_dfmca_wiheadh,
ld_iv_joint_filer  TYPE RSELOPTION ,
ld_iv_joint_account  TYPE RSELOPTION ,
it_t_dfkkdoc_con  TYPE STANDARD TABLE OF DFKKDOC_CON ,
wa_t_dfkkdoc_con  LIKE LINE OF it_t_dfkkdoc_con,
ld_iv_joint_reg_id  TYPE RSELOPTION ,
it_t_dfmca_trace_0100  TYPE STANDARD TABLE OF DFMCA_TRACE_0100 ,
wa_t_dfmca_trace_0100  LIKE LINE OF it_t_dfmca_trace_0100,
ld_iv_joint_reg_type  TYPE RSELOPTION ,
ld_iv_joint_id_type  TYPE RSELOPTION ,
ld_iv_joint_filer_id  TYPE RSELOPTION ,
ld_iv_revenue_type  TYPE RSELOPTION ,
ld_iv_fbtyp  TYPE RSELOPTION ,
ld_iv_fbnum  TYPE RSELOPTION ,
ld_iv_period_key  TYPE RSELOPTION ,
ld_i_maxrec  TYPE I .

ld_t_dfmca_note_att = 'Check type of data required'.
ld_iv_case_guid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_dfmca_return to it_t_dfmca_return.
ld_iv_taxpayer = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_dfmca_forms to it_t_dfmca_forms.
ld_iv_account = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_dfmca_form_vers to it_t_dfmca_form_vers.
ld_iv_reg_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_dfmca_brf_msg to it_t_dfmca_brf_msg.

"populate fields of struture and append to itab
append wa_t_dfmca_fpf_his to it_t_dfmca_fpf_his.
ld_iv_reg_type = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_dfmca_op_refdoc to it_t_dfmca_op_refdoc.
ld_iv_bu_id_type = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_dfmca_wihead to it_t_dfmca_wihead.
ld_iv_taxpayer_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_dfmca_wiheadh to it_t_dfmca_wiheadh.
ld_iv_joint_filer = 'Check type of data required'.
ld_iv_joint_account = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_dfkkdoc_con to it_t_dfkkdoc_con.
ld_iv_joint_reg_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_dfmca_trace_0100 to it_t_dfmca_trace_0100.
ld_iv_joint_reg_type = 'Check type of data required'.
ld_iv_joint_id_type = 'Check type of data required'.
ld_iv_joint_filer_id = 'Check type of data required'.
ld_iv_revenue_type = 'Check type of data required'.
ld_iv_fbtyp = 'Check type of data required'.
ld_iv_fbnum = 'Check type of data required'.
ld_iv_period_key = 'Check type of data required'.
ld_i_maxrec = 'Check type of data required'.

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 FMCA_GET_ARC_FORM_BUNDLE or its description.