Skip to Content
-2

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

Feb 19 at 06:00 AM

223

avatar image

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

fiori-screen.png (31.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

VIPLOVE KHUSHALANI Feb 19 at 08:07 AM
1

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

Show 9 Share
10 |10000 characters needed characters left characters exceeded

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.

0

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

2
Jelena Perfiljeva

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

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

2

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

"UI5 army" - nice touch! :)

sector.jpg (276.0 kB)
2

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

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..

0
0

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

0