1 Reply Latest reply on Apr 9, 2020 12:29 PM by bla-Oracle

    Create PR Using Soap Web Service

    3583030

      Dears ,

       

      i used create requisition web service to create PR , web service response with status success and i can query the PR from the table

      but when i try to search for the PR on process requisition or view requisition line i cant find the Requisition

       

      below is the web service code

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/prc/po/editDocument/purchaseRequestService/types/" xmlns:pur="http://xmlns.oracle.com/apps/prc/po/editDocument/purchaseRequestService/">

         <soapenv:Header/>

         <soapenv:Body>

            <typ:createRequisition>

               <typ:interfaceSourceCode>SOURCING</typ:interfaceSourceCode>

               <typ:requisitioningBUId>300000001635095</typ:requisitioningBUId>      

               <typ:groupBy>SUPPLIER</typ:groupBy>

               <typ:initiateApprovalAfterRequisitionImport>N</typ:initiateApprovalAfterRequisitionImport>

               <typ:errorProcessingLevel>ALL</typ:errorProcessingLevel>

               <typ:purchaseRequestPayload>

                  <pur:RequisitioningBUId>300000001635095</pur:RequisitioningBUId>

                  <pur:prc_bu_id>300000001635095</pur:prc_bu_id>          

                  <pur:prc_bu_id>300000001635095</pur:prc_bu_id>

                  <pur:ProcurementBUId>300000001635095</pur:ProcurementBUId>          

                  <pur:RequisitionNumber>73</pur:RequisitionNumber>

                  <pur:ExternallyManagedFlag>true</pur:ExternallyManagedFlag>

                  <pur:PreparerId>300000002223936</pur:PreparerId>          

                  <pur:PurchaseRequestInputReqLineInterface>          

                   <pur:prc_bu_id>300000001635095</pur:prc_bu_id>

                   <pur:ProcurementBUId>300000001635095</pur:ProcurementBUId>          

                     <pur:DestinationTypeCode>INVENTORY</pur:DestinationTypeCode>

                     <pur:ItemDescription>Clay, purchased, uncrushed,Low Cloride</pur:ItemDescription>

                     <pur:ItemNumber>Y10.201.1001.5003.001</pur:ItemNumber>

                     <pur:ItemId>300000001639272</pur:ItemId>

                     <pur:LineType>Goods</pur:LineType>

                     <pur:Quantity unitCode="TONS">1</pur:Quantity>

                     <pur:RequesterId>300000002223936</pur:RequesterId>

                     <pur:SupplierId>300000001639225</pur:SupplierId>

                     <pur:SupplierSiteId>300000001639241</pur:SupplierSiteId>

                     <pur:BackToBackFlag>false</pur:BackToBackFlag>

                     <pur:AutosourceFlag>false</pur:AutosourceFlag>

                     <pur:RequestedDeliveryDate>2020-04-10</pur:RequestedDeliveryDate>

                     <pur:WorkOrderId></pur:WorkOrderId>      

                     <pur:Price>130</pur:Price>

                     <pur:UnitOfMeasureCode>TON</pur:UnitOfMeasureCode>          

                     <pur:DeliverToLocationId>300000002569851</pur:DeliverToLocationId>

                     <pur:DeliverToOrganizationId>300000002569899</pur:DeliverToOrganizationId>            

                     <pur:PurchaseRequestInputReqDistInterface>

                        <pur:ChargeAccountId>300000001639037</pur:ChargeAccountId>

                        <pur:ChargeAccountSegment1>01</pur:ChargeAccountSegment1>

                        <pur:ChargeAccountSegment2>01</pur:ChargeAccountSegment2>

                        <pur:ChargeAccountSegment3>01</pur:ChargeAccountSegment3>

                        <pur:ChargeAccountSegment4>00</pur:ChargeAccountSegment4>

                        <pur:ChargeAccountSegment5>0000000</pur:ChargeAccountSegment5>

                        <pur:ChargeAccountSegment6>0000</pur:ChargeAccountSegment6>

                        <pur:ChargeAccountSegment7>00</pur:ChargeAccountSegment7>

                        <pur:ChargeAccountSegment8>24111101</pur:ChargeAccountSegment8>

                        <pur:ChargeAccountSegment9>00</pur:ChargeAccountSegment9>

                        <pur:DistributionAmount>130</pur:DistributionAmount>

                        <pur:DistributionQuantity unitCode="TONS">1</pur:DistributionQuantity>                

                        </pur:PurchaseRequestInputReqDistInterface>        

                        <pur:Quantity unitCode="TONS">1</pur:Quantity>          

                  </pur:PurchaseRequestInputReqLineInterface>          

               </typ:purchaseRequestPayload>

            </typ:createRequisition>

         </soapenv:Body>

      </soapenv:Envelope>