SAP RE_INTERFACE_DOCUMENT Function Module for
RE_INTERFACE_DOCUMENT is a standard re interface document 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 re interface document FM, simply by entering the name RE_INTERFACE_DOCUMENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVFI
Program Name: SAPLFVFI
Main Program: SAPLFVFI
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RE_INTERFACE_DOCUMENT 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 'RE_INTERFACE_DOCUMENT'".
EXPORTING
* I_SIMUL = 'X' "
* I_AWTYP = 'REACC' "
I_AWKEY = "
* I_GLVOR = 'RFBU' "
I_BUKRS = "
* I_AWKEY_REV = "
* I_RETURN_ZERO_ITEM = "
* I_GENERATE_ZERO_ITEM = "
IMPORTING
E_BELNR = "
E_GJAHR = "
E_BUKRS = "
TABLES
DOC_BSSBKPF = "
DOC_BSSBSEG = "
DOC_BSSPARA = "
* TAX_BSSBSEG = "
* DOC_ACCDN = "
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for RE_INTERFACE_DOCUMENT
I_SIMUL -
Data type: VVIS_SOPTI-SIMDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AWTYP -
Data type: ACCHD-AWTYPDefault: 'REACC'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AWKEY -
Data type: BKPF-AWKEYOptional: No
Call by Reference: No ( called with pass by value option)
I_GLVOR -
Data type: ACCHD-GLVORDefault: 'RFBU'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BUKRS -
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_AWKEY_REV -
Data type: BKPF-AWKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RETURN_ZERO_ITEM -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GENERATE_ZERO_ITEM -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RE_INTERFACE_DOCUMENT
E_BELNR -
Data type: ACCIT-BELNROptional: No
Call by Reference: No ( called with pass by value option)
E_GJAHR -
Data type: ACCIT-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
E_BUKRS -
Data type: ACCIT-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RE_INTERFACE_DOCUMENT
DOC_BSSBKPF -
Data type: BSSBKPFOptional: No
Call by Reference: No ( called with pass by value option)
DOC_BSSBSEG -
Data type: BSSBSEGOptional: No
Call by Reference: No ( called with pass by value option)
DOC_BSSPARA -
Data type: BSSPARAOptional: No
Call by Reference: No ( called with pass by value option)
TAX_BSSBSEG -
Data type: BSSBSEGOptional: Yes
Call by Reference: No ( called with pass by value option)
DOC_ACCDN -
Data type: ACCDNOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RE_INTERFACE_DOCUMENT 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_error | TYPE STRING, " | |||
| lv_e_belnr | TYPE ACCIT-BELNR, " | |||
| lv_i_simul | TYPE VVIS_SOPTI-SIM, " 'X' | |||
| lt_doc_bssbkpf | TYPE STANDARD TABLE OF BSSBKPF, " | |||
| lv_e_gjahr | TYPE ACCIT-GJAHR, " | |||
| lv_i_awtyp | TYPE ACCHD-AWTYP, " 'REACC' | |||
| lt_doc_bssbseg | TYPE STANDARD TABLE OF BSSBSEG, " | |||
| lv_e_bukrs | TYPE ACCIT-BUKRS, " | |||
| lv_i_awkey | TYPE BKPF-AWKEY, " | |||
| lt_doc_bsspara | TYPE STANDARD TABLE OF BSSPARA, " | |||
| lv_i_glvor | TYPE ACCHD-GLVOR, " 'RFBU' | |||
| lt_tax_bssbseg | TYPE STANDARD TABLE OF BSSBSEG, " | |||
| lv_i_bukrs | TYPE T001-BUKRS, " | |||
| lt_doc_accdn | TYPE STANDARD TABLE OF ACCDN, " | |||
| lv_i_awkey_rev | TYPE BKPF-AWKEY, " | |||
| lv_i_return_zero_item | TYPE BKPF, " | |||
| lv_i_generate_zero_item | TYPE BKPF. " |
|   CALL FUNCTION 'RE_INTERFACE_DOCUMENT' " |
| EXPORTING | ||
| I_SIMUL | = lv_i_simul | |
| I_AWTYP | = lv_i_awtyp | |
| I_AWKEY | = lv_i_awkey | |
| I_GLVOR | = lv_i_glvor | |
| I_BUKRS | = lv_i_bukrs | |
| I_AWKEY_REV | = lv_i_awkey_rev | |
| I_RETURN_ZERO_ITEM | = lv_i_return_zero_item | |
| I_GENERATE_ZERO_ITEM | = lv_i_generate_zero_item | |
| IMPORTING | ||
| E_BELNR | = lv_e_belnr | |
| E_GJAHR | = lv_e_gjahr | |
| E_BUKRS | = lv_e_bukrs | |
| TABLES | ||
| DOC_BSSBKPF | = lt_doc_bssbkpf | |
| DOC_BSSBSEG | = lt_doc_bssbseg | |
| DOC_BSSPARA | = lt_doc_bsspara | |
| TAX_BSSBSEG | = lt_tax_bssbseg | |
| DOC_ACCDN | = lt_doc_accdn | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " RE_INTERFACE_DOCUMENT | ||
ABAP code using 7.40 inline data declarations to call FM RE_INTERFACE_DOCUMENT
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.| "SELECT single BELNR FROM ACCIT INTO @DATA(ld_e_belnr). | ||||
| "SELECT single SIM FROM VVIS_SOPTI INTO @DATA(ld_i_simul). | ||||
| DATA(ld_i_simul) | = 'X'. | |||
| "SELECT single GJAHR FROM ACCIT INTO @DATA(ld_e_gjahr). | ||||
| "SELECT single AWTYP FROM ACCHD INTO @DATA(ld_i_awtyp). | ||||
| DATA(ld_i_awtyp) | = 'REACC'. | |||
| "SELECT single BUKRS FROM ACCIT INTO @DATA(ld_e_bukrs). | ||||
| "SELECT single AWKEY FROM BKPF INTO @DATA(ld_i_awkey). | ||||
| "SELECT single GLVOR FROM ACCHD INTO @DATA(ld_i_glvor). | ||||
| DATA(ld_i_glvor) | = 'RFBU'. | |||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single AWKEY FROM BKPF INTO @DATA(ld_i_awkey_rev). | ||||
Search for further information about these or an SAP related objects