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

RFFMPDOC SAP ABAP Report - Create FM Payment Directive







RFFMPDOC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Some public organizations require an intermediate payment document that serves as a link between the invoice and the actual payment...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 RFFMPDOC 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

FMPO - Payment Directives: Create


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 RFFMPDOC. "Basic submit
SUBMIT RFFMPDOC AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMPDOC 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: S_RLOTKZ = Request Number
Selection Text: S_RLIFNR = D .
Selection Text: S_RKUNNR = D .
Selection Text: S_RGEBER = D .
Selection Text: S_RFKBER = D .
Selection Text: S_RFISTL = D .
Selection Text: S_RFIPOS = Commitment Item
Selection Text: S_RBUDPD = D .
Selection Text: S_RBUDAT = D .
Selection Text: S_RBLINE = Baseline Payment Date
Selection Text: S_RBLDAT = D .
Selection Text: S_RBLART = Document Type
Selection Text: S_RBELNR = D .
Selection Text: P_RWAERS = D .
Selection Text: P_RUSNAM = User Name
Selection Text: P_RGJAHR = D .
Selection Text: P_RBUKRS = D .
Selection Text: P_PMONAT = Posting Period
Selection Text: P_PBUDAT = D .
Selection Text: P_PBLDAT = D .
Selection Text: P_PBLART = Document Type
Selection Text: P_KUNNR = Enable Customer Documents
Title: Create FM Payment Directive
Text Symbol: 006 = Customer Documents
Text Symbol: 005 = FM Account Assignments
Text Symbol: 004 = Customer
Text Symbol: 003 = Vendor
Text Symbol: 002 = Payment Directive
Text Symbol: 001 = Invoice Selection


INCLUDES used within this REPORT RFFMPDOC

No INCLUDES are used within this REPORT code!


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_IFMPDOC_DISPLAY CALL FUNCTION 'FM_IFMPDOC_DISPLAY' EXPORTING pbldat = p_pbldat pbudat = p_pbudat pblart = p_pblart refgjahr = p_rgjahr refbukrs = p_rbukrs pwaers = p_rwaers pgjahr = g_gjahr pmonat = g_monat TABLES t_items = g_t_items t_bkpf = g_t_bkpf t_bseg = g_t_bseg t_bsec = g_t_bsec t_ifmpdcust = g_t_ifmpdcust t_withitem = g_t_with_item.

FI_PSO_AMOUNT_FOLLOWING_ORDER CALL FUNCTION 'FI_PSO_AMOUNT_FOLLOWING_ORDER' EXPORTING i_bukrs = p_rbukrs i_lifnr = c_t_items-lifnr i_kunnr = c_t_items-kunnr i_rebzg = c_t_items-belnr i_rebzj = c_t_items-gjahr i_rebzz = c_t_items-buzei i_shkzg = c_t_items-shkzg i_preliminary = con_on IMPORTING e_psosu_hwaer = l_odmbtr e_psosu_waers = l_owrbtr EXCEPTIONS OTHERS = 0.

FM_PAY_DIR_OPEN_AMO_AUTOMATIC CALL FUNCTION 'FM_PAY_DIR_OPEN_AMO_AUTOMATIC' EXPORTING i_bukrs = p_rbukrs i_lifnr = c_t_items-lifnr i_kunnr = c_t_items-kunnr i_rebzg = c_t_items-belnr i_rebzj = c_t_items-gjahr i_rebzz = c_t_items-buzei IMPORTING e_psosu_hwaer = l_odmbtr e_psosu_waers = l_owrbtr EXCEPTIONS OTHERS = 0.

ENQUEUE_EFBKPF CALL FUNCTION 'ENQUEUE_EFBKPF' EXPORTING bukrs = p_rbukrs belnr = c_t_items-belnr gjahr = c_t_items-gjahr.

FM_WITH_TYPE CALL FUNCTION 'FM_WITH_TYPE' EXPORTING l_with = l_with_itemx IMPORTING with_type = l_type.

FM_WITH_POST_TIME CALL FUNCTION 'FM_WITH_POST_TIME' EXPORTING bukrs = p_rbukrs blart = u_t_items-blart time = 'P' IMPORTING post = l_post.

FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING i_fikrs = u_fikrs i_actvt = u_activity * I_ACTVT_A = * I_MSGTY = IMPORTING e_flg_auth = l_auth_flg e_flg_auth_a = l_auth_flg_a .

FMFK_GET_FIKRS_FROM_BUKRS CALL FUNCTION 'FMFK_GET_FIKRS_FROM_BUKRS' EXPORTING i_bukrs = l_rbukrs IMPORTING e_fikrs = c_fikrs EXCEPTIONS no_fikrs_for_bukrs = 1 OTHERS = 2.

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING i_bukrs = u_rbukrs IMPORTING e_t001 = g_t_t001.

FM_FIPEX_READ_SINGLE_DATA CALL FUNCTION 'FM_FIPEX_READ_SINGLE_DATA' EXPORTING i_fikrs = u_fikrs i_gjahr = u_gjahr i_fipex = u_fipex IMPORTING e_f_vfmpg = c_f_vfmpg EXCEPTIONS master_data_not_found = 0.

FINCODE_READ CALL FUNCTION 'FINCODE_READ' EXPORTING ip_fikrs = u_fikrs ip_fincode = u_geber ip_gjahr = u_gjahr IMPORTING f_fmfincode = c_f_fmfincode.

FM_FICTR_READ_SINGLE CALL FUNCTION 'FM_FICTR_READ_SINGLE' EXPORTING i_fikrs = u_fikrs i_fictr = u_fistl i_gjahr = u_gjahr IMPORTING e_f_fmfctr = c_f_fmfctr.

FM_BUDGET_PERIOD_READ CALL FUNCTION 'FM_BUDGET_PERIOD_READ' EXPORTING i_budget_period = u_budget_pd IMPORTING e_fmbudgetpd = c_f_fmbudgetpd.

FI_PSO_FIPEX_GET_FROM_FIPOS CALL FUNCTION 'FI_PSO_FIPEX_GET_FROM_FIPOS' EXPORTING i_fipos = u_fipos IMPORTING e_fipex = u_fipex.

FM_AUTH_CHECK_HHM CALL FUNCTION 'FM_AUTH_CHECK_HHM' EXPORTING i_actvt = u_act_post i_fikrs = u_fikrs i_authgrp_fictr = u_f_fmfctr-augrp i_authgrp_fipex = u_f_vfmpg-augrp i_authgrp_fonds = u_f_fmfincode-augrp i_fictr = u_fistl i_fipex = u_fipex i_fonds = u_geber i_flg_fonds_space = u_xspace i_authgrp_budper = u_f_fmbudgetpd-authgrp i_budget_period = u_budget_pd IMPORTING e_flg_auth = c_authorized.

FI_PSO_PERIOD_CHECK CALL FUNCTION 'FI_PSO_PERIOD_CHECK' EXPORTING i_budat = u_budat i_bukrs = u_bukrs i_bldat = u_bldat CHANGING c_gjahr = c_gjahr c_monat = c_monat.

FM_PDOCCUST CALL FUNCTION 'FM_PDOCCUST' EXPORTING rbukrs = p_rbukrs TABLES g_t_ifmpdcust = g_t_ifmpdcust.



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