06-22-2008 5:38 PM
Hi Guys,
I am creating a service order(IW31) from a notification. The notification doesn't have any task as of now. Then I am adding an operation into the service order. Now my requirement is, when I save the service order a task needs to be created into the notification with the operation data like start date, end date, status etc. Thus it will update the notification.
Is there any way(BAPI or any other way) to do that job? Please help.
Thanks,
Mainak
06-23-2008 2:47 PM
Hi
There is an option.
Check in the BOR ..whether does it have any object.
(if it has.. then give the same object in 3rd step.)
If it has the object, then check the methods.. if any save method is available. then write a Z FM with your custom code
steps to attach this FM to the event...
1. t. code swetypv.
2. click on new entries.
3. give the following entries on the new screen.
obj. category : select 'BOR'.
Object Type : <name of object type>
Event : <save method name >
Receiver Type : SWE_EVENT_CREATE
Receiver Call : Select option 'Function Module'.
Receiver FM : give the name of Z FM here.
4. Save .
Now put a break point in the FM and getting triggered in the transaction IW31.
Hope this helps.
Regards,
Vinay
06-27-2008 5:44 AM
please go to the SWO1 and c the object ISUMORDER u may find the relavent method for your requirement