SAP Reports / Programs

RFKKREQEF SAP ABAP Report - Create Earmarked Funds Document for Standing Request







RFKKREQEF is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for As a rule standing requests are valid for several years, earmarked funds on the other hand refer to one fiscal year only...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RFKKREQEF into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

FKKORD2_YEAREND - Create EF for Standing Request


ABAP code to call this SAP report using the submit statement

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.






SUBMIT RFKKREQEF. "Basic submit
SUBMIT RFKKREQEF AND RETURN. "Return to original report after report execution complete
SUBMIT RFKKREQEF VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_BLDAT = D .
Selection Text: P_BUDAT = D .
Selection Text: P_BUKRS = D .
Selection Text: P_GJAHR = D .
Selection Text: P_ORDNR = D .
Selection Text: P_TEST = D .
Title: Create Earmarked Funds Document for Standing Request
Text Symbol: 001 = Create Funds Cmmts for Standing Requests: Test Run
Text Symbol: 002 = Create funds cmmits for standing requests: Update Run
Text Symbol: 003 = Fnds Commt from Standing Request
Text Symbol: 010 = Selections
Text Symbol: 011 = Posting Parameters


INCLUDES used within this REPORT RFKKREQEF

INCLUDE RKASMAWF.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

SFW_GET_SW_STATUS CALL FUNCTION 'SFW_GET_SW_STATUS' EXPORTING switch = 'FICA_EF' IMPORTING status = lv_switch.

FKK_FYC_SCHEDMAN_INIT CALL FUNCTION 'FKK_FYC_SCHEDMAN_INIT' EXPORTING i_repid = sy-repid "report id i_wfitem = wf_witem "parameter of RKASMAWF i_wflist = wf_wlist "parameter of RKASMAWF i_flg_test = p_test "flag for test mode IMPORTING e_f_schedman_key = lv_schedman_key e_f_flg_scma = lv_flg_scma.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = gv_s_log IMPORTING e_log_handle = gv_log_handle EXCEPTIONS OTHERS = 1.

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING i_bukrs = p_bukrs IMPORTING e_t001 = ls_t001.

FMR2_READ_KBLP CALL FUNCTION 'FMR2_READ_KBLP' EXPORTING i_belnr = i_blpos = IMPORTING e_kblk = ls_kblk e_kblp = ls_kblp EXCEPTIONS not_found = 1 OTHERS = 2.

FMR2_READ_KBLP CALL FUNCTION 'FMR2_READ_KBLP' EXPORTING i_belnr = i_blpos = ls_dfkkorderpos-kblpos_tax IMPORTING e_kblp = ls_kblp_tax EXCEPTIONS not_found = 1 OTHERS = 2.

FMR2_READ_KBLE CALL FUNCTION 'FMR2_READ_KBLE' EXPORTING i_belnr = refresh = 'X' TABLES t_kble = lt_kble t_kblew = lt_kblew t_range_blpos = lt_range_blpos.

FKK_ORDER_DUEDATES CALL FUNCTION 'FKK_ORDER_DUEDATES' EXPORTING i_datefrom = lv_startdate i_dateto = lv_enddate i_fkkorderdue = ls_fkkorderdue TABLES t_fkkduedates = lt_duedates.

CONVERSION_EXIT_ABPSP_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT' EXPORTING input = ls_fkkorderpos-ps_psp_pnr IMPORTING output = ls_posdata-posid.

FM_FIPOS_GET_FROM_FIPEX * CALL FUNCTION 'FM_FIPOS_GET_FROM_FIPEX' * EXPORTING * i_fipex = * IMPORTING * e_fipos = ls_posdata-fipos * EXCEPTIONS * error_message = 1.

FKK_TAX_CALC_FROM_NET_AMOUNT CALL FUNCTION 'FKK_TAX_CALC_FROM_NET_AMOUNT' IMPORTING e_calc_from_net = l_xtaxn.

FKK_TAX_LINES_CREATE CALL FUNCTION 'FKK_TAX_LINES_CREATE' EXPORTING i_applk = ls_dfkkorder-applk i_waers = ls_dfkkorder-currency i_bukrs = ls_dfkkorderpos-bukrs_bp i_betrw = ls_dfkkorderpos-betrw i_mwskz = ls_dfkkorderpos-mwskz i_txjcd = ls_dfkkorderpos-txjcd i_xnett = l_xtaxn TABLES t_taxlines = lt_taxlines.

FKK_FUNC_MODULE_DETERMINE CALL FUNCTION 'FKK_FUNC_MODULE_DETERMINE' EXPORTING i_fbeve = '6531' i_applk = ls_dfkkorder-applk TABLES t_fbstab = lt_fbstab EXCEPTIONS error_message = 1 OTHERS = 2.

FKK_SAMPLE_6531 CALL FUNCTION 'FKK_SAMPLE_6531'.

FM_FIPOS_GET_FROM_FIPEX * CALL FUNCTION 'FM_FIPOS_GET_FROM_FIPEX' * EXPORTING * i_fipex = * IMPORTING * e_fipos = ls_posdata_old-fipos * EXCEPTIONS * error_message = 1.

FMFR_CREATE_FROM_DATA * CALL FUNCTION 'FMFR_CREATE_FROM_DATA' * EXPORTING * i_flg_checkonly = p_test * i_flg_commit = 'X' * TABLES * t_posdata = lt_posdata_old "HW1683874 HJR * CHANGING * c_f_headdata = ls_headdata * EXCEPTIONS * doctype_not_allowed = 1 * error_occured = 2 * OTHERS = 3.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = lt_mesg.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = gv_s_display_profile i_t_log_handle = gv_t_log_handle EXCEPTIONS OTHERS = 1.

FKK_FYC_SCHEDMAN_CLOSE





CALL FUNCTION 'FKK_FYC_SCHEDMAN_CLOSE' EXPORTING i_f_schedman_key = lv_schedman_key "obtained from schedman init i_f_flg_scma = lv_flg_scma i_wfitem = wf_witem "parameter of RKASMAWF i_wfokey = wf_okey "parameter of RKASMAWF i_aplstat = lv_aplstat. "result filled

FKK_ORDER_MULTIDOC CALL FUNCTION 'FKK_ORDER_MULTIDOC' EXPORTING i_applk = ls_fkkorder-applk i_ordtyp = ls_fkkorder-ordtyp IMPORTING e_xmultidoc = ls_control-xmultidoc.

FKK_ORDER_POST CALL FUNCTION 'FKK_ORDER_POST' EXPORTING i_control = ls_control i_fkkorder = ls_fkkorder i_fkkorder_old = ls_fkkorder_old i_xreqef = 'X' "1780281 TABLES t_fkkorderpos = lt_fkkorderpos t_fkkorderdue = lt_fkkorderdue t_fkkorderpos_old = lt_fkkorderpos_old t_fkkorderdue_old = lt_fkkorderdue_old return = lt_return.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING * I_LOG_HANDLE = i_s_msg = l_s_msg EXCEPTIONS log_not_found = 0 OTHERS = 1.



Contribute (Add Comments)

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 RFKKREQEF or its description.