SAP Reports / Programs | Financial Accounting | Accounts Payable | Basic Functions(FI-AP-AP) SAP FI

FOAP_PROCESS_INVOICES SAP ABAP Report - Clear Invoices for Which There Is An Invoice Reference







FOAP_PROCESS_INVOICES is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter FOAP_PROCESS_INVOICES 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

FOAPPROC02 - Clear Invoices


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 FOAP_PROCESS_INVOICES. "Basic submit
SUBMIT FOAP_PROCESS_INVOICES AND RETURN. "Return to original report after report execution complete
SUBMIT FOAP_PROCESS_INVOICES 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_BELNR = D Document Number
Selection Text: P_BUDAT = D Posting Date
Selection Text: P_BUKRS = D Company Code
Selection Text: P_GJAHR = D Fiscal Year
Selection Text: P_KUNNR = D Customer
Selection Text: P_XECHT = Update Run
Title: Clear Invoices for Which There Is An Invoice Reference
Text Symbol: 001 = General Selections
Text Symbol: 002 = Data for Clearing Posting
Text Symbol: 003 = Further Selections
Text Symbol: 004 = Processing Parameters


INCLUDES used within this REPORT FOAP_PROCESS_INVOICES

INCLUDE FOAP_PROCESS_INVOICES_TESTF01.


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:

FOAP_FI_CDA_IS_ACTIV CALL FUNCTION 'FOAP_FI_CDA_IS_ACTIV' IMPORTING ex_is_activ = l_activ.

BF_CHECK_APPL_ACTIVE CALL FUNCTION 'BF_CHECK_APPL_ACTIVE' EXPORTING i_applk = 'FI-DM' IMPORTING aktiv = l_activ.

FOAP_CDITEMS_OPEN_LOG CALL FUNCTION 'FOAP_CDITEMS_OPEN_LOG' EXPORTING im_object = l_balobj im_subobject = l_balsobj_inv.

FOAP_CDITEMS_ENTRY_EXIST CALL FUNCTION 'FOAP_CDITEMS_ENTRY_EXIST' IMPORTING ex_entries_exist = l_entry_exist.

FOAP_CDITEMS_SHOW_LOG_INVOICE CALL FUNCTION 'FOAP_CDITEMS_SHOW_LOG_INVOICE' EXPORTING im_xecht = p_xecht.

FOAP_CDITEMS_ADD_MSG_INVOICE CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_INVOICE' EXPORTING im_msg = ls_bapiret2 im_bseg_key = ls_bseg_key.

FOAP_CDITEMS_ADD_MSG_INVOICE CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_INVOICE' EXPORTING im_msg = ls_bapiret2 im_bseg_key = ls_bseg_key.

FOAP_CDITEMS_ADD_MSG_INVOICE CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_INVOICE' EXPORTING im_msg = ls_bapiret2 im_bseg_key = ls_bseg_key.

REMADV_INIT CALL FUNCTION 'REMADV_INIT'.

REMADV_INSERT CALL FUNCTION 'REMADV_INSERT' EXPORTING i_avik = ls_avik i_rfradc = ls_rfradc IMPORTING e_rfradc = ls_rfradc TABLES t_avip = lt_avip EXCEPTIONS error = 1 no_number_entered = 2 no_authority = 3 already_existing = 4 company_not_defined = 5 country_not_defined = 6 OTHERS = 7.

FOAP_CDITEMS_ADD_MSG_INVOICE CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_INVOICE' EXPORTING im_msg = ls_bapiret2 im_bseg_key = ls_bseg_key.

REMADV_SAVE_DB_ALL * CALL FUNCTION 'REMADV_SAVE_DB_ALL' * EXPORTING * i_dialog_update = 'X' * i_commit = 'X'.

FOAP_CDITEMS_ADD_MSG_INVOICE * CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_INVOICE' * EXPORTING * im_msg = ls_bapiret2 * im_bseg_key = ls_bseg_key * im_probclass = '4'.

FOAP_CDITEMS_ADD_MSG_INVOICE CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_INVOICE' EXPORTING im_msg = ls_bapiret2 im_bseg_key = ls_bseg_key.

FOAP_CDITEMS_ADD_MSG_INVOICE CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_INVOICE' EXPORTING im_msg = ls_bapiret2 im_bseg_key = ls_bseg_key.

FOAP_CDITEMS_SHOW_LOG_INVOICE CALL FUNCTION 'FOAP_CDITEMS_SHOW_LOG_INVOICE' EXPORTING im_xecht = p_xecht.



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