on 2023 Aug 17 1:40 PM
SAP Digital Manufacturing Cloud.
I have this simple router defined:
I have an SFC in Queue at the ASSEMBLY Operation (Activity ID 20), and am trying to use a Production Process that calls the Change Production activity to move the SFC to Activity ID 10. When I debug the process, I get a response that says failed for the SFC. Here is the response detail:
Request clarification before answering.
Manoel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Steve,
Can you try again, without providing any routingStepId?
If it still fails, I suggest you raise a ticket so support/development colleagues can better assist you.
Br,
Manoel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steve,
I understand ME used to have this capability, but I'm afraid DM Change Production service is not yet there.
As far as I understand, Change Production currently supports replacing BOM and Routing only, as mentioned in API Reference: "Assigns a new routing or a new Bill of Materials (BOM), or both to given Shop Floor Controls (SFCs)".
That said, BOM and Routing fields are not required, as you might want to replace either/or.
You are using the input parameter Routing as KGB_PRO, but I assume that the SFC is already in KGB_PRO routing, and you are trying to change the SFC routingStepId (Operation) only, by informing 10 in routingStepId field, correct? As I wrote before, I never tried that, but I'm afraid this Service does not support that and that might be the root cause of the error.
Perhaps you can try creating a KGB_PRO2 routing as a copy of KGB_PRO and see if you can change the SFC to this different routing in routingStepId 10. I would expect that to work just fine!
By the way, you are passing "operatorID" as "WELDING", but keep in mind that operatorID is actually "The new operator who executes the Shop Floor Control (SFC). The property only takes effect when the specified SFC is in Active status. After production change, only this operator could execute the SFC from its current operation. The specified operator must have certification on the material, resource and operation.", not the Operation.
Hope it helps,
Manoel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also as mentioned in API Reference, routingStepId is used to "Specify a particular routing step ID of the new routing. It determines from which routing step the SFC should be started. Based on the original status of the Shop Floor Control (SFC), the SFC will be automatically switched to In Queue or Active status at the routing step. If the property is not set, and the original status of the SFC is New or in Queue, it will be set to In Queue at the first step".
So I assume routingStepId is only used when changing routings, not to move the SFC within the current routing.
Br,
Manoel
Hi Manoel,
Ok I copied routing KGB_PRO to KGB_PRO2 and called the production Process with the new routing name, and did NOT assing a value to operatorID:
[Debug] “Change_ProductionRequestBody” created with value {"plant":"ELS01","sfcs":["KBG01001"],"routingStepId":"10","resource":null,"operatorID":null,"routing":{"routing":"KGB_PRO2","routingType":"PRODUCTION","version":"A"}}Here is the response:
Regards, Steve
Hi Stephen, how your Change Production input looks like?
I assume you are trying to use routingStepId field to change the SFC from Op 20 to Op 10, while leaving other fields like BOM & Routing blank? If so, although I never tried myself, I'm afraid this will not work, as Change Production is supposed to:
"Assigns a new routing or a new Bill of Materials (BOM), or both to given Shop Floor Controls (SFCs)."
So, in my understanding, routingStepId is where the SFC will be placed in the new routing when the SFC routing is replaced and can't be used to move the SFC within the current routing.
Does it make sense?
Hope it helps,
Manoel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoel,
here is the API Model JSON:
{
"plant": "string",
"sfcs": [
"string"
],
"routing": {
"routing": "string",
"routingType": "PRODUCTION",
"version": "string"
},
"routingStepId": "string",
"bom": {
"bom": "string",
"bomType": "USERBOM",
"version": "string"
},
"resource": "string",
"operatorID": "string"
}
and here is what is being passed to the API:
{"plant":"ELS01","sfcs":["KBG01001"],"routingStepId":"10","resource":null,"operatorID":"WELDING","routing":{"routing":"KGB_PRO","routingType":"PRODUCTION","version":"A"}}
NOTE: It was possible to use the old SAP ME Change Production activity or PAPI call to move an SFC to a different step on the same router. I suspect this is a requirement for most any MES production environment. Are you saying that this is NOT possible in DM Execution now?
Regards, Steve
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.