cancel
Showing results for 
Search instead for 
Did you mean: 

Can i use B1iSN to update records in sap ?

Former Member
0 Kudos

Hi,

i want to know if i can use B1iSN in order to update an existing item or customer in sap, or is it only suited for insertion of new records?

Thanks, Udi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

i am trying to update an existing Item in SAP using a CSV file.

in the message log i get an error message that the item already exists.

what should i do in order to update the existing record?

Thanks, Udi

bastian_schaefer
Active Contributor
0 Kudos

Hi,

please change the B1 write policy in your scenario step via B1iSN Tools -> Development Tools -> Graphical Scenario Design, select your integration scenario.

On the receiver side (B1) maintain the B1 write Policy element and change following:

  • Insert on Exists = fallback2U
  • Update on miss = fallback2I
  • Update Policy = regular

I attached a screenshot:

Please make sure that your BIU-Mappingis using the QueryParams segment with the primary object key:

<BOM xmlns="">

<BO>

<AdmInfo>

<Object>4</Object>

<Version>2</Version>

</AdmInfo>

<QueryParams>

<ItemCode>

<xsl:value-of select="BO/Items/row/ItemCode" />

</ItemCode>

</QueryParams>

<Items>

...

In the example above I read the primary key for QueryParams from an Inbound B1 item xml (path needs to be aligned depending on your inbound message) .

After the changes and the deactivation, modification and reactivation of your Business Process Instance, the new write policy is active.

B1iSN recognizes that an item master data already exists and is switching to update and vice versa.

Best regards

Bastian

Former Member
0 Kudos

Hi,

Yes, you can.

Thanks,

Gordon

former_member703511
Discoverer
0 Kudos

Hi Gordon,

How can you update only one field in an existing Purchase Order (PO) using B1iSN? I have create an update Bizstep and instead of updating only the existing, it add new PO.  What should I do?

Former Member
0 Kudos

Hi,

are you referring to the update and add new (Item Master Data and BP) from Headquarter to Subsidiary or reverse. it is possible

thanks

H2