Application Development 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: 

BAPI_ACC_BILLING_POST succes message, but no posting

Former Member
0 Kudos

Hello,

I am testing BAPI BAPI_ACC_BILLING_POST using transaction SE37->testing->testsequence.

First I call BAPI BAPI_ACC_BILLING_POST and second BAPI_TRANSACTION_COMMIT with the WAIT parameter checked. Everything seems to work fine and BAPI BAPI_ACC_BILLING_POST returns with a succes message.

However when I search the system (table BKPF) for a made posting I can not find a posting. I used several traces to find out what was happening but could not find any updates in FI/CO.

Did someone encounter this problem before or knows a solution for this problem?

Regards,

Marcel Kempers

1 ACCEPTED SOLUTION

0 Kudos

1. Did you fill the accounttax table ?

Be aware that when you manually post a document the tax record is automatically generated but with bapis you have to set these in the accounttax table

2. Try setting the WAIT to space or simply replace bapi_commit_work fm by commit work .

16 REPLIES 16

Former Member
0 Kudos

Hi Marcel,

I think you should use a test abap for your purposes. Then it will work.

regards

Siggi

0 Kudos

Hi Siggi,

I do not think this will work, because I tried to create the same document with BAPI BAPI_ACC_DOCUMENT_POST. With this BAPI I get the same problem. However I did test BAPI BAPI_ACC_DOCUMENT_POST using a testsequence for another kind of document. With this other document type BAPI BAPI_ACC_DOCUMENT_POST worked fine.

Any other suggestions?

Regards,

Marcel Kempers

0 Kudos

Hi Marcel,

So you vary the document type.

-> check (TA OBA7) , whether T003-XSYBL = space

and check the allowed account types, etc.

regards

Andreas

0 Kudos

Hello Andreas,

I changed the data for document type 'DR'. It now matches the values which are set for the document types 'KR' and 'SA'. These last two are the document types without a problem. However the problem still exists.

In the mean time I tried using a test abap instead of a test sequence, but that did not make a difference.

Do you have any other suggestions?

Regards,

Marcel Kempers

0 Kudos

Hi Marcel,

pls compare , whether you can post your

documents with TA FB01 with the noted document types

regards

0 Kudos

Hi Andreas,

I tried posting the documents with transaction FB01 and I encountered no problems.

Regards,

Marcel

0 Kudos

Hi Marcel,

What is actually the message returned from the BAPI? This could maybe point to the problem.

Also, have you looked for the document using FB03 rather than looking directly in the table? I don't know FI that well but maybe its stored somewhere else for this document type?

Cheers,

Brad

0 Kudos

Hello,

The following message is returned by the BAPI:

S RW 605 Document correct geboekt: ZTD TEST RHDTDONT

Translated in english: Document correctly posted.

You are right, the parked documents are stored in another table. However I can't find the documents with TA FB03 as well.

Regards,

Marcel

0 Kudos

Hi Marcel,

so it seems to be that you've parked the docs .

so look at table vbkpf

or bkpf with field BSTAT = 'V'

(BSTAT = space means normal (booked) document)

regards Andreas

0 Kudos

Hi,

I could not find any of my documents in table VBKPF or in BKPF.

Regards,

Marcel

0 Kudos

1. Did you fill the accounttax table ?

Be aware that when you manually post a document the tax record is automatically generated but with bapis you have to set these in the accounttax table

2. Try setting the WAIT to space or simply replace bapi_commit_work fm by commit work .

0 Kudos

Hello Bert,

I tried to post with and without the accounttax table. It did not matter. I got the same success message.

I also tried the commit work statement with or without the wait. It did not make a difference.

Regards,

Marcel

0 Kudos

Not sure but I think I encountered similar problem with GL A/C BAPI and that was due to the fact the lines were not balanced.

I mean the debit and credit entries should match.

Thanks,

Ram

Former Member
0 Kudos

Hello,

The problem was solved by filling the field CURRENCYAMOUNT-AMT_BASE for all line items. When this field is filled the balance check works fine.

Credits to Bert, he gave me the tip outside off the forum. Bert, thanks!

Cheers,

Marcel

0 Kudos

Hi Marcel,

Would it be possible for you to let me know which fields of the segments have to be populated in order for the document to post?

Also were you able to post to CO-PA with this Bapi? I keep getting the error "Enter a true account assignment object with revenues".

Thanks for your help,

Miguel

Former Member
0 Kudos

Hi,

I am trying to use the same BAPI and having the same problem. I filled the tax structures & also the Amount_base. Still I get the success message & no document created. Does anybody has some sample code who successfully used this BAPI.

Thanks in Advance.

Srini