on 10-20-2008 2:57 PM
Dear Freinds,
I have developed a smart form . when iam running from the custom program the data from
the internal table ITAB iam getting data into smartform.
iam looping the internal table in smartform
in the looping i have given as ITAB to WA_ITAB.
in the table
Header
Main Area
Footer
I have given fields as EmpNo.
Name
Designation
Salary
in the Main Area
&WA_ITAB-EMPNO&
&WA_ITAB-NAME&
&WA_ITAB-DESIG&
&WA_ITAB-SAL&
In the Footer
i have given the description.
now when i run the custom report it is passing the internal tablel ITAB to Smart form and data is being
flown into wa_itab.
instead of data EMNO : &WA_ITAB-EMPNO&
Name : &WA_ITAB-NAME&
Designation : &WA_ITAB-DESIG&
Salary &WA_ITAB-SAL&
coming in that
iam getting data as
EMNO :
Name :
Designation :
Salary
101
Akbar
clerk
1000
ie. iam gettin data just above the footer comments int he ouput .....Could any please let me know where i went wrong in mapping the fields.
regards
madhuri.
Hi
If i understood your requirment, You want to Print text and values
side by side then make changes as below.
In Main Area
Try to Code : as follows
EMNO : &WA_ITAB-EMPNO&
Name : &WA_ITAB-NAME&
Designation : &WA_ITAB-DESIG&
Salary &WA_ITAB-SAL&
Regards
naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Go with the Naveen kumar ... remove whatever u gave in header ...
in main u write
EMNO : &WA_ITAB-EMPNO&
Name : &WA_ITAB-NAME&
Designation : &WA_ITAB-DESIG&
Salary : &WA_ITAB-SAL&
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi madhuri,
In the global defintion declare the variable
fs_emp type emp.
t_emp type table of emp.
In types declare the structure for the emp details.
In the initialization write the select query.
In the main window create the loop --> text node
empno : &fs_emp-empno&
name : &fs_emp-name&
designation: &fs_emp-designation&
salary : &fs_emp-salary&.
Drag and drop the fields in the text node.Donot hardcode the fields.
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The data is displayed as you have specified in the main area
if you have given the fields one below the other then the output will be like you have given.
you have to specify the fields in the same line within the same column.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.