on 01-04-2013 4:29 PM
Hi guys,
I am developing an application to support all the operations regarding a work order management and at this moment I am facing a problem related to creation of an operation with external services (PM03 control key). I know that BAPI_ALM_ORDER_MAINTAIN cannot process services lines, in fact if we try to do this via this BAPI the system gives us IWO_BAPI 206 error message.
I am wonder if some of you already has this kind of requirement and if so which should be the right way to achieve what I need, please share with me. Also for those who already have worked with Mobile Asset Management, how they manage this?
Happy new year for all.
Regards,
Rogério
Hi Rogério,
This reply might be little late but just posting it for others benefit. It is quite possible to add service lines via 'BAPI_ALM_ORDER_MAINTAIN' BAPI. Recently, I have developed a program and along with the external operation (PM03), we can create the external service lines using this BAPI.
wa_methods-objecttype = 'SERVICELINE'.
wa_methods-method = 'CREATE'.
You need to map the operation number to the 'activity' field of service lines.
Thanks,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prashant.
Could you help me?
I've tried test 'BAPI_ALM_ORDER_MAINTAIN' with this 'SERVICELINE' method, but it didn't work!!
I've filled as below:
Table: IT_METHODS
REFNUM | OBJECTTYPE | METHOD | OBJECTKEY
000001 | HEADER | CREATE | %00000000001
000001 | OPERATION | CREATE | %000000000010001
000001 | SERVICELINE | CREATE | %000000000010001
000000 | | SAVE |
Table: IT_OPERATION
ACTIVITY = 0001
SUB_ACTIVITY = blank
CONTROL_KEY = PM03
---
---
---
(and other fields)
(and other tables - IT_OPERATION_UP, IT_HEADER, IT_HEADER_UP, as usual)
When I execute, I receive as a Return this message
E | IWO_BAPI2 | Object name SERVICELINE in method table is invalid
Thanks in advance!
Sbrug
Hi Sbrug,
Error message "Object name SERVICELINE in method table is invalid" looks like it is not supported or BAPI is in old version state. How ever below is the method pattern, which I am using. For serviceine, object key should be order number then operation number (0030 in my case).
below is the service line data where activity is an operation number and SRV_LINE is running number.
Let me know, if this is useful for you.
Thanks,
Prashant
Hi, Prashant.
Maybe our BAPI is in old version. We are talking about BAPI_ALM_ORDER_MAINTAIN, ok?
I've checked Active version, is from Release 701, date 16.03.2010.
In this version, I couldn't find "IT_SERVICES" Table:
Could you say which version is yours?
In case of newer version, which steps may I follow to obtainit?
Thanks in advance
Sbrug
Hi Prashant,
I am facing the same problem but I am on 740. I am not able to create an internal and external service with service lines. I am getting an error which says 'Control Key Change not possible for service package'.
I get the same error when I try to create Entry with even one external service.
Looks like the program expects the internal control key.
Please advise. Stuck from quite long on this.
Regards,
Manu
User | Count |
---|---|
83 | |
9 | |
6 | |
6 | |
4 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.