2011 Sep 06 6:37 AM
Hi,
I am using BAPI_ALM_ORDER_MAINTAIN to create notification in the object list of a work order at the time of creating this work order. First of all, I would like yto know if this could be possible. My requirement is to create a notification linked to the work order at the time of creating this work order. I used method-OBJECTTYPE as 'OBJECTLIST' and METHOD as 'CREATE'. Then gave a notification number to the objectlist table to be passed to the BAPI. But the return table of this BAPI says Order cannot be saved beacuse of no operation. But at the time of creating a work order, an operation is automatically created in the header. Please help me with this issue. If any of you have faced a similar problem and know how to solve it, please show me the sample code.
Thanks in advance
Hi,
I am using BAPI_ALM_ORDER_MAINTAIN to create notification in the object list of a work order at the time of creating this work order. First of all, I would like yto know if this could be possible. My requirement is to create a notification linked to the work order at the time of creating this work order. I used method-OBJECTTYPE as 'OBJECTLIST' and METHOD as 'CREATE'. Then gave a notification number to the objectlist table to be passed to the BAPI. But the return table of this BAPI says Order cannot be saved beacuse of no operation. But at the time of creating a work order, an operation is automatically created in the header. Please help me with this issue. If any of you have faced a similar problem and know how to solve it, please show me the sample code.
Thanks in advance
2011 Sep 06 6:55 AM
Hi,
I think It is mandatory to have at least one operation.Create an operation by populating the operation structure and pass it to the bapi and see.
Regards,
Nagaraj
2011 Sep 06 11:35 AM
Hi,
Actually an operation already exists for this order. I am going to IW31 and creating the work order. At this time the operation aumatically gets generated to 0010. and after this while saving the work order, I have to create a notification in the object list. But the BAPI_ALM_ORDER_MAINTAIN is not saving the work order with this notification . This kind of error is happening only with PM01 work order. Please help.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |