cancel
Showing results for 
Search instead for 
Did you mean: 

Setting default resource in ProductionOrderRequest.xslt

former_member202208
Active Participant
0 Kudos

Hello all,

To set 'Resource Type' & 'Default Resource', i have added the following in Z_ProductionOrderRequest.xslt.

ResourceType is working but Resource is not set. Is the syntax correct?

<sch:ResourceTypeRef>           

  <sch:ResourceType>VP1</sch:ResourceType>

</sch:ResourceTypeRef>

<sch:ResourceRef>

  <sch:Resource>311877</sch:Resource>

</sch:ResourceRef>

Version:

MEINT: 6.1.0.0

ME: 6.1

Thanks for your help..


Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182330
Active Contributor
0 Kudos

Hi,

Usually Ref means that object handle should be used. For resource it should look like 'ResourceBO:1010,311877'. Where 1010 is your site. To compose such a handle system needs site value, i.e.:

<me:ResourceRef>

                   

                        <me:SiteRef>

                           <me:Site>?</me:Site>

                        </me:SiteRef>

                        <me:Resource schemeID="?" schemeAgencyID="?">?</me:Resource>

</me:ResourceRef>

Same is relevant for ResourceTypeRef.

Regards,
Konstantin

former_member202208
Active Participant
0 Kudos

Hello Konstantin,

In <sch:RouterStepList>  >>  <sch:RouterStep> & <sch:OperationListIn> >> <sch:Operation>, i have the following, but still its not working. Am i missing something?

  <sch:ResourceRef>

  <sch:SiteRef>

  <sch:Site>A311</sch:Site>

  </sch:SiteRef>

  <sch:Resource>ResourceBO:A311,BVLBLD</sch:Resource>

  </sch:ResourceRef>

Thanks for your help.

Thanks,

Shridhar

former_member182330
Active Contributor
0 Kudos

Resource tag should just contain resource name, system composes handle itself from 2 values.

Kc

former_member202208
Active Participant
0 Kudos

Hi,

I have tried with and without Handle, its not working. Works from operation maintenance screen.

Here is the Request xml:

<?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:meint="http://sap.com/xi/MEINT" xmlns:sch="http://sap.com/xi/ME">

  <soapenv:Header/>

  <soapenv:Body>

  <meint:ProductionOrderUpdateRequest_sync>

  <meint:ProductionOrder>

  <sch:SiteRef>

  <sch:Site>SDK</sch:Site>

  </sch:SiteRef>

  <sch:ShopOrderIn>

  <sch:SiteRef>

  <sch:Site>SDK</sch:Site>

  </sch:SiteRef>

  <sch:ShopOrder>EP0200091837-4</sch:ShopOrder>

  <sch:ShopOrderTypeRef>

  <sch:OrderType>PRODUCTION</sch:OrderType>

  </sch:ShopOrderTypeRef>

  <sch:StatusRef>

  <sch:Status>501</sch:Status>

  </sch:StatusRef>

  <sch:PlannedItemRef>

  <sch:Item>504640-20-49-30</sch:Item>

  <sch:Revision>#</sch:Revision>

  </sch:PlannedItemRef>

  <sch:Priority>500</sch:Priority>

  <sch:PlannedStartDate>2013-10-03T06:00:00</sch:PlannedStartDate>

  <sch:PlannedCompleteDate>2013-10-03T13:40:58</sch:PlannedCompleteDate>

  <sch:QuantityToBuild>1</sch:QuantityToBuild>

  <sch:QuantityOrdered>1</sch:QuantityOrdered>

  <sch:PlannedBOMRef>

  <sch:Bom>504640-20-49-30-1-1</sch:Bom>

  <sch:Revision>#</sch:Revision>

  </sch:PlannedBOMRef>

  <sch:PlannedRouterRef>

  <sch:Router>50123097-16</sch:Router>

  <sch:RouterType>U</sch:RouterType>

  <sch:Revision>#</sch:Revision>

  </sch:PlannedRouterRef>

  <sch:ErpOrder>true</sch:ErpOrder>

  <sch:AllowInqueueSfcOnSoClose>true</sch:AllowInqueueSfcOnSoClose>

  <sch:ErpUnitOfMeasure>EA</sch:ErpUnitOfMeasure>

  </sch:ShopOrderIn>

  <sch:BOMIn>

  <sch:SiteRef>

  <sch:Site>SDK</sch:Site>

  </sch:SiteRef>

  <sch:Bom>504640-20-49-30-1-1</sch:Bom>

  <sch:StatusRef>

  <sch:Status>201</sch:Status>

  </sch:StatusRef>

  <sch:Description>504640-20-49-30</sch:Description>

  <sch:ErpBom>10435747</sch:ErpBom>

  <sch:EffectivityControl>R</sch:EffectivityControl>

  <sch:CurrentRevision>true</sch:CurrentRevision>

  <sch:BomComponentList/>

  <sch:CustomFieldList>

  <sch:CustomField>

  <sch:Attribute>ERP_MATERIAL</sch:Attribute>

  <sch:Value>504640-20-49-30</sch:Value>

  </sch:CustomField>

  </sch:CustomFieldList>

  </sch:BOMIn>

  <meint:Routing>

  <sch:RouterIn>

  <sch:SiteRef>

  <sch:Site>SDK</sch:Site>

  </sch:SiteRef>

  <sch:Router>50123097-16</sch:Router>

  <sch:RouterType>U</sch:RouterType>

  <sch:Description>504640-20-49-30</sch:Description>

  <sch:StatusRef>

  <sch:Status>201</sch:Status>

  </sch:StatusRef>

  <sch:EffectivityControl>R</sch:EffectivityControl>

  <sch:CurrentRevision>true</sch:CurrentRevision>

  <sch:TemporaryRouter>false</sch:TemporaryRouter>

  <sch:EntryRouterStepRef>

  <sch:RouterRef>

  <sch:Router>50123097-16</sch:Router>

  <sch:RouterType>U</sch:RouterType>

  </sch:RouterRef>

  <sch:StepId>10</sch:StepId>

  </sch:EntryRouterStepRef>

  <sch:RouterStepList>

  <sch:RouterStep>

  <sch:ReportingStep>0010</sch:ReportingStep>

  <sch:Rework>false</sch:Rework>

  <sch:RouterStepRef>

  <sch:StepId>10</sch:StepId>

  </sch:RouterStepRef>

  <sch:ErpSequence>0</sch:ErpSequence>

  <sch:QueueDecisionType>C</sch:QueueDecisionType>

  <sch:IsLastReportingStep>false</sch:IsLastReportingStep>

  <sch:ResourceTypeRef>

  <sch:ResourceType>VP4</sch:ResourceType>

  </sch:ResourceTypeRef>

  <sch:ResourceRef>

  <sch:Resource>BVLBLD</sch:Resource>

  </sch:ResourceRef>

  <sch:Sequence>1</sch:Sequence>

  <sch:RouterOperationList>

  <sch:RouterOperation>

  <sch:OperationRef>

  <sch:Operation>50123097-16-0-0010</sch:Operation>

  <sch:Revision>#</sch:Revision>

  </sch:OperationRef>

  <sch:MaxLoop>1</sch:MaxLoop>

  <sch:StepType>N</sch:StepType>

  <sch:CustomFieldList>

  <sch:CustomField>

  <sch:Attribute>CONTROL_KEY</sch:Attribute>

  <sch:Value>INDT</sch:Value>

  </sch:CustomField>

  </sch:CustomFieldList>

  </sch:RouterOperation>

  </sch:RouterOperationList>

  <sch:RouterComp>

  <sch:RouterOperation>

  <sch:RouterStepRef>

  <sch:StepId>10</sch:StepId>

  </sch:RouterStepRef>

  </sch:RouterOperation>

  </sch:RouterComp>

  <sch:StepId>10</sch:StepId>

  

  </sch:RouterStep>

  </sch:RouterStepList>

  <sch:CustomFieldList>

  <sch:CustomField>

  <sch:Attribute>ERP_MATERIAL</sch:Attribute>

  <sch:Value>504640-20-49-30</sch:Value>

  </sch:CustomField>

  </sch:CustomFieldList>

  </sch:RouterIn>

  <sch:OperationListIn>

  <sch:Operation>

  <sch:Operation>50123097-16-0-0010</sch:Operation>

  <sch:Revision>A</sch:Revision>

  <sch:Description>0010</sch:Description>

  <sch:CurrentRevision>true</sch:CurrentRevision>

  <sch:MaxLoop>1</sch:MaxLoop>

  <sch:ResourceTypeRef>

  <sch:ResourceType>VP4</sch:ResourceType>

  </sch:ResourceTypeRef>

  <sch:ResourceRef>

  <sch:Resource>BVLBLD</sch:Resource>

  </sch:ResourceRef>

  <sch:StatusRef>

  <sch:Status>201</sch:Status>

  </sch:StatusRef>

  <sch:Type>N</sch:Type>

  <sch:EffectivityControl>R</sch:EffectivityControl>

  </sch:Operation>

  </sch:OperationListIn>

  </meint:Routing>

  </meint:ProductionOrder>

  </meint:ProductionOrderUpdateRequest_sync>

  </soapenv:Body>

</soapenv:Envelope>

any help would be highly appreciated.

Thanks,