‎2008 Nov 21 10:20 AM
I am using the BAPI, BAPI_ACC_GL_POSTING_CHECK to park a GL doc.
After using the BAPI the get the below message.
Document posted successfully: BKPFF 010000024512002008 DE2CLNT400
Structure name : BKPFF
In this Doc no is : 0100000245
Company code : 1200
Fiscal year : 2008.
Server details : DE2CLNT400
I have used BAPI_TRANSACTION_COMMIT to commint the trasaction code.
But it does not park the document (i.e) I cant see it in FBV3. But I can see the document number in tables BKPF & BSEG.
While pasiing the header details in BAPI 'BAPI_ACC_GL_POSTING_CHECK', I am leaving the fields OBJ_T, OBJ_KEY, OBJ_SYS blank.
Do I have to fill them or is there any thing I am missing.
If more information is required from my side,Please let me know, I ll provide.
Thanks in advance.
Ravindar.
‎2008 Nov 21 10:26 AM
Hi,
when you use BAPI and execute it, one table return the error values.
use the following logic.
CALL FUNCTION 'BAPI_ACC_GL_POSTING_CHECK'
EXPORTING
DOCUMENTHEADER =
TABLES
accountgl =
CURRENCYAMOUNT =
return = it_returm <------ pass this.
EXTENSION1 =
if it_return is initial.
then commit work.
endif.
this shd solve ur problem
‎2008 Nov 21 10:26 AM
Hi,
I am not sure if you are using the right BAPI, you should be using BAPI_ACC_GL_POSTING_POST, because check BAPI should never commit transaction thats why it has been built.
‎2008 Nov 21 10:45 AM
‎2008 Nov 21 10:55 AM
this BAPI only checks if the document would be OK, it does NOT post and does NOT park anything, only returns messages... It is irrelevant if you use COMMIT or not... Even the the name of the BAPI indicates the same...
‎2008 Nov 21 11:07 AM
Hi Ravindar,
You can use the BAPI, bapi_acc_document_post which can post the G/L documents and then try the bapi commit.
Hopefully this should work.
Regards,
Shobana.K.
‎2008 Nov 21 11:26 AM
Hi
Pass this:
IF logsys IS INITIAL.
SELECT SINGLE logsys FROM t000 CLIENT SPECIFIED INTO logsys
WHERE mandt = sy-mandt.
ENDIF.
CONCATENATE sy-uname sy-datum sy-uzeit INTO obj_key.
also pass obj_typ and
pass logsys as obj_sys.
hope that will solve the problem.
Regards
Neha
‎2008 Nov 21 12:02 PM
I am sorry, I was actually using BAPI : BAPI_ACC_GL_POSTING_POST to park the document which be done manually through tcodes FV50 & FV50L.
I am not sure if I am using the right BAPI to park the document.
My requirment is to park the document and it should reflect in FBV3. I dont want to post the document, just have to park it.
Thanks & Regards
Ravindar.
‎2008 Nov 21 12:05 PM
Nice one. Well, with that BAPI you cannot park documents. There is no actual BAPI for parking documents, afaik, but there is function PRELIMINARY_POSTING_FB01 which can do the trick.
Thomas
‎2008 Nov 24 5:14 AM
Ravindar ,
You can use the FM 'AC_DOCUMENT_GENERATE' for parking the G/L document followed by a function call to 'PRELIMINARY_POSTING_DOC_WRITE'.
For posting the parked document you can use the FM 'PRELIMINARY_POSTING_POST_ALL' .
Regards,
Shobana.K.
‎2009 Feb 18 12:45 AM
Hi Thomas
I am also looking into using this BAPI "PRELIMINARY_POSTING_FB01" to park a document. But there is no documentation I can find on this BAPI, i wonder if you can share your knowledge on it, or kindly point me to the right place for further help.
Greatly appreciate your help.
Jackie
‎2009 Feb 18 2:58 AM
Hi ,
u can also try FM AC_DOCUMENT_DIRECT_INPUT for parking .
see the documentation of program RFBIBL00.
regards
Prabhu
‎2009 Jan 06 5:35 PM