‎2006 Apr 19 11:58 AM
Hi all,
I am using CALL_FB08 for reversing a document. When I run my program in debug mode, the document is posted, but if I execute it directly, the document is not getting posted!
I tried commit and work, changed the update parameter to "S" and "L" too. But doesnt work.
Is there a way of overcoming this?
Thanks,
Shruti
‎2006 Apr 19 12:06 PM
Hi Shruti,
Try to set the i_update parameter as 'S' instead of 'A'. and then use the commit statement after the call to this FM.
Check the documentation for this FM:
It is generally necessary to fill in the parameters for transaction
FB08, although the posting date, posting period and the void reason code
are optional. If a posting date is not entered, the system checks
whether the old period is still open. If this is not the case, the
system date is entered as the posting date. The date determined can be
called up with the export parameter.
If the document is part of a general transaction, all the related
documents are reversed (unlike transaction FBU8). It is also possible to
enter the general transaction instead of the document number.
Payments by check can only be dealt with if a void reason code is
entered.
Having been started in simulation mode, the function module then informs
you whether you still need to run transaction FBRA (Reset Cleared Items)
before the actual reversal.
Hence call CALL_FBRA after the call_fb08.
Regards,
Ravi
Regards,
Ravi
‎2006 Apr 19 12:16 PM
Hi Ravi,
I tried your suggestion. Still not working.
Also I am not running it in simulation mode. Hence I dont think I need to call FBRA.
Thanks,
Shruti
‎2006 Apr 20 7:47 AM
hi shruti,
I have also en-countered same problem once, Before calling this function module you put one Commit work.
and then once the function module is called you add one more commit.
You can use enquee_sleep function module and give 2 seconds as wait time.
eg:
commit work.
call_fb08.
enquee_sleep.
commit work.
if you are working on BAPI the commit Work will not work instead you have to use BAPI_Trasaction_commit.
hope this will help you.
Regards,
krishna
‎2008 Jan 17 10:30 AM
Hello All,
Well the solution provided by Krishna is not working. Even after the enque_sleep and commit work the entry for reversal does not occur.
I m sorry to continue in the same thread instead os creating a new one as i m stuck with same kind of problem. If it is offensive please let me know.
Thanks for looking into the matter!
Zankruti.
‎2008 Mar 11 2:37 PM