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

regarding the print screen

Former Member
0 Likes
722

Hi,

i want to add a print button to the toolbar and when i click on that i want my content(entries in the tablecontrol) to be printed.

how can i do this?

is there ne way other than leave to list-processing?

thanks,

vijaya.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
698

How do you want it printed? to spool? If so you can turn this button on and handle in the PAI, then submit a print program to SAP-SPOOL, this will print the data without writing to list. You will need to pass the internal table from your table control to this submitted program, which can been done using EXPORT/IMPORT statements.

Regards,

Rich Heilman

Hi,

i want to add a print button to the toolbar and when i click on that i want my content(entries in the tablecontrol) to be printed.

how can i do this?

is there ne way other than leave to list-processing?

thanks,

vijaya.

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
699

How do you want it printed? to spool? If so you can turn this button on and handle in the PAI, then submit a print program to SAP-SPOOL, this will print the data without writing to list. You will need to pass the internal table from your table control to this submitted program, which can been done using EXPORT/IMPORT statements.

Regards,

Rich Heilman

Read only

0 Likes
698

hi,

can u explain that in detail?

what is the function module i need to use?

thanks,

vijaya.

Read only

0 Likes
698

You don't use a FM, you specify this in a SUBMIT statement. You report output will need to be a separate program.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
698

Hi Vijaya,

If you have screen created for this purpose,

AT USER-COMMAND set the PF status(sy-Ucomm) for the buttons created so based upon the PF status fill the data in the output screen and fill the table control with the required data.

AT USER-COMMAND

case sy-ucomm

when 'Button1'

....

..... fill the data / display the data to table control

when 'button2'

....

......

endcase

Regards

Shiva

Read only

0 Likes
698

hi Vijaya,

Pls handle above said at PAI of the screen.

Reargds

shiva