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: 

Unable to view the print preview of the smartform

Former Member
0 Kudos


Hi Friends,

For a report developed , and smartform attached to it , I am unable to view the print preview using LP01. LOCL is not configured , so only LP01 is available.

There were some changes in the input selection screen and all those are done. The data is getting populated in the smartform using the debugger. But unable to print it. I have checked with the smartstyle used. No change in that.

Will there be any reason...pls help

-Regards,

Swapna

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Swapna,

What is the sy-subrc value you are getting after calling the smartfrom FM.

I guess there might be some formatting error because of which you are not able to see the output in smartform.

Thanks,

Santanu

12 REPLIES 12

Former Member
0 Kudos

Hi Swapna,

What is the sy-subrc value you are getting after calling the smartfrom FM.

I guess there might be some formatting error because of which you are not able to see the output in smartform.

Thanks,

Santanu

0 Kudos

I am getting sy-subrc = 4 , when one parameter is passed to another using a select statement. I will check the same and come back to u

0 Kudos

Where are you getting sy-subrc 4..?

0 Kudos

Hi Swapna,

it is because incompatibility of both the data types, one which you are passing and the other

where you are passing, please make sure that both are same.

It will resolve your issue.

0 Kudos

Hi Swapna,

if you are not getting how to solve it, just post your code where you are having problems,

let us see whats the problem.

krishna_k19
Contributor
0 Kudos

Hi Swapna,

     i guess you are using customizing Smart Form and Program also.

Just check it might be print parameters you are you are disable.

Regards,

Krishna

former_member187748
Active Contributor
0 Kudos

Hi Swapna,

i wish that there is no change in your source code happens, but for your reference please see

thsi code and match with yours, if its fine then i will sujjest you to uninstall your printer and then

install again, it should work.

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'.

ELSEIF PRIV = 'X'.

     P_CONTROL_PARAMETERS-PREVIEW   = 'X'.

     I_OUTPUT_OPTIONS-TDNOPRINT     = 'X'.

     P_CONTROL_PARAMETERS-NO_DIALOG = ''.

   ENDIF.

sivaganesh_krishnan
Contributor
0 Kudos

Hi swapna,

just a thought , have you tried Goto - > standard preview in print preview.

nabheetscn
Active Contributor
0 Kudos

Hi Swapna

Please check what are the control and print parameters you are passing while calling the smartform. If flag for no preview is X it wont show

Nabheet

Former Member
0 Kudos

hi,

please check flag value wat u given.

Regards,

gopi

Former Member
0 Kudos

Dear All,

The contraol parameters had to be changed , and I did the same as said above.

Thanku for the help.

0 Kudos

Hi Swapna,

if you have got your answer, then please merk it and close this thread.