‎2009 May 04 5:51 PM
Hi,
Does anyone knows if in one report I call function module L_TO_CREATE_MULTIPLE with parameter I_COMMIT_WORK = SPACE and if in the main report after the call of the function module i do a commit command that allows that the transfer order is created ? And are the tables received if the call of L_TO_CREATE_MULTIPLE correct with the information of the created transfer order ?
Or in other way if I really want to create the transfer order, I must pass the parameter I_COMMIT_WORK = 'X' ?
Thanks in advance,
Paulo Sousa
‎2009 May 04 6:04 PM
Hi Paulo,
The main Idea here is COMMIT should get called once the callto Function module L_TO_CREATE_MULTIPLE is executed so it really doesn't makes different if you call L_TO_CREATE_MULTIPLE with I_COMMIT = 'X'
or you call L_TO_CREATE_MULTIPLE with I_COMMIT = SPACE and later to this call to Function module do COMMIT WORK, both are effectively same.
One thing that needs to be taken care is if you are calling L_TO_CREATE_MULTIPLE in LOOP you have to do COMMIT after each call.
Hope this helps!
Regards
Shital
‎2009 May 04 6:04 PM
Hi Paulo,
The main Idea here is COMMIT should get called once the callto Function module L_TO_CREATE_MULTIPLE is executed so it really doesn't makes different if you call L_TO_CREATE_MULTIPLE with I_COMMIT = 'X'
or you call L_TO_CREATE_MULTIPLE with I_COMMIT = SPACE and later to this call to Function module do COMMIT WORK, both are effectively same.
One thing that needs to be taken care is if you are calling L_TO_CREATE_MULTIPLE in LOOP you have to do COMMIT after each call.
Hope this helps!
Regards
Shital
‎2013 Jul 19 6:40 PM
Hi Shital,
I am using FM L_TO_CREATE_MULTIPLE to create a single to for multiple locations but I noticed that the TO always is confirmed.
Is there any way to create the TO but not confirmed? or a different FM?
Thanks a lot,
neobat