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

Table window in smartforms

Former Member
0 Likes
4,232

Hi expert,

   How to extend the table length even when we give single item or multiple items? however the table window size differs based on input & data.

Pl sugges me table windos  should be fixed in first page even when we give various input...if the lines items is more than main window it has to go for next page.

Note: Table window should be fixed to bottom window for any type of input & output. it shouldn't be gap...cause based data table window size reduce itself.

Thanks

Savita.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,491

Hi Savita,

Go through this link it may help you to resolve  your issue :-

http://scn.sap.com/thread/3360347

Regards,

Rahul

20 REPLIES 20
Read only

Former Member
0 Likes
3,491

Hi Savita,

As I understand, your requirement is about the border of the Main Window, that gets adjusted with the data. And if your data is only two rows then your last window and Main Window have a gap in the output. Right?

If this is the case then you can simply create a template in the background with only borders as per your requirement ( aligned with your Main Window Table Layout). This way you will have a skeleton always getting printed however the Main Window may end up any where.

I hope this helps. Please revert in case of issue.

Regards,

DN.

Read only

arindam_m
Active Contributor
0 Likes
3,491

Hi,

The main window is fixed its just that the table varies. Go to the output options of the main window and choose the BOX and SHADING options to draw a frame for your main window. then you will see that the table margins are visible inside this box of the main window. Hope this helps.

Cheers,

Arindam

Read only

Former Member
0 Likes
3,491

Hi Expert,

     I have made my table window like header, main & footer. Especially i use footer for total calcualation.. header for title descriptioin. Main is for data flow..

According to you, i created template with created border.

can we keep the table footer on bottom of the template?

Thanks

Savita

Read only

0 Likes
3,491

Hi.

If its a footer for the table i.e. defined within the table it will appear once after the table is complete. If you want to display the footer at each page make it a separate window.

Cheers,

Arindam

Read only

0 Likes
3,491

Hi Savita,

If you use the structure in Main Window, I mean the Header, Main and Footer, then in this case you still have to face issue. the template that I have suggested would get you the skeleton but your footer would end up just after your Main area. I dont think you need this way?

If you need your Footer window to be printed only at the bottom, then you will have to create a Static Window and display the data as required(i mean footer on each page or only after end of Main Window).

Please let me know if you have any issues.

Regards,

DN.

Read only

0 Likes
3,491

Hi Expert,

    Instead of creating template with creating border..why don't we create main window border to complete the skelton.. i do have table window border..

Thanks

Savita

Read only

0 Likes
3,491

You can create the border, if this fulfills your requirement. Template will be used in this case is not required but if you need some fixed horizontal or vertical line (Fixed) then in that case you can use template to put a frame on the top of Main window.

Read only

0 Likes
3,491

Hi Rahul,

    How to keep footer at bottom..Let it some space above doesn't matter but footer should come down. even after creating template as border with secondary window according to your thread

Thanks

Savita

Read only

Former Member
0 Likes
3,492

Hi Savita,

Go through this link it may help you to resolve  your issue :-

http://scn.sap.com/thread/3360347

Regards,

Rahul

Read only

0 Likes
3,491

Hi Rahul,

     Using main window border i covered gap but i need footer should display botton of the main window even giving any type of output.. '

thanks

savita..

Read only

Former Member
0 Likes
3,491

Hi,

     My footer details not showing end of mian window even selected ONLY AFTER END OF MAIN WINDOW. and tiked ONLY AT PAGE BREAK.

tell what to do footer has to display bottom of the main window..

Thanks

savita

Read only

0 Likes
3,491

For footer create a window type "Final". Do the calculation in main window for the result or in initialization. Depending on your requirement.

add these condition to condition Tab under Final window.

SFSY-FORMPAGE = SYSY-FORMPAGES. (This will trigger only on last page)

You can check the same by putting default value .

Regards,

Rahul

Read only

0 Likes
3,491

hi Rahul,

  I have created all with main window and under footer line...used checed page at break and only after end of main...but my footer is not showing in the end of main window..

thanks

saitha

Read only

0 Likes
3,491

Hi Rahul,,

   I wanted to trigter the total calculation end of main window...which is in main window..

thanks

Rahul

Read only

0 Likes
3,491

Hi Rahul,

    I have alread created footer under main window with total text etc..Should i move all text into new footer window then you condition..right..

Thanks

Savita

Read only

0 Likes
3,491

Could you elaborate more ?

Note:- Try to explain your issue in much better way as to receive better Solution.

1.You need to check whether the calculation is being done or not, Use debugger.

2. Set a break point by applying program lines in footer.

3.check the same by applying hard code values.

Read only

0 Likes
3,491

Hi Rahul,

I need to keep footer end of main window either  one line items or 2 or 5 it should display
end of main window..

As of now, it gets huge gap after total displaying to avoid it should display end of main window..

Thanks

Savita

Hopes help you

Read only

0 Likes
3,491

Yes, You need to store all the values in the variables and need to display the same in the final window with the condition I mention above .

Read only

0 Likes
3,491

Hi Rahul,

   I have created a new template under final window with storing variables the same as in main window. Also deleted the footer line in the main window.

Note: The condition you mentioned which is not accepting and it sfsy may wrong system fields..if possible can you explian about that?

Thank for your valuable suggestion

Thanks

Savita

Read only

0 Likes
3,491

You need to apply the condition when number of pages equals to number of page.

yes you were right you need to apply.

SFSY-PAGE = SFSY-FORMPAGES

So, if there are 3 pages

A). On page 1 condition will be

    1 = 3 which will be false.

B). On page 2 condition will be

    2 = 3 which will be false.

C). On page 3 condition will be

    3 = 3 which will be True.

And on this condition the final window will be displayed.

Regards,

Rahul