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

Emulating FB60

Former Member
0 Likes
697

Hi,

I am emulating FB60 through function module "BAPI_ACC_DOCUMENT_POST"; which is used to create a non-PO matched invoice. There is couple of things i would like to know.

1- Is there any way to "Park" this invoice, rather than posting it.

2- I am able to post an invoice through this function module; it returns me the document id. But i cannot view the created invoice. I am using FB03 & FBV0 to viewing the invoice. But I am getting an error message that this document does not exists.

Any kind of help would be of great help.

5 REPLIES 5
Read only

Peter_Inotai
Active Contributor
0 Likes
661

2) Are you calling BAPI_TRANSACTION_COMMIT after the BAPI call?

Peter

Read only

Former Member
0 Likes
661

Hi,

You need to use BAPI_TRANSACTION_COMMIT after the BAPI_ACC_DOCUMENT_POST".

e.g.:

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

For parking a document you can try BAPI_INCOMINGINVOICE_PARK.

Rewrd points if helpful answer.

Ashvender

Read only

Former Member
0 Likes
661

I had to use batch input for the parking.

Rob

Read only

Former Member
0 Likes
661

Hi kaukab,

I have done a similar program as discussed above.

U can write to me for the complete code at

'engsapnabansal@yahoo.com'

Regards,

Sapna.

Read only

Former Member
0 Likes
661

Hi,

if you are creating non-PO matched invoice use the following bapis

BAPI_INCOMINGINVOICE_CREATE

BAPI_ACC_INVOICE_RECEIPT_POST

Check the below theard

https://forums.sdn.sap.com/click.jspa?searchID=3363195&messageID=3270032

<b>Reward points</b>

Regards