2008 Dec 12 9:34 AM
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
2008 Dec 12 9:55 AM
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
2008 Dec 12 10:21 AM
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
2008 Dec 12 10:35 AM
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
2008 Dec 12 10:56 AM
Hi Karthik,
Its a dialog program.
How you capture scanned value in PBO.
_Pankaj
2008 Dec 12 11:11 AM
You have not told the entire scenario.
Tell me what does scanned values means? where and how you are scanning?
2008 Dec 12 11:31 AM
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
2008 Dec 12 12:09 PM
>
>
> 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
2008 Dec 12 12:16 PM
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
2008 Dec 12 9:39 PM
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.
2008 Dec 15 6:47 AM
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
2008 Dec 15 7:07 AM
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
2008 Dec 15 7:16 AM
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
2008 Dec 15 7:37 AM
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
2008 Dec 15 8:38 AM
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
2010 Apr 17 5:14 AM
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