‎2006 Mar 13 5:59 AM
Hi experts,
Iam working on smartforms.
How can i find out <b>sy-ucomm</b> for the PRINT & PRINTPRIVIEW buttons.
I want to do something in SE38 using this window.
If user user clicks PRINT button
...do something
else if click PRINTPRIVEW
... do something..
endif.
what is the better approach.
thanks
kaki
‎2006 Mar 13 6:12 AM
Hi Kaki,
I have put a break-point in initial part of my program to find out the sy-ucomm. For Print Preview, the value is 'PREV' and for Print , the value is 'PRNT'.
Hope this has helped you.
Regards,
Sylendra.
‎2006 Mar 13 6:19 AM
Hi kaki,
When u execute the smartform u get the function module for the corresponding smartform in that u can use the job_output_options parameter for your purpose.
hope this helps,
thanks,
priya
‎2006 Mar 13 6:30 AM
Hi experts,
When user clicks Print button on print privew window ,
i want to insert some values in Ztable.
How to capture this print button?
Can any one explain me briefly....
thanks
kaki
‎2006 Mar 13 9:34 AM
Hi Kaki,
As I have earlier said, the Function Code of Print Button in Print Preview Window is 'PRNT'.
Your requirement says when you click on Print button, some values have to be inserted into the Ztable.
The Print Preview Window comes after executing the Function Module SSF_FUNCTION_MODULE_NAME. So after calling the Function Module, just write
case SY-UCOMM.
when 'PRNT'.
*write your code for inserting in the Ztable
endcase.
I hope your requirement is satisfied.
Regards,
Sylendra.
‎2006 Mar 13 6:26 AM
hi
Print Preview sy-ucomm = 'PREV'
Print sy-ucomm = 'PRNT'
regards
vinod