Application Development and Automation 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: 
Read only

Smartform is not Printing

former_member203806
Participant
0 Likes
4,547

Hi All

I have done the Z programe, out put is smartform.

when i am execute it properly it ran and print preview is displayed.

But problem is print out is not coming, when  i m click the print button it is going to spool olny,

Hw can i sort this, Any settings have to change in SPAD......

Rgds

Pramod

Hi All

I have done the Z programe, out put is smartform.

when i am execute it properly it ran and print preview is displayed.

But problem is print out is not coming, when  i m click the print button it is going to spool olny,

Hw can i sort this, Any settings have to change in SPAD......

Rgds

Pramod

9 REPLIES 9
Read only

FredericGirod
Active Contributor
0 Likes
2,755

Hi,

select the "Print immediately" option

regards

Fred

Read only

0 Likes
2,755

You may also change the user settings in SU01, there's a checkbox for "Print immediately" under default printer. Another way is to go into settings when the print window appears.

Read only

0 Likes
2,755

Hi Daniel

I have done it, but still not working...

Read only

0 Likes
2,755

Can you post your code snippet here?

Read only

0 Likes
2,755

Hi Pramod,

plesae check these code and match it with yours code for print and preview

*****For Printing

IF PRIN  = 'X'.

     P_CONTROL_PARAMETERS-PREVIEW   = ' '.

     I_OUTPUT_OPTIONS-TDNOPRINT     = ' '.

     I_OUTPUT_OPTIONS-TDNOPREV      = 'X'.

     I_OUTPUT_OPTIONS-TDNEWID       = 'X'.

     I_OUTPUT_OPTIONS-TDIMMED       = 'X'.

**********For Preview

ELSEIF PRIV = 'X'.

     P_CONTROL_PARAMETERS-PREVIEW   = 'X'.

     I_OUTPUT_OPTIONS-TDNOPRINT     = 'X'.

     P_CONTROL_PARAMETERS-NO_DIALOG = ''.

   ENDIF.


if your code are correct, then i think problem is in settings, you should talk to your basis guys regarding it.

Read only

0 Likes
2,755

If you want the SU3 have an impact on your smartforms, you have to select the option User_Settings   in the call function of the smartforms.

regards

Fred

Read only

former_member202771
Contributor
0 Likes
2,755

Hi Pramod,

system --> user profile --> Own Data (Defaults tab) Check output immediately.

Thanks,

Anil

Read only

former_member194739
Active Participant
0 Likes
2,755

Dear Pramod,

In smartform layout select Global setting form attributes, output format is 'standard output'.

Regards,

Abbas.

Read only

Former Member
0 Likes
2,755

Hi Pramod,

Check if the spool request is getting generated. When you give the print option, it will tell you the spool request number. Check the spool number in tcode SP01.

You can see the print preview from there and trigger the print as well. If you trigger the print from there, it will create logs and you can find out what is causing the error.

What kind of printing are you using to get the print out.

Hope this helps.

AC