cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with print and print preview options in smartforms

Former Member
0 Kudos

Hi,

While testing a smartform program,if i select the o/p type and click on print icon,a warning message has to be displayed.

If i click on print preview icon,the print preview of the smartform has to be displayed.But in my case even if i click on print preview icon,it is showing the warning message.

Is there any way to distinguish between print and print preview icons?

Regards,

Hema

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi check ok-codes

i.e SY-UCOMM value.

the function codes for both buttons are different.

Check sy-ucoomm value in your program.

Depends on that u can differentiate between print and print preview.

*write code in driver programm

if sy-ucomm = 'PRNT'.

warning message.

endif.

Edited by: Anil Mane on Aug 27, 2008 7:44 AM

Answers (0)