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

Problem in hiding Bar code Scanned text in Modulepool Screen

Former Member
0 Likes
2,682

Hi SDN's ,

i am facing a problem in modulepool screen for hiding a barcode scanned content after scnning.........

My require ment is : i have a hardcopy prints invoices( In Encrypted format)  with barcode fromat....for this i developed the dailog screen to insert scanned invoices into Z table.....So, to scan invoices i created the screen field with char40.....& i am placing the cursor on that field & scanning it's scnned correctly and updating in table successfully....

So the problem is ,there is a chance to user can copy the scanned content & saved in othe sources like notepad & after that he copied the content from other source & entering into my screen field ...it will allow to furthe procedure.....

so now i want to restrict to enter the content manually ,  allow to scan through barcode reader.......

Is there any possibility ...?   Plaese help me it's an important for me ..............

Thanks & Regards,

Subba.

Hi kesavdas,

finally i understood ,no possible for identification for getting data from scanner or enter by keyboard in ABAP...........right...........

Any other way to resolve this issue from other sources to SAp........

Thanks .

Subba.

21 REPLIES 21
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,501

In the dynpro definition and PBO define the field as active, input, output and invisible. Like passwords field, user input will be masked by asterisks. Read documentation  like Setting Attributes Dynamically or navigate from MODIFY SCREEN help on Abap source/F1 to find it.

Regards,
Raymond

Read only

0 Likes
2,501

Hi Giuseppi,

Thank u for ur reply.....

i tried what you said ....even in this case also it's allowing to user manual entry.......copy from other source.....

I want restrict the  content enter manually in this field ,..only through scanner read content only i have to allow .....any identification for data entered by scanner in SAP....

Please help me.......

Thanks & Regards,

Subba.

Read only

0 Likes
2,501

AFAIK that should not be possible,

  • Scanner basically only emulate keyboards, so if the field can not be input by keyboard... no input from scanner. 
  • Notepad should be able to read scanner which emulate keyboard too so you would have serious problem to disallow that....
  • User can always photocopy an original with your "encrypted" code and use the copy as long as they want (if the code is readable by a bar code reader, it should be easily copied...)

Else you have to install/use another application on front end to input from scanner like some security devices. (But then going outside of Abap development space)

Regards,

Raymond

Read only

0 Likes
2,501

Hi Raymond,

Thank you for your reply......

if we go in outside of ABAP.......how to get that data in SAP any BAPI to connect with other Sources like .net ,java.....

or else any other way to get solution for this requirement.....................

Thanks & regards,

Subba

Read only

0 Likes
2,501

Hi Raymond,

To resolve this issue any other solution , i have one more doubt if iadd special character '#' in barcode print,while scanning it will read or not & if i scanned same in notepad waht will happen?....

Regards,

Suba.

Read only

0 Likes
2,501

Well, you could try, but not much hope, as SAPGUI use Microsoft Visual Studio routines so same as office or many windows tools, so will have same behavior. Also don't use # but an actual not-displayable char.

As i already wrote, did you search for Barcode Reader AddOn ?

Regards,

Raymond

Read only

Former Member
0 Likes
2,501

hi ,

for doing it,

in attributes window, use the parameters like invisible and asterisk for making it as a password field..

so that your contents ll have security..

Thanks,

Mathan R.

Read only

0 Likes
2,501

Hi Gopalan,

Thank you for your reply......

But ,

I want restrict the  content enter manually in this field ,..only through scanner read content only i have to allow .....any identification for data entered by scanner in SAP....

Please help me.......

Thanks & Regards,

Subba.

Read only

0 Likes
2,501

hi ,

then try like this,

in the display attributes output only check box would be their..

if you set it means , manual input ll be restricted for that input field..

hope this helps,

Thanks,

Mathan R.

Read only

0 Likes
2,501

Hi Gopalan,

But if we chech that checkbox it will show data in display mode only,but when i want to scan any data in field that field should be enable........

Any other solution to identify the data from scanner only...............

Thanks & Regards,

Subba.

Read only

0 Likes
2,501

Hi Gopalan,

But if we chech that checkbox it will show data in display mode only,but when i want to scan any data in field that field should be enable........

Any other solution to identify the data from scanner only...............

Thanks & Regards,

Subba.

Read only

0 Likes
2,501

Hi Gopalan,

But if we chech that checkbox it will show data in display mode only,but when i want to scan any data in field that field should be enable........

Any other solution to identify the data from scanner only...............

Thanks & Regards,

Subba.

Read only

0 Likes
2,501

hi suba,

Anyway you gonna scan the datas in the output box only right,

it ll work fine if we read it from scanner..

thanks,

Mathan R.

Read only

0 Likes
2,501

hi,

try like this,

dont check output only check box,

check output field box and input not possible..

i think now the user cant enter field datas manually.. but you can read it via scanner..

hope it helps,,

thanks,

Mathan R.

Read only

0 Likes
2,501

Hi Mathan,

I tried, what  you daid but if we do like that that field displaying in disable mode only ,then if we scnned data on that field it 's not scanning...........

any other solution...........

Thanks & Regards,

Subba

Read only

0 Likes
2,501

hi subba,

check input field and output field then input recommended..

may be this ll solve your issue.. even em working on it..

ll post soon with better solution..

hope it helps,

Mathan R.

Read only

0 Likes
2,501

Hi Mathan,

i am very thankful to you..........

If we geive both input & output checks ,that field will be enable so user can enter text manual also it will allow .....

but in my requirement i have to identify the data from barcode scanner or from keyboard .....

Thanks,

Subba.

Read only

0 Likes
2,501

hi,

i tried a lot, I think its not possible with the codes..

better this screen setting is the only way of doing it..

check input field and output field then input recommended, and check the field.

up to my knowledge. this is the way.

thanks,

Mathan R.

Read only

former_member182379
Contributor
0 Likes
2,501

Hi,

  See the link

http://scn.sap.com/thread/1688977

you can try by first checking whether the bar code scnanner is attach to com port or not, and accept the data from comm port only as you  will attach the scanner to your com port.

regards,

zafar

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,501

This is not possible.  Scanner places the value only to the visible area and we cannot differentiate if it was the scanner or the user who did the entry.

Read only

0 Likes
2,501

Hi kesavdas,

finally i understood ,no possible for identification for getting data from scanner or enter by keyboard in ABAP...........right...........

Any other way to resolve this issue from other sources to SAp........

Thanks .

Subba.