cancel
Showing results for 
Search instead for 
Did you mean: 

not printing the details exactly to that of header data

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

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&

Former Member
0 Kudos

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

Former Member
0 Kudos

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.