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

Calling a function module without actually committing the changes

Former Member
0 Likes
952

Hi there,

Is there any way to call a function module without actually committing the update it makes (kind of like how SE37 doesn't commit updates)?

Some functions offer this functionality via testrun parameters which is great, but then some don't and it's nice to be able to simulate the outcome before actually running it for real.

Any input appreciated.

Thanks,

L

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
774

try.

IF test_flag = 'X'.

ROLLBACK WORK.

else.

COMMIT WORK AND WAIT.

ENDIF.

4 REPLIES 4
Read only

Former Member
0 Likes
775

try.

IF test_flag = 'X'.

ROLLBACK WORK.

else.

COMMIT WORK AND WAIT.

ENDIF.

Read only

0 Likes
774

I was thinking about that actually. Now I wonder if I could do the following:

call function n
importing stuff

do some internal program work using stuff

call function x
exporting stuff
importing morestuff

do some internal program work

rollback work

Basically could I call a bunch of update functions in my program, get all the results and outputs from these updates for my own use, and then roll back all the updates in one shot so nothing is actually changed? Basically updates that build on each other, but I don't want to commit anything.

Sounds kind of dangerous to me, but if the rollback would work then this would be very useful.

Read only

0 Likes
774

A rollback won't work if a commit has been done. So if any of your FMs has a commit, you'd be out of luck.

Rob

Read only

Former Member
0 Likes
774

Hello,

Just define the function module like Remote-Enabled Module in the attributes tab. Read this for reference .

Regards.