Skip to Content
avatar image
-2
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 08, 2017 at 02:41 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 08, 2017 at 04:36 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded