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

How to show data in smartforms...

aris_hidalgo
Contributor
0 Likes
300

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!

1 ACCEPTED SOLUTION
Read only

gastn_jareo
Active Participant
0 Likes
273

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.

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!

1 REPLY 1
Read only

gastn_jareo
Active Participant
0 Likes
274

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.