on 04-18-2012 6:16 PM
Hi Experts,
I am trying to logNc in SAP ME through SOAP UI. I am using the following request XML.Its working fine in one environment and in another environment its giving response as Required value "NC woner" is missing fault string. Is there any user specific configuration in SAP ME or where I am missing in the following request XML.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT">
<soapenv:Header/>
<soapenv:Body>
<me:NCLogRequest_sync>
<me:NCLogRequest>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
<me:NcLog>
<me:Component>
<me:Item></me:Item>
<!--Optional:-->
<me:Revision></me:Revision>
<!--Optional:-->
<me:SiteRef>
<me:Site>me:Site>
</me:SiteRef>
</me:Component>
<me:ComponentSfc>
<me:Sfc></me:Sfc>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
</me:ComponentSfc>
<me:NcCodeRef>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
<me:NcCode languageCode="?"></me:NcCode>
</me:NcCodeRef>
<me:NcContext>
<me:SfcRef>
<me:Sfc></me:Sfc>
<!--Optional:-->
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
</me:SfcRef>
</me:NcContext>
<me:NcOwner>
<me:ResourceRef>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
<me:Resource schemeID="?" schemeAgencyID="?"></me:Resource>
</me:ResourceRef>
<!--Optional:-->
<me:UserRef>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
<me:UserId></me:UserId>
</me:UserRef>
</me:NcOwner>
<me:OperationRef>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
<me:Operation></me:Operation>
<me:Revision></me:Revision>
</me:OperationRef>
<me:Quantity></me:Quantity>
<!--Optional:-->
<me:ResourceRef>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
<me:Resource schemeID="?" schemeAgencyID="?"></me:Resource>
</me:ResourceRef>
</me:NcLog>
</me:NCLogRequest>
</me:NCLogRequest_sync>
</soapenv:Body>
</soapenv:Envelope>
I beleive that you must specify NcOwner as either a user or a resource, as indicated by the request. did you assign any values? Note also that you may have to remove some of the request nodes that don't have any actual values assigned to them in order for the request to execute properly.
- Steve
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 have assigned the values as shown below request xml.
<me:NcOwner>
<me:ResourceRef>
<me:SiteRef>
<me:Site>xxxxxx</me:Site>
</me:SiteRef>
<me:Resource schemeID="?" schemeAgencyID="?">abcd</me:Resource>
</me:ResourceRef>
<me:UserRef>
<me:UserId>Test</me:UserId>
</me:UserRef>
</me:NcOwner>
however I am getting response as "required value NcOwner is missing". I have tried by passing userId and resource individually but response is same message, I am able to LogNC through POD.
Make sure that the user and resource a valid in you Site in ME. Also, I think you will need to delete the node UserRef if you define a value for the node ResourceRef, and vice versa. An NC is only "owned" by one object, either a Resource or a User.
If you can, please post the entire request xml, and change any sensitive values as required.
- Steve
Hi Steve,
I have tried by passing only one object at a time either user or resource. however I am getting same response XML.here is my request xml which is working fine in one environmnet and giving "Required value NcOwner is missing" as response in another.I checked NC Code configuration in ME its same in both.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT" xmlns:me="http://sap.com/xi/ME">
<soapenv:Header/>
<soapenv:Body>
<me:NCLogRequest_sync>
<me:NCLogRequest>
<me:SiteRef>
<me:Site>TEST</me:Site>
</me:SiteRef>
<me:NcLog>
<me:NcCodeRef>
<me:NcCode languageCode="?">TESTFAIL</me:NcCode>
</me:NcCodeRef>
<me:NcContext>
<me:SfcRef>
<me:Sfc>TEST100</me:Sfc>
</me:SfcRef>
</me:NcContext>
<me:NcOwner>
<me:UserRef>
<me:UserId>XXXXXXXX</me:UserId>
</me:UserRef>
</me:NcOwner>
</me:NcLog>
</me:NCLogRequest>
</me:NCLogRequest_sync>
</soapenv:Body>
</soapenv:Envelope>
Hi Steve,
Thanks for your reply.
LogNC working environment.
SAP ME version 5.2.5
SAP NetWeaver CE 7.1 EhP1 SP1
LogNC is giving Problem in
SAP ME version 5.2.6.1
SAP NetWeaver CE 7.1 EhP1 SP6
I am passing the the OperationRef as well but still I am getting the same Response.
my entire XML is given below.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT">
<soapenv:Header/>
<soapenv:Body>
<me:NCLogRequest_sync>
<me:NCLogRequest>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
<me:NcLog>
<me:Component
<me:Item></me:Item>
<me:Revision></me:Revision>
</me:Component>
<me:ComponentSfc>
<me:Sfc></me:Sfc>
</me:ComponentSfc>
<me:NcCodeRef>
<me:NcCode languageCode="?"></me:NcCode>
</me:NcCodeRef>
<me:NcContext>
<me:SfcRef>
<me:Sfc></me:Sfc>
</me:SfcRef>
</me:NcContext>
<me:NcOwner>
<me:ResourceRef>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
<me:UserRef>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
<me:UserId></me:UserId>
</me:UserRef>
</me:NcOwner>
<me:OperationRef>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
<me:Operation></me:Operation>
<me:Revision></me:Revision>
</me:OperationRef>
<me:Quantity></me:Quantity>
<me:ResourceRef>
<me:SiteRef>
<me:Site></me:Site>
</me:SiteRef>
<me:Resource schemeID="?" schemeAgencyID="?"></me:Resource>
</me:ResourceRef>
</me:NcLog>
</me:NCLogRequest>
</me:NCLogRequest_sync>
</soapenv:Body>
</soapenv:Envelope>
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.