Skip to Content
Personal Insights
Author's profile photo Balakumar Viswanathan

B1iF – first impression and basics

In this blog, I like to explain you the experiences with B1if in my first week of exploring.

What is B1iF?

Before explaining my personal experiences, if you wish to get an overview about integration and the integration framework in general, please refer to the Integration Framework for SAP Business One (B1if) – Central Blog. If you already knew about B1iF then you can skip reading the above referenced blog, if not (just like me!) then you should read the blog.

Now – My personal experiences:

To be frank, I started B1iF with having in my mind that B1iF is for only integrations like File Import or Export and B1 to B1 integrations. It shocked me the capabilities are lot more than I was expected (within the first week itself 🙂 )

Following are the little things I did in my first week.

  1. Send an email to the Customer’s email as soon as an invoice is posted at SAP Business One.
  2. Send SAP Business One internal alert messages.
  3. Using RESTful client to post a Sales Order to SAP Business One.
  4. Using RESTful client to get a desired Sales Order details from SAP Business One

I’m sure lot of you gonna ask me “Could you please give us the steps to do this?”

Based on the requests, I’ll try to post separate blogs for each of the above. But you can get the Step-by-step guide here for POST Sales Order to B1 right now.

Following are the articles which helped me a lot to achieve the above and of course this SAP community 🙂

Integration Framework Version 2 – Essentials

Now the basics:

Following are the basics to do a (first) scenario development using B1iF.

  1. Complete this Open SAP course In Action – Integration Framework for SAP Business One, I personally do recommend that this is must follow step!
  2. For all the scenario development, if you are not familiar with the incoming Payload or object, use debug mode to analyze the incoming data.
  3. Once we understand the incoming Payload, it is easy for us to transform those and consume in the integration steps.
  4. In order to understand transform, we need to learn about XSLT statement (more info here).


  • With no doubt, my initial thought about B1iF was made wrong and B1iF can do much more than just integrating B1 to B1 and file imports.
  • B1iF is being used by SAP itself for
    • Intercompany Integration Solution for SAP Business One,
    • SAP Customer Checkout (SAP CCO),
    • Online Request-for-quotation (RFQ) for SAP Business One, and
    • SAP Business One Mobile app
  • If you want to integrate SAP Business One with your website (example for e-commerce), then B1iF supports both SOAP based Web Services and HTTP/RESTful web services.

Happy Integrating guys

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Rakesh Singh
      Rakesh Singh

      Hello Balakumar,

      Do you have any material which show outbound call to WCF Service with B1if 2.0.

      I created the same, but not able to pass payload to Service.. always getting error

      " BPE001 Nested exception: java.lang.NullPointerException: while trying to invoke the method, java.lang.String) of a null object loaded from local variable 'inMsg'


      below is my XML transformation .xsl data

      <?bpc.pltype.out bpm.pltype=xml?><xsl:stylesheet xmlns:xsl="" xmlns:b1e="" xmlns:b1ie="" xmlns:b1im="" xmlns:bfa="" xmlns:exslt="" xmlns:jdbc="" xmlns:js="" xmlns:rev="" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:sim="" xmlns:utils="" xmlns:vpf="" xmlns:xca="" xmlns:xci="" version="1.0" exclude-result-prefixes="b1e b1ie b1im bfa jdbc js rfc utils xci xca vpf exslt sim rev" b1e:force="" b1ie:force="" b1im:force="" bfa:force="" jdbc:force="" js:force="" rfc:force="" utils:force="" xci:force="" xca:force="" vpf:force="" exslt:force="" sim:force="" rev:force="">
              <?prodver 1.0.0?>
                  <xsl:include href="../../"/>
                  <xsl:variable name="msg" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']"/>
                  <xsl:variable name="msg1" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='T']"/>
                  <xsl:template match="/">
                          <xsl:copy-of select="/vpf:Msg/@*"/>
                          <xsl:copy-of select="/vpf:Msg/vpf:Header"/>
                              <xsl:copy-of select="/vpf:Msg/vpf:Body/*"/>
                              <vpf:Payload Role="X" id="{$atom}">
                                  <xsl:call-template name="transform"/>
                  <xsl:template name="transform">
                          <soapenv:Envelope xmlns:soapenv="" xmlns:tem="">
                                              <xsl:value-of select="$msg1/Event/b1e:b1events/b1e:b1event/b1e:transactiontype"/>
                                              <xsl:value-of select="$msg/BOM/BO/Documents/row/DocEntry"/>
                                              <xsl:value-of select="$msg1/Event/b1e:b1events/b1e:b1event/b1e:eventsource"/>


      Author's profile photo Yatsea Li
      Yatsea Li

      Hi Rakesh,

      Have you Activated with Detailed Logging? then you will be able to debug step by step, and check the inbound payload of your xform step.

      Kind Regards, Yatsea

      Author's profile photo Zdenek Chládek
      Zdenek Chládek


      Iam facing same problem: BPE001 Nested exception: java.lang.NullPointerException: while trying to invoke the method, java.lang.String) of a null object loaded from local variable 'inMsg'

      and is logic we have enabled Detailed logging, otherwise we would not see this message.

      Regards Zdenek