‎2018 Feb 01 4:29 AM
Hello,
I have a custom report program, wherein its creating a outbound delivery, this prog. doesn't have any COMMIT WORK statements, but has ALV log output
I want to SUBMIT this custom program from one of the BADI of MIGO transaction
Pl. let us know is it OK to SUBMIT a custom report prog. from standard MIGO's BADI?
Thank you
‎2018 Feb 01 6:29 AM
If you display anything, SAP does a rollout of the external session, which triggers an implicit database commit (not a commit work).
If you had a COMMIT WORK in your program, that wouldn't change anything. It wouldn't impact the processing of the MIGO (I mean, nothing more than the implicit database commit), because SUBMIT starts a new SAP LUW so anything submitted by MIGO to the update task in its own SAP LUW will not be started by this COMMIT WORK in the other SAP LUW.
But you didn't tell us which BAdI it was, and which method, so it's difficult to tell you whether the implicit database commit is fine at an undefined moment.
PS: you may do an SQL trace (ST05) to check whether there were some updates before your implicit database commit.
‎2018 Feb 01 6:29 AM
If you display anything, SAP does a rollout of the external session, which triggers an implicit database commit (not a commit work).
If you had a COMMIT WORK in your program, that wouldn't change anything. It wouldn't impact the processing of the MIGO (I mean, nothing more than the implicit database commit), because SUBMIT starts a new SAP LUW so anything submitted by MIGO to the update task in its own SAP LUW will not be started by this COMMIT WORK in the other SAP LUW.
But you didn't tell us which BAdI it was, and which method, so it's difficult to tell you whether the implicit database commit is fine at an undefined moment.
PS: you may do an SQL trace (ST05) to check whether there were some updates before your implicit database commit.
‎2018 Feb 01 7:59 AM
‎2018 Feb 01 8:22 AM
Hi,
Is MIGO's final output anyway dependent on your Custom Program ?
If not, then instead of SUBMIT how about raising an EVENT and let that event schedule your Custom Program as a Job.
Do you see any problem with this approach ?
K.Kiran.
‎2018 Feb 01 8:14 PM
I'm guessing they want to show ALV on screen in MIGO. Rather curious about a business case here...
‎2018 Feb 02 12:58 AM
business requirement has been cancelled because of budget issues