04-07-2017 5:04 PM
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.
04-08-2017 3: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.
04-07-2017 9:09 PM
"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.
04-08-2017 3: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.
04-08-2017 5: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.
04-09-2017 9:51 PM
04-08-2017 9:53 AM