SAP FI_DOCUMENT_ARCH_AS_ITEMS_READ Function Module for









FI_DOCUMENT_ARCH_AS_ITEMS_READ is a standard fi document arch as items read 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 fi document arch as items read FM, simply by entering the name FI_DOCUMENT_ARCH_AS_ITEMS_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function FI_DOCUMENT_ARCH_AS_ITEMS_READ 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 'FI_DOCUMENT_ARCH_AS_ITEMS_READ'"
EXPORTING
I_SELECTIONS = "Selections
* I_CONVERT_CURRENCY = 'X' "Currency Translation
* I_USE_ACCOUNT_CONTRL = "
* I_SHOW_ERRORS = "
* I_SHOW_PROGESS = 'X' "

IMPORTING
E_LOG_HANDLE = "Application Log: Log Handle

CHANGING
* CT_DOC_DATA = "

TABLES
* E_BKPF = "Accounting Document Header
* E_FAGLBSAS = "Accounting: Secondary Index for G/L Accounts (Cleared Items)
* E_FAGLBSIS = "Accounting: Secondary Index for G/L Accounts
* E_BSEG_ADD = "Entry View of Accounting Document for Additional Ledgers
* E_BSEG = "Accounting Document Segment
* E_BSIS = "Accounting: Secondary Index for G/L Accounts
* E_BSAS = "Accounting: Secondary index for G/L accounts (cleared items)
* E_BSAD = "Accounting: Secondary index for customers (cleared items)
* E_BSAK = "Accounting: Secondary index for vendors (cleared items)
* E_BSIP = "Index for Vendor Validation of Double Documents
* E_BSIM = "Secondary Index, Documents for Material
* I_ARCH_SEL = "

EXCEPTIONS
NO_INFOSTRUC_FOUND = 1 SELECTIONS_ERROR = 2
.



IMPORTING Parameters details for FI_DOCUMENT_ARCH_AS_ITEMS_READ

I_SELECTIONS - Selections

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

I_CONVERT_CURRENCY - Currency Translation

Data type: BOOLE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_USE_ACCOUNT_CONTRL -

Data type: BOOLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SHOW_ERRORS -

Data type: BOOLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SHOW_PROGESS -

Data type: BOOLE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FI_DOCUMENT_ARCH_AS_ITEMS_READ

E_LOG_HANDLE - Application Log: Log Handle

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

CHANGING Parameters details for FI_DOCUMENT_ARCH_AS_ITEMS_READ

CT_DOC_DATA -

Data type: AS_T_TABLEBUFFER
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for FI_DOCUMENT_ARCH_AS_ITEMS_READ

E_BKPF - Accounting Document Header

Data type: BKPF
Optional: Yes
Call by Reference: Yes

E_FAGLBSAS - Accounting: Secondary Index for G/L Accounts (Cleared Items)

Data type: FAGLBSAS
Optional: Yes
Call by Reference: Yes

E_FAGLBSIS - Accounting: Secondary Index for G/L Accounts

Data type: FAGLBSIS
Optional: Yes
Call by Reference: Yes

E_BSEG_ADD - Entry View of Accounting Document for Additional Ledgers

Data type: BSEG_ADD
Optional: Yes
Call by Reference: Yes

E_BSEG - Accounting Document Segment

Data type: BSEG
Optional: Yes
Call by Reference: Yes

E_BSIS - Accounting: Secondary Index for G/L Accounts

Data type: BSIS
Optional: Yes
Call by Reference: Yes

E_BSAS - Accounting: Secondary index for G/L accounts (cleared items)

Data type: BSAS
Optional: Yes
Call by Reference: Yes

E_BSAD - Accounting: Secondary index for customers (cleared items)

Data type: BSAD
Optional: Yes
Call by Reference: Yes

E_BSAK - Accounting: Secondary index for vendors (cleared items)

Data type: BSAK
Optional: Yes
Call by Reference: Yes

E_BSIP - Index for Vendor Validation of Double Documents

Data type: BSIP
Optional: Yes
Call by Reference: Yes

E_BSIM - Secondary Index, Documents for Material

Data type: BSIM
Optional: Yes
Call by Reference: Yes

I_ARCH_SEL -

Data type: RNG_ARCHIV
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_INFOSTRUC_FOUND -

Data type:
Optional: No
Call by Reference: Yes

SELECTIONS_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FI_DOCUMENT_ARCH_AS_ITEMS_READ 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_e_bkpf  TYPE STANDARD TABLE OF BKPF, "   
lv_ct_doc_data  TYPE AS_T_TABLEBUFFER, "   
lv_e_log_handle  TYPE BALLOGHNDL, "   
lv_i_selections  TYPE RSDS_TRANGE, "   
lv_no_infostruc_found  TYPE RSDS_TRANGE, "   
lt_e_faglbsas  TYPE STANDARD TABLE OF FAGLBSAS, "   
lt_e_faglbsis  TYPE STANDARD TABLE OF FAGLBSIS, "   
lt_e_bseg_add  TYPE STANDARD TABLE OF BSEG_ADD, "   
lt_e_bseg  TYPE STANDARD TABLE OF BSEG, "   
lv_selections_error  TYPE BSEG, "   
lv_i_convert_currency  TYPE BOOLE, "   'X'
lt_e_bsis  TYPE STANDARD TABLE OF BSIS, "   
lv_i_use_account_contrl  TYPE BOOLE, "   
lt_e_bsas  TYPE STANDARD TABLE OF BSAS, "   
lv_i_show_errors  TYPE BOOLE, "   
lt_e_bsad  TYPE STANDARD TABLE OF BSAD, "   
lv_i_show_progess  TYPE BOOLE, "   'X'
lt_e_bsak  TYPE STANDARD TABLE OF BSAK, "   
lt_e_bsip  TYPE STANDARD TABLE OF BSIP, "   
lt_e_bsim  TYPE STANDARD TABLE OF BSIM, "   
lt_i_arch_sel  TYPE STANDARD TABLE OF RNG_ARCHIV. "   

  CALL FUNCTION 'FI_DOCUMENT_ARCH_AS_ITEMS_READ'  "
    EXPORTING
         I_SELECTIONS = lv_i_selections
         I_CONVERT_CURRENCY = lv_i_convert_currency
         I_USE_ACCOUNT_CONTRL = lv_i_use_account_contrl
         I_SHOW_ERRORS = lv_i_show_errors
         I_SHOW_PROGESS = lv_i_show_progess
    IMPORTING
         E_LOG_HANDLE = lv_e_log_handle
    CHANGING
         CT_DOC_DATA = lv_ct_doc_data
    TABLES
         E_BKPF = lt_e_bkpf
         E_FAGLBSAS = lt_e_faglbsas
         E_FAGLBSIS = lt_e_faglbsis
         E_BSEG_ADD = lt_e_bseg_add
         E_BSEG = lt_e_bseg
         E_BSIS = lt_e_bsis
         E_BSAS = lt_e_bsas
         E_BSAD = lt_e_bsad
         E_BSAK = lt_e_bsak
         E_BSIP = lt_e_bsip
         E_BSIM = lt_e_bsim
         I_ARCH_SEL = lt_i_arch_sel
    EXCEPTIONS
        NO_INFOSTRUC_FOUND = 1
        SELECTIONS_ERROR = 2
. " FI_DOCUMENT_ARCH_AS_ITEMS_READ




ABAP code using 7.40 inline data declarations to call FM FI_DOCUMENT_ARCH_AS_ITEMS_READ

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_i_convert_currency) = 'X'.
 
 
 
 
 
 
DATA(ld_i_show_progess) = 'X'.
 
 
 
 
 


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!