Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Smart from process and Print preview issue

Former Member
0 Kudos

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.


4 REPLIES 4

FredericGirod
Active Contributor
0 Kudos

Ola,

...no_dialog = ' '.

...preview = ' '.

Fred

0 Kudos

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.

0 Kudos

Do you try to catch the SY-UCOMM ?  if you click on process don't check Preview value

regards

Fred

0 Kudos

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.