Ansicht
Dokumentation

WEC_APAR_EBPP_GET_DATA - WEC Payment Transaction Read/Search FM

WEC_APAR_EBPP_GET_DATA - WEC Payment Transaction Read/Search FM

ABAP Short Reference   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This FM provides the payment data and the associated invoices and credit memos.

Example

Notes

Further information

  • How the payment ID and Payment data are fetched in case Payment ID is not provided from the UI?

Payments data resides in t_mypayments. It contains the reference id of the payment and invoice assignment, but does not contain Payment ID. In the UI we also need to display the Payment ID. So fetch the payment ID first and form the complete payment table that needs to be displayed in the UI.

Payment ID is fetched from the table t_payallocation using the reference id in t_mypayments. Other data related to payment are already present in t_mypayments. Using the fetched Payment ID and the Payment data in t_mypayments, form another table say x_tab, which would contain the complete payment details to be displayed in UI.

  • How the Payment data are fetched in case Payment ID is provided from the UI?

The logic is similar as when Payment ID is not provided. In this case provided Payment ID along with the reference id from the table t_mypayments is being matched with the Payment ID and the reference Id in the table t_payallocation. The proper payment record is then created.

  • How the invoices and credit memos are fetched for the corresponding Payments?

Invoices and Credit Memos are fetched in the table t_items and t_invoices.

This is in continuation with the answers of the above questions. From t_payallocation we will have invid and linct. Using invid and linct read the data from t_invoices from where we will fetch belnr,gjahr, buzei and bukrs. Using belnr,gjahr,buzei and bukrs data is being read from t_items. Invoices and CreditMemos are differentiated using shkzg from t_item. Value H for the field shkzg implies credit memo and S implies invoices.

Currently passing values via following import parameter does not effect the results, since these parameters are not being used internally by the called program WEC_APAR_EBPP_GET_DATA.
,,IV_PAYMENT_TYPE

,,IV_SELECT_FOR_PAYMENTS

,,IV_ONLY_INVOICES

However these import parameters can be used for future enhancements to the results.





Parameters

E_RETURNCODE
IV_CLEARED_ITEMS
IV_ONLY_INVOICES
IV_OPEN_ITEMS
IV_ORGTYPE
IV_PARTNERKEY
IV_PARTNERTYPE
IV_PAYMENT_DATE_HIGH
IV_PAYMENT_DATE_LOW
IV_PAYMENT_ID
IV_PAYMENT_TYPE
IV_SALES_ORG
IV_SELECT_FOR_PAYMENTS
RETURN
T_MESSAGES
T_MYPAYMENTS
T_PAYMENT_CREDIT_DATA
T_PAYMENT_INVOICE_DATA

Exceptions

ACCOUNT_LOCKED
ACCOUNT_MISSING

Function Group

WEC_R3

rdisp/max_wprun_time - Maximum work process run time   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 3043 Date: 20240523 Time: 131137     sap01-206 ( 64 ms )