on 2018 Jan 26 7:14 AM
Hello,
We are trying to save the parametric data via the API createParametricData. and we found the <dat:description> tag has maximum length 40. Because if we set more than 40 it will come back the error like Description is too long (78 > 40). I am asking because when I checked the table parametric_measure the column DESCRIPTION does have the maximum length 80 - "DESCRIPTION" NVARCHAR2(80).
So please clarify whether this is a bug for the API, or it is designed as it is.
I copy my test PAPI request here for your reference:
================================================
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mep="mepapi:com:sap:me:datacollection" xmlns:dat="http://www.sap.com/me/datacollection"> <soapenv:Header/> <soapenv:Body> <mep:createParametricData> <!--Optional:--> <mep:Site>TEST</mep:Site> <!--Optional:--> <mep:Request> <dat:gboRef>SFCBO:TEST,T_LEON_TEST_005</dat:gboRef> <!--Optional:--> <dat:resourceRef>ResourceBO:TEST,R_LABELING01</dat:resourceRef> <dat:type>MANUAL</dat:type> <dat:testStatus>PASS</dat:testStatus> <dat:testPassed>true</dat:testPassed> <dat:dcGroupRef>DcGroupBO:TEST,DC_PARAMETRIC,001</dat:dcGroupRef> <dat:validate>false</dat:validate> <dat:existingParametricRecord>false</dat:existingParametricRecord> <!--1 or more repetitions:--> <dat:parametricMeasureList> <dat:measureName>2</dat:measureName> <!--Optional:--> <dat:measureGroup>2</dat:measureGroup> <!--Optional:--> <dat:description>CONF Activate channel OABR-ATM (ST8550 P00000000000000000000000000000000000000</dat:description> <!--Optional:--> <dat:componentType>1</dat:componentType> <!--Optional:--> <dat:pin>1</dat:pin> <dat:measureStatus>PASS</dat:measureStatus> <!--Optional:--> <dat:measureType>1</dat:measureType> <!--Optional:--> <dat:memo>2</dat:memo> <!--Optional:--> <dat:unitOfMeasure>2</dat:unitOfMeasure> <dat:dataType>TEXT</dat:dataType> <!--Optional:--> <dat:highLimit>221</dat:highLimit> <!--Optional:--> <dat:lowLimit>1</dat:lowLimit> <!--Optional:--> <dat:expected>1</dat:expected> <dat:actual>1</dat:actual> <!--Optional:--> <dat:actualNumber>1</dat:actualNumber> <!--Optional:--> <dat:dcComment>1</dat:dcComment> <!--Optional:--> <dat:originalDCComment>1</dat:originalDCComment> <dat:edited>true</dat:edited> <dat:existingPMRecord>false</dat:existingPMRecord> <dat:existingPMStringNotCollected>false</dat:existingPMStringNotCollected> <dat:firstSequence>1</dat:firstSequence> </dat:parametricMeasureList> </mep:Request> </mep:createParametricData> </soapenv:Body> </soapenv:Envelope>
<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> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Server</faultcode> <faultstring>Description is too long (78 > 40)</faultstring> <detail> <ns3:ResolvedBusinessException xmlns:ns3="mepapi:com:sap:me:datacollection" xmlns:ns2="http://www.sap.com/me/datacollection">See the NetWeaver developer trace log for stack trace information.</ns3:ResolvedBusinessException> </detail> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Request clarification before answering.
User | Count |
---|---|
2 | |
1 | |
1 | |
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.