Skip to Content

MPLAN_MANUAL_CALL - is it possible to wait for notification or maintenance order to be created?

When calling MPLAN_MANUAL_CALL, it seems to create a notification for that call.

But there is a delay. If I try to search for the notification associated with a given call number it is coming back empty.

If I add a call:

CALL FUNCTION 'ENQUE_SLEEP'
 EXPORTING
 seconds = 5.

Then it seems to work.

But I obviously would rather not hard code a delay and hope for the best.

Looping and waiting for a result might work, but also seems clumsy.

My idea is to expose a bapi that support creating a manual call, and returning the notification number or maintenance order number that gets created from the manual call.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 12, 2017 at 03:04 PM

    You could try reading table QMIH using the plan and call numbers until you get a value.

    PeteA

    Add comment
    10|10000 characters needed characters exceeded