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: 

0137 "Formal error: Payment difference given without items to be cleared".

Former Member
0 Kudos

i have problem bapi

BAPI_CTRACCTRCTACCNT_PAYBYCARD

i use a bapi to select the open items (BAPI_CTRACCONTRACTACCOUNT_GOI) and then

Via the component ITEM_ACTIVATED, you can select the items to be cleared. In

the component CLEARING_AMOUNT specify the clearing amount.

for exemple:

in cardpayment

amount 95,00

in openitems

AMOUNT_LOC_CURR 95,0000

AMOUNT 95,0000

AMOUNT_PAR2_CURR 0,0000

AMOUNT_PAR3_CURR 0,0000

DISCOUNT_BASE 95,0000

TAX_AMOUNT_LOC_CURR 0,0000

TAX_AMOUNT 0,0000

TAX_AMOUNT_PAR2_CURR 0,0000

TAX_AMOUNT_PAR3_CURR 0,0000

CLEARING_AMOUNT 95,0000

CLEARING_AMOUNT_LOC 0,0000

CLEARING_AMOUNT_PAR2 0,0000

CLEARING_AMOUNT_PAR3 0,0000

CLEARING_AMOUNT_OITEM 0,0000

NET_CL_AMOUNT 0,0000

NET_CL_AMOUNT_LOC 0,0000

NET_CL_AMOUNT_PAR2 0,0000

NET_CL_AMOUNT_PAR3 0,0000

NET_CL_AMOUNT_OITEM 0,0000

DISCOUNT_AMOUNT 0,0000

DISCOUNT_AMOUNT_LOC 0,0000

DISCOUNT_AMOUNT_PAR2 0,0000

DISCOUNT_AMOUNT_PAR3 0,0000

DISCOUNT_AMOUNT_OITEM 0,0000

PROP_DISC_AMOUNT 0,0000

PROP_DISC_AMOUNT_LOC 0,0000

Can u help???

Thank u EB

2 REPLIES 2

pruthviraz
Explorer
0 Kudos

After reading Open items using BAPI_CTRACCONTRACTACCOUNT_GOI1 

U have to modify the import table OPENITEMS (BAPIDFKKCL)

pass  ITEM_ACTIVATED = 'X'.

and CLEARING_AMOUNT = <amount to be posted>.

and pass them to BAPI_CTRACCTRCTACCNT_PAYBYCARD

Make sure u passed proper data to CARDPAYMENT .

This shud work.

ivor_martin
Active Contributor
0 Kudos

Hi,
According to the Documentation for this BAPI, you have to populate the "Cardpayment" structure as parameters.

The structure name is BAPICARDPAYMENT. You will  need to specify the Card data in this structure, including the Payment amount.

I hope this helps.

Regards,

Ivor