Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FI-CA automatic clearing

Former Member
0 Likes
1,189

Hi everybody

I want to clear two fi-ca document each other (invoice and a credit memo)

At the moment I use teh bapi BAPI_CTRACCONTRACTACCOUNT_GOI1 to get the open items and clear them

withe the bapi BAPI_CTRACCONTRACTACCOUNT_CLR ! I

It works fine only with documents which has the same amount! What I have to do when I want clear a invoice and creaditmemo document with different amounts ??

Thank you for help!

regards

Arne Krieger

3 REPLIES 3
Read only

Former Member
0 Likes
721

I need a small help. Even I am trying to use the same BAPI in following way -

CALL FUNCTION 'BAPI_CTRACCONTRACTACCOUNT_CLR'

EXPORTING

documentheader = <clearing_doc_header>

IMPORTING

return = <return>

documentnumber = <number>

TABLES

openitems = it_citemno.

where 'it_citemno' internal table contains output of BAPI 'BAPI_CTRACCONTRACTACCOUNT_GOI'. However it's not working fine with the error message - 'Formal error: Document contains no items / clearing items'.

Can you help me in using this BAPI by giving some sample code or tips ?

Read only

0 Likes
721

Hi!

We are having the same problem. Amol did you find a solution for this problem?

Kind regards,

Mário Espinheira

Read only

Former Member
0 Likes
721

Hi Arne,

How did you get to successfully run this BAPI? What were the parameters you've enterred?

Regards