Skip to Content
avatar image
Former Member

SmartForm Issue

Hi experts.

I want to know whether user clicked on print or printpreview in the PO smartform.

how can we handle programtically.

my purpose is i want to write some logic inside FOR ENTRY ..after user clicking on print button not on print preview.

please help

thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 21, 2008 at 05:43 AM

    Hi,

    If user clicks on print button then spool number will be gerated. So grab that value. If it is initial then it is print preview.

    Reward points if useful.

    Regards,

    Nageswar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 21, 2008 at 05:40 AM

    Hi Ramesh,

    To solve this, check for the sy-ucomm value of print or Print preview button.

    To get this, click F1 on any place on the window which will display shop papers and print and print preview buttons. Goto Technical Information and in that window either double click on the PF_STATUS or SCREEN Number which is appearing. From there you can know the SY_UCOMM value for the print or print preview button.

    At first itself assign this sy-ucomm to some varaible and check that variable anywhere you want and do the operations.

    Please REWARD point if useful.

    Thanks,

    karthik

    Add comment
    10|10000 characters needed characters exceeded