cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Purchase Order create API (SAP_COM_0238)

Former Member
0 Kudos

Hello Community,

i'm struggling trying to make the purchase order create SOAP API work (https://api.sap.com/api/MMPUR_PURCHASEORDERREQUEST_IN/). I've succeeded with the oData API but we need to simulate all the POs before Commiting to SAP. I checked all the mandatory data for a PO is passed but i'm not getting any response when testing in Postman/SOAPUI

Here is my payload if you guys can Help:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header/>
    <soapenv:Body>
        <ns0:PurchaseOrderRequest xmlns:ns0="http://sap.com/xi/Procurement">
            <MessageHeader>
                <CreationDateTime>2019-06-21T11:19:28Z</CreationDateTime>
                <TestDataIndicator>true</TestDataIndicator>
                <SenderBusinessSystemID>Sage</SenderBusinessSystemID>
            </MessageHeader>
            <PurchaseOrder>
                <ActionCode>1</ActionCode>
                <DocumentType>NB</DocumentType>
                <PurchaseOrderExternalReferenceID>15987</PurchaseOrderExternalReferenceID>
                <PurchasingOrganization>2000</PurchasingOrganization>
                <PurchasingGroup>001</PurchasingGroup>
                <CompanyCode>FL01</CompanyCode>
                <DocumentCurrency>EUR</DocumentCurrency>
                <SupplierParty>
                    <Supplier>0010000448</Supplier>
                </SupplierParty>
                <PurchaseOrderItem>
                    <PurchaseOrderItemExternalRefID>10</PurchaseOrderItemExternalRefID>
                    <ItemDescription>Item Text</ItemDescription>
                    <Material>100204</Material>
                    <Plant>1000</Plant>
                    <RequestedQuantity unitCode="ROL">15</RequestedQuantity>
                    <DeliveryDate>2019-06-21</DeliveryDate>
                    <ItemPrice>
                        <Amount currencyCode="EUR">12</Amount>
                        <BaseQuantity unitCode="ROL">1</BaseQuantity>
                    </ItemPrice>
                    <AccountAssignment>
                        <AccountAssignmentCategory>K</AccountAssignmentCategory>
                        <AccountAssignmentLine>
                            <ControllingArea>A010</ControllingArea>
                            <Plant>1010</Plant>
                            <CostCenter>CFR01ERG10</CostCenter>
                            <GLAccount>0060200000</GLAccount>
                        </AccountAssignmentLine>
                    </AccountAssignment>
                </PurchaseOrderItem>
            </PurchaseOrder>
        </ns0:PurchaseOrderRequest>
    </soapenv:Body>
</soapenv:Envelope>

Thank you

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Sammy,

Did you make any progress with this? I'm experiencing the same issue so would love to know how you succeeded.

Many Thanks

Nad

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

Have you checked if there are messages in the app Message Dashboard? First you need to use Assign Recipients app to assign yourself to /MMPUR namespace for the inbound service but hopefully you can see your success (or errors) in this app.

Thanks,

Marty

Eric_Yu
Advisor
Advisor
0 Kudos

Hi Samy, as SOAP API is working with un-sync mode that means the PO creation status will not be sent back, there is only a status code can be found, code 202 means the request was accepted by S4HC system, may I know your code in the test case?

ivy_li
Active Contributor
0 Kudos

Hi,

Is the issue resolved now? Do you think the information provided by Edmin is helpful?

BR,

Ivy

former_member132363
Active Contributor
0 Kudos

Here are some SAP resources you may review based on your topic "community,simulate,purchase order"

Customer Influence Update (April 2019)

Apr 8, 2019 ... Community. / Content ... Restricting the ability to create a service purchase order without reference to a contract or req. ? A field in the ... Advanced Variant Configuration - Add Product description into Simulate Configuration.

https://blogs.sap.com/?p=389

2377246 - Successfactors LMS Glossary Terms

In order to use an external exam in an online component, typically, external .... Typical examples might include Classroom, In-Plant Location, Simulator, or Auditorium. .... A system-generated unique number for each purchase in the system.

https://apps.support.sap.com/sap/support/knowledge/public/en/2377246

Data Management Guide for SAP Business Suite

4.2.14 EKKO, EKPO, EKBE, EKKN: Purchase Order Items .... Simulate different data volume scenarios (for example, moderate versus ... ilm@sap.com, or visit us on the Web at http://scn.sap.com/community/information-lifecycle-management.

https://support.sap.com/dam/library/SAP%20Support%20Portal/support-programs-services/solution-manage...

former_member132363
Active Contributor
0 Kudos

Here are some SAP resources you may review based on your topic "community,simulate,purchase order"

Customer Influence Update (April 2019)

Apr 8, 2019 ... Community. / Content ... Restricting the ability to create a service purchase order without reference to a contract or req. ? A field in the ... Advanced Variant Configuration - Add Product description into Simulate Configuration.

https://blogs.sap.com/?p=389

2377246 - Successfactors LMS Glossary Terms

In order to use an external exam in an online component, typically, external .... Typical examples might include Classroom, In-Plant Location, Simulator, or Auditorium. .... A system-generated unique number for each purchase in the system.

https://apps.support.sap.com/sap/support/knowledge/public/en/2377246

Data Management Guide for SAP Business Suite

4.2.14 EKKO, EKPO, EKBE, EKKN: Purchase Order Items .... Simulate different data volume scenarios (for example, moderate versus ... ilm@sap.com, or visit us on the Web at http://scn.sap.com/community/information-lifecycle-management.

https://support.sap.com/dam/library/SAP%20Support%20Portal/support-programs-services/solution-manage...