Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Create order based on notification number - BAPI_ALM_ORDER_MAINTAIN

former_member206621
Contributor
0 Kudos

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

4 REPLIES 4

former_member206621
Contributor
0 Kudos

Anyone?

former_member206621
Contributor

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

0 Kudos

Thanks you so much for the Solution. it worked for me 🙂

0 Kudos

Thanks so much. this details help me a lot and saved more time 🙂