Skip to Content
author's profile photo Former Member
Former Member

Bar Code Generation in ABAP Report

Hi Friends,

Can anyone help me on how to generate a Bar code in Z report(not in SAP Script).

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2005 at 01:36 PM

    Hi Krzys,

    I tried with the logic provided by you, but I am facing problem with Syntax error when I am tring to activate the program,with this commands('BARNO P_CAPAC') in your concatenate statement.

    My requirement is in the existing classical report, I need to incorporate the logic for displaying Sales Order Number in the form of Barcode.

    Can you give me more detail about this.

    Regards,

    Senthil

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      This code was only posted as an example and is not a complete program. BARNO and P_CAPAC are simple text variables used to store number which should be printed on label.

      Generally string CIAG contains command in printer internal language. Such textual language is used to create label on label printers also with bar codes.

      You can only print bar codes on printers which support such activity. Mostly there are thermal label printers.

      Although some other printers also support bar codes. For example HP laser jets require special cartridge in order to print bar codes.

      Krzys

  • Posted on Jun 02, 2005 at 10:50 PM

    Hi,

    You should create printer for plain text in SPAD (ASCIIPR device type) and then you can use code to print in printer internal language:

    DATA: CIAG(200).
      SELECT SINGLE SPLD INTO USR01-SPLD FROM USR01 WHERE BNAME = SY-UNAME.
      NEW-PAGE PRINT ON DESTINATION USR01-SPLD IMMEDIATELY 'X'
               COPIES 2.
      CONCATENATE '^XA^LH20,20^FO60,80^B3,,250,N^FD' BARNO P_CAPAC
                  '^FS^FO90,380^AE^FD' '*' BARNO P_CAPAC '*'
                  '^FS^XZ' INTO CIAG.
      CONDENSE CIAG.
      WRITE: CIAG.

    Krzys

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 03, 2005 at 04:53 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2005 at 08:21 AM

    Hi Krzys,

    If possible can you give full logic for generating Bar Code in the ABAP Report.Also suggest me in which type of printer this bar code generation will work. Most of the printers used are of device type HPLJ5SI.

    Is it possible to see Bar codes in print preview.

    Can u suggest me the other option also to generate bar code in standard report.

    Thanks,

    Senthil

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.