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

Printing directly to a printer from an ABAP program


In my ABAP program, I have a string that contains ZPL code. I'd like to send that string directly to a label printer. If I were to take that string and copy it into a text file called LABEL.TXT and then run "COPY C:\LABEL.TXT LPT1" from a command prompt, the label prints successfully. I'm looking for the same kind of functionality from within ABAP. Does anyone know how to do this?

Thank you,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Feb 15, 2008 at 06:25 PM

    Try this way

    1. Using fm GUI_DOWNLOAD please download to C;

    2. Call fm GUI_RUN with COMMAND = 'copy c:lable.txt lpt1'

    PS : I am not 100% sure about this.

    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.