2013 Feb 06 11:38 AM
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...
2013 Feb 06 12:07 PM
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.
2013 Feb 11 6:58 AM
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.
2013 Feb 11 7:03 AM
You have not declared what type the field-symbol <fs> should be.
2013 Feb 06 12:10 PM