Skip to Content

Print a file on application server

Hi Experts,

Is there any function module to print a file on application server ? If not, how can I print a file using abap.

<<removed by moderator>>

Thanks.

Patrice.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 31, 2008 at 04:21 PM

    Hi,

    As per my knowledge we have download that file into applecation server and sent to externalmail or print whatever it is we can do.

    Regards

    ranga

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 31, 2008 at 04:26 PM

    You will have to use the OPEN DATASET and READ DATASET ABAP commands to read the file from the AP server into an internal table. From there, you can print it.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 31, 2008 at 04:32 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 31, 2008 at 04:35 PM

    Tyr this.

    DATA : BEGIN OF itab OCCURS 0,
            test(200) TYPE c,
            test1(200) TYPE c,
            test2(200) TYPE c,
           END OF itab.
    
    DATA : p_file(11) TYPE c VALUE 'test_sharat'.
    DO 3 TIMES.
      itab-test = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX50'.
      itab-test1 = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX100'.
      itab-test2 = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX50'.
      APPEND itab.
      CLEAR itab.
    ENDDO.
    
    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE.
    IF sy-subrc EQ 0.
      LOOP AT itab.
        TRANSFER itab TO p_file.
      ENDLOOP.
    ENDIF.
    CLOSE DATASET p_file

    Regards

    Sharat

    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.