Document is not getting posted correctly.
I m trying to post a GL document using the BAPI_ACC_DOCUMENT_POST and try to the reverse the document using code generated by shdb of transaction FB08. The problem is that when i execute the program with out any break points the program stops at FB08 saying the document is either not posted or in the archive but when im doing the same with breakpoints in it, its posting correctly.
Guys this is little urgent.
Change the commit to:
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING WAIT = 'X'. "<========