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

FOAP_PROCESS_PAYMENT_ADVICES SAP ABAP Report - Transfer of Credit Memos and Payments







FOAP_PROCESS_PAYMENT_ADVICES 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_PAYMENT_ADVICES 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

FOAPPROC01 - Transfer Credits and Payments


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_PAYMENT_ADVICES. "Basic submit
SUBMIT FOAP_PROCESS_PAYMENT_ADVICES AND RETURN. "Return to original report after report execution complete
SUBMIT FOAP_PROCESS_PAYMENT_ADVICES 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_AVSID = D Payment Advice Number
Selection Text: P_BUDAT = D Posting Date
Selection Text: P_BUKRS = D Company Code
Selection Text: P_KUNNR = D Customer
Selection Text: P_XECHT = Update Run
Title: Transfer of Credit Memos and Payments
Text Symbol: 001 = General Selections
Text Symbol: 002 = Data for Transfer Posting
Text Symbol: 003 = Further Selections
Text Symbol: 004 = Processing Parameters


INCLUDES used within this REPORT FOAP_PROCESS_PAYMENT_ADVICES

INCLUDE FOAP_PROCESS_PAYMENT_F01.


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_pay.

FOAP_CDITEMS_ADD_MSG_TO_LOG CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_TO_LOG' EXPORTING im_msg = ls_bapiret2 im_avik = ls_avik.

FOAP_CDITEMS_ENTRY_EXIST CALL FUNCTION 'FOAP_CDITEMS_ENTRY_EXIST' IMPORTING ex_entries_exist = l_entry_exist.

FOAP_CDITEMS_SHOW_LOG CALL FUNCTION 'FOAP_CDITEMS_SHOW_LOG' EXPORTING im_xecht = p_xecht.

FOAP_CDITEMS_ADD_MSG_TO_LOG CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_TO_LOG' EXPORTING im_msg = ls_bapiret2 im_avik = ls_avik.

FOAP_CDITEMS_ADD_MSG_TO_LOG CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_TO_LOG' EXPORTING im_msg = ls_bapiret2 im_avik = ls_avik.

FOAP_CDITEMS_SHOW_LOG CALL FUNCTION 'FOAP_CDITEMS_SHOW_LOG' EXPORTING im_xecht = p_xecht.

FOAP_CDITEMS_ADD_MSG_TO_LOG CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_TO_LOG' EXPORTING im_msg = ls_bapiret2 im_avik = ls_avik.

REMADV_INIT CALL FUNCTION 'REMADV_INIT'.

FOAP_CDITEMS_ADD_MSG_TO_LOG CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_TO_LOG' EXPORTING im_msg = ls_bapiret2 im_avik = ls_avik.

FOAP_CDITEMS_ADD_MSG_TO_LOG CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_TO_LOG' EXPORTING im_msg = ls_bapiret2 im_avik = ls_avik.

FI_ITEMS_CHANGE CALL FUNCTION 'FI_ITEMS_CHANGE' EXPORTING x_lock_check = 'X' TABLES t_accchg = lt_accchg t_header = lt_bkpf t_items = lt_bseg EXCEPTIONS no_reference = 1 no_document = 2 many_documents = 3 wrong_input = 4 overwrite_creditcard = 5 error_message = 6 OTHERS = 7.

FOAP_CDITEMS_ADD_MSG_TO_LOG CALL FUNCTION 'FOAP_CDITEMS_ADD_MSG_TO_LOG' EXPORTING im_msg = ls_bapiret2 im_avik = ls_avik.

FOAP_CDITEMS_SHOW_LOG CALL FUNCTION 'FOAP_CDITEMS_SHOW_LOG' 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_PAYMENT_ADVICES or its description.