<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to print a barcode using ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967745#M947800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Introduction&lt;/P&gt;&lt;P&gt;With traditional bar code printing, the bar codes are generated at the printer and not in the SAP system. Special hardware, such as SIMM modules, is required to do this. If the bar code is to be formatted or controlled with traditional bar code printing, print controls must be changed in the printer commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast to traditional bar code printing, the new bar code printing does not require any special software, since the bar code is sent to the printer as a graphic. However, the new bar code printing only works with Smart Forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Maintaining the Font(s)&lt;/P&gt;&lt;P&gt;u2022	Go to TCODE SE73 and display the system bar codes,&lt;/P&gt;&lt;P&gt;u2022	A default font (such as C128A shown below) can be used or you can create your own font&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a new font&lt;/P&gt;&lt;P&gt;u2022	Make sure you are in change mode for System bar codes &lt;/P&gt;&lt;P&gt;u2022	Click on the New button   on the toolbar and then choose the u2018New Bar Code Technologyu2019 and give it a name (eg: BC_NAME) and description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Different barcode technologies are available. For this example we shall use u2018Code 128u2019&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Keep the other settings as default and save the font in a transport request (clicking on cancel at the transport request popup will save it locally)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Creating the Style&lt;/P&gt;&lt;P&gt;u2022	Go to transaction SMARTSTYLES or use the u2018Styleu2019 radio button of transaction SMARTFORMS&lt;/P&gt;&lt;P&gt;u2022	Create a new Style (eg: ZBARCODE_STYLE)&lt;/P&gt;&lt;P&gt;u2022	Create a default Paragraph Format by clicking on u2018Create Nodeu2019 from the Context Menu of u2018Paragraph Formatsu2019 in the left navigation view&lt;/P&gt;&lt;P&gt;u2022	Create a new Character Format by clicking on u2018Create Nodeu2019 from the Context Menu of u2018Character Formatsu2019 in the left navigation view (I have given the Character Format the name u2018CHu2019 in this example)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	From the barcode name dropdown list, choose either a system default value such as C128A or the font that we just created (eg: BC_NAME)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Save and activate the Style&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Creating the Smartform&lt;/P&gt;&lt;P&gt;Here we will create a Smartform to display Material numbers from the MARA table as well as a barcode which contains that same Material number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Go to transaction SMARTFORMS and create a new Smartform (ZBARCODE_MARA in this example)&lt;/P&gt;&lt;P&gt;u2022	Create the following entry in the Tables tab of the Form Interface of your Smartform&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Save the Smartform&lt;/P&gt;&lt;P&gt;u2022	Create a new Table entry on the Main Window as shown below&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;u2022	In the Table tab of %TABLE1,Split the Line type %LTYPE1 into two parts&lt;/P&gt;&lt;P&gt;u2022	In the Data tab, LOOP AT Internal Table IT_MARA INTO IT_MARA&lt;/P&gt;&lt;P&gt;u2022	Create a Table Line in the header as well as the Main Area of the table&lt;/P&gt;&lt;P&gt;u2022	Assign Line type %LTYPE1 to both of them&lt;/P&gt;&lt;P&gt;u2022	Create a Text value in each of these four cells (you can rename them to make it easier to understand)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your left side navigation display should now look something like this&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Put appropriate headers into the HEADER_MATNR and HEADER_MATNR_CODE text fields&lt;/P&gt;&lt;P&gt;u2022	Click on the Field list button to display the field list&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Drag and drop the MATNR field from the IT_MARA table interface into the General Attributes tab of the DATA_MATNR as well as the DATA_MATNR_CODE cells&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	In the Output Options tab of the DATA_MATNR_CODE cell, choose the style that you created earlier (ZBARCODE_STYLE in this example)&lt;/P&gt;&lt;P&gt;u2022	Go back to the General Attributes tab, select the text &amp;amp;IT_MARA-MATNR&amp;amp; and then change its character style to u2018CHu2019&lt;/P&gt;&lt;P&gt;u2022	Save and activate the Smartform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ABAP Program to call the Smartform&lt;/P&gt;&lt;P&gt;u2022	Go to transaction SE38&lt;/P&gt;&lt;P&gt;u2022	Create a simple program to call the Smartform&lt;/P&gt;&lt;P&gt;u2022	Save, activate and run the program&lt;/P&gt;&lt;P&gt;u2022	You can choose to preview or print the Smartform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample program&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZBARCODE_CALLER
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; call smart form
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  ZBARCODE_CALLER.

TABLES MARA.

DATA FMNAME TYPE RS38L_FNAM.
DATA ZITAB TYPE STANDARD TABLE OF MARA.

SELECT MATNR FROM MARA INTO CORRESPONDING FIELDS OF TABLE ZITAB
  UP TO 15 ROWS.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    FORMNAME = 'ZBARCODE_MARA'
  IMPORTING
    FM_NAME  = FMNAME.


CALL FUNCTION FMNAME
  TABLES
    IT_MARA = ZITAB.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Troubleshooting&lt;/P&gt;&lt;P&gt;Consecutive bar-coded rows overlap&lt;/P&gt;&lt;P&gt;Create a new paragraph format and set the Line Spacing to 2 Lines&lt;/P&gt;&lt;P&gt;Use this new format in the non bar-coded cells&lt;/P&gt;&lt;P&gt;Second field shows MATNR in English and not bar-coded&lt;/P&gt;&lt;P&gt;Make sure you select the text before changing the character format in the Smartform&lt;/P&gt;&lt;P&gt;Preview is proper but printing doesnu2019t take place at all&lt;/P&gt;&lt;P&gt;Make sure your printer is configured properly in transaction SPAD. Try printing something else from SAP to verify the settings&lt;/P&gt;&lt;P&gt;The device type used in our system is SAPWIN   : Rel.4.x/SAPlpd 4.09+&lt;/P&gt;&lt;P&gt;Also check the Print Immediately button, else go to transaction SP01 to immediately print all pending print jobs&lt;/P&gt;&lt;P&gt;Preview is proper, text is printed properly but barcode (and pictures) are not proper&lt;/P&gt;&lt;P&gt;Check that your printer is configured properly in Windows with the proper driver that matches your printeru2019s model&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2008 10:39:03 GMT</pubDate>
    <dc:creator>former_member189059</dc:creator>
    <dc:date>2008-06-18T10:39:03Z</dc:date>
    <item>
      <title>How to print a barcode using ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967741#M947796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide me with a sample code for prinitng a bar code on the report output??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appropriate points will be rewarded&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 10:25:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967741#M947796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T10:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to print a barcode using ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967742#M947797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this pdf..&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0ec2536-6a1e-2b10-6a99-fa77b8bd6ef4" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0ec2536-6a1e-2b10-6a99-fa77b8bd6ef4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this also&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm" target="test_blank"&gt;http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm" target="test_blank"&gt;http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 10:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967742#M947797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T10:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to print a barcode using ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967743#M947798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can create bar codes in SE73 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the table        TFO05 - SAP bar codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if hlpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 10:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967743#M947798</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-06-18T10:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to print a barcode using ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967744#M947799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to following links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.makebarcode.com/info/appnote/app_024.html" target="test_blank"&gt;http://www.makebarcode.com/info/appnote/app_024.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 10:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967744#M947799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T10:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to print a barcode using ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967745#M947800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Introduction&lt;/P&gt;&lt;P&gt;With traditional bar code printing, the bar codes are generated at the printer and not in the SAP system. Special hardware, such as SIMM modules, is required to do this. If the bar code is to be formatted or controlled with traditional bar code printing, print controls must be changed in the printer commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast to traditional bar code printing, the new bar code printing does not require any special software, since the bar code is sent to the printer as a graphic. However, the new bar code printing only works with Smart Forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Maintaining the Font(s)&lt;/P&gt;&lt;P&gt;u2022	Go to TCODE SE73 and display the system bar codes,&lt;/P&gt;&lt;P&gt;u2022	A default font (such as C128A shown below) can be used or you can create your own font&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a new font&lt;/P&gt;&lt;P&gt;u2022	Make sure you are in change mode for System bar codes &lt;/P&gt;&lt;P&gt;u2022	Click on the New button   on the toolbar and then choose the u2018New Bar Code Technologyu2019 and give it a name (eg: BC_NAME) and description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Different barcode technologies are available. For this example we shall use u2018Code 128u2019&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Keep the other settings as default and save the font in a transport request (clicking on cancel at the transport request popup will save it locally)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Creating the Style&lt;/P&gt;&lt;P&gt;u2022	Go to transaction SMARTSTYLES or use the u2018Styleu2019 radio button of transaction SMARTFORMS&lt;/P&gt;&lt;P&gt;u2022	Create a new Style (eg: ZBARCODE_STYLE)&lt;/P&gt;&lt;P&gt;u2022	Create a default Paragraph Format by clicking on u2018Create Nodeu2019 from the Context Menu of u2018Paragraph Formatsu2019 in the left navigation view&lt;/P&gt;&lt;P&gt;u2022	Create a new Character Format by clicking on u2018Create Nodeu2019 from the Context Menu of u2018Character Formatsu2019 in the left navigation view (I have given the Character Format the name u2018CHu2019 in this example)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	From the barcode name dropdown list, choose either a system default value such as C128A or the font that we just created (eg: BC_NAME)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Save and activate the Style&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Creating the Smartform&lt;/P&gt;&lt;P&gt;Here we will create a Smartform to display Material numbers from the MARA table as well as a barcode which contains that same Material number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Go to transaction SMARTFORMS and create a new Smartform (ZBARCODE_MARA in this example)&lt;/P&gt;&lt;P&gt;u2022	Create the following entry in the Tables tab of the Form Interface of your Smartform&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Save the Smartform&lt;/P&gt;&lt;P&gt;u2022	Create a new Table entry on the Main Window as shown below&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;u2022	In the Table tab of %TABLE1,Split the Line type %LTYPE1 into two parts&lt;/P&gt;&lt;P&gt;u2022	In the Data tab, LOOP AT Internal Table IT_MARA INTO IT_MARA&lt;/P&gt;&lt;P&gt;u2022	Create a Table Line in the header as well as the Main Area of the table&lt;/P&gt;&lt;P&gt;u2022	Assign Line type %LTYPE1 to both of them&lt;/P&gt;&lt;P&gt;u2022	Create a Text value in each of these four cells (you can rename them to make it easier to understand)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your left side navigation display should now look something like this&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Put appropriate headers into the HEADER_MATNR and HEADER_MATNR_CODE text fields&lt;/P&gt;&lt;P&gt;u2022	Click on the Field list button to display the field list&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	Drag and drop the MATNR field from the IT_MARA table interface into the General Attributes tab of the DATA_MATNR as well as the DATA_MATNR_CODE cells&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	In the Output Options tab of the DATA_MATNR_CODE cell, choose the style that you created earlier (ZBARCODE_STYLE in this example)&lt;/P&gt;&lt;P&gt;u2022	Go back to the General Attributes tab, select the text &amp;amp;IT_MARA-MATNR&amp;amp; and then change its character style to u2018CHu2019&lt;/P&gt;&lt;P&gt;u2022	Save and activate the Smartform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ABAP Program to call the Smartform&lt;/P&gt;&lt;P&gt;u2022	Go to transaction SE38&lt;/P&gt;&lt;P&gt;u2022	Create a simple program to call the Smartform&lt;/P&gt;&lt;P&gt;u2022	Save, activate and run the program&lt;/P&gt;&lt;P&gt;u2022	You can choose to preview or print the Smartform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample program&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZBARCODE_CALLER
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; call smart form
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  ZBARCODE_CALLER.

TABLES MARA.

DATA FMNAME TYPE RS38L_FNAM.
DATA ZITAB TYPE STANDARD TABLE OF MARA.

SELECT MATNR FROM MARA INTO CORRESPONDING FIELDS OF TABLE ZITAB
  UP TO 15 ROWS.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    FORMNAME = 'ZBARCODE_MARA'
  IMPORTING
    FM_NAME  = FMNAME.


CALL FUNCTION FMNAME
  TABLES
    IT_MARA = ZITAB.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Troubleshooting&lt;/P&gt;&lt;P&gt;Consecutive bar-coded rows overlap&lt;/P&gt;&lt;P&gt;Create a new paragraph format and set the Line Spacing to 2 Lines&lt;/P&gt;&lt;P&gt;Use this new format in the non bar-coded cells&lt;/P&gt;&lt;P&gt;Second field shows MATNR in English and not bar-coded&lt;/P&gt;&lt;P&gt;Make sure you select the text before changing the character format in the Smartform&lt;/P&gt;&lt;P&gt;Preview is proper but printing doesnu2019t take place at all&lt;/P&gt;&lt;P&gt;Make sure your printer is configured properly in transaction SPAD. Try printing something else from SAP to verify the settings&lt;/P&gt;&lt;P&gt;The device type used in our system is SAPWIN   : Rel.4.x/SAPlpd 4.09+&lt;/P&gt;&lt;P&gt;Also check the Print Immediately button, else go to transaction SP01 to immediately print all pending print jobs&lt;/P&gt;&lt;P&gt;Preview is proper, text is printed properly but barcode (and pictures) are not proper&lt;/P&gt;&lt;P&gt;Check that your printer is configured properly in Windows with the proper driver that matches your printeru2019s model&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 10:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967745#M947800</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2008-06-18T10:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to print a barcode using ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967746#M947801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now in SAP Wiki format...&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/profile/New" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/profile/New&lt;/A&gt;&lt;EM&gt;Barcode&lt;/EM&gt;Printing&lt;EM&gt;in&lt;/EM&gt;SAP&lt;EM&gt;using&lt;/EM&gt;Smartforms&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 11:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-print-a-barcode-using-abap/m-p/3967746#M947801</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2008-06-18T11:17:40Z</dc:date>
    </item>
  </channel>
</rss>

