This document would explain the printing of bar code using SAP Scripts/smart forms
Target Readers: SAP-ABAP Consultants with knowledge of layout designing.
Definition: Bar codes is often printed on labels to allow machine to read the data. SAP have provided this feature to achieve through SAP Script/smart forms
A Bar code would looks like:
Follow the steps for creation of customize bar code style:
Step1:go to T-code:se73 click on ' System bar code ' click on ' Change '
Step2:click on Create icon on the screen, It'll ask for create new barcode technology or conventional bar code Technolo Gy
Step3:choose for the new bar code technology. Provide bar code name and short text
In the bar code symbology choose ' PDF417 '. The below is the SAP supported barcode formats.
Step4:provide Barcode Name and short text
Step5:in This step choose the barcode alignment as ' Normal ', this would provide the scan direction
Types of alignment:the alignment is to provide scan direction of the barcode
Normal alignment would scan from left to right.
Rotated alignment would scan by $ degree from top to bottom
Inverted alignment would scan by degree
bottom-up alignment would scan by degree Bottom to top
Step6:after this provide the below parameter for the barcode
Step7:now Save the barcode definition in a transport request
Step8:provide the Transport request details as below.
Step9:now the new customized system barcode ' Zdemo ' is a ready to using in layout
How to use the barcode style in SAP Script:
Go to se71àcreate a simple script ' zdemo_barcode ' provide the necessary details save and activate it.
Create a new character format C1
Go toàcreate elementàgive The name and description for character format
In the attribute provide the customized barcode name
Provide this character format C1 in the text editor for the element data which you want to display in barcode format
How to use barcode style in SmartForms:
T-code:smartformsàcreated a simple smart form for demo purpose with Main Page
Demo on bar code printing using SAP Scripts/smart forms