SAP OIUREP_MASTER_SAVE_EFILE Function Module for Download and save EFILE in a local file









OIUREP_MASTER_SAVE_EFILE is a standard oiurep master save efile SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Download and save EFILE in a local file 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 oiurep master save efile FM, simply by entering the name OIUREP_MASTER_SAVE_EFILE into the relevant SAP transaction such as SE37 or SE38.

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



Function OIUREP_MASTER_SAVE_EFILE 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 'OIUREP_MASTER_SAVE_EFILE'"Download and save EFILE in a local file
EXPORTING
P_RRST = "Regulatory Reporting Status Table
P_RRST_D = "Regulatory Reporting Status Table
P_HDR_DI = "Regulatory Report Master Data Header structure
P_GF_REP = "Regulatory Report Name
P_REP_TY = "Format of file: CSV or ASCII
.



IMPORTING Parameters details for OIUREP_MASTER_SAVE_EFILE

P_RRST - Regulatory Reporting Status Table

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

P_RRST_D - Regulatory Reporting Status Table

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

P_HDR_DI - Regulatory Report Master Data Header structure

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

P_GF_REP - Regulatory Report Name

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

P_REP_TY - Format of file: CSV or ASCII

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

Copy and paste ABAP code example for OIUREP_MASTER_SAVE_EFILE 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_p_rrst  TYPE OIUREP_RRST_NEW, "   
lv_p_rrst_d  TYPE OIUREP_RRST_DET, "   
lv_p_hdr_di  TYPE ROIU_REP_MASTER_HEADER_DISPLAY, "   
lv_p_gf_rep  TYPE OIU_REP_REPNAME, "   
lv_p_rep_ty  TYPE C. "   

  CALL FUNCTION 'OIUREP_MASTER_SAVE_EFILE'  "Download and save EFILE in a local file
    EXPORTING
         P_RRST = lv_p_rrst
         P_RRST_D = lv_p_rrst_d
         P_HDR_DI = lv_p_hdr_di
         P_GF_REP = lv_p_gf_rep
         P_REP_TY = lv_p_rep_ty
. " OIUREP_MASTER_SAVE_EFILE




ABAP code using 7.40 inline data declarations to call FM OIUREP_MASTER_SAVE_EFILE

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.

 
 
 
 
 


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!