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

Maintenance Order Creation

Former Member
0 Likes
707

Hello All

I am trying to creata a Order against aNotification and trying to assign to the Notification.

There are below 2 approaches:

1. Create the Order with BAPI

BAPI_ALM_ORDER_MAINTAIN

and then assign it to the notification with BAPI

ISU_SMNOTIF_ASSIGNTOORDER

Some values are not getting updated with this BAPI

2. I have got another 2 FM's

DIWPS_NOTIF_CREATE_ORDERS

IWOL_IW28_CREATE_ORDER

but while running these 2 BAPI's the IW33 transaction for creating Maintenance Order screens are coming up, and we have to manually save the order then only the order no is getting generated.

Can anyone suggest me how to suppress those screens?

I am calling BAPI_TRANSACTION_COMMIT after calling the above BAPI's.

Please suggest.

Thanks in advance.

Hello All

I am trying to creata a Order against aNotification and trying to assign to the Notification.

There are below 2 approaches:

1. Create the Order with BAPI

BAPI_ALM_ORDER_MAINTAIN

and then assign it to the notification with BAPI

ISU_SMNOTIF_ASSIGNTOORDER

Some values are not getting updated with this BAPI

2. I have got another 2 FM's

DIWPS_NOTIF_CREATE_ORDERS

IWOL_IW28_CREATE_ORDER

but while running these 2 BAPI's the IW33 transaction for creating Maintenance Order screens are coming up, and we have to manually save the order then only the order no is getting generated.

Can anyone suggest me how to suppress those screens?

I am calling BAPI_TRANSACTION_COMMIT after calling the above BAPI's.

Please suggest.

Thanks in advance.

5 REPLIES 5
Read only

Former Member
0 Likes
664

Hi,

You have to fill the Methods paramters correctly. Refer to the funtion module documentation

METHOD Methods

The methods with which the data should be processed. The following functions exist:

CREATE Create objects

CHANGE Change objects

DELETE Delete objects

RELEASE Release

TECHNICALCOMPLETE Technically complete

ATPCHECK Availability check

CALCULATE Calculate

SCHEDULE Schedule

DELELTEDSEX Delete the status for external scheduling at operation level

SAVE Save all data

DIALOG Call-up dialog. See explanation below.

TRACE Write trace file in the specified file to the frontend

I hope you are passing the CREATE for creating the order.

regards,

Advait

Read only

0 Likes
664

Thanks Advait

I am passing the parameters properly as per the 1st approach.

Also I am passing the CREATE method, and the order is getting created properly.

But I am unable to see the Notification Number against the order in IW33 screen, whereas the Order Number is properly getting assigned to the Notification, I am able to see that in IW23 screen.

Please let me know if anybody has tried any BAPI that I have mentioned in the 2nd approach.

Read only

0 Likes
664

Hi Raghu,

Try to use these bapis

BAPI_ALM_NOTIF_CREATE - to create notification

BAPI_ALM_NOTIF_SAVE - to save notification

BAPI_TRANSACTION_COMMIT

Read only

0 Likes
664

Thaks Rodrigo

The BAPI's you have mentioned are used for creating Notification and saving it.

But my requirement is to create a Maintenance Order(IW31) against a existing Notification.

Read only

0 Likes
664

You can create notif and order separate, and using BAPI_ALM_NOTIF_DATA_ADD to add order to notif