Skip to Content

SAP NDC BArcode Scanner

hi,

when i use this method:

sap.ndc.BarcodeScanner.scan, i got "Scaner is not available" int my fiori client..
please help

9wj3i.png (4.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 09, 2020 at 12:06 PM

    hI,

    You can include this library: sap/ndc/BarcodeScanner

    and then,

    when you want to use the scanner: in that event:

    onPress: function(oEvent) {
    			sap.ndc.BarcodeScanner.scan(
    				function(mResult) {
    					alert("We got a bar code\n" +
    						"Result: " + mResult.text + "\n" +
    						"Format: " + mResult.format + "\n") ;
    						"Cancelled: " + mResult.cancelled);
    				},
    				function(Error) {
    					alert("Scanning failed: " + Error);
    				}
    			);
    		}
    

    Please let me know whether it works or not!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 01, 2020 at 04:36 AM

    Yes, I have tried it on iOS and it's working fine

    Add a comment
    10|10000 characters needed characters exceeded

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.