Definition
An interface to create Purchase Proposals for an external production planning system.
Business Context and Use
The ManagePurchaseProposalIn inbound service interface contains an operation that receives information regarding material, site, quantity, date, and time to create a purchase proposal.
Example
Request
<n0:CreatePurchaseProposal xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<CreatePurchaseProposal>
<SequenceNumber>1</SequenceNumber>
<SupplyPlanningAreaID>MC64000</SupplyPlanningAreaID>
<MaterialID>MCF-0001</MaterialID>
<MaterialAvailabilityDateTime timeZoneCode="CET">2014-10-28T12:00:00.1234567Z</MaterialAvailabilityDateTime>
<Quantity unitCode="EA">10</Quantity>
<QuantityTypeCode listID="Token 11" listVersionID="Token 12" listAgencyID="Token 13" listAgencySchemeID="Token 14" listAgencySchemeAgencyID="Tok">EA</QuantityTypeCode>
</CreatePurchaseProposal>
</n0:CreatePurchaseProposal>
Response
-<n0:CreatePurchaseProposalResponse xmlns:prx="urn:sap.com:proxy:H3E:/1SAI/TAE380740446EA794D41105:804" xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">-<PurchaseProposalsCreated><SequenceNumber>1</SequenceNumber><PrurchaseProposalID>171</PrurchaseProposalID></PurchaseProposalsCreated></n0:CreatePurchaseProposalResponse>
More Information
You can find general information about Web services, their structure and consumption in the Web Services documentation.
Definition
To create one or more purchase proposals using imported structured data.
Business Context and Use
The CreateBundle operation is used to create one or more purchase proposals using imported structured data.
Structure
Request Type
The request message CreatePurchaseProposalMessage contains a CreatePurchaseProposal node element.
Node - CreatePurchaseProposal
This is the root node for each purchase proposal being passed in the request. The CreatePurchaseProposal node can occur multiple times in the request message. This means that multiple purchase proposals can be created through a single web service request. Following are the elements of this node: -
Element |
Description |
SequenceNumber |
Sequence number. This field is mandatory. |
SupplyPlanningAreaID |
Site ID of the site where the material is purchased. This field is mandatory. |
MaterialID |
Material ID. This field is mandatory. |
ProductRequirementSpecificationID |
Product Specification ID. |
MaterialAvailabilityDateTime |
Proposed execution datetime of purchase. Time zone code is defaulted to 'UTC'. This field is mandatory. |
Quantity |
Material quantity and unit of measure. The material quantity must be in planning unit of measure. This field is mandatory. |
QuantityTypeCode |
Material quantity type code. This field is mandatory. |
Note:
Though the serial number field is mandatory, it is not used in creation of purchase proposals. It is only used for error handling purpose. If an error occurs in creation of purchase proposal for any of the record in input message, the error message will indicate the serial number of the purchase proposal for which creation failed.
Response Type
The response message CreatePurchaseProposalResponse contains two nodes:
PurchaseProposalsCreated
Log
The PurchaseProposalsCreated displays the following information of the created purchase proposal:
Element |
Description |
SequenceNumber |
The serial number specified in the request |
PurchaseProposalID |
Identifier of the purchase proposal created |
In addition, a log is also provided, which gives the details of errors encountered during the creation, if any.
Support for extensibility:
This interface operation does not support extensibility.
Example
Request
<n0:CreatePurchaseProposal xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<CreatePurchaseProposal>
<SequenceNumber>1</SequenceNumber>
<SupplyPlanningAreaID>MC64000</SupplyPlanningAreaID>
<MaterialID>MCF-0001</MaterialID>
<MaterialAvailabilityDateTime timeZoneCode="CET">2014-10-28T12:00:00.1234567Z</MaterialAvailabilityDateTime>
<Quantity unitCode="EA">10</Quantity>
<QuantityTypeCode listID="Token 11" listVersionID="Token 12" listAgencyID="Token 13" listAgencySchemeID="Token 14" listAgencySchemeAgencyID="Tok">EA</QuantityTypeCode>
</CreatePurchaseProposal>
</n0:CreatePurchaseProposal>
Response
-<n0:CreatePurchaseProposalResponse xmlns:prx="urn:sap.com:proxy:H3E:/1SAI/TAE380740446EA794D41105:804" xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">-<PurchaseProposalsCreated><SequenceNumber>1</SequenceNumber><PurchaseProposalID>171</PurchaseProposalID></PurchaseProposalsCreated></n0:CreatePurchaseProposalResponse>