Skip to Content
Author's profile photo Former Member

Barcode Generation

Here In this example, barcode generated is a combination of Personnel Number and Trip Number.

Go to Transaction SFP.

Create an Interface with two parameters GV_PERNR & GV_REINR under Import.

Save and Activate the Interface.

Create an form and Drag and Drop the GV_PERNR and GV_REINR Values from Interface on the left side to Context on the right side.

Goto Layout Tab.

Goto Palettes -> Library.

Under Barcodes, select the type of Barcode – I have selected Code 128.

Place it in the Form. Adjust the size of the barcode as required.

Drag and drop GV_PERNR and GV_REINR in the form.

For Barcode, maintain the Data length as 18 (Personnel number – 8 & Trip Number – 10)

/wp-content/uploads/2013/05/img1_219305.jpg

Barcode value is combination of Personnel Number and Trip Number.

Form Calc Language is used to generate the Barcode Number so the Value is selected as ‘Calculated-Read Only’.

/wp-content/uploads/2013/05/img2_219306.jpg
Form Calc Code is written to generate Barcode. It is written under Initialize Event.

/wp-content/uploads/2013/05/img3_219307.jpg

/wp-content/uploads/2013/05/img4_219316.jpg    

Save and Activate the Form.

Execute the Form.

Input:

Provide the inputs – Personnel Number – 00000001 & Trip Number – 0000001234

Click on Execute.

/wp-content/uploads/2013/05/img5_219310.jpg

Enter the Output Device and Click on Print Preview.

/wp-content/uploads/2013/05/img6_219314.jpg

Output:

Barcode is generated which is a combination of Personnel Number and Trip Number.

/wp-content/uploads/2013/05/img7_219315.jpg

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.