Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_BUPA_PCARD_ADD - Business Partner Payment Transactions Tab

Hi,

In CRM 5.0, I am trying to change an existing BP by adding data to the payment transactions tab on BP transaction. I am using FM BAPI_BUPA_PCARD_ADD and it is not saving the data in the DB. Here is my code. Can someone please tell me what am I missing here..

wa_data-card_type = gwa_payment-card_type. " e.g VISA

wa_data-card_number = gwa_payment-card_number. " a valid credit card numebr

wa_data-card_default = 'X'.

CALL FUNCTION 'BAPI_BUPA_PCARD_ADD'

EXPORTING

businesspartner = gv_soldtoparty

data = wa_data

IMPORTING

card_id_out = ev_ccard_id

TABLES

return = lt_return.

COMMIT WORK.

CALL FUNCTION 'ADDR_MEMORY_SAVE'.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

None of the above commits are helping me save the data to DB. Ideas....? Any help will be appreciated and points will be awarded.

Thanks

Tags:
Not what you were looking for? View more on this topic or Ask a question