Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Restrict keyboard entry allow only scanning

Former Member
0 Likes
3,185

Dear friends,

Is there any way our system can recognize that the value entered in an input field is scanned or manually entered.

Or,

Can we make an input field which will take only scanned value.

Thank You.

Regards

Pankaj

Dear friends,

Is there any way our system can recognize that the value entered in an input field is scanned or manually entered.

Or,

Can we make an input field which will take only scanned value.

Thank You.

Regards

Pankaj

15 REPLIES 15
Read only

Former Member
0 Likes
2,351

The simplest way is to make the field as output-only and assigning the scanned value through code. This will restrict users from entering/modifying data in that field.

Regards

Karthik D

Read only

0 Likes
2,351

Thanks a lot Karthik,

Could you please guide me how i can assign the scanned value to code if the value doesnt appear in the 'output only' field .

Regards

Pankaj

Read only

0 Likes
2,351

Hi,

If you are doing this in dialog program, assign the scanned value to the global variable for that field in your PBO.

Otherwise let me know what scenario you are working in, and how you are getting the scanned value?

Regards

Karthik D

Read only

0 Likes
2,351

Hi Karthik,

Its a dialog program.

How you capture scanned value in PBO.

_Pankaj

Read only

0 Likes
2,351

You have not told the entire scenario.

Tell me what does scanned values means? where and how you are scanning?

Read only

0 Likes
2,351

Hi,

there is a program which is used for launching and warehousing vehicles,

Once the vehicle label no. is scanned it is validated with the BOM.

To enter the vehicle label no. user scans the label, which gets entered to the field 'label no' in screen no 9000.

and then the user clicks on a pushbutton 'Label check' which checks the label with the BOM and the label maintained in the z-table.

My concern is if i make the field 'label no' outputonly , scanned label no will not get entered there.

and if label no field is empty and the scanned label no is not captured anywhere, how can i assign that value in PBO.

Regards,

Pankaj

Read only

0 Likes
2,351

>

>

> To enter the vehicle label no. user scans the label, which gets entered to the field 'label no' in screen no 9000.

> Regards,

> Pankaj

If you have declared the label field with the same name in the global parameters of your program, it should show when you assign it in the PBO(to call PBO you should trigger some function code in the program after scanning).

I hope you should be using some interface to connect to the scanning device which sends the label no to the program, assign that value to the label field.

Regards

Karthik D

Read only

0 Likes
2,351

Hi,

Instead of giving Ouput Only as the attribute for that field , give Input "not Possible" as the attribute. This will enable you to give a input but the field will be frozen on screen i.e it'll be non-editable.

Hope it helps.

Regards,

Sakkthiss.R

Read only

Former Member
0 Likes
2,351

If your barcode scanner is the type that plugs into the keyboard port of the computer SAP can't distinguish between the barcode scanner and data entered by the keyboard.

Read only

Former Member
0 Likes
2,351

Hello All,

scanner is connected to the keyboard port.

Assigning a function code to the scan is the only way, but I dont know how to assign a scanned value a function code as you cannot recognize if it is manually entered or scanned.

Is there a pre-defined function code which will say its a scanned value ?

If I give Input "not Possible" as the attribute, what I feel is if it gets scanned it can also be manually entered for the first time.

Thank You.

Regards,

Pankaj

Read only

0 Likes
2,351

Hi,

The other way is to pass the scanned values to a hidden input field and then copy that value into a non-editable field.

I am not sure whether it will work but its worth giving a try.

Regards

Karthik D

Read only

0 Likes
2,351

Hi Karthik,

I have tried this, this can be done, but our users are smarter, they will input in that manually and go further.

actually if you make an "input" field as invisible , it appears like your password field of saplogon (with *)

It is just that value will not be visible.

It is better to train the users morally, i feel.

Regards,

Pankaj

Read only

0 Likes
2,351

Hi,

It seems like you need to set SCREEN-ACTIVE of the field to 0 to completely make it invisible.

For further details on setting screen attributes see;

http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbab6f35c111d1829f0000e829fbfe/content.htm

If you decided not to restrict, just close the question as answered.

Regards

Karthik D

Read only

0 Likes
2,351

Hi Karthik,

I have tried as you said, I will get back to you once I transport it to production and check at the line if it is accepting the scanned value.

Thanks.

Pankaj

Read only

0 Likes
2,351

Hi Pankaj,

Did u get solution any solution for that restriction on keyboard entry.

if so pl. guide me. i have the same requirement.

Thanks,

Vidhya