SAP ALV_DBEXPORT_RFCDATA Function Module for
ALV_DBEXPORT_RFCDATA is a standard alv dbexport rfcdata 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 alv dbexport rfcdata FM, simply by entering the name ALV_DBEXPORT_RFCDATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: SKBW
Program Name: SAPLSKBW
Main Program: SAPLSKBW
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ALV_DBEXPORT_RFCDATA 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 'ALV_DBEXPORT_RFCDATA'".
EXPORTING
* I_REQUEST = "
HASH = "Hash
I_RETURN_MIMETYPE = "
* I_TEMPLATE_FILESIZE = "
* I_EXPIRES_TIME = "Field of type TIMS
* I_EXPIRES_DATE = "Field of Type DATS
* I_OBJECTID = "Object ID
I_KEEP_OUTPUT = "
REPID = "ABAP Program: Current Main Program
DISVARIANT = "Layout (External Use)
IMPORTING
E_URL = "
E_INSTANCEID = "Natural Number
E_OBJECTID = "Object ID
TABLES
IT_SELECTION_TABLE = "ABAP: General Structure for PARAMETERS and SELECT-OPTIONS
IT_TEXTPOOL = "ALV Control: Text Pool
IT_ENVIRON = "ALV Control: Text Pool
ET_TEXT = "Text tabelle ( ALV batch)
ET_BINARY = "
IT_MIME_MAPPING = "MIME type mapping
ET_OUTPUT_FILES = "Output files
IT_AQSELFIELDS = "SAP Query (L): Parameter / Select-Option name
IT_AQFAFIELDLIST = "SAP Query (L): Functional area field list
IT_AQRQFIELDLIST = "SAP Query (L): Field list of a query (technical)
IT_LISTDESC = "SAP Query (L): Field Description for Lists
IT_FPAIRS = "SAP Query (L): Amount/Unit Pairs
IT_TEMPLATE = "
IT_LDATA = "
IT_CONVEXITS = "Subset of DFIES (Conversion Exits)
EXCEPTIONS
TEMPLATE_NOT_FOUND = 1 OBJECTID_INVALID = 10 TEMPLATE_INVALID = 2 REQUEST_INVALID = 3 TYPE_INVALID = 4 PARAMETERS_INVALID = 5 DATA_INVALID = 6 DATA_UNAVAILABLE = 7 SYSTEM_UNAVAILABLE = 8 ERROR = 9
IMPORTING Parameters details for ALV_DBEXPORT_RFCDATA
I_REQUEST -
Data type: CHAR128Optional: Yes
Call by Reference: No ( called with pass by value option)
HASH - Hash
Data type: LVC_HASHOptional: No
Call by Reference: Yes
I_RETURN_MIMETYPE -
Data type: W3CONTTYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_TEMPLATE_FILESIZE -
Data type: W3CONTLENOptional: Yes
Call by Reference: No ( called with pass by value option)
I_EXPIRES_TIME - Field of type TIMS
Data type: TIMSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_EXPIRES_DATE - Field of Type DATS
Data type: DATSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJECTID - Object ID
Data type: CHAR255Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KEEP_OUTPUT -
Data type: FLAGOptional: No
Call by Reference: No ( called with pass by value option)
REPID - ABAP Program: Current Main Program
Data type: SYREPIDOptional: No
Call by Reference: No ( called with pass by value option)
DISVARIANT - Layout (External Use)
Data type: SLIS_VARIOptional: No
Call by Reference: Yes
EXPORTING Parameters details for ALV_DBEXPORT_RFCDATA
E_URL -
Data type: CHAR1024Optional: No
Call by Reference: No ( called with pass by value option)
E_INSTANCEID - Natural Number
Data type: CHAR255Optional: No
Call by Reference: No ( called with pass by value option)
E_OBJECTID - Object ID
Data type: CHAR255Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ALV_DBEXPORT_RFCDATA
IT_SELECTION_TABLE - ABAP: General Structure for PARAMETERS and SELECT-OPTIONS
Data type: RSPARAMSOptional: No
Call by Reference: No ( called with pass by value option)
IT_TEXTPOOL - ALV Control: Text Pool
Data type: LVC_S_TXTPOptional: No
Call by Reference: No ( called with pass by value option)
IT_ENVIRON - ALV Control: Text Pool
Data type: LVC_S_TXTPOptional: No
Call by Reference: No ( called with pass by value option)
ET_TEXT - Text tabelle ( ALV batch)
Data type: W3HTMLOptional: No
Call by Reference: No ( called with pass by value option)
ET_BINARY -
Data type: W3MIMEOptional: No
Call by Reference: No ( called with pass by value option)
IT_MIME_MAPPING - MIME type mapping
Data type: LVC_S_MIMAOptional: No
Call by Reference: No ( called with pass by value option)
ET_OUTPUT_FILES - Output files
Data type: LVC_S_FILSOptional: No
Call by Reference: No ( called with pass by value option)
IT_AQSELFIELDS - SAP Query (L): Parameter / Select-Option name
Data type: RSAQSPNAMEOptional: No
Call by Reference: No ( called with pass by value option)
IT_AQFAFIELDLIST - SAP Query (L): Functional area field list
Data type: RSAQRFLISTOptional: No
Call by Reference: No ( called with pass by value option)
IT_AQRQFIELDLIST - SAP Query (L): Field list of a query (technical)
Data type: RSAQRQLISTOptional: No
Call by Reference: No ( called with pass by value option)
IT_LISTDESC - SAP Query (L): Field Description for Lists
Data type: RSAQLDESCOptional: No
Call by Reference: No ( called with pass by value option)
IT_FPAIRS - SAP Query (L): Amount/Unit Pairs
Data type: RSAQFPAIRSOptional: No
Call by Reference: No ( called with pass by value option)
IT_TEMPLATE -
Data type: BAPICONTENOptional: No
Call by Reference: No ( called with pass by value option)
IT_LDATA -
Data type: RSAQLDATAOptional: No
Call by Reference: No ( called with pass by value option)
IT_CONVEXITS - Subset of DFIES (Conversion Exits)
Data type: LVCDINCLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TEMPLATE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECTID_INVALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEMPLATE_INVALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REQUEST_INVALID - Request contains errors
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TYPE_INVALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETERS_INVALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATA_INVALID - Data Invalid
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATA_UNAVAILABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_UNAVAILABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR - Unspecified error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ALV_DBEXPORT_RFCDATA 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_url | TYPE CHAR1024, " | |||
lv_i_request | TYPE CHAR128, " | |||
lt_it_selection_table | TYPE STANDARD TABLE OF RSPARAMS, " | |||
lv_template_not_found | TYPE RSPARAMS, " | |||
lv_hash | TYPE LVC_HASH, " | |||
lt_it_textpool | TYPE STANDARD TABLE OF LVC_S_TXTP, " | |||
lv_objectid_invalid | TYPE LVC_S_TXTP, " | |||
lt_it_environ | TYPE STANDARD TABLE OF LVC_S_TXTP, " | |||
lt_et_text | TYPE STANDARD TABLE OF W3HTML, " | |||
lt_et_binary | TYPE STANDARD TABLE OF W3MIME, " | |||
lt_it_mime_mapping | TYPE STANDARD TABLE OF LVC_S_MIMA, " | |||
lt_et_output_files | TYPE STANDARD TABLE OF LVC_S_FILS, " | |||
lv_e_instanceid | TYPE CHAR255, " | |||
lt_it_aqselfields | TYPE STANDARD TABLE OF RSAQSPNAME, " | |||
lv_template_invalid | TYPE RSAQSPNAME, " | |||
lv_i_return_mimetype | TYPE W3CONTTYPE, " | |||
lv_e_objectid | TYPE CHAR255, " | |||
lv_request_invalid | TYPE CHAR255, " | |||
lt_it_aqfafieldlist | TYPE STANDARD TABLE OF RSAQRFLIST, " | |||
lv_i_template_filesize | TYPE W3CONTLEN, " | |||
lv_type_invalid | TYPE W3CONTLEN, " | |||
lv_i_expires_time | TYPE TIMS, " | |||
lt_it_aqrqfieldlist | TYPE STANDARD TABLE OF RSAQRQLIST, " | |||
lt_it_listdesc | TYPE STANDARD TABLE OF RSAQLDESC, " | |||
lv_i_expires_date | TYPE DATS, " | |||
lv_parameters_invalid | TYPE DATS, " | |||
lt_it_fpairs | TYPE STANDARD TABLE OF RSAQFPAIRS, " | |||
lv_i_objectid | TYPE CHAR255, " | |||
lv_data_invalid | TYPE CHAR255, " | |||
lt_it_template | TYPE STANDARD TABLE OF BAPICONTEN, " | |||
lv_i_keep_output | TYPE FLAG, " | |||
lv_data_unavailable | TYPE FLAG, " | |||
lv_repid | TYPE SYREPID, " | |||
lt_it_ldata | TYPE STANDARD TABLE OF RSAQLDATA, " | |||
lv_system_unavailable | TYPE RSAQLDATA, " | |||
lv_error | TYPE RSAQLDATA, " | |||
lv_disvariant | TYPE SLIS_VARI, " | |||
lt_it_convexits | TYPE STANDARD TABLE OF LVCDINCL. " |
  CALL FUNCTION 'ALV_DBEXPORT_RFCDATA' " |
EXPORTING | ||
I_REQUEST | = lv_i_request | |
HASH | = lv_hash | |
I_RETURN_MIMETYPE | = lv_i_return_mimetype | |
I_TEMPLATE_FILESIZE | = lv_i_template_filesize | |
I_EXPIRES_TIME | = lv_i_expires_time | |
I_EXPIRES_DATE | = lv_i_expires_date | |
I_OBJECTID | = lv_i_objectid | |
I_KEEP_OUTPUT | = lv_i_keep_output | |
REPID | = lv_repid | |
DISVARIANT | = lv_disvariant | |
IMPORTING | ||
E_URL | = lv_e_url | |
E_INSTANCEID | = lv_e_instanceid | |
E_OBJECTID | = lv_e_objectid | |
TABLES | ||
IT_SELECTION_TABLE | = lt_it_selection_table | |
IT_TEXTPOOL | = lt_it_textpool | |
IT_ENVIRON | = lt_it_environ | |
ET_TEXT | = lt_et_text | |
ET_BINARY | = lt_et_binary | |
IT_MIME_MAPPING | = lt_it_mime_mapping | |
ET_OUTPUT_FILES | = lt_et_output_files | |
IT_AQSELFIELDS | = lt_it_aqselfields | |
IT_AQFAFIELDLIST | = lt_it_aqfafieldlist | |
IT_AQRQFIELDLIST | = lt_it_aqrqfieldlist | |
IT_LISTDESC | = lt_it_listdesc | |
IT_FPAIRS | = lt_it_fpairs | |
IT_TEMPLATE | = lt_it_template | |
IT_LDATA | = lt_it_ldata | |
IT_CONVEXITS | = lt_it_convexits | |
EXCEPTIONS | ||
TEMPLATE_NOT_FOUND = 1 | ||
OBJECTID_INVALID = 10 | ||
TEMPLATE_INVALID = 2 | ||
REQUEST_INVALID = 3 | ||
TYPE_INVALID = 4 | ||
PARAMETERS_INVALID = 5 | ||
DATA_INVALID = 6 | ||
DATA_UNAVAILABLE = 7 | ||
SYSTEM_UNAVAILABLE = 8 | ||
ERROR = 9 | ||
. " ALV_DBEXPORT_RFCDATA |
ABAP code using 7.40 inline data declarations to call FM ALV_DBEXPORT_RFCDATA
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