In SAP Business ByDesign 1502 the web service ManageSupplierIn has been enhanced by element CreateFromBusinessPartnerIndicator to assign the role “Supplier” to existing business partners.

 

In detail:

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.

<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>

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.

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Knut Heusermann Post author

    With release 1508 ByDesign supports a similar action for ByD accounts and prospects as well.

    For this the web service ManageCustomerIn has been enhanced by element CreateFromBusinessPartnerIndicator to assign the role “Account” or “Prospect” to existing business partners.

    (0) 
    1. Toke Kit

      Hi,

      Thanks for your blog.

      It is really helpful for me.

      I think it is able to assign role supplier to an existing business partner in the Supplier

      Excel Upload. I tested it.

      I add the indicator “CreateFromBusinessPartnerIndicator” in the xml of Excel Upload of supplier as the following link and it is assigned “true” in the xml.

      How-to Guide For Journal Entry Voucher Excel Customization

      Now, the error occurs when the supplier excel upload is uploaded to sap byd.

      “CreateSupplierFromBusinessPartner : only actionCodes 02 and 04 are allowed”

      For that, although the actionCode from xml is assigned “02”, the error will not change.

      If there is any problem in my testing, please give me an idea.

      Best regards,

      Toke Kit.

      (0) 

Leave a Reply