In SAP Business ByDesign 1502 the web service ManageSupplierIn has been enhanced by element CreateFromBusinessPartnerIndicator to assign the role “Supplier” to existing business partners.
The element CreateFromBusinessPartnerIndicator 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 CreateFromBusinessPartnerIndicator = “true”, but the role “Supplier” is already assigned, then the system ignores the CreateFromBusinessPartnerIndicator 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.
<Supplier actionCode=”02″ addressInformationListCompleteTransmissionIndicator=”false” communicationArrangementListCompleteTransmissionIndicator=”false” relationshipListCompleteTransmissionIndicator=”false” contactPersonListCompleteTransmissionIndicator=”false” paymentDataListCompleteTransmissionIndicator=”false” bankDetailsListCompleteTransmissionIndicator=”false” deviantTaxClassificationListCompleteTransmissionIndicator=”false” withholdingTaxClassificationListCompleteTransmissionIndicator=”false” generalProductTaxExemptionListCompleteTransmissionIndicator=”false” textListCompleteTransmissionIndicator=”false”>
In SCN blog post Mass Changes of ByD Data using Excel and ByD Web Services you find the Excel sample template AP_ByD_MassChange_Supplier_CreateFromBupa_Windows7_Excel2010.xlsm which can serve as example how to read existing business partners and assign the role “Supplier” to these business partners using Excel and the above mentioned web service enhancement.