Skip to Content
avatar image
Former Member

Issue with print and print preview options in smartforms

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 27, 2008 at 05:38 AM

    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

    Add comment
    10|10000 characters needed characters exceeded