Skip to Content
author's profile photo Former Member
Former Member

B1iF BP to BP

Hi all!

i need to create a scenario in B1iF for synchronization of BP. i configured all the scenario and the only thing i miss is to edit atom0.xsl, section

<xsl:template name="transform">

.

.

.

</xsl:template>

in the final step.

Can anyone suggest me some examples of this file???

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 05, 2012 at 03:43 AM

    Hello,

    Here you can find the sample in the B1if documentation:

    Integration Framework=>Help=>Documents=>4.Schema

    1.2 SAP Business One ............................................................................................................3

    1.2.1 Object .........................................................................................................................3

    1.2.2 Object (Full) ................................................................................................................4

    Here you have the official e-learning of B1if in partner edge(s-number login required), where you can learn more about custom development with B1if.

    Kind Regards, Yatsea

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks Qiaoli.

      I would like to do another question: is it possible to copy all the fields of the BP without having to specify all (one by one)?

      There is an instruction xsl that does this?

      My atom0.xsl (my final atom) actually is:

      <xsl:stylesheet xmlns:b1e="urn:com.sap.b1i.sim:b1event" xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:utils2="com.sap.b1i.bpc_tools.Utilities" xmlns:vpf="urn:com.sap.b1i.vplatform:entity" xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" bfa:force="" vpf:force="" jdbc:force="" rfc:force="" b1ie:force="" b1e:force="" xci:force="" sim:force="" utils2:force="">
      <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
      <xsl:param name="atom"/>
      <xsl:param name="sessionid"/>
      <xsl:variable name="msg" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role=&apos;S&apos;]"/>
      Sender/@Id"/>
      <xsl:variable name="vpObject" select="/vpf:Msg/vpf:Header/vpf:Sender/@ObjId"/>
      <xsl:variable name="vpReceiver" select="/vpf:Msg/vpf:Header/vpf:ReceiverList/vpf:Receiver[./@handover=&apos;P&apos;]/@Id"/>
      <xsl:template match="/">
      <Msg xmlns="urn:com.sap.b1i.vplatform:entity">
      <xsl:copy-of select="/vpf:Msg/@*"/>
      <xsl:copy-of select="/vpf:Msg/vpf:Header"/>
      <Body>
      <xsl:copy-of select="/vpf:Msg/vpf:Body/*"/>
      <Payload Role="R" id="{$atom}">
      <xsl:call-template name="transform"/>
      </Payload>
      </Body>
      </Msg>
      </xsl:template>
      <xsl:template name="transform">

      <FinalAtomResult xmlns="">


      <B1out type="object">

      <BusinessPartners xmlns="">

      <row>
      <CardCode><xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/BOM/BO/*//CardCode"/></CardCode>
      <CardName><xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/BOM/BO/*//CardName"/></CardName>

      <CardType><xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/BOM/BO/*//CardType"/></CardType>


      </row>

      </BusinessPartners>

      </B1out>

      </FinalAtomResult>

      </xsl:template>
      </xsl:stylesheet>

      Is that correct?

      Maybe need to create a new atom and the final one (atom0.xsl) change as follows:

      <xsl:template name="transform">

      <xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload/FinalAtomResult/*"/>

      </xsl:template>

      Processing.JPG (63.4 kB)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.