cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Barcode implementation

Former Member
0 Likes
1,268

What are the steps involved in Barcode Implementation.

When store people scan through Barcode scanner to all components issued against prod order

then system should automatically update the system.

What are the config steps and how the process will flow in SAP.

thanks

A prasad

View Entire Topic
Former Member
0 Likes

Hi Prasad,

You can use the following FM to get the randaom numbers

'QF05_RANDOM_INTEGER'

here m providing the code snippet i have used to do the same for pdf form

" logic to prepare barcode.

CALL FUNCTION 'QF05_RANDOM_INTEGER'
  
EXPORTING
     ran_int_max   = maxnum
*   RAN_INT_MIN   = 1
  
IMPORTING
     ran_int       = randomnmbr
  
EXCEPTIONS
     invalid_input =
1
    
OTHERS        = 2.
IF sy-subrc <> 0.

ENDIF.

CLEAR randm.
random = randomnmbr.
UNPACK random TO random.

CLEAR : len, len5.
len  = strlen( identity_no ).
len5 = len -
5.

CLEAR roll.
roll =
identity_no+len5(5).

CLEAR : rev1,rev.
rev1 = roll.
rev  = reverse( rev1 ).

CLEAR gv_barcode.
CONCATENATE gv_myear random rev 'XXXX' INTO gv_barcode.