Professional Documents
Culture Documents
How To Create Barcode in Sap Script
How To Create Barcode in Sap Script
How To Create Barcode in Sap Script
Smart Forms
The goal of this conversion is to describe a step by step easy approach to print the bar code using
smartforms.
Now press the change button you will get the following screen.
Press New button. Give the bar code name and short text as BAR_CODE and Demo Bar Code.
Press enter.
Check any radio button according to your requirement. I am using Code 39 .Press enter and set
bar code alignment as normal, rotated, inverted or bottom up as shown below.
You can see the print preview of your created bar code as executing it as shown below.
Click on Header data and enter the standard paragraph as P1 as shown below.
Import the bar code that you created using SE73 into your character formats as shown below.
Use that bar code character format into your smart form
Start transaction SMARTFORMS and create a smartform ZSFS_BARCODE as shown below.
Click on Form attributes and import the smart style's character format that you have recently
created in the output option as shown below. Define import parameter into the import tab of form
interface as shown below.
Associated type
MARA
MARA
MARA
As shown below.
Since input is coming from Mara, we need to declare MARA as input parameter. Since we are
writing the output on itab, we need to declare itab as output parameter. Then write the required
coding as mentioned above.
Then right click %CODE1 New Program line in left as marked above. Then create a loop.
In that loop->Data.
Then create text element by right clicking the Program line just created.
Enter the field that you want to print as in the form of bar code. Use that character format into
your output parameter as shown below.
Thanks.
This is how we can create the barcode.