2016 Mar 23 9:48 AM
Hi,
I am using BAPI BAPI_ACC_DOCUMENT_POST to post FI document. I am populating
obj_type = 'IDOC'
obj_key = 'TestBAPI'.
DOC_TYPE = 'KR'
| bus_act | = 'RFBU' |
This is vendor invoice and document is getting created properly.
However when we try to reverse this using FB08 it is giving error 'Not possible to reverse the document in financial accounting'
I checked and created document has Ref Transaction has value 'IDOC' where as manually posted document has value 'BKPF'.
When i try to post using obj_type = 'BKPF', it is giving below error
| RW | 628 Incorrect entry in field OBJ_TYPE: BKPF |
How to post document with obj_type = 'BKPF'
Thanks in advance.
2016 Mar 23 10:23 AM
Basically SAP detected that this document was not originally posted in Financial Accounting, so it ask you to reverse the original document, same behvior than with SD or MM (*)
You could
Regards,
Raymond
(*) Reference 1728685 - In FB08 or F.80 error message F5 763 appears: 'Not possible to reverse the document in fin...
2016 Mar 23 9:59 AM
2016 Mar 23 10:23 AM
Basically SAP detected that this document was not originally posted in Financial Accounting, so it ask you to reverse the original document, same behvior than with SD or MM (*)
You could
Regards,
Raymond
(*) Reference 1728685 - In FB08 or F.80 error message F5 763 appears: 'Not possible to reverse the document in fin...
2016 Mar 23 10:55 AM
Hi Raymond,
BKPF and BKPFF are marked as reversal allowed but 'BAPI_ACC_DOCUMENT_POST' is not allowing to post using this OBJ_TYPE.
What value should i pass in OBJ_KEY ?
2016 Mar 23 11:10 AM
BKPF is reserved for SAP in standard FI transactions, use BKPFF and leave the other fields initial so the generated FI document number will be the reference document number.
Reference: 561175 - BAPI posting in accounting with FI as reference
Regards,
Raymond
2016 Mar 23 12:55 PM
Thanks Raymond,
As per NOTE 938165 - Incorrect document number for OBJ_TYPE= 'BKPFF'
I left OBJ_TYPE, OBJ_KEY and OBJ_SYS empty and it is working fine now.