RFKKRF02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program is used to display the returns history and uses the functionality of the
If you would like to execute this report or see the full code listing simply enter RFKKRF02 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
FPM4 - Display Returns History
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: GPART = Business Partner
Selection Text: KEYR1 = Returns Lot
Selection Text: P_VARI = Display variant
Selection Text: RLANZ = Number of Returns
Selection Text: RLBEL = Return document number
Selection Text: RLGRD = Returns Reason
Selection Text: SUBAP = D .
Selection Text: VKONT = Contract Account
Selection Text: XSTOR = Without Reversed Returns
Selection Text: VTREF = D .
Title: Display returns history
Text Symbol: 001 = Display returns history
Text Symbol: 002 = Select.
Text Symbol: 005 = Data is Being Read
Text Symbol: 006 = Without Reversed Returns
Text Symbol: 100 = One Return
Text Symbol: 101 = &1 Returns
INCLUDE KRF02TOP.
No SAP DATABASE tables are accessed within this REPORT code!
REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 2.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_user_command = g_user_command i_callback_pf_status_set = g_status_set i_save = g_save is_variant = g_variant it_fieldcat = gt_fieldcat[] it_sort = g_sort[] i_grid_title = lv_grid_title TABLES t_outtab = gt_outtab.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_internal_tabname = g_tabname i_structure_name = 'DFKKRH_ENHANCED' i_client_never_display = 'X' CHANGING ct_fieldcat = rt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING * percentage = 30 text = text-005.
FKK_DOC_AUTHORITY_CHECK CALL FUNCTION 'FKK_DOC_AUTHORITY_CHECK' EXPORTING i_begru = loc_begru i_actvt = '03' EXCEPTIONS error_message = 1.
FKK_DOC_AUTHORITY_CHECK CALL FUNCTION 'FKK_DOC_AUTHORITY_CHECK' EXPORTING i_begru = t3-begru i_actvt = '03' EXCEPTIONS error_message = 1.
FKK_FPE0_INIT CALL FUNCTION 'FKK_FPE0_INIT'.
FKK_FPE0_START_TRANSACTION CALL FUNCTION 'FKK_FPE0_START_TRANSACTION' EXPORTING tcode = 'FPE3' opbel = gt_outtab-rlbel EXCEPTIONS OTHERS = 1.
FKK_FPE0_INIT CALL FUNCTION 'FKK_FPE0_INIT'.
FKK_FPE0_START_TRANSACTION CALL FUNCTION 'FKK_FPE0_START_TRANSACTION' EXPORTING tcode = 'FPE3' opbel = gt_outtab-opbel EXCEPTIONS OTHERS = 1.
REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = g_variant i_save = g_save * it_default_fieldcat = IMPORTING e_exit = g_exit es_variant = gx_variant EXCEPTIONS not_found = 2.
BUP_PARTNER_F4 CALL FUNCTION 'BUP_PARTNER_F4' IMPORTING e_partner = ptn EXCEPTIONS OTHERS = 1.
DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = '1000' TABLES dynpfields = dynpfields EXCEPTIONS OTHERS = 1.
REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant.
FKK_FUNC_MODULE_DETERMINE CALL FUNCTION 'FKK_FUNC_MODULE_DETERMINE' EXPORTING i_fbeve = '0200' TABLES t_fbstab = lt_function.
FKK_SAMPLE_0200 IF 1 = 2. CALL FUNCTION 'FKK_SAMPLE_0200'. ENDIF.
FKK_FUNC_MODULE_DETERMINE CALL FUNCTION 'FKK_FUNC_MODULE_DETERMINE' EXPORTING i_fbeve = '0209' TABLES t_fbstab = lt_function.
FKK_SAMPLE_0209 IF 1 = 2. CALL FUNCTION 'FKK_SAMPLE_0209'. ENDIF.
CALL FUNCTION 'FKK_BP_LINE_ITEMS_SEL_LOGICAL' EXPORTING i_vkont = ls_data-vkont IX_VKONT = 'X' i_gpart = ls_data-gpart IX_GPART = 'X' i_opbel = ls_data-opbel IX_OPBEL = 'X' * i_vtref = ls_data-vtref * IX_VTREF = ' ' i_subap = lv_subap IX_SUBAP = 'X' TABLES pt_logfkkop = lt_fkkop.
FKK_GET_APPLICATION CALL FUNCTION 'FKK_GET_APPLICATION' IMPORTING e_applk = lv_applk.
FKK_FUNC_MODULE_DETERMINE CALL FUNCTION 'FKK_FUNC_MODULE_DETERMINE' EXPORTING i_applk = lv_applk i_fbeve = fbeve TABLES t_fbstab = i_fbstab.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.
This will then be available for everyone to easily find by simply searching on the report name RFKKRF02 or its description.