Skip to Content
0

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

Apr 12, 2017 at 11:57 AM

33

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Peter Atkin Apr 12, 2017 at 03:04 PM
0

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

PeteA

Share
10 |10000 characters needed characters left characters exceeded