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 : Blank page when print preview

Former Member
0 Likes
3,580

hi,

If i checked on the Internal Table in the LOOP Loop under the Data tab , my smartform will show blank page in my print preview.

If i do not tick it, my smartform will show the layout in my print preview ? Why like tat ?

Actually, i want to preview my smartforms with data.But, i dun know how ?

Any ideas ?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,720

Hi,

You are saying output is coming blank when you check the Internal table but when u don't it shows the layout.

Reason 1: you internal table is not having any data. Check in calling program at the smartform call function whether the data is passing to the function module or not.

Reason 2: your where condition is failing: please check your where condition it could be failing, please check for any leading zeros or something (You will have the do as mentioned above in the previous posts to debug the smartform operations if your loop is working or not and so on)

Reason 3: Font problems(Very easily ignored normally): Try to change the font settings of your output text fields. If the fonts are too large to be displayed in the text fields then they are not displayed, or change the height of the table template.

Oh and one more thing check if you have multiple pages output in the smartform(right above the greyed out archive button ). If multiple pages are there check the output in the next pages using page down button.

Comeback if even after following the above 3 steps you are not able to solve your problems.

Cheers!

Robindra Jain

hi,

If i checked on the Internal Table in the LOOP Loop under the Data tab , my smartform will show blank page in my print preview.

If i do not tick it, my smartform will show the layout in my print preview ? Why like tat ?

Actually, i want to preview my smartforms with data.But, i dun know how ?

Any ideas ?

Thanks

8 REPLIES 8
Read only

former_member188827
Active Contributor
0 Likes
2,720

Does your internal table contain any data? Make sure that the internal table is not blank, otherwise append entries in it and then test.

Read only

arindam_m
Active Contributor
0 Likes
2,720

Hi,

Its processing a blank internal table and when you dont check it sees there is no data processing  hence just giving you the print preview of the layout.

Cheers,

Arindam

Read only

Former Member
0 Likes
2,720

My LOOP information in the smartform are shown as below :

LOOP Loop

===========

(Checked) Internal GIT_A into GFL_B

Row 0 to 0

where GIT_A is import parameter name in Form Interface where associated type is ZFIA_TT_PETTY_CASH

and GFL_B is variable name in Global Definitions where associated type is ISCJ_E_POSTINGS

Hints:

======

ZFIA_TT_PETTY_CASH was declared in Data type as table type where Line type is ISCJ_E_POSTINGS

ISCJ_E_POSTINGS is a structure

Am i am doing the corect things so far ? i am newbie here. Please advise

Thanks

Read only

0 Likes
2,720

Hi,

Creak a program line before loop and use break-point in code and then find out internal table is filled.

Read only

0 Likes
2,720

Yeah.. Keep doing Go Ahead better to also check some documents online instead of verifying each step. There are lots that will show you step by step how to do it, worst case is a dump check ST22 get started with those too that's normal to get dumps.

Cheers,

Arindam

Read only

Former Member
0 Likes
2,720

Hi,

Can u Please Provide the code.so that I can give anny solution for that

Thanks,

nike

Read only

Former Member
0 Likes
2,720

I think you need to write GFL_B(workarea) in export parameters.....

Regards,

Yamilee

Read only

Former Member
0 Likes
2,721

Hi,

You are saying output is coming blank when you check the Internal table but when u don't it shows the layout.

Reason 1: you internal table is not having any data. Check in calling program at the smartform call function whether the data is passing to the function module or not.

Reason 2: your where condition is failing: please check your where condition it could be failing, please check for any leading zeros or something (You will have the do as mentioned above in the previous posts to debug the smartform operations if your loop is working or not and so on)

Reason 3: Font problems(Very easily ignored normally): Try to change the font settings of your output text fields. If the fonts are too large to be displayed in the text fields then they are not displayed, or change the height of the table template.

Oh and one more thing check if you have multiple pages output in the smartform(right above the greyed out archive button ). If multiple pages are there check the output in the next pages using page down button.

Comeback if even after following the above 3 steps you are not able to solve your problems.

Cheers!

Robindra Jain