2008 Oct 31 4:03 PM
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.
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.
2008 Oct 31 4: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
2008 Oct 31 4: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
2008 Oct 31 4:36 PM
Thanks for your answers.
Rob,
The file is a PDF. When I read the file by the commands READ DATASET ABAP the internal table contains unreadable characters.
How can I print it.
Patrice.
2008 Oct 31 4:32 PM
2008 Oct 31 4: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_fileRegards
Sharat
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |