‎2009 Apr 01 10:10 PM
Hi all,
I'm using RM_BACKFLUSH_GO function module for BackFlushing a serial number. Inside this FM other function module MB_CREATE_GOODS_MOVEMENT is called inside this function module there is variable called XCOMMIT and this is not getting cleared when i called RM_BACKFLUSH_GO.
I found that, this variable is set in another function call BAPI_HU_UNPACK in the same program.
Inside BAPI_HU_UNPACK, the MB_POST_GOODS_MOVEMENT is called where the variable is set.
I'm not able to clear this variable XCOMMIT. I have tried calling the perform clear_xcommit in program LMBWLFE0 from my program, but it didnt worked.
Can anybody tell me how to clear this variable.
Thanks n Regards
‎2009 Apr 01 10:26 PM
Hi,
You can clear the variable dynamically from the call stack
Data: l_f_stack(72) type c value '(SAPLMBWL)XCOMMIT'.
Field-symbols: <fs> type any.
Assign (l_f_stack) to <fs>.
If <fs> is assigned.
clear <fs>.
endif.
Hope this will help you
Regards,
Krishnakumar
Edited by: Krishnakumar on Apr 1, 2009 11:29 PM
‎2009 Apr 16 2:46 PM
solved the problem on my own, by using bapi_transaction_commit