05-17-2005 9:25 AM
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
05-17-2005 1:55 PM
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 .
05-17-2005 9:46 AM
Hi Marcel,
I think you should use a test abap for your purposes. Then it will work.
regards
Siggi
05-17-2005 10:40 AM
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
05-17-2005 11:01 AM
Hi Marcel,
So you vary the document type.
-> check (TA OBA7) , whether T003-XSYBL = space
and check the allowed account types, etc.
regards
Andreas
05-17-2005 12:36 PM
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
05-17-2005 12:43 PM
Hi Marcel,
pls compare , whether you can post your
documents with TA FB01 with the noted document types
regards
05-17-2005 1:11 PM
Hi Andreas,
I tried posting the documents with transaction FB01 and I encountered no problems.
Regards,
Marcel
05-17-2005 1:17 PM
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
05-17-2005 1:30 PM
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
05-17-2005 2:06 PM
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
05-17-2005 2:19 PM
Hi,
I could not find any of my documents in table VBKPF or in BKPF.
Regards,
Marcel
05-17-2005 1:55 PM
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 .
05-17-2005 2:24 PM
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
05-17-2005 8:01 PM
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
05-18-2005 7:30 AM
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
09-23-2005 3:02 PM
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
01-11-2006 4:21 PM
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