Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with the variable in FM not cleared.

Former Member
0 Likes
573

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

2 REPLIES 2
Read only

Former Member
0 Likes
463

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

Read only

Former Member
0 Likes
463

solved the problem on my own, by using bapi_transaction_commit