BAPI_BUPA_PCARD_ADD - Business Partner Payment Transactions Tab
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'
businesspartner = gv_soldtoparty
data = wa_data
card_id_out = ev_ccard_id
return = lt_return.
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.