Skip to Content
0
Former Member
Feb 06, 2009 at 07:04 AM

Smartform pdf & preview problem

116 Views

Hi Experts,

I am running a smartform through VF31 T-code. If I press print button in that, thesmartform should be saved as pdf file and if I press preview button, I should have smartform preview.

My problem is whatever I do first, it is coming successfully. My code will be like below in driver program.

If sy-ucomm = 'PROC'.

" Code for pdf file save in presentation server.

Elseif sy-ucomm = 'VIEW'.

" Code for print preview.

Endif.

Sometimes I am able to get both the results, which I want. But sometimes only one comes. If I see preview and coming back If I press print button, It says the message "All selected jobs are completed", but no save window comes. If I save pdf first and if I press preview button secondly, preview doesn't come. If I go in debug, in second time, sometimes sy-ucomm value is null. What can I do for this?

What may be the problem. I have cleared all the variables also, before running second time.

Regards,

Venkat