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

Call SUBMIT statement in Enhancement

suwandi_cahyadi
Contributor
0 Likes
1,794

Hi,

Is it safe to call SUBMIT statement in enhancement? The program submitted is a custom report program with no COMMIT/ROLLBACK inside.

Thank you.

1 ACCEPTED SOLUTION
Read only

michael_piesche
Active Contributor
1,413

Would you feel better if it was a function call? And it definitly doesnt matter if it is within an enhancement or not, any change to SAP standard logic needs to be thorougly reviewed and tested.

It all depends what you actually want to achieve, on how you implement your solution, how well it is tested, how you handle errors and of course what attributes you set for your SUBMIT call (does your enhanced program need to react to certain outcomes of your report or is it independent of it).

I suggest you read the ABAP help about SUBMIT to get a better idea of what options there are.

If you are still unsure after all, try to code your logic from the report into a function call if you feel more at ease with that solution.

2 REPLIES 2
Read only

michael_piesche
Active Contributor
1,414

Would you feel better if it was a function call? And it definitly doesnt matter if it is within an enhancement or not, any change to SAP standard logic needs to be thorougly reviewed and tested.

It all depends what you actually want to achieve, on how you implement your solution, how well it is tested, how you handle errors and of course what attributes you set for your SUBMIT call (does your enhanced program need to react to certain outcomes of your report or is it independent of it).

I suggest you read the ABAP help about SUBMIT to get a better idea of what options there are.

If you are still unsure after all, try to code your logic from the report into a function call if you feel more at ease with that solution.

Read only

Sandra_Rossi
Active Contributor
1,413

A precise question deserves a precise answer: it depends what is done inside the called program, and in what technical context it is called.

For more information, see Michael answer.