‎2009 Nov 18 10:13 AM
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???
‎2009 Nov 18 10:15 AM
can please provide little bit more clear functionality u want.
‎2009 Nov 18 10:18 AM
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
‎2009 Nov 18 10:20 AM
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.