Skip to Content

Create Purchase Order after creation of Purchase Request automatically

Hi All,

I want to create Purchase Order after creation of Purchase Request automatically.

So , I configure the setting of Automatic Creation of Purchase Orders by using Create purchase order automatically option.  

① If I create Sales Order by third party process ,can be created Purchase Request and Purchase Order automatically.  

② If I create Purchase Proposal and then release , can be created Purchase Request and Purchase Order automatically.

※③ If I create Purchase Request via web service , can be created Purchase Request and can not be created PurchaseOrder.

I don't know why? It is normally ?

If I want to create Purchase Order after creation of Purchase Request automatically via web service, what should I do and which setting need more?

Best Regards,

Charm

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 01, 2017 at 08:53 AM

    Hi Charm,

    Are you using "Manage purchase requests" WSDL?,If yes share the payload which your facing issue in automatic release PR to PO, let me analyse it and let you know.

    Regards,

    Vignesh Ravichandran

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Vignesh Ravichandran,

      Of course, I used "Manage Purchase Requests" WSDL.

      Here is my payload.

      http://www.w3.org/2003/05/soap-envelope" xmlns:glob=" http://sap.com/xi/SAPGlobal20/Global">

      <soap:Header/>

      <soap:Body>

      <glob:PurchaseRequestMaintainBundleRequest>

      <BasicMessageHeader/>

      <PurchaseRequestMaintainBundle actionCode="01">

      <Item actionCode="01">

      <ProductKeyItem>

      <ProductTypeCode>1</ProductTypeCode>

      <ProductIdentifierTypeCode>1</ProductIdentifierTypeCode>

      <ProductID>0A-TESTPRODUCT-0007</ProductID>

      </ProductKeyItem>

      <TypeCode>18</TypeCode>

      <OpenQuantity unitCode="Z01">10</OpenQuantity>

      <CompanyIDParty>

      <PartyID>1000</PartyID>

      </CompanyIDParty>

      <SupplierIDParty>

      <PartyID>STH90007</PartyID>

      </SupplierIDParty>

      <directMaterialIndicator>true</directMaterialIndicator>

      <ThirdPartyIndicator>true</ThirdPartyIndicator>

      <DeliveryPeriod>

      <StartDateTime timeZoneCode="UTC">2017-08-25T12:00:00.1234567Z</StartDateTime>

      <EndDateTime timeZoneCode="UTC">2017-08-25T12:00:00.1234567Z</EndDateTime>

      </DeliveryPeriod>

      <ShipToLocationID>1000</ShipToLocationID>

      </Item>

      </PurchaseRequestMaintainBundle>

      </glob:PurchaseRequestMaintainBundleRequest>

      </soap:Body>

      </soap:Envelope>

      Best Regards,

      Charm

  • Sep 01, 2017 at 11:06 AM

    Hello Charm,

    The feel that, basic setting is enough to create Automatic Creation of Purchase Orders. Since the PR is getting created through web service, there will no origin type for the PR to create PO automatically. You can update * in all the four attributes.

    Company ID, Supplier ID, Origin Type, Product Category & Creation Options -Create purchase order automatically.

    This should create PO automatically.

    Note:

    In case, if you update * for all attributes and define - Creation Options like Create purchase order automatically + Create purchase order manually. This might create a conflict. Hence remove the * for Creation Option Create purchase order manually.

    Keep * for only Create purchase order automatically rule.

    Can you check this approach?

    Please attach the sample request which you are using to create PR.

    Best Regards,

    Arun

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Arun,

      I set * in all the four attributes but it can't create PO automatically via web service.

      I don't use Creation Option Create purchase order manually.

      Here is my payload.

      http://www.w3.org/2003/05/soap-envelope" xmlns:glob=" http://sap.com/xi/SAPGlobal20/Global">

      <soap:Header/>

      <soap:Body>

      <glob:PurchaseRequestMaintainBundleRequest>

      <BasicMessageHeader/>

      <PurchaseRequestMaintainBundle actionCode="01">

      <Item actionCode="01">

      <ProductKeyItem>

      <ProductTypeCode>1</ProductTypeCode>

      <ProductIdentifierTypeCode>1</ProductIdentifierTypeCode>

      <ProductID>0A-TESTPRODUCT-0007</ProductID>

      </ProductKeyItem>

      <TypeCode>18</TypeCode>

      <OpenQuantity unitCode="Z01">10</OpenQuantity>

      <CompanyIDParty>

      <PartyID>1000</PartyID>

      </CompanyIDParty>

      <SupplierIDParty>

      <PartyID>STH90007</PartyID>

      </SupplierIDParty>

      <directMaterialIndicator>true</directMaterialIndicator>

      <ThirdPartyIndicator>true</ThirdPartyIndicator>

      <DeliveryPeriod>

      <StartDateTime timeZoneCode="UTC">2017-08-25T12:00:00.1234567Z</StartDateTime>

      <EndDateTime timeZoneCode="UTC">2017-08-25T12:00:00.1234567Z</EndDateTime>

      </DeliveryPeriod>

      <ShipToLocationID>1000</ShipToLocationID>

      </Item>

      </PurchaseRequestMaintainBundle>

      </glob:PurchaseRequestMaintainBundleRequest>

      </soap:Body>

      </soap:Envelope>

      Best Regards,

      Charm