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

Submit a custom prog. from standard program

former_member194142
Participant
0 Likes
1,502

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

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
1,345

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.

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
1,346

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.

Read only

matt
Active Contributor
0 Likes
1,345

Have you tried it? What happened?

Read only

kiran_k8
Active Contributor
0 Likes
1,345

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.

Read only

0 Likes
1,345

I'm guessing they want to show ALV on screen in MIGO. Rather curious about a business case here...

Read only

former_member194142
Participant
0 Likes
1,345

business requirement has been cancelled because of budget issues