Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to activate the print command on a screen program?

Former Member
0 Likes
1,758

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

9 REPLIES 9
Read only

alex_m
Active Contributor
0 Likes
1,173

Whats your requirement?, please explain.

Read only

Former Member
0 Likes
1,173

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

Read only

Former Member
0 Likes
1,173

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

Read only

former_member194669
Active Contributor
0 Likes
1,173

Hi,

use LEAVE TO LIST-PROCESSING for from screen to list

use LEAVE LIST-PROCESSING for from list to screen.

aRs

Read only

former_member632991
Active Contributor
0 Likes
1,173

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

Read only

0 Likes
1,173

Can you suggest some sample codes Please!!!!

Read only

0 Likes
1,173

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

Read only

0 Likes
1,173

The List-processing works but, from there how can I print the content of the report.

Please help,

Vj

Read only

Former Member
0 Likes
1,173

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