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

Push Button functionality for printing

Former Member
0 Likes
551

Hello,

I have a push button in a report program.

when i click the button it has to print the document which i select in the selection screen.

how can i perform this functionality???

3 REPLIES 3
Read only

Former Member
0 Likes
486

can please provide little bit more clear functionality u want.

Read only

0 Likes
486

I have a selection screen.

in which u have three documents.

its user optional to select the documents which he wants to print.

i have given a pushbutton on the screen to perform the print functionality..

i have coded this button functionality as

SELECTION-SCREEN ULINE /10(79).

SELECTION-SCREEN PUSHBUTTON /79(10) text-006 USER-COMMAND 'BUTTON'.

PARAMETER:gd_ucomm LIKE sy-ucomm DEFAULT 'BUTTON' NO-DISPLAY.

*********Push Button functionality******************

AT SELECTION-SCREEN.

IF lt_sscrfields-ucomm EQ 'BUTTON'.

gd_ucomm = 'BUTTON'.

but the above code is not working..

The printing part is doing fine when i press Execute button on the tool bar.

i require this functionality for my push button

Read only

Former Member
0 Likes
486

i think u dont need to use a push button , this functionality can be perform with Execute button. u jst need to provide a function module which get the job number from selection screen and when u execute your program , it will directly goes to print.