cancel
Showing results for 
Search instead for 
Did you mean: 

SmartForm Issue

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi nageswar thanks for your reply.

how can i get the spool number in the driver program.

Answers (1)

Answers (1)

Former Member
0 Kudos

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