2005 Jul 17 3:57 PM
Hi,
I would like to print several files.
I do not want to send them separatedly to the printer : I want to send them as one job and send this job to the printer ?
Is it possible ?
Thanks in advance.
2005 Jul 18 5:42 AM
is it front end files or files stored in the application sever?
Regards
Raja
is it front end files or files stored in the application sever?
Regards
Raja
2005 Jul 17 6:01 PM
2005 Jul 17 7:19 PM
Assuming you want to combine the output of separate programs or multiple runs of the same program, you can write a program that submits the programs, exports the list to memory and returns. You then use FMs LIST_FROM_MEMORY and WRITE_LIST to write the separate lists.
data: begin of listobject occurs 0.
include structure abaplist.
data: end of listobject.
submit zftest
with fyear = fyear
etc...
exporting list to memory
and return.
call function 'LIST_FROM_MEMORY'
tables
listobject = listobject
exceptions
not_found = 1
others = 2.
call function 'WRITE_LIST'
tables
listobject = listobject
exceptions
empty_list = 1
others = 2.
I'm not entirely sure what you are trying to do. If this isn't what you want, please elaborate your requirements.
Rob
2005 Jul 18 5:42 AM
is it front end files or files stored in the application sever?
Regards
Raja
2005 Jul 18 8:53 AM
Hi everyone,
Thanks for al the reply.
I am talking about files that are on the localhost.
I am trying your solution.
Thanks a lot.
2005 Jul 18 9:01 AM
what you can do is use the class/method
cl_gui_frontend_services=>execute method to print.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
DOCUMENT = <location of the document> djfkd/fdf/fdfd/txt'
OPERATION = 'PRINT'
this you can call it in a loop.
Regards
Raja
2005 Jul 18 10:03 AM
Hi everyone,
I am really new at ABAP programming and I am getting dificulties to understand all this stuff.
Lets say I have 5 files to print. I do not want to send 5 files to the printer separatly. I want to create 1 job that contains all these files. And when this job is ready, I send it to the printer.
Those files are located on my local host and not a server machine.
Thanks a lot.
2005 Jul 18 10:34 AM
My guess is that you want to do it from a portal application, if yes.
develop a RFC function module in ABAP which would take the file path as parameters(table -so that you can supply multiple files).
within the function use the method i have mentioned earlier to do the job.
this RFC you can easily call from your java application.
Regards
Raja
2005 Jul 18 11:40 AM
2005 Jul 18 3:54 PM
Hi again,
Last thing : Does cl_gui_frontend_services=>execute
exists in SAP/R3 4.6c version ?
Thanks.
2005 Jul 18 7:26 PM
sorry i can't confirm that as i dont have 4.6c system, i work in a 4.7 system.
in case if you dont find it in 4.6c system. you can use FM WS_EXECUTE which can do the same job.
Regards
Raja
2005 Jul 19 8:55 AM
Hi,
The method execute doesn't exist with parameter "operation".
I tried to use to WS_EXECUTE...it does print : it opens the file but do not close the file after printing.
Is there an option to close automatically the file after printing ?
Thanks.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |