cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO USE ANDROID PHONE CAMERA IN CUSTOM FIORI APP..

0 Kudos

Hi experts,

I have one Bar-code scenario where user want to use this app from Mobile.First i create one module pool program in ECC and assign this T-code in fiori using T-code /UI2/FLPD_CUST its open fiori launchpad in browser where i create catalog and i assign my ECC t-code there and create one group to create custom app and its working fine and user scan Bar-code through bar-code scanner..But this solution is not feasible because they can not able to move Bar-code Scanner due to its attached with system. so that i need to ADD button on input Screen through which open mobile Camera and scan bar code....please suggest me code that i need to add in my ECC program or How to make changes in fiori app i read multiple thread in SCN .Don't Know where to start...Any help will be appreciated..

for reference here i attached Fiori app screen and i already refer this links

https://blogs.sap.com/2014/07/25/using-camera-as-barcode-scanner-on-your-mobile-in-sapui5-app/

https://archive.sap.com/documents/docs/DOC-51167fiori-screen.png

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member340030
Contributor

Hi ..

If you need to use any feature of the mobile phone like camera , contact list , etc .. You need to use apache cordova library for that ...For hybrid application development in javascript to use native functionalities we use this lib ..

thanks

Viplove

0 Kudos

Hi VIPLOVE KHUSHALANI thanks for your replay.

Can you Please more elaborate on this so i can get some more clue any document or steps to follow. i dont have much idea about apache cordova library and how to use this in fiori.

Jelena
Active Contributor

Have you tried searching in Google? All the keywords are in the answer, seems like enough of a "clue" to perform further research...

former_member186734
Active Participant

jelena.perfiljeva and sumit.balaiya, here's the slides of a sample app that I presented last year using Cordova and OpenUI5 on an Android Phone and using its camera.

https://lucattelli.github.io/CordovaMeetup.pdf

The content is in Portuguese, but if you do scroll to the last 3 slides, you'll see the code snippets that I used to change the app and implement the Cordova API.

My general tip here will be for you to learn more about Apache Cordova and Javascript. Then (and only then) you'll fully understand how it fits within a Fiori App.

Jelena's tip is gold. Google is here to help!

Hope it helps,

Bruno

Jelena
Active Contributor

Thanks for sharing! Hey, fixed a slide for you:) Just needs a bit of photoshoping:

"UI5 army" - nice touch! 🙂

former_member186734
Active Participant
0 Kudos

Wow, I didn't know about that. Thank you so much! I saved the image so my slides can be updated for future presentations. 🙂

0 Kudos

Thanks you for replay Jelena Perfiljeva .i have done with google ie, i sent this issue to get guidance by experts like you & VIPLOVE KHUSHALANI. And ya you are right i don't know the end but Now i know from where to start. Thanks

0 Kudos

hey Bruno Lucattelli thanks for your help and tips.did you see my attachment. i Just assign my Transaction code to catalog

then in group, its created this app automatically . its shown my program screen which i created in ECC using ABAP..

Jelena
Active Contributor
0 Kudos

When posting images, please use the Image button, not the attachment button. Then everyone will see it.