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

Function module L_TO_CREATE_MULTIPLE and commit

Former Member
0 Likes
2,008

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,122

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

2 REPLIES 2
Read only

Former Member
0 Likes
1,123

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

Read only

Former Member
0 Likes
1,122

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