SAP RSFEC_DATA_READ Function Module for Read Data for BW Front-End Check









RSFEC_DATA_READ is a standard rsfec data read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Data for BW Front-End Check 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 rsfec data read FM, simply by entering the name RSFEC_DATA_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function RSFEC_DATA_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 'RSFEC_DATA_READ'"Read Data for BW Front-End Check
EXPORTING
* I_FROM_DATE = ' ' "Date for BW Frontend check
* I_TO_DATE = ' ' "Date for BW Frontend check
* I_HOSTNAME = ' ' "Host name for BW Frontend check
* I_NUMBER = ' ' "Type for BW Frontend check
* I_COMPRESS = 'X' "Type for BW Frontend check

IMPORTING
E_SUBRC = "Return Value, Return Value After ABAP Statements

TABLES
E_T_DATA = "BW Frontend Check
.



IMPORTING Parameters details for RSFEC_DATA_READ

I_FROM_DATE - Date for BW Frontend check

Data type: RSFEC-CHECKDATE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TO_DATE - Date for BW Frontend check

Data type: RSFEC-CHECKDATE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_HOSTNAME - Host name for BW Frontend check

Data type: RSFEC-HOSTNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NUMBER - Type for BW Frontend check

Data type: RSFEC-TYPE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_COMPRESS - Type for BW Frontend check

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

EXPORTING Parameters details for RSFEC_DATA_READ

E_SUBRC - Return Value, Return Value After ABAP Statements

Data type: SY-SUBRC
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RSFEC_DATA_READ

E_T_DATA - BW Frontend Check

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

Copy and paste ABAP code example for RSFEC_DATA_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:
lv_e_subrc  TYPE SY-SUBRC, "   
lt_e_t_data  TYPE STANDARD TABLE OF RSFEC, "   
lv_i_from_date  TYPE RSFEC-CHECKDATE, "   SPACE
lv_i_to_date  TYPE RSFEC-CHECKDATE, "   SPACE
lv_i_hostname  TYPE RSFEC-HOSTNAME, "   SPACE
lv_i_number  TYPE RSFEC-TYPE, "   SPACE
lv_i_compress  TYPE RSFEC-TYPE. "   'X'

  CALL FUNCTION 'RSFEC_DATA_READ'  "Read Data for BW Front-End Check
    EXPORTING
         I_FROM_DATE = lv_i_from_date
         I_TO_DATE = lv_i_to_date
         I_HOSTNAME = lv_i_hostname
         I_NUMBER = lv_i_number
         I_COMPRESS = lv_i_compress
    IMPORTING
         E_SUBRC = lv_e_subrc
    TABLES
         E_T_DATA = lt_e_t_data
. " RSFEC_DATA_READ




ABAP code using 7.40 inline data declarations to call FM RSFEC_DATA_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.

"SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
 
"SELECT single CHECKDATE FROM RSFEC INTO @DATA(ld_i_from_date).
DATA(ld_i_from_date) = ' '.
 
"SELECT single CHECKDATE FROM RSFEC INTO @DATA(ld_i_to_date).
DATA(ld_i_to_date) = ' '.
 
"SELECT single HOSTNAME FROM RSFEC INTO @DATA(ld_i_hostname).
DATA(ld_i_hostname) = ' '.
 
"SELECT single TYPE FROM RSFEC INTO @DATA(ld_i_number).
DATA(ld_i_number) = ' '.
 
"SELECT single TYPE FROM RSFEC INTO @DATA(ld_i_compress).
DATA(ld_i_compress) = '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!