‎2008 May 07 10:43 PM
HI GURUS,
i am working on smartforms,
i never put a table node in the smartform,
now i need to put a tabel inside a loop node.
can some one help me.
in the main window, i created a loop node,
in that loop node i created a table noe,
so there appeareds header main footer cubnodes,
when i right click on the main sub node, it gives me an option to put a line.
can some one help me.
‎2008 May 07 10:48 PM
when u create a table it will show three things, header main and footer.
header is use to display the columns headings
main is used to display main data
footer is used to display subtotal etc...
when u create table its will show only in line type
click on details button on the right top corner of the table painter
then can divide the table to as many columns as u want.
then again comeback to table painter using the same button
then u can see the line type divided into cells
then painter each cell as u want with the available tools there
bye
‎2008 May 07 10:49 PM
You need to create Row in the Table and then assign those row to the Table Line .
Check this document. This will help you in step wise learning of the form -
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
Regards,
Amit
‎2008 May 07 11:02 PM
Hi Sanjana,
You need not create a LOOP in the main node.
In the main node create a TABLE node. Double click on the table node and go to the Data section. There you will find a place to enter the internal table name. Give the internal table name. And go to the Table tab (left side of data tab). if you observe there will be something like %LTYPE. This defines the number of columns in a row. By default it will be one column. if you want to have more columns, click of the Details button and enter the column lengths.
Then under the Main Area Subnode of TABLE create Table line. You will have the row and columns created above. Insert text elements under the CELLs and display the variables of the internal table as per the requirement.
Taking an example... if I have an internal table with 5 fields and I want to display 3 fields out of it.
1. I create Tables node under main window
2. In the data tab i will enter the internal table name
3. In the table tab, I will define three columns (by clicking on details tab)
4. Now create Table Lin under the Main Area sub node.
5. You will see one row and 3 cells automatically inserted.
6. Under each cell, I will create a text node.
7. In the text node, I give the field of the internal table to be displayed.
Hope this is helpful.
Thanks,
Pavan
And
‎2008 May 07 11:24 PM
HELLO GURUS,
THANK YOU FOR THE RESPONSE,
when i filling table details like column width,
why are there so many columns to put the width alone, like there are for each row there are around 5 columns asking for width, below %LTYPE1.
rgds
‎2008 May 07 11:27 PM
create one row that is enough, u dont have to create for each and every row
as u will be calling the loop
the same setting will apply for all the rows.
bye
‎2008 May 07 11:54 PM
hi A,
what ever column width i put it says,
width of line type MATNR doesnot correspond to toatal table width.
i have put the following
MATNR 1.50CM 2.75 CM 1.43 CM 1.59 CM 2.73 CM
ANY CLUE
‎2008 May 08 2:55 AM
Well you need to understand a few points here. I would not recommend you doing a trial & error sort.
1. When you want a field to be put inside a table, the most logical approach is that the width of the field entered in the table is less than the table width defined. (otherwise the table couldnt house it inside). So for the kind of error:
1. you got to check the width of the table (pls check the unit also, say 15 MM).
2. Then check the total width of the fields in the row type mentioned ( say 2 CM).
Now in this example obviously the width of your field is greater than the table width. (2 CM = 20 MM). You might have encountered an error because of something like this. Just a thought!!!
Regards
Vijay