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
Below is a list of transaction codes which are relevant to this SAP report
FMFG_INVSTAT - Maintain Invoice Statuses
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: 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
INCLUDE RFFMFG_SCHED.
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RFFMFG_PPA_INVOICE_STAGES - Maintain/Display Invoice Stages RFFMFG_PPA_INVOICE_STAGES - Maintain/Display Invoice Stages RFFMFG_PPA_FP_REL_LIV_TOP - Include RFFMFG_PPA_FP_REL_LIV_TOP RFFMFG_PPA_FP_REL_LIV_SEL - Include RFFMFG_PPA_FP_REL_LIV_SEL RFFMFG_PPA_FP_REL_LIV_SCMA - Include RFFMFG_PPA_FP_REL_LIV_SCMA RFFMFG_PPA_FP_REL_LIVF02 - Include RFFMFG_PPA_FP_REL_LIVF02