Skip to Content
avatar image
-2
Former Member

Submit a custom prog. from standard program

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 01 at 06: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.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 01 at 08: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.

    Add comment
    10|10000 characters needed characters exceeded