2020 Feb 06 10:49 AM
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.
2020 Feb 06 11:22 AM
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.
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.
2020 Feb 06 11:22 AM
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.
2020 Feb 06 1:03 PM
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.