2016 Jan 06 5:44 AM
Hi All,
When I create a vendor invoice with an asset posting using transaction FB60, 2 documents gets created which are linked to each other, one for Vendor invoice and an other related to Asset posting. ( Posting key 31 - Vendor and posting key 70 - Asset)
Now how can I achieve this with the BAPI BAPI_ACC_DOCUMENT_POST?
I pass ACCOUNTGL with the asset details
and ACCOUNTPAYABLE with the vendor details
and ACCOUNTTAX and CURRENCYAMOUNT with the respective values I get a successful return message with a document number, but when I look for the document I can find it anywhere. I am calling BAPI_TRANSACTION_COMMIT after my BAPI call.
Is there any other values that I need to pass to the BAPI? will this BAPI create both the documents?
Any help is appreciated!
Thanks
Elan
2016 Jan 06 7:18 AM
Could you elaborate on
When I create a vendor invoice with an asset posting using transaction FB60, 2 documents gets created which are linked to each other, one for Vendor invoice and an other related to Asset posting. ( Posting key 31 - Vendor and posting key 70 - Asset)
Do you mean "item" when you wrote "document"
You got no error message in RETURN parameter,
Regards,
Raymond
Hi All,
When I create a vendor invoice with an asset posting using transaction FB60, 2 documents gets created which are linked to each other, one for Vendor invoice and an other related to Asset posting. ( Posting key 31 - Vendor and posting key 70 - Asset)
Now how can I achieve this with the BAPI BAPI_ACC_DOCUMENT_POST?
I pass ACCOUNTGL with the asset details
and ACCOUNTPAYABLE with the vendor details
and ACCOUNTTAX and CURRENCYAMOUNT with the respective values I get a successful return message with a document number, but when I look for the document I can find it anywhere. I am calling BAPI_TRANSACTION_COMMIT after my BAPI call.
Is there any other values that I need to pass to the BAPI? will this BAPI create both the documents?
Any help is appreciated!
Thanks
Elan
2016 Jan 06 7:18 AM
Could you elaborate on
When I create a vendor invoice with an asset posting using transaction FB60, 2 documents gets created which are linked to each other, one for Vendor invoice and an other related to Asset posting. ( Posting key 31 - Vendor and posting key 70 - Asset)
Do you mean "item" when you wrote "document"
You got no error message in RETURN parameter,
Regards,
Raymond
2016 Jan 07 12:44 AM
Hi Raymond,
Thanks for the help, I did not mean item, I meant document. 2 accounting documents are created. One for Vendor invoice and the other one is related to the Asset Transaction.
I did not get any error in the return parameters. Infact, I get a success message with the document number.
I just checked SM13 and found my update request in error, and the error says the newly created document number already exists in the company code
But the document does not exist when I look for it in any of the tables. I will continue looking for the reason the update has failed. Any more suggestions/ help is more welcome.
Thanks,
Elan
2016 Jan 07 7:04 AM
2016 Jan 11 12:17 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |