Application Development 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: 

Push button on print preview screen of Smartform

Former Member
0 Kudos

Hi Experts,

I need two Push buttons on print preview screen of smartform

1. One is to convert the smartform to pdf and

2. Another Push button for Printing

Is there any way to bring those buttons on print preview screen of smartform?

Thanks and regards,

Suman

5 REPLIES 5

Sijin_Chandran
Active Contributor
0 Kudos

Hello Suman ,

You need this requirement for a Custom report outputted through Smartforms or for a Standard Tcode.

If this is for Custom Zreport , then u need to create a GUI status for your report,  where you can add required buttons and Set USER_COMMAND for the buttons .

Aashish28
Contributor

Hiii,

       Instead of putting one extra button on standard print preview you can control that from your driver program see below screenshot

and if you want to make change in standard print preview than see below thread and read my comment of implicit enhancement ( include - LSTXBWFCC ) you will get idea -

http://scn.sap.com/thread/3214725

Former Member
0 Kudos

Hi Ashish,

Thanks for your suggestion.

If I am right you are suggetsing me to disable the print preview dialog box and in its place create a pop-up that will come after executing the program.

and I have seen your thread but I need  two buttons on the standard screen for that I need to modify the standard pf-status. Is there any to do it without modifying the standard one.

0 Kudos

Hiii,

       Yes you are right you have to modify or put zcopy of pf status in seprate z program which should be called via implicit enhancement in your required program (eg. - SET PF-STATUS status [OF PROGRAM prog] [EXCLUDING fcode] it is risky )but i am not suggesting you to disable button i want give simple idea and Screenshot of my previous thread came when driver program ( Zcopy of standard one ) of my standard transaction va22 va23 run that's why i told Instead of putting one extra button on standard print preview make changes out logic inside your driver program , in which tcode you want to put this option ??

Former Member
0 Kudos

Hi Ashish,

I have to bring those buttons on the application toolbar of print preview. It is a custom Tcode of a report executing the smartform.

Could you describe briefly How can I disable the standard application toolbar and add my custom toolbar.

Thanks in advance,

Suman