‎2007 Aug 11 11:29 AM
hai, Can we pass more than 1 internal tables to the smartforms and print the contents of one internal table in one page and the other internal table in other page where the number of columns differ in both the internal tables. If it is possible please tell me the procedure if not, can u suggest any alternative. My end users have to take a print of PO with a covering letter which has the consolidated information like the product , qty, value in first page and the page2 and subsequent pages should have item wise details. I am a fresher and not having any idea. I understood that we can have only 1 main window in a smartform but not knowing how to assign 2 internal tables to the same. Can any one give me the procedure for it. I will be thankful.
with regards
anuradha
‎2007 Aug 11 12:02 PM
To use two internal tables specify both the internal tables in the form interface
under the pane -> tables .
You can create two tables in the main window with each table using their particular internal tables.
Note : You can use internal tables in the data pane of the table.
There is no need to create two pages if all the contents of the smartform are being displayed using the main window.
if not then you need to create two pages and copy the main window in the first page in the next page of the smartform .Doing this shows two main windows i.e one main window in each page but they are actually the same .(Every smartform has only one main window)
Changes in main window in the first page will get reflected in the main window in the next page as well.
Just put a page break between the two tables .
To insert pagebreak
1) Right click on the first table and select CREATE -> FLOWLOGIC -> COMMAND
2) select the checkbox GO TO NEW PAGE,
if you are using only one page then specify that page as the next page
if you are using two pages then specify the next page as the next page
NOTE : Although the main windows in each page have the same contents ,
their output options can be different, specific to each page
i.e. you can have main window in the first page starting from the middle
but main windoew in the next page starting from the top.
‎2007 Aug 11 12:02 PM
To use two internal tables specify both the internal tables in the form interface
under the pane -> tables .
You can create two tables in the main window with each table using their particular internal tables.
Note : You can use internal tables in the data pane of the table.
There is no need to create two pages if all the contents of the smartform are being displayed using the main window.
if not then you need to create two pages and copy the main window in the first page in the next page of the smartform .Doing this shows two main windows i.e one main window in each page but they are actually the same .(Every smartform has only one main window)
Changes in main window in the first page will get reflected in the main window in the next page as well.
Just put a page break between the two tables .
To insert pagebreak
1) Right click on the first table and select CREATE -> FLOWLOGIC -> COMMAND
2) select the checkbox GO TO NEW PAGE,
if you are using only one page then specify that page as the next page
if you are using two pages then specify the next page as the next page
NOTE : Although the main windows in each page have the same contents ,
their output options can be different, specific to each page
i.e. you can have main window in the first page starting from the middle
but main windoew in the next page starting from the top.
‎2007 Aug 13 7:47 AM
hai shrikant parab
I am very thank full to u my probelm is solved. Have one more query. While printing my second table i have to print the table something like group by i mean think that i have pickles, paste , powders etc. and under them i have a list of pickles under pickles and a list of paste under it. i have store this information in my internal table. Can u pls tell me how i can print these heading along with the details Eg:
Pickles
Amla
Gongura
Paste:
Tamarid
Garlic etc.
with regards
Anuradha
‎2007 Aug 13 9:11 AM
can you elaborate on the exact format in which you want to print the table?
Do you mean that you will have the first row with headings written in columns and then the details in the succesive rows?
i.e. name of pickles under pickles , name of pastes under pastes
‎2007 Aug 13 10:25 AM
Yes that is exactly what i want to do.
eg:
Flavor qty rate Value
PICKLES
Gongura 20 10 200
Amla 10 5 50
PASTE
x
y
z
Later grand total of the above.
with regards
Anuradha
‎2007 Aug 14 7:45 AM
hai, can any one tell me how to do grouping while printer internal table using table in smartforms