SAP Reports / Programs | Public Sector Management | Functions for U.S. Federal Government | US Prompt Payment Act(PSM-FG-PP) SAP PSM

RFFMFG_PPA_INVOICE_STAGES SAP ABAP Report - Maintain/Display Invoice Stages







RFFMFG_PPA_INVOICE_STAGES is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The Invoice Stages Report provides a framework for tracking information on the status as well as the history of invoice processing...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 RFFMFG_PPA_INVOICE_STAGES 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

FMFG_INVSTAT - Maintain Invoice Statuses


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 RFFMFG_PPA_INVOICE_STAGES. "Basic submit
SUBMIT RFFMFG_PPA_INVOICE_STAGES AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMFG_PPA_INVOICE_STAGES 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_XBLNR = Reference Number
Selection Text: S_USNAM = User Name
Selection Text: S_STCD1 = Tax ID
Selection Text: S_STATUS = Invoice Status
Selection Text: S_LIFNR = Vendor
Selection Text: S_DUNS = DUNS Number
Selection Text: S_BUDAT = Posting Date
Selection Text: S_BLDAT = Document Date
Selection Text: S_BLART = Document Type
Selection Text: S_BELNR = Document Number
Selection Text: P_GJAHR = Fiscal Year
Selection Text: P_BUKRS = Company Code
Title: Maintain/Display Invoice Stages
Text Symbol: 510 = The control could not be created
Text Symbol: 500 = Error in Flush
Text Symbol: 118 = Application Log
Text Symbol: 114 = Update
Text Symbol: 113 = Update Status
Text Symbol: 112 = History
Text Symbol: 111 = Change History
Text Symbol: 101 = Change History
Text Symbol: 100 = Maintain Invoice Status
Text Symbol: 021 = -->Updating document
Text Symbol: 020 = Invoice Status Update Log
Text Symbol: 012 = Data was changed. Save before leaving the screen?
Text Symbol: 011 = Confirm Action
Text Symbol: 001 = Selection Criteria


INCLUDES used within this REPORT RFFMFG_PPA_INVOICE_STAGES

INCLUDE RFFMFG_SCHED.


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:

FMFG_INVOICE_STAT_ACTIVE_CHECK CALL FUNCTION 'FMFG_INVOICE_STAT_ACTIVE_CHECK' EXPORTING i_bukrs = p_bukrs * I_BLART = IMPORTING e_active = g_active.

FMFG_INVOICE_STATUS_CHECK CALL FUNCTION 'FMFG_INVOICE_STATUS_CHECK' EXPORTING i_status = s_status-low EXCEPTIONS not_valid = 1 OTHERS = 2.

FMFG_INVOICE_STATUS_CHECK CALL FUNCTION 'FMFG_INVOICE_STATUS_CHECK' EXPORTING i_status = s_status-high EXCEPTIONS not_valid = 1 OTHERS = 2.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = g_repid txt2 = sy-subrc txt1 = 'Error in Flush'(500).

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' * EXPORTING * I_S_LOG_FILTER = * I_T_LOG_CONTEXT_FILTER = * I_S_MSG_FILTER = * I_T_MSG_CONTEXT_FILTER = * I_T_LOG_HANDLE = * I_T_MSG_HANDLE = * I_S_DISPLAY_PROFILE = * I_AMODAL = ' ' EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Confirm Action'(011) text_question = 'Data was changed. Save before leaving the screen?'(012)

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = g_repid txt2 = sy-subrc txt1 = 'Error in Flush'(500).

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = g_repid txt2 = sy-subrc txt1 = 'The control could not be created'(510).

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' "#EC * EXPORTING i_structure_name = 'IFMFG_PPA_INVSTATLIST' "#EC NOTEXT CHANGING ct_fieldcat = gt_fieldcat.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = g_repid txt2 = sy-subrc txt1 = 'The control could not be created'(510).

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' "#EC * EXPORTING i_structure_name = 'FMFG_PPA_INV_HIS' "#EC NOTEXT CHANGING ct_fieldcat = gt_fieldcat2.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = g_repid txt2 = sy-subrc txt1 = 'Error in Flush'(500).

FMFG_INVOICE_STATUS_CHECK CALL FUNCTION 'FMFG_INVOICE_STATUS_CHECK' EXPORTING i_status = l_invstat-status EXCEPTIONS not_valid = 1 OTHERS = 2.

FMFG_INVOICE_STATUS_UPDATE CALL FUNCTION 'FMFG_INVOICE_STATUS_UPDATE' EXPORTING i_invstat = l_invstat i_flg_manual = abap_on EXCEPTIONS status_update_failed = 1 history_update_failed = 2 OTHERS = 3.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = gs_log IMPORTING e_log_handle = gs_log_handle EXCEPTIONS OTHERS = 1.

FMFGCCR_MESSAGE_ISSUE CALL FUNCTION 'FMFGCCR_MESSAGE_ISSUE' EXPORTING i_msgid = ls_msg-msgid i_msgty = ls_msg-msgty i_msgno = ls_msg-msgno i_msgv1 = ls_msg-msgv1 i_msgv2 = ls_msg-msgv2 i_msgv3 = ls_msg-msgv3 i_msgv4 = ls_msg-msgv4 EXCEPTIONS error_message = 0 OTHERS = 0.

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

BAL_LOG_MSG_DELETE_ALL CALL FUNCTION 'BAL_LOG_MSG_DELETE_ALL' EXPORTING i_log_handle = gs_log_handle EXCEPTIONS log_not_found = 1 OTHERS = 2.



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