Application Development 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: 

Hot to design a Table with Row Fields in row not in column

Former Member
0 Kudos

Hello I need to make a smartform. I have collected all the data in an internal table and will pass it inside smartform. The problem is my final data is not like the structure of internal table.

Eg: Name Quantity Employee code

xvy 10 010

My Final output looks like

NAme xvy

Quantity 10

Employee code 010.

Please let me know how can i proceed.

1 ACCEPTED SOLUTION

former_member200754
Participant
0 Kudos

In smartforms you need to create a loop statement with a template inside loop.

First : input your internal table into loop statement

Second : your template design with three lines and two columns. First column show desc, second show value of your table.

5 REPLIES 5

Jelena
Active Contributor
0 Kudos

"Pass it" from where to where? Sorry, I'm not following what exactly is the question here. You might want to add a screenshot and more details.

former_member200754
Participant
0 Kudos

In smartforms you need to create a loop statement with a template inside loop.

First : input your internal table into loop statement

Second : your template design with three lines and two columns. First column show desc, second show value of your table.

Former Member
0 Kudos

Hi Bhavesh,

As John said, you need to create a LOOP with a template/table.

Please do try the following :

For each iteration, you need to create TEXT ELEMETS where, you can specify "LABLE(Eg: Name)"<the value in the iteration>.

For your case, you need to have 3 TEXT ELEMENTS, and the design would be like this:

LOOP it_internal_table INTO ls_internal_table.

* Text ELEMENT 1.

NAME : &ls_internal_table-name&

* Text ELEMENT 2.

QUANTITY : &ls_internal_table-quantity&
* Text ELEMENT 3.

Emp. Code : &ls_internal_table-emp_code&

ENDLOOP.

0 Kudos

thanks. for your answer, it helped.

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

You are "hot" to design? Wow!