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

L_TO_CREATE_SINGLE

Former Member
0 Likes
1,943

Hi

I am using L_TO_CREATE_SINGLE to create a transfer order.

after execution a TO is created and database tables are updated. i want to stop this updation until some time( like i should show a TO data on a custom screen before and on that screen if user press ok then updation should take place.

Please help as this is a very urgent requirement.

atleast share your idea.

thanks

regards

vamsi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,729

L_TO_CREATE_SINGLE is a BAPI and the Changes will be updated when you are going to call the FM BAPI_TRANSACTION_COMMIT. So Call the Commit only after the User presses OK.

Hi

I am using L_TO_CREATE_SINGLE to create a transfer order.

after execution a TO is created and database tables are updated. i want to stop this updation until some time( like i should show a TO data on a custom screen before and on that screen if user press ok then updation should take place.

Please help as this is a very urgent requirement.

atleast share your idea.

thanks

regards

vamsi.

9 REPLIES 9
Read only

Former Member
0 Likes
1,730

L_TO_CREATE_SINGLE is a BAPI and the Changes will be updated when you are going to call the FM BAPI_TRANSACTION_COMMIT. So Call the Commit only after the User presses OK.

Read only

0 Likes
1,729

Thank you for your response.

can you clearly explain what you wrote.

i dont understand that.

where to use commit and how.

thanks

Read only

0 Likes
1,729

Hi ..

I mean that you are creating the TO Via this FM. Once you have processed the FM, then dont do commit work. Do the custom screen and once the user says yes then you do Commit work.

FM Call for TO -


> Display Screen -


> User Confirmation -


> Commit via FM or normally.

Regards

Saket Sharma

Read only

0 Likes
1,729

Thanks buddy.

It almost solved the issue.

very foolish i might have gone through FM document.

any way thanks.

vamsi.

Read only

0 Likes
1,729

Hi,

When I tried to update it gives back a error. ans data is not updated.

Read only

0 Likes
1,729

Can you elaborate on the error.

Read only

0 Likes
1,729

Hi

If user wish to change the data on the screen and press save the previous data must be refreshed and a new TO should be created. but now once the second TO is created and updated the first TO is also updated.

Read only

Former Member
0 Likes
1,729

Try using BAPI_TRANSACTION_ROLLBACK in between if the data is changed by user intervention.

and again u call ur TO creation FM with the new data and call the commit FM.

Hope this will help u!!

Read only

0 Likes
1,729

THANKS

That works.