2007 Mar 07 6:54 AM
Hello Experts,
I am currently practicing smartforms and I want to know how do I show data from my itab? fHelp would be greatly appreciated. Thanks alot!
2007 Mar 07 1:33 PM
You should:
1) Declarate the internal table at Form Interface, on Tables (say IT_TABLE). This IT is without header.
2) At Global Definitions - Global Data, put a WA variable with same type of IT_TABLE (SAY WA_TABLE)
3) Under the Main window of a Page you should create a Table node.
4) On this node on Table divide the existing line (%LTYPE1) into as many fields as you need.
5) On Data put a LOOP with Operand: IT_TABLE INTO WA_TABLE.
6) Under Header create a row line choosing %LTYPE1 as Line Type. A cell node is going to be created for each field on %LTYPE1.
7) Under each node you can create a Text node hith the title of the column.
😎 Under Main Area create a row line choosing %LTYPE1 as Line Type. A cell node is going to be created for each field on %LTYPE1.
9) Under each node you can create a Text node hith a sub-variable of WA_TABLE. Use Insert Field button for it and put the variable on first field like &WA_TABLE-FIELD&.
I think it's all you need for a basic list. Hope it helps.
PS: By the way. This message should be on Form Printing forum.
2007 Mar 07 1:33 PM
You should:
1) Declarate the internal table at Form Interface, on Tables (say IT_TABLE). This IT is without header.
2) At Global Definitions - Global Data, put a WA variable with same type of IT_TABLE (SAY WA_TABLE)
3) Under the Main window of a Page you should create a Table node.
4) On this node on Table divide the existing line (%LTYPE1) into as many fields as you need.
5) On Data put a LOOP with Operand: IT_TABLE INTO WA_TABLE.
6) Under Header create a row line choosing %LTYPE1 as Line Type. A cell node is going to be created for each field on %LTYPE1.
7) Under each node you can create a Text node hith the title of the column.
😎 Under Main Area create a row line choosing %LTYPE1 as Line Type. A cell node is going to be created for each field on %LTYPE1.
9) Under each node you can create a Text node hith a sub-variable of WA_TABLE. Use Insert Field button for it and put the variable on first field like &WA_TABLE-FIELD&.
I think it's all you need for a basic list. Hope it helps.
PS: By the way. This message should be on Form Printing forum.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |