08-17-2007 1:28 PM
Hi!
We are using the BAPI "BAPI_ALM_ORDER_MAINTAIN" to create an order based on an existing notification number.
The input for this BAPI:
<b>METHODS</b>
000001 HEADER CREATETONOTIF %00000000001
000001 OPERATION CREATE %000000000010010
000001 SAVE %00000000001
<b>HEADER</b>
ORDERID %00000000001
ORDER_TYPE PM09
PLANPLANT W041
MN_WK_CTR MECHANIC
NOTIF_NO 10000188
<b>OPERATION</b>
ACTIVITY 0010
WORK_CNTR MECHANIC
PLANT W041
DESCRIPTION ...
The return-message of the BAPI says: "Order %00000000001 was saved with number 4000151 and notification <b>10000498</b>"
But this notification number is not the number that we gave as input. So the system creates a new notification and that is not what we want.
How can we link this order to an existing notification by using this BAPI?
Kind regards,
Lieselot
08-21-2007 1:55 PM
08-28-2007 1:26 PM
In the meantime we have found the solution to this problem.
The objectkey must contain the notification number (12 digits):
<b>METHODS</b>
000001 HEADER CREATETONOTIF %00000000001000010000188
000001 OPERATION CREATE %000000000010010
000001 SAVE %00000000001
Kind regards,
Lieselot
09-23-2020 5:57 PM
09-23-2020 6:01 PM