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: 

Invoice posting

Former Member
0 Kudos

Hi,

Can we use BAPI_ACC_DOCUMENT_POST for Incoming Invoice with reference to PO ?

Any code is appreciated..

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

I believe you have to use BAPI_INCOMINGINVOICE_CREATE for creating invoices related to PO..

Thanks

Naren

6 REPLIES 6

0 Kudos

Use "BAPI_INCOMINGINVOICE_CREATE" for MM based invoices.

Hope this helps,

Sudhi

0 Kudos

This is FI based

0 Kudos

Hmm.. FI Based... will you use transaction FB60 if you want to post it by hand. If yes then there are no BAPIs for this and you will have to use a standard program called RFBIBL00 to post the documents. This is nothing but a BDC.

Also in the case of FI based invoice you will not have a reference to the PO but to the vendor only!

Hope this helps,

Sudhi

0 Kudos

Hi All,

My question is Is it possible to post the following invoice data using <b>'BAPI_ACC_DOCUMENT_POST'</b> ?. What are the mandatory fields that we must input the BAPI

<b>INVOICE HEADER DETAILS</b>

Line Indicator

Transaction/Event

Document Type

Document date

Posting Date

Reference

Amount

Currency

Tax amount

Tax code

Text

Company Code

Payment Terms

Payment Method

Payment block

Assignment

Header Text

Invoicing Party

Payee

Partner Bank

<b>INVOICE ITEM DETAILS.</b>

Line Indicator

Purchase Order

Purchase OrderLine item

Amount

Quantity

Unit of Measure

Tax Code

Jurisdiction Code

Line Item Text

GL Account

Cost Center

Order

Asset

Profit Center

Region

Carline

Model Year

Model Code

MSC Code

Accessory Code

Source

Parts Major Class

Part Minor Class

Parts Location

Part Adjustment Code

Customer Type

Warranty Product Type Code

0 Kudos

I guess you will have a better picture if you could go through the BAPI documentation. It is a very well documented BAPI and you have the documentation for each and every interface parameter. When you do it yourself you will learn it better

All the best!

Sudhi

Former Member
0 Kudos

Hi,

I believe you have to use BAPI_INCOMINGINVOICE_CREATE for creating invoices related to PO..

Thanks

Naren