SAP Reports / Programs | Public Sector Management | Funds Management | Funds Management-Specific Postings(PSM-FM-PO) SAP PSM

RFFMKG01 SAP ABAP Report - Create Posting Documents from Standing Request







RFFMKG01 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program generates posting documents on the basis of the specifications stored in the standing request document...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 RFFMKG01 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

F8Q8 - Create Posting Documents


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 RFFMKG01. "Basic submit
SUBMIT RFFMKG01 AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMKG01 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: STORNO = Reason for rev.:Docs w. errors
Selection Text: P_TESTL = D Test run
Selection Text: LOTKZ = D Request number
Selection Text: BUKRS = D Company code
Selection Text: BENUTZER = D User
Selection Text: AUSFPLAN = D Run schedule
Selection Text: AUSFDATE = D Next run on
Title: Create Posting Documents from Standing Request
Text Symbol: 100 = Display request
Text Symbol: 057 = Selections
Text Symbol: 007 = FI Docs from Standing Req.
Text Symbol: 006 = Error from standing request:
Text Symbol: 005 = Posted from standing request:
Text Symbol: 003 = The following documents cannnot be posted:
Text Symbol: 002 = Posted Docs:
Text Symbol: 001 = No documents selected


INCLUDES used within this REPORT RFFMKG01

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:

FM_FYC_SCHEDMAN_INIT CALL FUNCTION 'FM_FYC_SCHEDMAN_INIT' EXPORTING i_repid = sy-repid "report id i_tcode = 'F8Q8' "transaction code i_wfitem = wf_witem "parameter of RKASMAWF i_wflist = wf_wlist "parameter of RKASMAWF i_flg_test = p_testl "flag for test mode IMPORTING e_f_schedman_key = g_f_schedman_key.

FI_PSO_PSO52_READ CALL FUNCTION 'FI_PSO_PSO52_READ' EXPORTING i_bukrs = x_t_psokpf-bukrs i_blart = x_t_psokpf-blart EXCEPTIONS not_found = 1.

FI_PSO_DOC_TYPE_AUTHORITY CALL FUNCTION 'FI_PSO_DOC_TYPE_AUTHORITY' EXPORTING i_blart = x_t_psokpf-blart.

FI_PSO_BUKRS_AUTH_CHECK CALL FUNCTION 'FI_PSO_BUKRS_AUTH_CHECK' EXPORTING i_act = '10' "con_act_post i_bukrs = x_t_psokpf-bukrs.

ENQUEUE_EPSOKPF CALL FUNCTION 'ENQUEUE_EPSOKPF' EXPORTING lotkz = x_t_psokpf-lotkz bukrs = x_t_psokpf-bukrs gjahr = x_t_psokpf-gjahr.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = g_s_log IMPORTING e_log_handle = g_log_handle EXCEPTIONS OTHERS = 1.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = g_s_display_profile i_t_log_handle = g_t_log_handle EXCEPTIONS OTHERS = 1.

FM_FYC_SCHEDMAN_CLOSE CALL FUNCTION 'FM_FYC_SCHEDMAN_CLOSE' EXPORTING i_f_schedman_key = g_f_schedman_key "obtained from schedman init i_wfitem = wf_witem "parameter of RKASMAWF i_wfokey = wf_okey "parameter of RKASMAWF i_aplstat = g_aplstat. "result filled

FI_PSO_PSOSEGS_READ CALL FUNCTION 'FI_PSO_PSOSEGS_READ' EXPORTING i_lotkz = u_t_psokpf-lotkz i_bukrs = u_t_psokpf-bukrs i_gjahr = u_t_psokpf-gjahr i_itabkey = u_t_psokpf-itabkey TABLES e_t_psosegs = l_t_psosegs.

FI_PSO_PSOSEGA_READ CALL FUNCTION 'FI_PSO_PSOSEGA_READ' EXPORTING i_lotkz = u_t_psokpf-lotkz i_bukrs = u_t_psokpf-bukrs i_gjahr = u_t_psokpf-gjahr i_itabkey = u_t_psokpf-itabkey TABLES e_t_psosega = l_t_psosega.

FI_PSO_PSOSEGK_READ CALL FUNCTION 'FI_PSO_PSOSEGK_READ' EXPORTING i_lotkz = u_t_psokpf-lotkz i_bukrs = u_t_psokpf-bukrs i_gjahr = u_t_psokpf-gjahr i_itabkey = u_t_psokpf-itabkey TABLES e_t_psosegk = l_t_psosegk.

FI_PSO_PSOSEGD_READ CALL FUNCTION 'FI_PSO_PSOSEGD_READ' EXPORTING i_lotkz = u_t_psokpf-lotkz i_bukrs = u_t_psokpf-bukrs i_gjahr = u_t_psokpf-gjahr i_itabkey = u_t_psokpf-itabkey TABLES e_t_psosegd = l_t_psosegd.

FI_PSO_PSOSEC_READ CALL FUNCTION 'FI_PSO_PSOSEC_READ' EXPORTING i_lotkz = u_t_psokpf-lotkz i_bukrs = u_t_psokpf-bukrs i_gjahr = u_t_psokpf-gjahr i_itabkey = u_t_psokpf-itabkey TABLES e_t_psosec = c_t_psosec EXCEPTIONS not_found = 1 OTHERS = 2.

FI_PSO_TAX_MODE_DETERMINE CALL FUNCTION 'FI_PSO_TAX_MODE_DETERMINE' EXPORTING i_bukrs = u_t_psokpf-bukrs IMPORTING e_tax_mode = l_tax_mode.

FUNC_AREA_CONVERSION_OUTBOUND CALL FUNCTION 'FUNC_AREA_CONVERSION_OUTBOUND' EXPORTING i_func_area_long = u_t_psoseg-fkber IMPORTING e_func_area = c_t_bbseg-fkber e_func_area_long = c_t_bbseg-fkber_long.

FUNC_AREA_CONVERSION_OUTBOUND CALL FUNCTION 'FUNC_AREA_CONVERSION_OUTBOUND' EXPORTING i_func_area_long = u_t_psoseg-fkber IMPORTING e_func_area = c_t_bbseg-fkber e_func_area_long = c_t_bbseg-fkber_long.

FI_PSO_POSTING_KEY_DETERMINE CALL FUNCTION 'FI_PSO_POSTING_KEY_DETERMINE' EXPORTING i_koart = 'S' i_umskz = space i_shkzg = u_t_psoset-shkzg CHANGING c_bschl = c_t_bbtax-bschl.

MESSAGE_PREPARE





CALL FUNCTION 'MESSAGE_PREPARE' EXPORTING msg_id = u_msgid msg_no = l_message_no msg_var1 = u_msgv1 msg_var2 = u_msgv2 msg_var3 = u_msgv3 msg_var4 = u_msgv4 IMPORTING msg_text = l_t_post_check_bad-errors-message.

FI_PSO_ROLLBACK_GLOBALS_CLEAR CALL FUNCTION 'FI_PSO_ROLLBACK_GLOBALS_CLEAR'.

FI_PSO_ROLLBACK_GLOBALS_CLEAR CALL FUNCTION 'FI_PSO_ROLLBACK_GLOBALS_CLEAR'.

FI_PSO_PSOSEC_READ CALL FUNCTION 'FI_PSO_PSOSEC_READ' EXPORTING i_lotkz = l_t_psokpf-lotkz i_bukrs = l_t_psokpf-bukrs i_gjahr = l_t_psokpf-gjahr i_itabkey = l_t_psokpf-itabkey TABLES e_t_psosec = l_t_psosec EXCEPTIONS not_found = 1 OTHERS = 2.

FI_PSO_PSOSET_READ CALL FUNCTION 'FI_PSO_PSOSET_READ' EXPORTING i_lotkz = l_t_psokpf-lotkz i_bukrs = l_t_psokpf-bukrs i_gjahr = l_t_psokpf-gjahr i_itabkey = l_t_psokpf-itabkey TABLES e_t_psoset = l_t_psoset EXCEPTIONS not_found = 1 OTHERS = 2.

CURRENCY_EXPIRATION_CHECK CALL FUNCTION 'CURRENCY_EXPIRATION_CHECK' EXPORTING currency = l_t_psokpf-waers date = l_t_psokpf-dbatr object = 'FMPSO' bukrs = l_t_psokpf-bukrs EXCEPTIONS warning_occurred = 1 error_occurred = 2.

FI_PSO_PSOTN_READ CALL FUNCTION 'FI_PSO_PSOTN_READ' EXPORTING i_psotyp = l_t_psokpf-psoty IMPORTING e_numkr = l_nrkrs_lot EXCEPTIONS no_intervall = 1 OTHERS = 2.

FI_PSO_DOC_DIRECT_INPUT CALL FUNCTION 'FI_PSO_DOC_DIRECT_INPUT' EXPORTING i_nodata = '/' i_del_nodata = space i_intlot = char_x "interne Vergabe i_nrkrs_lot = l_nrkrs_lot i_check = u_test i_no_check = space IMPORTING e_bukrs = e_bukrs e_gjahr = e_gjahr e_belnr = e_belnr e_lotkz = e_lotkz TABLES t_bbkpf = l_t_bbkpf t_bbseg = l_t_bbseg t_bbtax = l_t_bbtax EXCEPTIONS error_message = 1.

FI_PSO_DOC_DIRECT_INPUT CALL FUNCTION 'FI_PSO_DOC_DIRECT_INPUT' EXPORTING i_nodata = '/' i_del_nodata = space i_intlot = char_x "interne Vergabe i_nrkrs_lot = l_nrkrs_lot i_check = ' ' i_no_check = space IMPORTING e_bukrs = e_bukrs e_gjahr = e_gjahr e_belnr = e_belnr e_lotkz = e_lotkz TABLES t_bbkpf = l_t_bbkpf t_bbseg = l_t_bbseg t_bbtax = l_t_bbtax EXCEPTIONS error_message = 1.

FM_FI_HEADER_DATA_UPDATE CALL FUNCTION 'FM_FI_HEADER_DATA_UPDATE' IN UPDATE TASK EXPORTING i_lotkz = l_lotkz_dummy i_f_psokpf = x_t_psokpf i_f_psokpf_old = l_t_psokpf_old.

BAL_GLB_MSG_DEFAULTS_SET CALL FUNCTION 'BAL_GLB_MSG_DEFAULTS_SET' EXPORTING i_s_msg_defaults = l_s_message_defaults EXCEPTIONS OTHERS = 0.

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

BAL_GLB_MSG_DEFAULTS_SET CALL FUNCTION 'BAL_GLB_MSG_DEFAULTS_SET' EXPORTING i_s_msg_defaults = l_s_message_defaults EXCEPTIONS OTHERS = 0.

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

BAL_LOG_MSG_READ CALL FUNCTION 'BAL_LOG_MSG_READ' EXPORTING i_s_msg_handle = c_s_user_command_data-list_msgh i_langu = sy-langu IMPORTING e_s_msg = l_s_msg.

FI_PSO_DISPLAY CALL FUNCTION 'FI_PSO_DISPLAY' EXPORTING i_f_fikey = l_fikey EXCEPTIONS unknown_type = 1 cancelled = 2 exit_all = 3 data_missing = 4 OTHERS = 5.

FI_PSO_DISPLAY CALL FUNCTION 'FI_PSO_DISPLAY' EXPORTING i_lotkz = l_lotkz i_compy = l_bukrs i_recurring = 'X' EXCEPTIONS unknown_type = 1 cancelled = 2 exit_all = 3 data_missing = 4 OTHERS = 5.

COPY_TEXTS CALL FUNCTION 'COPY_TEXTS' IMPORTING ERROR = l_sav_lotkz_longtext_error TABLES TEXTS = l_t_itctc.

COMMIT_TEXT CALL FUNCTION 'COMMIT_TEXT' EXPORTING object = const_fmpso name = '*' id = const_0001.

COPY_TEXTS CALL FUNCTION 'COPY_TEXTS' IMPORTING ERROR = l_sav_belnr_longtext_error TABLES TEXTS = l_t_itctc.




COMMIT_TEXT CALL FUNCTION 'COMMIT_TEXT' EXPORTING object = const_beleg name = '*' id = const_0001.



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