SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error in BAPI_CTRACCTRCTACCNT_PAYBYCARD

Former Member
0 Kudos
308

Dear Experts,

I am getting the error when I am trying to execute the "BAPI_CTRACCTRCTACCNT_PAYBYCARD"

Key 120203-001 for G/L acounting does not exist

System Generates Recon Key. But I am getting the above error.

Could anyone guide me how to execute this BAPI.

Thanks

Aswin

3 REPLIES 3

ivor_martin
Active Contributor
0 Kudos
212

Hi,

You might have to use the BAPI "BAPI_CTRACRECKEY_CREATE" to first create the Rec Key, then trigger the second BAPI to do the card payment.

Regards,

Ivor M.

0 Kudos
212

Dear Ivor M,

Thanks for your reply.

After creating Recon Key, I am not getting that error.

Now I am getting the different error "E >0137 Formal error: Payment difference given without items to be cleared"

I am unable to understand how the BAPI works. Could you please help me how it works? or else Is there any other BAPI or Function module to post the credit card payment.

Thanks in Advance.

Aswin

0 Kudos
212

Hi,

Are you first retrieving the open items using the BAPI BAPI_CTRACCONTRACTACCOUNT_GOI1?

When you read the documentation for the PAYBYCARD BAPI, it says that you first have to fetch the open items using the above-mentioned BAPI and pass them as parameters into the PAYBYCARD BAPI.

Try that if you have not already tried it.

Regards,

Ivor M.