Application Development and Automation 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: 
Read only

BAPI_ALM_ORDER_MAINTAIN issue

Former Member
0 Likes
898

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

2 REPLIES 2
Read only

former_member404244
Active Contributor
0 Likes
703

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

Read only

0 Likes
703

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.