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

Issue in barcode scanning

former_member196490
Active Participant
0 Likes
2,541

Hi,

We are designing a custom transaction with four fields for material, quantity, storage type and storage bin. The data in these fields is not entered manually but by scanning two GS1 2D barcode.One barcode contains material and quantity and the next one contains storage type and storage bin.

We do not have handheld device at our site, but whatever I have understood is that the GS1 barcode would be read in the input field on which the cursor is placed and then code should be written to extract data from the value found in the input field. So for our case we shoud have two fields for accepting the data of the scanned barcodes

My issue is the client does not want extra data entry fields, he expects that when the barcode is scanned the material and quantity get filled automatically. and when the  next barcode is scanned the storage type and storage bin get filled.

I am not able to understand how I decode the data from the scanner as soon as the barcode is scanned to fill the fields on the screen.

Is it possible to have the GS1 barcode read in two diffrent fields automatically.

Please help. Thanks in advance

1 ACCEPTED SOLUTION
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,787

Hello Neha.

I have not worked with the barcode you mentioned but have worked with Code 128 type barcode.

On scanning the barcode in the field with cursor, PAI event will be triggered automatically.

You can write your logic in PAI to separate the material and quantity based on the length.

For instance, we have barcoded production order(AFPO-aufnr) and operation(AFPO-posnr). On scanning the barcode,we take first 12 characters as order and remaining 4 digits as operation.


Once the first barcode is scanned, you can make use of SET CURSOR FIELD to move the cursor to next barcode input field,so that user can scan the second barcode containing storage type and storage bin.

Regards.

Neha,

When you run the program and when the screen is available for barcode input simply scan the barcode in this field after scanning the value will be available in this field.

You can refer below documents to understand it in better way:

http://help.sap.com/saphelp_nwce10/helpdata/en/b7/3efd406b8af16fe10000000a1550b0/content.htm

http://wiki.scn.sap.com/wiki/download/attachments/287736105/SAP+ME+How-To-Guide+-+Barcode+Scanning.p...

Regards,

Sujeet

3 REPLIES 3
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,788

Hello Neha.

I have not worked with the barcode you mentioned but have worked with Code 128 type barcode.

On scanning the barcode in the field with cursor, PAI event will be triggered automatically.

You can write your logic in PAI to separate the material and quantity based on the length.

For instance, we have barcoded production order(AFPO-aufnr) and operation(AFPO-posnr). On scanning the barcode,we take first 12 characters as order and remaining 4 digits as operation.


Once the first barcode is scanned, you can make use of SET CURSOR FIELD to move the cursor to next barcode input field,so that user can scan the second barcode containing storage type and storage bin.

Regards.

Read only

Pranay_Panchbha
Participant
0 Likes
1,787

Hello Neha,

Insert one more input field for Scan Barcode and make all other fields as output fields . After Scan completed Split the Barcode Details in Material And Quantity or as per you required.

Read only

SujeetMishra
Active Contributor
0 Likes
1,787

Neha,

When you run the program and when the screen is available for barcode input simply scan the barcode in this field after scanning the value will be available in this field.

You can refer below documents to understand it in better way:

http://help.sap.com/saphelp_nwce10/helpdata/en/b7/3efd406b8af16fe10000000a1550b0/content.htm

http://wiki.scn.sap.com/wiki/download/attachments/287736105/SAP+ME+How-To-Guide+-+Barcode+Scanning.p...

Regards,

Sujeet