on 08-08-2014 4:00 PM
Hi Experts,
on SAP ME 15.0 we are trying to update the resource status by calling the papi service: logResourceStatusChanged
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mep="mepapi:com:sap:me:production" xmlns:prod="http://www.sap.com/me/production">
<soapenv:Header/>
<soapenv:Body>
<mep:logResourceStatusChanged>
<!--Optional:-->
<mep:Site>GPE</mep:Site>
<!--Optional:-->
<mep:Request>
<!--1 or more repetitions:-->
<prod:logResourceStatusChangedList>
<prod:resourceRef>ResourceBO:GPE,MASCHINE1</prod:resourceRef>
<prod:resourceStatusRef>StatusBO:GPE,1</prod:resourceStatusRef>
<!--StatusBO:GPE,5-->
<!--Optional:-->
<prod:dateTime>2014-08-08 13:51:01</prod:dateTime>
</prod:logResourceStatusChangedList>
</mep:Request>
</mep:logResourceStatusChanged>
</soapenv:Body>
</soapenv:Envelope>
Response:
<SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns3:logResourceStatusChangedResponse xmlns:ns4="mepapi:com:sap:me:reasoncode" xmlns:ns2="http://www.sap.com/me/production" xmlns:ns3="mepapi:com:sap:me:production">
<ns3:Response>
<ns2:responseList>
<ns2:resourceTimeLogRef>ResourceTimeLogBO:GPE,ResourceBO:GPE,MASCHINE120140808.144229.564</ns2:resourceTimeLogRef>
</ns2:responseList>
</ns3:Response>
</ns3:logResourceStatusChangedResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
As you see, the response is positiv and I can see the change in the RESOURCE_TIME_LOG table as well. However the tag <prod:dateTime> doesn't seem to have any impact. I was assuming that <prod:dateTime> would eventually set the START_DATE_TIME, but that's not the case. The date is not even validated.
So my question is: What is <prod:dateTime> used for or can it be completely ignored?
thanks for your help.
cheers,
Georg
Hello Georg,
I check JavaDoc and it says that this is the date/time this event took place. If not given, uses the current time.
So, I would expect it to be accepted. Could you try to set data in another format? For example:
2014-08-08T14:21:20.000+02:00
Br,
Alex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.