cancel
Showing results for 
Search instead for 
Did you mean: 

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

derek_morin
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

peter_atkin
Active Contributor
0 Kudos

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

PeteA