Application Development and Automation 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: 
Read only

How to get reference for internal table fields?

Former Member
0 Likes
806

hi,

i have z table with fields like  empno    date     code 

                                                 7777   06-02-13   11

my itab1 having the fields like  empno ,  d_01 ,d_02 ,.....d_31.(date from 01 to 31).

in my report i have to move the field 'code' of my 'z table' to my internal table 'itab1'.

now i had completed up to this,

MOVE sdat+6(2) to var.

      MOVE var to d.

      concatenate 'd_' d into xx.

xx=d_06

how to use field symbols here..

let me clear that how to append the code value to my itab1.

like,

empno   d_01 d_02 ... d_06 ...d_31

7777                               11 

Thanks in Advance...

4 REPLIES 4
Read only

Former Member
0 Likes
734

Hi,

Please check below code.

FIELD-SYMBOLS <fs>.

MOVE sdat+6(2) to var.

      MOVE var to d.

      concatenate 'ITAB1-D_' d into xx.

ASSIGN (XX)  TO <fs>.

<fs> = "Pass code value here(Ex: 11).

append itab1.

clear itab1.

Thanks,

Sivaji.

Read only

0 Likes
734

Hi Sivaji,

Thanks for your kind reply.

But a run time error is occurring while executing this statement

"<fs> = "Pass code value here(Ex: 11)."

and internal table is also not appending.

Regards,

Mani.

Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
734

You have not declared what type the field-symbol <fs> should be.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
734

(FAQ) Press F1 on ASSIGN statement to find syntax for ASSIGN COMPONENT.

Regards,

Raymond