SAP RKD_REPORT_IMPORT Function Module for
RKD_REPORT_IMPORT is a standard rkd report import 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 rkd report import FM, simply by entering the name RKD_REPORT_IMPORT 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 RKD_REPORT_IMPORT 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 'RKD_REPORT_IMPORT'".
EXPORTING
* I_MANDT = SY-MANDT "
* IMPORT_MODE = '0' "Entire documentation in
* IMPORT_MESSAGE_TYP = 'S' "Error
* IMPORT_ENQUEUE_FLAG = 'X' "
* CHECK_MESSAGE_SEVERITY = 16 "
* CHECK_MESSAGE_TYP = ' ' "
* GENERATE_NEWGEN = '0' "
* GENERATE_SUPPRESS = ' ' "
IMPORTING
E_IMPORT_STATUS = "
E_CHECK_STATUS = "
E_GENERATE_STATUS = "
E_RKB1F = "
E_RKB1U = "
E_T_LCOL = "
CHANGING
C_RKB1X = "
C_RKB1D = "
TABLES
* E_ADD_TAB0 = "Table ADD_TABO
* E_PORT_TAB = "Table for portfolio graphics
* E_PRINT = "Table PRINT
* E_PS_TAB = "Table PS_TAB
* E_SEIG = "Table SEIG
* E_SEL_TAB = "Table SEL_TAB
* E_SF_TAB = "
* E_SH_TAB = "
* E_SORT_TAB = "Table SORT_TAB
* E_SUMM_TAB = "Table SUMM_TAB
* E_TEXTPARAM_TAB = "Table TEXTPARAM_TAB
* E_BACK_TAB = "Table BACK_TAB
* E_TRACE_TAB = "Table TRACE_TAB
* E_VAR_TAB = "Table REPLACE_TAB
* E_ZAHLD_TAB = "Table ZAHLD_TAB
* E_ZWERT = "Table ZWERT
* E_FIELD_TAB = "
* E_FDEP_TAB = "
* E_BED_TAB = "
* E_EXCEP_TAB = "Table EXCEP_TAB (Exception Reporting)
* E_EXTXT_TAB = "Text table for the reports
* E_FORM_TAB = "Table FORM_TAB
* E_LEVEL_TAB = "Table LEVEL_TAB (Exception Reporting)
* E_LRECH = "Table LRECH
* E_OPTIONS = "Option table for the graphics
IMPORTING Parameters details for RKD_REPORT_IMPORT
I_MANDT -
Data type: SY-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
IMPORT_MODE - Entire documentation in
Data type: T_BOOLDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IMPORT_MESSAGE_TYP - Error
Data type: MESG-MSGTYDefault: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IMPORT_ENQUEUE_FLAG -
Data type: T_BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_MESSAGE_SEVERITY -
Data type: SY-SUBRCDefault: 16
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_MESSAGE_TYP -
Data type: MESG-MSGTYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
GENERATE_NEWGEN -
Data type: RKB1F-NEWGENDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GENERATE_SUPPRESS -
Data type: T_BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RKD_REPORT_IMPORT
E_IMPORT_STATUS -
Data type: RKD2_S_IMPORT_STATUSOptional: No
Call by Reference: No ( called with pass by value option)
E_CHECK_STATUS -
Data type: RKD2_S_CHECK_STATUSOptional: No
Call by Reference: No ( called with pass by value option)
E_GENERATE_STATUS -
Data type: RKD2_S_GENERATE_STATUSOptional: No
Call by Reference: No ( called with pass by value option)
E_RKB1F -
Data type: RKB1FOptional: No
Call by Reference: No ( called with pass by value option)
E_RKB1U -
Data type: RKB1UOptional: No
Call by Reference: No ( called with pass by value option)
E_T_LCOL -
Data type: RKD_T_LCOLOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for RKD_REPORT_IMPORT
C_RKB1X -
Data type: RKB1XOptional: No
Call by Reference: No ( called with pass by value option)
C_RKB1D -
Data type: RKB1DOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RKD_REPORT_IMPORT
E_ADD_TAB0 - Table ADD_TABO
Data type: CFBA001Optional: Yes
Call by Reference: No ( called with pass by value option)
E_PORT_TAB - Table for portfolio graphics
Data type: CFALLAREAOptional: Yes
Call by Reference: No ( called with pass by value option)
E_PRINT - Table PRINT
Data type: CFBPR01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_PS_TAB - Table PS_TAB
Data type: CFBPS01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_SEIG - Table SEIG
Data type: CFBSE01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_SEL_TAB - Table SEL_TAB
Data type: CEDSTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_SF_TAB -
Data type: CFBSF01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_SH_TAB -
Data type: CFBSH01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_SORT_TAB - Table SORT_TAB
Data type: CFSORTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_SUMM_TAB - Table SUMM_TAB
Data type: CFBSR01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_TEXTPARAM_TAB - Table TEXTPARAM_TAB
Data type: CFBTP01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_BACK_TAB - Table BACK_TAB
Data type: CFBACKOptional: Yes
Call by Reference: No ( called with pass by value option)
E_TRACE_TAB - Table TRACE_TAB
Data type: CFTRACEOptional: Yes
Call by Reference: No ( called with pass by value option)
E_VAR_TAB - Table REPLACE_TAB
Data type: CFBVP01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_ZAHLD_TAB - Table ZAHLD_TAB
Data type: CFBZD01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_ZWERT - Table ZWERT
Data type: CFBZW01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_FIELD_TAB -
Data type: CDIFIEOptional: Yes
Call by Reference: No ( called with pass by value option)
E_FDEP_TAB -
Data type: CDIDEPOptional: Yes
Call by Reference: No ( called with pass by value option)
E_BED_TAB -
Data type: CFBBE01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_EXCEP_TAB - Table EXCEP_TAB (Exception Reporting)
Data type: CFEXCEPTABOptional: Yes
Call by Reference: No ( called with pass by value option)
E_EXTXT_TAB - Text table for the reports
Data type: CFEXTXTTABOptional: Yes
Call by Reference: No ( called with pass by value option)
E_FORM_TAB - Table FORM_TAB
Data type: CFBFO01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_LEVEL_TAB - Table LEVEL_TAB (Exception Reporting)
Data type: CFLEVELTABOptional: Yes
Call by Reference: No ( called with pass by value option)
E_LRECH - Table LRECH
Data type: CFBLR01Optional: Yes
Call by Reference: No ( called with pass by value option)
E_OPTIONS - Option table for the graphics
Data type: CFOPTTABOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RKD_REPORT_IMPORT 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_c_rkb1x | TYPE RKB1X, " | |||
lv_i_mandt | TYPE SY-MANDT, " SY-MANDT | |||
lt_e_add_tab0 | TYPE STANDARD TABLE OF CFBA001, " | |||
lv_e_import_status | TYPE RKD2_S_IMPORT_STATUS, " | |||
lt_e_port_tab | TYPE STANDARD TABLE OF CFALLAREA, " | |||
lt_e_print | TYPE STANDARD TABLE OF CFBPR01, " | |||
lt_e_ps_tab | TYPE STANDARD TABLE OF CFBPS01, " | |||
lt_e_seig | TYPE STANDARD TABLE OF CFBSE01, " | |||
lt_e_sel_tab | TYPE STANDARD TABLE OF CEDST, " | |||
lt_e_sf_tab | TYPE STANDARD TABLE OF CFBSF01, " | |||
lt_e_sh_tab | TYPE STANDARD TABLE OF CFBSH01, " | |||
lt_e_sort_tab | TYPE STANDARD TABLE OF CFSORT, " | |||
lt_e_summ_tab | TYPE STANDARD TABLE OF CFBSR01, " | |||
lt_e_textparam_tab | TYPE STANDARD TABLE OF CFBTP01, " | |||
lv_c_rkb1d | TYPE RKB1D, " | |||
lt_e_back_tab | TYPE STANDARD TABLE OF CFBACK, " | |||
lv_import_mode | TYPE T_BOOL, " '0' | |||
lv_e_check_status | TYPE RKD2_S_CHECK_STATUS, " | |||
lt_e_trace_tab | TYPE STANDARD TABLE OF CFTRACE, " | |||
lt_e_var_tab | TYPE STANDARD TABLE OF CFBVP01, " | |||
lt_e_zahld_tab | TYPE STANDARD TABLE OF CFBZD01, " | |||
lt_e_zwert | TYPE STANDARD TABLE OF CFBZW01, " | |||
lt_e_field_tab | TYPE STANDARD TABLE OF CDIFIE, " | |||
lt_e_fdep_tab | TYPE STANDARD TABLE OF CDIDEP, " | |||
lt_e_bed_tab | TYPE STANDARD TABLE OF CFBBE01, " | |||
lv_e_generate_status | TYPE RKD2_S_GENERATE_STATUS, " | |||
lv_import_message_typ | TYPE MESG-MSGTY, " 'S' | |||
lv_e_rkb1f | TYPE RKB1F, " | |||
lt_e_excep_tab | TYPE STANDARD TABLE OF CFEXCEPTAB, " | |||
lv_import_enqueue_flag | TYPE T_BOOL, " 'X' | |||
lv_e_rkb1u | TYPE RKB1U, " | |||
lt_e_extxt_tab | TYPE STANDARD TABLE OF CFEXTXTTAB, " | |||
lv_check_message_severity | TYPE SY-SUBRC, " 16 | |||
lv_e_t_lcol | TYPE RKD_T_LCOL, " | |||
lt_e_form_tab | TYPE STANDARD TABLE OF CFBFO01, " | |||
lv_check_message_typ | TYPE MESG-MSGTY, " SPACE | |||
lt_e_level_tab | TYPE STANDARD TABLE OF CFLEVELTAB, " | |||
lv_generate_newgen | TYPE RKB1F-NEWGEN, " '0' | |||
lt_e_lrech | TYPE STANDARD TABLE OF CFBLR01, " | |||
lv_generate_suppress | TYPE T_BOOL, " SPACE | |||
lt_e_options | TYPE STANDARD TABLE OF CFOPTTAB. " |
  CALL FUNCTION 'RKD_REPORT_IMPORT' " |
EXPORTING | ||
I_MANDT | = lv_i_mandt | |
IMPORT_MODE | = lv_import_mode | |
IMPORT_MESSAGE_TYP | = lv_import_message_typ | |
IMPORT_ENQUEUE_FLAG | = lv_import_enqueue_flag | |
CHECK_MESSAGE_SEVERITY | = lv_check_message_severity | |
CHECK_MESSAGE_TYP | = lv_check_message_typ | |
GENERATE_NEWGEN | = lv_generate_newgen | |
GENERATE_SUPPRESS | = lv_generate_suppress | |
IMPORTING | ||
E_IMPORT_STATUS | = lv_e_import_status | |
E_CHECK_STATUS | = lv_e_check_status | |
E_GENERATE_STATUS | = lv_e_generate_status | |
E_RKB1F | = lv_e_rkb1f | |
E_RKB1U | = lv_e_rkb1u | |
E_T_LCOL | = lv_e_t_lcol | |
CHANGING | ||
C_RKB1X | = lv_c_rkb1x | |
C_RKB1D | = lv_c_rkb1d | |
TABLES | ||
E_ADD_TAB0 | = lt_e_add_tab0 | |
E_PORT_TAB | = lt_e_port_tab | |
E_PRINT | = lt_e_print | |
E_PS_TAB | = lt_e_ps_tab | |
E_SEIG | = lt_e_seig | |
E_SEL_TAB | = lt_e_sel_tab | |
E_SF_TAB | = lt_e_sf_tab | |
E_SH_TAB | = lt_e_sh_tab | |
E_SORT_TAB | = lt_e_sort_tab | |
E_SUMM_TAB | = lt_e_summ_tab | |
E_TEXTPARAM_TAB | = lt_e_textparam_tab | |
E_BACK_TAB | = lt_e_back_tab | |
E_TRACE_TAB | = lt_e_trace_tab | |
E_VAR_TAB | = lt_e_var_tab | |
E_ZAHLD_TAB | = lt_e_zahld_tab | |
E_ZWERT | = lt_e_zwert | |
E_FIELD_TAB | = lt_e_field_tab | |
E_FDEP_TAB | = lt_e_fdep_tab | |
E_BED_TAB | = lt_e_bed_tab | |
E_EXCEP_TAB | = lt_e_excep_tab | |
E_EXTXT_TAB | = lt_e_extxt_tab | |
E_FORM_TAB | = lt_e_form_tab | |
E_LEVEL_TAB | = lt_e_level_tab | |
E_LRECH | = lt_e_lrech | |
E_OPTIONS | = lt_e_options | |
. " RKD_REPORT_IMPORT |
ABAP code using 7.40 inline data declarations to call FM RKD_REPORT_IMPORT
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 MANDT FROM SY INTO @DATA(ld_i_mandt). | ||||
DATA(ld_i_mandt) | = SY-MANDT. | |||
DATA(ld_import_mode) | = '0'. | |||
"SELECT single MSGTY FROM MESG INTO @DATA(ld_import_message_typ). | ||||
DATA(ld_import_message_typ) | = 'S'. | |||
DATA(ld_import_enqueue_flag) | = 'X'. | |||
"SELECT single SUBRC FROM SY INTO @DATA(ld_check_message_severity). | ||||
DATA(ld_check_message_severity) | = 16. | |||
"SELECT single MSGTY FROM MESG INTO @DATA(ld_check_message_typ). | ||||
DATA(ld_check_message_typ) | = ' '. | |||
"SELECT single NEWGEN FROM RKB1F INTO @DATA(ld_generate_newgen). | ||||
DATA(ld_generate_newgen) | = '0'. | |||
DATA(ld_generate_suppress) | = ' '. | |||
Search for further information about these or an SAP related objects