03-25-2016 7:12 AM
Hi Every one,
Good after noon .
I have developed a smart form for the output type 'ZDRM', it is working fine.My requirement is when i click 'Process' the spool request is to be generated and click on 'Preview' preview should be open.
I did like this and passing to smart form.
wa_cparam-no_dialog = 'X'.
wa_cparam-device = 'PRINTER'.
wa_output-tddest = 'LP01'."'LOCA'.
wa_output-tdimmed = 'X'.
wa_output-tdnoprint = 'X'.
wa_cparam-preview = 'X'.
But problem is when i click on 'Preview' preview is opened successfully,and click on 'Process' it is showing preview first and generating spool after closing the preview.
How can i suppress preview when clicking on process.
Thanks&Regards,
Suresh.
03-25-2016 7:32 AM
03-25-2016 7:48 AM
Hi,
It's opening dialog box. It is not require.
when i click on 'Preview' preview is open and click on'Process' it should generate spool only.
Regards,
Suresh.
03-25-2016 7:55 AM
Do you try to catch the SY-UCOMM ? if you click on process don't check Preview value
regards
Fred
03-25-2016 8:08 AM
Hi,
I tried, the function code for 'Process' is 'PROC' and 'Preview' is 'VIEW'.But the problem is when i click on Process or preview first driver program is executed,I am not getting Sy-UCOMM values
here.
Regards,
Suresh.