on 08-27-2008 6:33 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.