‎2007 Jan 29 5:52 AM
Dear all,
I have a serious problem about BAPI_ACC_GL_POSTING_REV_POST.
The case is : I have created an acc document 'A' by 'BAPI_ACC_DOCUMENT_POST'. The docment was created succssfully . but i reversed the document 'A' , using bapi 'BAPI_ACC_GL_POSTING_REV_POST'. The problem was occured , the reserval document was succssufully created . while there are two table(GLFUNCT and GLFUNCA) didn't update . So some reports aren't correct in prd system.
Now i know i should use bapi BAPI_ACC_DOCUMENT_REV_POST instead of
'BAPI_ACC_GL_POSTING_REV_POST' . but how could i make table GLFUNCT and GLFUNCA update ?????
thank a lot !!! please help me , thanks again.
myminsky@hotmail.com / f99045509@sohu.com
‎2007 Jan 29 6:00 AM
HI,
Try the Func.module:
G_POSTING_GLFUNCT
to update GLFUNCT table.
Regards
Subramanian
‎2007 Mar 20 3:41 AM
Hi,
The BAPI_ACC_DOCUMENT_REV_POST cannot be used to reverse documents posted with reference procedure BKPFF.
In FI there are two kind of documents, those with origin in FI and those posted from external applications.
Postings with origin in FI are those with reference procedure BKPF (for online postings with FB01 and others) and reference procedure BKPFF (originally for documents entered with direct input, RFBIBL00).
All other reference procedures indicate documents with external origin.
Depending on the origin the document can only be reversed by FB08 (for postings original in FI) or by the external application(BAPI, accounting interface) in case of external origin.
So you can only reverse the BKPFF documents with FB08. The actual error here is that you only get an update termination when you try to reverse such documents by BAPI, it would be more transparent to get a proper error message that reversals of reference procedure BKPFF are impossible with this BAPI.
Also it is not intended that BKPF docs are reversed by BAPI.
The feature to create BKPFF postings by BAPI is something that was introduced with note 561175. Before implementation of this note it was impossible to post BKPFF by BAPI.
This was meant as a help to enter large numbers of documents with origin in FI without the need to use batch input on classical transactions like FB01.
It was not in the scope of this note to also allow reversing of such documents by BAPI.
<b>If you need to be able to reverse docs by BAPI</b> (and not FB08) proceed according to note 306504 and define your own reference procedure 'Z????' and use this for posting. In this case the unique reference key OBJ_KEY is not automatically created by the BAPI but must be created and passed by the
BAPI caller.
Regards,
Chris