10-15-2009 12:00 PM
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
07-30-2015 2:19 PM
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.
08-04-2015 9:15 AM
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