2005 Jun 28 12:52 PM
Hi All,
Can anyone help me in searching for a BAPI or a function Module to create a Service Order of type SM01(Service Order). This is usually done through transaction IW31. I have written a BDC as of now but it is acting cranky as a lot of things depend on User Settings I wanted to have a generalised way of doing this rather than a BDC.
Regards,
Sudhi
2005 Jun 28 1:32 PM
Hi Sudhi,
There does not seem to be a BAPI available for Service Order Creation (at least in 6.20). One option you can consider is create the order with minimum required fields using BDC and then immediately change it using the Order Maintain BAPI.
Is your BDC executed as part of a dialog transaction or in background job? If it is always executed in background you should not worry about user settings as you can schedule the job to always run with the same id. The same applies if your data comes in as an idoc.
Gareth is correct. I did not see the BAPI docu.
Cheers,
Ramki Maley.
Message was edited by: Ramki Maley
2005 Jun 28 1:24 PM
BAPI_ALM_ORDER_MAINTAIN
I've used this in the past to do what you are trying I think.
I found it by going to transaction BAPI and expanding the relevant tree node.
2005 Jun 28 1:32 PM
Hi Sudhi,
There does not seem to be a BAPI available for Service Order Creation (at least in 6.20). One option you can consider is create the order with minimum required fields using BDC and then immediately change it using the Order Maintain BAPI.
Is your BDC executed as part of a dialog transaction or in background job? If it is always executed in background you should not worry about user settings as you can schedule the job to always run with the same id. The same applies if your data comes in as an idoc.
Gareth is correct. I did not see the BAPI docu.
Cheers,
Ramki Maley.
Message was edited by: Ramki Maley
2005 Jun 28 2:03 PM
Hi Ramkey, Gareth
Thanks for your leads. Ramki for your question I am executing the BDC as a methos of a Business Object and that is scheduled as a background task in the workflow. Well it had to be background task but for some reasons it would not execute and since we did not have time I made it as a foreground task and the workitem will come to the inbox and the user has to double click for the BDC to run as call transaction mode 'N'. This is the first time I had problems in having a background task to do a BDC.(Have done lots before without any problems). Will try to use the BAPI now.
2005 Jul 20 9:32 AM