This course covers SAP BusinessObjects Web Intelligence (Webi) Report Design using SAP BI. This online training course series comes with lectures, demos and hands-on exercises. Sizing Rows and Columns; Fonts, Colors, Etc; Hiding Objects; Justification; Adding Comments. 4: Adding the Query Filters & Demo.
Skip to end of metadataGo to start of metadataThe goal of this conversion is to describe a step by step easy approach to print the bar code using smartforms.
Go to SE73 SAPscript Font Maintenance to create or display the system bar codes.
Check on the radio button System Bar Codes. Press display if you want to see different bar codes styles or press change button if you want to create your own bar code style.
Now press the change button you will get the following screen.
Press the create button.
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.
Set the bar code parameters, width, height, etc., according to requirement as shown below.
Save the bar code definition.
Here you have created a demo bar code as shown below.
You can see the print preview of your created bar code as executing it as shown below.
Using t-code SMARTSTYLES.
Create a smart style ZSMS_BARCODE
Create a paragraph format P1 into the smartstyle as shown below.
Give font family anyone suppose Courier etc.
Click on Header data and enter the standard paragraph as P1 as shown below.
Create a node in the character formats as shown below.
Give a name to character format.
Import the bar code that you created using SE73 into your character formats as shown below.
Now save and activate your smart style.
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.
Now in Global Definition->Global Data, declare the following.
Variable Name | Type assignment | Associated type |
---|---|---|
MARA | TYPE | |
ITAB | TYPE STANDARD TABLE OF | MARA |
WA | TYPE | MARA |
As shown below.
Then right click main window and create Program line.
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.
Internal table ITAB into WA. As shown below.
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.
Save and activate your smart form.
Execute your smart form as shown below, you will get the material number as in the form of bar code.
The print preview is shown below.
Thanks.
This is how we can create the barcode.
For symbols of symbol type Parameter and symbols of symbol type Specification, you can generate bar codes using the Static Bar Code expansion mode.
To be able to generate bar codes using the Static Bar Code expansion mode, a bar code library must be implemented on the WWI generation server. When the report is generated, this library generates the bar code as a graphic, which you insert into the report template.
The advantage of this type of bar code generation is that all bar code types from the bar code library can be generated. This is because bar code libraries can usually generate not only one-dimensional but also two-dimensional bar codes.
To enable the SAP system to output values as bar codes using fonts, you need to carry out the following steps.
Acquire the required font for your bar code and install it.
Write your own conversion program (ABAP function module) that adjusts the values. The interface must correspond to the function module C128_DUMMY_CONVERSION_METHOD.
Use the function module C128_DUMMY_CONVERSION_METHOD as the method for the corresponding symbol in the report template (expansion mode M) or in the symbol definition.
Format the symbol in the report template using the relevant font.