Skip to Content
0
Former Member
Jun 22, 2016 at 06:06 AM

List All Secondary NC Codes

46 Views

Hello experts,

I am trying to list all secondary NC Codes for a parent NC Code with PAPI NCProductionServiceWSService.

However, no matter I input there for the parentNC segment, all the values changed to null in the develop trace log and no response value was there.

Below is the request content and response content.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mep="mepapi:com:sap:me:nonconformance" xmlns:non="http://www.sap.com/me/nonconformance">

<soapenv:Header/>

<soapenv:Body>

<mep:findValidNCCodes>

<mep:Site>ME 110</mep:Site>

<mep:Request>

<non:parentNCCodes>SHORT_PART</non:parentNCCodes>

</mep:Request>

</mep:findValidNCCodes>

</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>

<ns4:findValidNCCodesResponse xmlns:ns2="http://www.sap.com/me/nonconformance" xmlns:ns4="mepapi:com:sap:me:nonconformance" xmlns:ns3="http://www.sap.com/me/common" xmlns:ns5="mepapi:com:sap:me:reasoncode">

<ns4:Response/>

</ns4:findValidNCCodesResponse>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

I also pasted the log file here.

[0]{0} SELECT t.NC_CODE_OR_GROUP_GBO, NC_CODE.DESCRIPTION, NC_CODE.NC_CATEGORY, NC_CODE_DEF.PRIORITY, NC_CODE_DEF.COLLECT_REQD_NC_DATA, NC_CODE_DEF.VALID_AT_ALL_OPERATIONS FROM NC_SECONDARY_CODE t, NC_CODE_DEF, NC_CODE, STATUS_MEANING WHERE t.NC_CODE_DEF_BO='NCCodeDefBO:NCCodeBO:ME 110,null' and NC_CODE_DEF.NC_CODE_OR_GROUP_GBO=t.NC_CODE_OR_GROUP_GBO and NC_CODE.HANDLE=NC_CODE_DEF.NC_CODE_OR_GROUP_GBO AND NC_CODE.STATUS_BO = STATUS_MEANING.STATUS_BO AND STATUS_MEANING.STATUS_MEANING_TYPE = 'Enabled' AND STATUS_MEANING.STATUS_MEANING = 'true'

Can you please advise me what was wrong here?