on 12-28-2010 6:29 AM
Dears,
Since customer would like to import the SFC with assigned SFC number with a quantity, material etc from a legacy system to SAPME.
It's like using "Crate Trakable SFC" function in SAPME, but doing it by batch automatically.
Can I use SAPME default web service or xchange to import the SFC data into SAPME?
Besides, customer also want to put the SFC to an assigned operation when importing SFC if possible.
But I guess I can use ChangeProduction web service to do it after the SFC is imported to the first operation in SAPME.
I found use create shop order can also create SFC, but the SFC list number and its quantity depends on lot size, but we want to assign the quantity and SFC list number.
How can I do that?
Please give me the comment how to implement all the above ideas?
Thank you very much!
Edited by: Ivan_liu_tw on Jan 12, 2011 7:15 AM
Hi Ivan,
I believe that Start_by_item XML can be used for that.
Try the following:
-Create your Material in ME.
-Define a resource with DM520 as activity hook.
-In "resource setup" define a shop order for your material.
-Send the start by item XML with the external SFC,
DM520 should create it on ME and start it at the operation defined on the message.
<PRODUCTION_REQUEST>
<START>
<START_BY_ITEM>true</START_BY_ITEM>
<SITE></SITE>
<ACTIVITY></ACTIVITY>
<ITEM></ITEM>
<ITEM_REVISION></ITEM_REVISION>
<RESOURCE></RESOURCE>
<OPERATION></OPERATION>
<USER></USER>
<QTY></QTY>
<WORK_CENTER></WORK_CENTER>
<REWORK></REWORK>
<DATE_TIME></DATE_TIME>
</START>
</PRODUCTION_REQUEST>
Hope this helps,
German
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your information.
-Create your Material in ME.
-Define a resource with DM520 as activity hook.
>>> in PreStart?
-In "resource setup" define a shop order for your material.
>>> how to do it? do you mean Setup Type= Shop Order?
-Send the start by item XML with the external SFC,
>>> how to define the SFC id, qty, etc.?
Does it create a SFC and start it in the operation? But customer also need to create SFC but queue in operation.
Thanks!
Hello Ivan,
Yes,pre-start,setup type=shop order.
Actually there are two ways for doing this.
1-Generate SFC based on next nuber pattern.If Next number is following the same sequence as external SFC numbers.
2-Generate SFC based on <ID> tag. This will be the equivalent to an external SFC number.
So,the steps will be as following:
1-
-Create your Material in ME.
-Define a resource with DM520,EN520 as activity hook on pre-start.
-In "resource setup" define a shop order for your material.
-Send the start by item XML.
<PRODUCTION_REQUEST>
<START>
<START_BY_ITEM>true</START_BY_ITEM>
<SITE></SITE>
<ACTIVITY></ACTIVITY>
<ITEM></ITEM>
<ITEM_REVISION></ITEM_REVISION>
<RESOURCE></RESOURCE>
<OPERATION></OPERATION>
<USER></USER>
<QTY></QTY>
<WORK_CENTER></WORK_CENTER>
<REWORK></REWORK>
<DATE_TIME></DATE_TIME>
</START>
</PRODUCTION_REQUEST>
2-
-Create your Material in ME.
-Define a resource with DM520 as activity hook on pre-start.
-In "resource setup" define a shop order for your material.
-Send the START XML with SFC on the ID tag.
<PRODUCTION_REQUEST>
<START>
<SFC_LIST>
<SFC>
<SITE></SITE>
<ACTIVITY></ACTIVITY>
<ID>SFCHERE</ID>
<RESOURCE></RESOURCE>
<OPERATION></OPERATION>
<USER></USER>
<QTY></QTY>
<WORK_CENTER></WORK_CENTER>
<REWORK></REWORK>
<DATE_TIME></DATE_TIME>
</SFC>
</SFC_LIST>
</START>
</PRODUCTION_REQUEST>
Please try them and let me know if there's any question.
Regards,
German
Edited by: German Ramirez on Jan 24, 2011 6:33 PM
can't remember from the top of my head,but it may be PRE_VALIDATE_START instead of prestart, you may want to try both.
Thank you for your information.
I have tried below xml, but got a error message: SITE is missing (Message 12001)
But actually I have put Site tag in it. Why?
<PRODUCTION_REQUEST>
<START>
<USER>IVAN</USER>
<SFC_LIST>
<SFC>
<SITE>HP</SITE>
<ACTIVITY>XML</ACTIVITY>
<ID>I-SFC-20110125-01</ID>
<RESOURCE>RESTEST1</RESOURCE>
<OPERATION>OP1</OPERATION>
<USER>IVAN</USER>
<QTY>1</QTY>
<DATE_TIME>2011-01-25T17:35:45.000</DATE_TIME>
</SFC>
</SFC_LIST>
</START>
</PRODUCTION_REQUEST>
Hello Ivan,
Could you please try sending Start request as per template below (without additional tags as in your case)?
<PRODUCTION_REQUEST>
<START>
<SFC_LIST>
<SFC>
<SITE></SITE>
<ACTIVITY></ACTIVITY>
<ID></ID>
<RESOURCE></RESOURCE>
<OPERATION></OPERATION>
<USER></USER>
<QTY></QTY>
<WORK_CENTER></WORK_CENTER>
<REWORK></REWORK>
<DATE_TIME></DATE_TIME>
</SFC>
</SFC_LIST>
</START>
</PRODUCTION_REQUEST>
Regards,
Alex.
I think it's Production xml client, the url is
https://ksrv-me-test:50001/manufacturing-xml/com/sap/me/integration/xchange/test/Test.jsp
I'm sure the site, user and password is correct.
Besides, I tried Change_Production, it works.
I have just tested ME 5.2.5.6 and 5.2.6.2.
The following script was sent by means of https://server:50001/manufacturing-xml/com/sap/me/integration/xchange/test/Test.jsp :
<PRODUCTION_REQUEST>
<START>
<SFC_LIST>
<SFC>
<SITE>SK</SITE>
<ACTIVITY>START_XML</ACTIVITY>
<ID>M535151-001</ID>
<RESOURCE>DEFAULT</RESOURCE>
<OPERATION>OP1</OPERATION>
<USER>SITE_ADMIN</USER>
<QTY>1</QTY>
</SFC>
</SFC_LIST>
</START>
</PRODUCTION_REQUEST>
The SFC was in queue at OP1.
The SFC was started successfully.
System Rules:
Allow Remote Legacy Access = True
Require Legacy Security Validation = True
Regards,
Sergiy
Hi Ivan,
Did you use http://<Host>:<port>/manufacturing-services/ProductionService?WSDL service for and startbyItem operation? I did not get the same XML structure there. Could you please suggest me the used service for the same.
Thanks
Chandan
Hi Chandan,
This is not about WS but rather legacy Production Interface - see the guide here.
Regards,
Sergiy
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.