In SAP Business ByDesign 1502 the web service ManageSupplierIn has been enhanced by element CreateSupplierFromBusinessPartnerIndicator to assign the role “Supplier” to existing business partners.
In detail:
The element CreateSupplierFromBusinessPartnerIndicator can be used to assign the role supplier to existing business partners.
If this element is supplied with value "true", then the following constraints have to be considered:
- The actionCode attribute in message node Supplier shall have value "02" (Update) or "04" (Save), otherwise an error message is returned.
- If the actionCode attribute in message node Supplier has value "02" or “04” and the element InternalID or UUID is filled, then the system assigns the role supplier to the business partner with the given Internal ID or UUID.
- If the actionCode attribute in message node Supplier has value “04” and the elements InternalID and UUID are both empty, then the system creates a new supplier using internal numbering.
- If CreateSupplierFromBusinessPartnerIndicator = "true", but the role "Supplier" is already assigned, then the system ignores the CreateSupplierFromBusinessPartnerIndicator and returns no error message.
The following web service request assigns the role "Supplier" to the customer with ID 100123. Furthermore the web service request adds the supplier specific fields Standard Carrier Alpha and German Customs Number, and assigns the roles Bidder and Freight Forwarder to the supplier. All other business partner data remains untouched and will not be changed.
<n0:SupplierBundleMaintainRequest_sync_V1 xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<Supplier actionCode="02" addressInformationListCompleteTransmissionIndicator="false" communicationArrangementListCompleteTransmissionIndicator="false" relationshipListCompleteTransmissionIndicator="false" contactPersonListCompleteTransmissionIndicator="false" paymentDataListCompleteTransmissionIndicator="false" bankDetailsListCompleteTransmissionIndicator="false" deviantTaxClassificationListCompleteTransmissionIndicator="false" withholdingTaxClassificationListCompleteTransmissionIndicator="false" generalProductTaxExemptionListCompleteTransmissionIndicator="false" textListCompleteTransmissionIndicator="false">
<ObjectNodeSenderTechnicalID>1</ObjectNodeSenderTechnicalID>
<InternalID>100123</InternalID>
<StandardCarrierAlphaCode>SC1234</StandardCarrierAlphaCode>
<GermanCustomsNumberCode>GCN9876</GermanCustomsNumberCode>
<BidderIndicator>true</BidderIndicator>
<FreightForwarderIndicator>true</FreightForwarderIndicator>
<CreateFromBusinessPartnerIndicator>true</CreateFromBusinessPartnerIndicator>
</Supplier>
</n0:SupplierBundleMaintainRequest_sync_V1>