Samy.
SOAP Purchase Order create API (SAP_COM_0238)
Samy. · over 1 year ago · Question
Answered
Samy.

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

Comments

Comments
Alumni