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

smartforms print preview

Former Member
0 Likes
779

Hi experts,

Iam working on smartforms.

How can i find out <b>sy-ucomm</b> for the PRINT & PRINTPRIVIEW buttons.

I want to do something in SE38 using this window.

If user user clicks PRINT button

...do something

else if click PRINTPRIVEW

... do something..

endif.

what is the better approach.

thanks

kaki

5 REPLIES 5
Read only

Former Member
0 Likes
650

Hi Kaki,

I have put a break-point in initial part of my program to find out the sy-ucomm. For Print Preview, the value is 'PREV' and for Print , the value is 'PRNT'.

Hope this has helped you.

Regards,

Sylendra.

Read only

Former Member
0 Likes
650

Hi kaki,

When u execute the smartform u get the function module for the corresponding smartform in that u can use the job_output_options parameter for your purpose.

hope this helps,

thanks,

priya

Read only

0 Likes
650

Hi experts,

When user clicks Print button on print privew window ,

i want to insert some values in Ztable.

How to capture this print button?

Can any one explain me briefly....

thanks

kaki

Read only

0 Likes
650

Hi Kaki,

As I have earlier said, the Function Code of Print Button in Print Preview Window is 'PRNT'.

Your requirement says when you click on Print button, some values have to be inserted into the Ztable.

The Print Preview Window comes after executing the Function Module SSF_FUNCTION_MODULE_NAME. So after calling the Function Module, just write

case SY-UCOMM.

when 'PRNT'.

*write your code for inserting in the Ztable

endcase.

I hope your requirement is satisfied.

Regards,

Sylendra.

Read only

vinod_gunaware2
Active Contributor
0 Likes
650

hi

Print Preview sy-ucomm = 'PREV'

Print sy-ucomm = 'PRNT'

regards

vinod