Skip to Content

How to Update BP Addresses via B1iSN9.0

Oct 25, 2016 at 08:58 PM


avatar image

Hi Experts,

How to Update BP Addresses via B1iSN9.0, In other words, How to prepare the payload for BPAddresses in the XSLT stylesheet if we have multiple address lines assigned to a BP.

There is a lot of discussion about updating BPAddresses and I followed the approach No.2 "UpdatewithSubDeletion"

  1. 1300954 - How to Import BP Addresses using DTW
  2. UpdatewithSubDeletion

Bascially the BizFlow process goes well, I got the call result of each step. but the line number grows or changes(is quite messy, depend on the payload) in the B1 field CRD1.LineNum when a new address name is added or removed.

Does B1iSN take care the scequence line number of the address line?

Do we need to add some sort handling in the final atom(or B1 Call Object) in accordance with the rules as mentioned in the SAP note 1300954? for example below,

<xsl:for-each select="//MDMCustomer/BP/BPAddresses/row">
<xsl:sort select="RowNum" order="ascending"></xsl:sort>
// Actually I am not sure if I should sort by address name instead.
//Does B1 take care the element <RowNum>? 

How does the UpdatewithSubDeletion works?

The document just say "This method updates an existing object instance in SAP Business One and deletes some line items". Does this function remove all the exting BP address line and then insert all of the address sent from the payload? if removes, the next LineNum will be start form the last + 1, right?

There is a lot of test scenarios here, I want to know how this function and CRD1.LineNum exactly work then I know if my test result is correct or not.

Best regards

Jim Jin

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers