Skip to Content

This is the second part of my scn document about “How to build SAP B1 Fiori apps on HANA”. Please read the first part for learning how to use the LOCAL SAP WEB IDE to build Fiori apps on HANA for SAP Business One.

How to build SAP Fiori apps on HANA – part1

How to build Fiori apps for SAP Business One on HANA – part3

 

You can download the sample from here. it is quite simple app where it can display info details of all SAP Business One Partners from a specific company database. It allows searching partners by their name, displaying their Balance, contacts and address…etc. The app uses an HANA XS based OData Service for expsoing Business Partners’ details of the SBODEMOUS Demo Company Database.

 

The app is based on Fiori Master-Details view Template, where you have got the Business Partners List in the “Master View”, and the corresponding details in the “Details View”. You can build your apps based on such template using the SAP WEB IDE.

/wp-content/uploads/2015/09/bp1_783396.jpg

/wp-content/uploads/2015/09/bp2_783397.jpg

 

To be able to access the app, you need to do the following:

  1. Import via the HANA Studio the “Delivery Unit” you have just downloaded from the above link, with the help of your HANA Studio,
  2. Adjust the app’s url below with your HANA server’s hostname or ip-address:

https://hostname_or_ip-address:4300/BusinessPartners/BPs/WebContent/index.html

 

The app can run on desktop browsers, tablets and also smart phones.

/wp-content/uploads/2015/09/bp3_783434.jpg

/wp-content/uploads/2015/09/bp4_783435.jpg

Enjoy it 🙂 , please send me your feedback if any, and wait for my thrid and last part for how to build Fiori apps on HANA that can integrates with the SAP B1 Service Layer for quering and posting data from and to the SAP B1 Company Databases.

Folow me on Twitter Mostafa Sharaf (@Mostafa_SAPB1) | Twitter…

To report this post you need to login first.

7 Comments

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

  1. Jorge Pinto

    Hi Mostafa,

    Congrats and thanks, as always, great content from your posts 🙂

    One simple question for you while I’m waiting for your third post: can I simply create a new destination in my local SAPWebIDE pointing to my HANA Service Layer endpoint and create Fiori apps?…

    Best regards,

    JP

    (0) 
    1. Mostafa SHARAF Post author

      Hi JP,

      Thanks for your message :). Unfortunately the Web IDE is not integrated with the B1 Service Layer on HANA, so it is not possible till now to use destination endpoint for Service Layer from the Web IDE.

      I am working currently on a solution that can help in integrating Fiori apps on HANA with B1 Service Layer with using the Web IDE, please stay tuned :).

      Kindly,

      Mostafa

      (0) 
      1. Chin Chong

        Hi Mostafa,

               Thanks for your posts.

        1.    Is there an indication when Web IDE will be able to integrate with B1 Service Layer?

        2.    Meanwhile, could we use the method you created in your link  below, for Method 4 (Via B1 Service Layer)

              How to bind SAP Business One Apps on HANA to Tables and Views?

              In this method 4, you called a server side java script, B1SLLLogic.xsjs, which then calls the ODATA service. The data are then returned to the views in JSON.

              The disadvantage then is no direct data binding of the ODATA service to the UI5 controls, and we have to bind manually. But this is compensated by the richer tools in Web IDE for UI5 development, as compared to the Hana Studio or the Developers Web bench.

        3.   Alternatively, could we, meanwhile, to use the Web IDE to generate the XML views, say using the Layout Editor. Then copy and paste them as xml views in the Developers Web bench.

              Thank you.

              Kind Regards

              Chong Chin

        (0) 
        1. Mostafa SHARAF Post author

          Hi Chong,

          First of all, happy New year 2016 🙂 !

          I would like to thank you for your feedback and inquiries, indeed they are very important to us SAP.

          1. This is in internal discussion since last Nov. 2015, once any news I will update you.

          2. Yes that’s the only option in the moment.

          3. Yes you can do it line this and this is what I am actually doing in the meanwhile.

          Kindly,

          Mostafa

          (0) 
          1. Chin Chong

            Hi Mostafa,


                   Happy New Year to you !

             

               1.   Thank you very much for your very quick response.

                   Your reply is very helpful for our development team. We look forward to hear good news of the integration of Web IDE with B1 Service Layer.


                2.  I have 1 more issue on the UI5 versions. We are using SAPB1 9.1 PL09 for Hana. The corresponding HANA DB version is 1.00.097. The UI5 version is 1.24.5 that comes with this version of the HANA DB, and used in Hana Studio. I understand, there is dependency between the UI5 version and the HANA DB version (compatibility issues with the standard applications). Will there be any issues if I use the latest Web IDE version, with the latest UI5 version (1.32.7?), since the Web IDE is primarily for UI5 development and is not used for the server side artifacts ? There is a big difference in the feature set between these 2 UI5 versions.

                


                    Thank you and kind regards

                    Chong Chin

            (0) 
            1. Mostafa SHARAF Post author

              Thank you for your message.

              Yes this is true, HANA & Web IDE support different version of SAPUI5!

              So you might face some campatibility issues once you export your project from the Web IDE, and then import into the HANA onpremise system.

              I had this issue many times before! To gurantee a better integration, you might need to use the Web IDE with the same version of SAPUI5 as of your current Hana onpremise system. Otherwise you might think of having a separate Hana instance for development purposes so then you can always upgrade its SAPUI5 version manually in order to match with the Web IDE’s SAPUI5 version.

              Anyway I will be able to answer you better once the internal discussions are through. Get back to you hopefully soon. 

              Kindly,

              Mostafa

              (0) 

Leave a Reply