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

Any suitable BAPI for tcode F-43?

Former Member
0 Likes
2,925

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,645

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,646

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

Read only

0 Likes
1,645

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

Read only

Sougata
Active Contributor
0 Likes
1,645

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.

Read only

Former Member
0 Likes
1,645

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

Read only

Sougata
Active Contributor
0 Likes
1,645

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

Read only

Former Member
0 Likes
1,645

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

Read only

Former Member
0 Likes
1,645

BAPI_ACC_INVOICE_RECEIPT_POST