SAP REPORT_EXPORT Function Module for
REPORT_EXPORT is a standard report export 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 report export FM, simply by entering the name REPORT_EXPORT into the relevant SAP transaction such as SE37 or SE38.
Function Group: KYP2
Program Name: SAPLKYP2
Main Program: SAPLKYP2
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function REPORT_EXPORT 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 'REPORT_EXPORT'".
EXPORTING
* CODE = 'EX' "Code
* COMMIT = ' ' "'Commit Work' should be executed
I_RKB1D = "
I_RKB1F = "Field string RKB1F
I_RKB1X = "Field string RKB1E
I_T_LCOL = "
TABLES
I_ADD_TAB0 = "Table ADD_TAB0
I_PORT_TAB = "Table for portfolio graphics
I_PRINT = "Table PRINT
I_PS_TAB = "Table PS_TAB
I_SEIG = "Table SEIG
I_SEL_TAB = "Table SEL_TAB
I_SF_TAB = "
I_SH_TAB = "
I_SORT_TAB = "Table SORT_TAB
I_SUMM_TAB = "Table SUMM_TAB
I_TEXTPARAM_TAB = "Table TEXTPARAM_TAB
I_BACK_TAB = "Table BACK_TAB
I_TRACE_TAB = "Table TRACE_TAB
I_VAR_TAB = "Table REPLACE_TAB
I_ZAHLD_TAB = "Table ZAHLD_TAB
I_ZWERT = "Table ZWERT
I_BED_TAB = "
I_EXCEP_TAB = "Table EXCEP_TAB (Exception Reporting)
I_EXTXT_TAB = "Table with indicators for exceptions
I_FORM_TAB = "Table FORM_TAB
I_LEVEL_TAB = "Table LEVEL_TAB (Exception Reporting)
I_LRECH = "Table LRECH
I_OPTIONS = "
IMPORTING Parameters details for REPORT_EXPORT
CODE - Code
Data type: CFCODES-M_EXPORTDefault: 'EX'
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMIT - 'Commit Work' should be executed
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RKB1D -
Data type: RKB1DOptional: No
Call by Reference: No ( called with pass by value option)
I_RKB1F - Field string RKB1F
Data type: RKB1FOptional: No
Call by Reference: No ( called with pass by value option)
I_RKB1X - Field string RKB1E
Data type: RKB1XOptional: No
Call by Reference: No ( called with pass by value option)
I_T_LCOL -
Data type: RKD_T_LCOLOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for REPORT_EXPORT
I_ADD_TAB0 - Table ADD_TAB0
Data type: CFBA001Optional: No
Call by Reference: No ( called with pass by value option)
I_PORT_TAB - Table for portfolio graphics
Data type: CFALLAREAOptional: No
Call by Reference: No ( called with pass by value option)
I_PRINT - Table PRINT
Data type: CFBPR01Optional: No
Call by Reference: No ( called with pass by value option)
I_PS_TAB - Table PS_TAB
Data type: CFBPS01Optional: No
Call by Reference: No ( called with pass by value option)
I_SEIG - Table SEIG
Data type: CFBSE01Optional: No
Call by Reference: No ( called with pass by value option)
I_SEL_TAB - Table SEL_TAB
Data type: CEDSTOptional: No
Call by Reference: No ( called with pass by value option)
I_SF_TAB -
Data type: CFBSF01Optional: No
Call by Reference: No ( called with pass by value option)
I_SH_TAB -
Data type: CFBSH01Optional: No
Call by Reference: No ( called with pass by value option)
I_SORT_TAB - Table SORT_TAB
Data type: CFSORTOptional: No
Call by Reference: No ( called with pass by value option)
I_SUMM_TAB - Table SUMM_TAB
Data type: CFBSR01Optional: No
Call by Reference: No ( called with pass by value option)
I_TEXTPARAM_TAB - Table TEXTPARAM_TAB
Data type: CFBTP01Optional: No
Call by Reference: No ( called with pass by value option)
I_BACK_TAB - Table BACK_TAB
Data type: CFBACKOptional: No
Call by Reference: No ( called with pass by value option)
I_TRACE_TAB - Table TRACE_TAB
Data type: CFTRACEOptional: No
Call by Reference: No ( called with pass by value option)
I_VAR_TAB - Table REPLACE_TAB
Data type: CFBVP01Optional: No
Call by Reference: No ( called with pass by value option)
I_ZAHLD_TAB - Table ZAHLD_TAB
Data type: CFBZD01Optional: No
Call by Reference: No ( called with pass by value option)
I_ZWERT - Table ZWERT
Data type: CFBZW01Optional: No
Call by Reference: No ( called with pass by value option)
I_BED_TAB -
Data type: CFBBE01Optional: No
Call by Reference: No ( called with pass by value option)
I_EXCEP_TAB - Table EXCEP_TAB (Exception Reporting)
Data type: CFEXCEPTABOptional: No
Call by Reference: No ( called with pass by value option)
I_EXTXT_TAB - Table with indicators for exceptions
Data type: CFEXTXTTABOptional: No
Call by Reference: No ( called with pass by value option)
I_FORM_TAB - Table FORM_TAB
Data type: CFBFO01Optional: No
Call by Reference: No ( called with pass by value option)
I_LEVEL_TAB - Table LEVEL_TAB (Exception Reporting)
Data type: CFLEVELTABOptional: No
Call by Reference: No ( called with pass by value option)
I_LRECH - Table LRECH
Data type: CFBLR01Optional: No
Call by Reference: No ( called with pass by value option)
I_OPTIONS -
Data type: CFOPTTABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for REPORT_EXPORT 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_code | TYPE CFCODES-M_EXPORT, " 'EX' | |||
| lt_i_add_tab0 | TYPE STANDARD TABLE OF CFBA001, " | |||
| lt_i_port_tab | TYPE STANDARD TABLE OF CFALLAREA, " | |||
| lt_i_print | TYPE STANDARD TABLE OF CFBPR01, " | |||
| lt_i_ps_tab | TYPE STANDARD TABLE OF CFBPS01, " | |||
| lt_i_seig | TYPE STANDARD TABLE OF CFBSE01, " | |||
| lt_i_sel_tab | TYPE STANDARD TABLE OF CEDST, " | |||
| lt_i_sf_tab | TYPE STANDARD TABLE OF CFBSF01, " | |||
| lt_i_sh_tab | TYPE STANDARD TABLE OF CFBSH01, " | |||
| lt_i_sort_tab | TYPE STANDARD TABLE OF CFSORT, " | |||
| lt_i_summ_tab | TYPE STANDARD TABLE OF CFBSR01, " | |||
| lt_i_textparam_tab | TYPE STANDARD TABLE OF CFBTP01, " | |||
| lv_commit | TYPE C, " SPACE | |||
| lt_i_back_tab | TYPE STANDARD TABLE OF CFBACK, " | |||
| lt_i_trace_tab | TYPE STANDARD TABLE OF CFTRACE, " | |||
| lt_i_var_tab | TYPE STANDARD TABLE OF CFBVP01, " | |||
| lt_i_zahld_tab | TYPE STANDARD TABLE OF CFBZD01, " | |||
| lt_i_zwert | TYPE STANDARD TABLE OF CFBZW01, " | |||
| lv_i_rkb1d | TYPE RKB1D, " | |||
| lt_i_bed_tab | TYPE STANDARD TABLE OF CFBBE01, " | |||
| lv_i_rkb1f | TYPE RKB1F, " | |||
| lt_i_excep_tab | TYPE STANDARD TABLE OF CFEXCEPTAB, " | |||
| lv_i_rkb1x | TYPE RKB1X, " | |||
| lt_i_extxt_tab | TYPE STANDARD TABLE OF CFEXTXTTAB, " | |||
| lv_i_t_lcol | TYPE RKD_T_LCOL, " | |||
| lt_i_form_tab | TYPE STANDARD TABLE OF CFBFO01, " | |||
| lt_i_level_tab | TYPE STANDARD TABLE OF CFLEVELTAB, " | |||
| lt_i_lrech | TYPE STANDARD TABLE OF CFBLR01, " | |||
| lt_i_options | TYPE STANDARD TABLE OF CFOPTTAB. " |
|   CALL FUNCTION 'REPORT_EXPORT' " |
| EXPORTING | ||
| CODE | = lv_code | |
| COMMIT | = lv_commit | |
| I_RKB1D | = lv_i_rkb1d | |
| I_RKB1F | = lv_i_rkb1f | |
| I_RKB1X | = lv_i_rkb1x | |
| I_T_LCOL | = lv_i_t_lcol | |
| TABLES | ||
| I_ADD_TAB0 | = lt_i_add_tab0 | |
| I_PORT_TAB | = lt_i_port_tab | |
| I_PRINT | = lt_i_print | |
| I_PS_TAB | = lt_i_ps_tab | |
| I_SEIG | = lt_i_seig | |
| I_SEL_TAB | = lt_i_sel_tab | |
| I_SF_TAB | = lt_i_sf_tab | |
| I_SH_TAB | = lt_i_sh_tab | |
| I_SORT_TAB | = lt_i_sort_tab | |
| I_SUMM_TAB | = lt_i_summ_tab | |
| I_TEXTPARAM_TAB | = lt_i_textparam_tab | |
| I_BACK_TAB | = lt_i_back_tab | |
| I_TRACE_TAB | = lt_i_trace_tab | |
| I_VAR_TAB | = lt_i_var_tab | |
| I_ZAHLD_TAB | = lt_i_zahld_tab | |
| I_ZWERT | = lt_i_zwert | |
| I_BED_TAB | = lt_i_bed_tab | |
| I_EXCEP_TAB | = lt_i_excep_tab | |
| I_EXTXT_TAB | = lt_i_extxt_tab | |
| I_FORM_TAB | = lt_i_form_tab | |
| I_LEVEL_TAB | = lt_i_level_tab | |
| I_LRECH | = lt_i_lrech | |
| I_OPTIONS | = lt_i_options | |
| . " REPORT_EXPORT | ||
ABAP code using 7.40 inline data declarations to call FM REPORT_EXPORT
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 M_EXPORT FROM CFCODES INTO @DATA(ld_code). | ||||
| DATA(ld_code) | = 'EX'. | |||
| DATA(ld_commit) | = ' '. | |||
Search for further information about these or an SAP related objects