‎2007 Apr 11 2:25 PM
Dear all,
I am developing a screen program with table control and i wasted to make the content of the screen print .how can I do this???
Regards,
Vj
‎2007 Apr 11 2:28 PM
‎2007 Apr 11 2:36 PM
The table Content in the Table control Screen has to be printed and I have activated the "Print" on the GUI STATUS and I want to use the Print option to print the content of the table on a printer.
any ideas!!
Thanks,
Vj
‎2007 Apr 11 2:30 PM
Hi,
You can't take the printout of the screen.
if needed use the Print screen button on the key board.
You can download the screen with flowlogic from SE51 Screeen layout and can upload to the other client /system.
reward if useful
regards,
ANJI
‎2007 Apr 11 2:30 PM
Hi,
use LEAVE TO LIST-PROCESSING for from screen to list
use LEAVE LIST-PROCESSING for from list to screen.
aRs
‎2007 Apr 11 2:34 PM
Hi,
you must have created the pf-status for the screen. create the print button for that and then write the code for that button.
Regards,
Sonika
‎2007 Apr 11 2:37 PM
‎2007 Apr 11 2:46 PM
Hi,
instaed of printing directly, switch to report output and then print.
hope it helps.
suppose t_final has all the recorde of the table control
when 'PRINT'.
leave to list-processing.
LOOP AT T_FINAL.
WRITE T_FINAL-MATNR.
ENDLOOP
then the report will have all the data from the table control , print it from there.
Regards,
Sonika
‎2007 Apr 11 3:25 PM
The List-processing works but, from there how can I print the content of the report.
Please help,
Vj
‎2007 Apr 11 3:38 PM
Hi,
After the write statment you can call the function module 'GET_PRINT_PARAMETERS' to print the report output.
*Sending the print parameters to this.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LP01'
immediately = 'X' "<<< add this line - immediate print
NEW_LIST_ID = 'X' "<<< add this line - new spool request
IMPORTING
out_parameters = l_parms
valid = valid.Regards
Sudheer