on 2024 Nov 28 10:25 AM
Hello Together.
I try to update a shopOrder by calling the ShopOrderServiceWS in 2 steps.
1. readShopOrder to get the modifiedDateTime
2. updateShopOrder with modifiedDateTime
There seems to be an issue with the modifiedDateTime in PCO. In the xml the format is "2024-11-27T11:08.000+01:00". The PCO-Datatype is System.dateTime. When using the read datetime of step1 the value is outModifiedDateTime [System.DateTime]: 2024-11-27T10:08:01Z.
It looks like there gets the information "+01:00" lost. The Answer is always "Message 100006".
When I try the same in the WSNavigatior it already works well...
Does anybody has a hint for me?
Shown in NWA WSNavigator (why is there a diff between modifiedDateTime and createdDateTime?):
>>> Starting process <<<
--- Event ID: 2451 --- Event Type: Information ---
----> [T_ME_Multiple_test]: Call 1: Start of call in mode [EntryPoint], exclusive lock, transaction ID [null]. The variable values passed to the destination system are:
inQtyToAdd [System.Double]: 1
inShopOrderRef [System.String]: ShopOrderBO:34,3316775
--- Event ID: 3377 --- Event Type: Information ---
[T_ME_Multiple_test]: Call 1-1, step #10: Calling destination [T_ME_MPS_ShopOrderService_readShopOrderQtyInfo]. The input values sent to the destination are: inShopOrderRef [System.String]: ShopOrderBO:34,3316775
--- Event ID: 2472 --- Event Type: Information ---
[T_ME_Multiple_test]: Call 1-1, step #10: Destination [T_ME_MPS_ShopOrderService_readShopOrderQtyInfo] returned the following values:
outMaximumDeliveryQty [System.Double]: 0
outMaximumDeliveryQtyIsRounded [System.Boolean]: False
outMinimumDeliveryQty [System.Double]: 0
outMinimumDeliveryQtyIsRounded [System.Boolean]: False
outModifiedDateTime [System.DateTime]: 2024-11-27T10:08:01Z
outOverdeliveryTolerance [System.Double]: 0
outPlannedItemRef [System.String]: ItemBO:34,255776,#
outPlannedRouterRef [System.Object]: --NULL--
outPlannedWorkCenterRef [System.Object]: --NULL--
outPriority [System.Double]: 500
outQuantityDone [System.Double]: 1000
outQuantityOrdered [System.Double]: 0
outQuantityReleased [System.Double]: 128001
outQuantityScrapped [System.Double]: 0
outQuantityToBuild [System.Double]: 128020
outRouterRef [System.String]: RouterBO:34,3316775-50023929-1,H,A-1
outSfcQtyInQueueOrInWork [System.Double]: 128001
outShopOrder [System.String]: 3316775
outShopOrderRef [System.String]: ShopOrderBO:34,3316775
outShopOrderType [System.String]: PRODUCTION
outStatus [System.String]: Releasable
outToleranceDefinedIn [System.String]: PERCENTAGE
outUnderdeliveryTolerance [System.Double]: 0
outUnlimitedOverdelivery [System.Boolean]: False
Duration: 122 ms.
--- Event ID: 3370 --- Event Type: Information ---
[T_ME_Multiple_test]: Call 1-1, step #10: Branching condition [20] has been evaluated. Calculated result is [20]. Continue with step [20].
--- Event ID: 3377 --- Event Type: Information ---
[T_ME_Multiple_test]: Call 1-2, step #20: Calling destination [T_ME_MPS_ShopOrderService_updateShopOrderQty]. The input values sent to the destination are:
inModifiedDateTime [System.DateTime]: 2024-11-27T10:08:01Z
inPlannedItemRef [System.String]: ItemBO:34,255776,#
inQuantityToBuild [System.Double]: 128021
inShopOrder [System.String]: 3316775
inShopOrderRef [System.String]: ShopOrderBO:34,3316775
--- Event ID: 2462 --- Event Type: Error ---
[T_ME_Multiple_test]: Call 1-2, step #20: An UNHANDLED exception occurred when calling destination [T_ME_MPS_ShopOrderService_updateShopOrderQty]:
Datensatz wurde durch anderen Benutzer aktualisiert (Meldung 10006) (Meldung 10006)
The current variable values are:
inQtyToAdd [System.Double, updateCount=1]: 1
inShopOrderRef [System.String, updateCount=1]: ShopOrderBO:34,3316775
newQuantityToBuild [System.Double, updateCount=1]: 128021
outMaximumDeliveryQty [System.Double, updateCount=1]: 0
outModifiedDateTime [System.DateTime, updateCount=1]: 2024-11-27T10:08:01Z
outPlannedItemRef [System.String, updateCount=1]: ItemBO:34,255776,#
outPriority [System.Double, updateCount=1]: 500
outQuantityToBuild [System.Double, updateCount=1]: 128020
outShopOrder [System.String, updateCount=1]: 3316775
outShopOrderRef [System.String, updateCount=1]: ShopOrderBO:34,3316775
outShopOrderType [System.String, updateCount=1]: PRODUCTION
outStatus [System.String, updateCount=1]: Releasable
>>> Process ended with an exception:
Datensatz wurde durch anderen Benutzer aktualisiert (Meldung 10006) (Meldung 10006)
Call stack:
bei SAP.Manufacturing.Connectivity.Destinations.UniWs.Intern.Serialization.SoapResponseParser.ProcessFault(XmlReader reader)
bei SAP.Manufacturing.Connectivity.Destinations.UniWs.Intern.Serialization.SoapResponseParser.Parse(Stream stream)
bei SAP.Manufacturing.Connectivity.Destinations.UniWs.Invoker.UniWsInvoker.Invoke(Dictionary`2 variables)
bei SAP.Manufacturing.Connectivity.Destinations.UniWs.UniWsDestination.Send(Dictionary`2 variables)
bei SAP.Manufacturing.Connectivity.MultipleCallDestination.MultipleCallDestination.executeDestinationCall(McdDestinationCall destinationCall, McdCalculationEngine calcEngine, Int32 callCounter, Int32 nextDestinationCallIndex, TransactionContext transactionContext, Boolean& breakLoop)
bei SAP.Manufacturing.Connectivity.MultipleCallDestination.MultipleCallDestination.executeSend(Dictionary`2 inputValues, Boolean exclusiveLock, TransactionContext transactionContext)
bei SAP.Manufacturing.Connectivity.MultipleCallDestination.MultipleCallDestination.Send(Dictionary`2 inputValues)
bei SAP.Manufacturing.Connectivity.MultipleCallDestination.McdTester.Run() <<<
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.