cancel
Showing results for 
Search instead for 
Did you mean: 

Import custom SFC by SAPME default web service or xchange

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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!

Former Member
0 Kudos

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.

Former Member
0 Kudos

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>

0 Kudos

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.

Former Member
0 Kudos

Hi,

I've tried this, but the same error.

<PRODUCTION_REQUEST>

<START>

<SFC_LIST>

<SFC>

<SITE>HP</SITE>

<ACTIVITY></ACTIVITY>

<ID>I-SFC-20110125-01</ID>

<RESOURCE>RESTEST1</RESOURCE>

<OPERATION>OP1</OPERATION>

<USER>IVAN</USER>

<QTY>1</QTY>

</SFC>

</SFC_LIST>

</START>

</PRODUCTION_REQUEST>

0 Kudos

Hi Ivan,

Please confirm that you use Production XML Client, not Data Exchange Client. Have you specified the correct Site/User/Password in Test Production XML window?

Regards,

Alex.

Former Member
0 Kudos

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.

0 Kudos

Ivan,

Please make sure that 'Allow Remote Legacy Access' System Rule is set to True.

Regards,

Alex.

Former Member
0 Kudos

Of course, otherwise the Change_production can not work.

Former Member
0 Kudos

I have tried the same, have set rule "Allow Remote Legacy Access" to "true" but also get error message "SITE is missing (Message 12001)" althoug I have SITE with a correct value within XML.

0 Kudos

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

Former Member
0 Kudos

Hi Sergiy,

I have set rule Require Legacy Security Validation to false. But I think that is just a rule for security, not for function.

0 Kudos

Once it works with my simplest configuration, you'd rather try the same. And there could be a difference in versions.

Anyway, this investigation requires submitting support ticket.

Regards,

Sergiy

Former Member
0 Kudos

Hi Sergiy,

I have set Require Legacy Security Validation to "true". With this configuration it works.

It seems to be the case, that site is taken from the logged user not from XML content. Is this designed in this way or ist this a bug?.

0 Kudos

I did expect this System Rule to make a trick.

Yes, it is by design.

Regards,

Sergiy

former_member206397
Contributor
0 Kudos

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

0 Kudos

Hi Chandan,

This is not about WS but rather legacy Production Interface - see the guide here.

Regards,

Sergiy

Answers (0)