‎2008 May 06 9:32 PM
Hi Experts,
I need to post the Vendor invoice.
I tried with BAPI_ACC_INVOICE_RECEIPT_POST. Its giving me an error relating to tax code entered such as "Error in account determination for ..etc.. " but the tax code i entered is a valid one. Also this BAPI has no posting key.
I also tried with BAPI_ACC_DOCUMENT_POST . it needs customer no which i cannot get.
Is there a suitable BAPI for tcode F-43?
Thanks
Dan
‎2008 May 06 11:39 PM
Hi Dan,
I am not sure about the tax error message you are getting but I used 'BAPI_ACC_INVOICE_RECEIPT_POST' to post Invoices using T.code FB01 . I used the posting key 31 (Invoice) or 40 (Debit entry) to populate the Internal table accordingly (Internal table based on bapiacap03 for Posting Key 31 and bapiacgl03 for Posting Key 40).
If possible try to debug the BAPI to check why the Taxcode is being triggered as wrong one and populate Internal table for posting key as mentioned above.
Good Luck!!!
Regards,
Vivek
‎2008 May 06 11:39 PM
Hi Dan,
I am not sure about the tax error message you are getting but I used 'BAPI_ACC_INVOICE_RECEIPT_POST' to post Invoices using T.code FB01 . I used the posting key 31 (Invoice) or 40 (Debit entry) to populate the Internal table accordingly (Internal table based on bapiacap03 for Posting Key 31 and bapiacgl03 for Posting Key 40).
If possible try to debug the BAPI to check why the Taxcode is being triggered as wrong one and populate Internal table for posting key as mentioned above.
Good Luck!!!
Regards,
Vivek
‎2008 May 08 9:27 PM
Hi Vivek,
You said you have used some postingkeys for 31 & 40. I cud not find the field name NEWBS in the structures bapiacap03 or bapiacgl03.
What is the field name you used to mention the posting keys?
thanks
Dan
‎2008 May 07 2:58 AM
Hello Dan,
BAPI_ACC_DOCUMENT_POST is the correct BAPI for you to use. You'll notice that all the Tables parameters are optional except CURRENCYAMOUNT and RETURN. Therefore you do not need to fill in Tables parameter ACCOUNTRECEIVABLE which needs the customer number. You need to fill in Tables parameter ACCOUNTPAYABLE which requires the field VENDOR_NO - this is the vendor number you enter in transaction F-43 screen. I have tried with this bapi before and it works fine with vendor invoices (F-43).
Hope this helps and please don't forget to reward points.
Cheers,
Sougata.
‎2008 May 07 2:28 PM
Hi Sougata Chatterjee,
I tried using and it errors out BAPI_ACC_DOCUMENT_POST with one of the resons
saying that "Required field CUSTOMER was not transferred in parameter ACCOUNTRECEIVABLE"
Can you please suggest further?
thanks
Dan
‎2008 May 08 12:16 AM
Dan,
Please post your code here so that I can see how you calling the BAPI. Copy and paste the entire program here within
so that its formatted for easy viewing.
Cheers,
Sougata.
p.s. I have a feeling you are calling the BAPI with Tables parameter ACCOUNTRECEIVABLE which you might have forgot to comment out when calling this BAPI.
Edited by: Sougata Chatterjee on May 8, 2008 11:14 AM
‎2008 May 08 9:21 PM
Hi Sougata Chatterg,
I am testing the BAPI API_ACC_DOCUMENT_POST individually in se37.
No currency line exists for line item 0000000000
No currency line exists for line item 0000000000
No currency line exists for line item 0000000000
Required field TAX_CODE was not transferred in parameter ACCOUNTTAX
Account 1234... requires an assignment to a CO object
Account 1234.... requires an assignment to a CO object
Also BAPI_ACC_INVOICE_RECEIPT_POST is thrwing some tax GL A/c combination errors..
Please suggest
Thanks
Dan
‎2011 Feb 23 10:50 PM