Issue in passing contents of itab1 to itab2
I am having issue passing the contents of one internal table to another.
I have 2 internal tables declared like this.
Global declaration: Types: T_AFVGD LIKE AFVGD OCCURS 0, DATA : IAFVGD TYPE T_AFVGD WITH HEADER LINE. FORM get_eban . Local declaration DATA: t_iAFVGD type standard table of afvgd. t_iafvgd = iafvgd. ENDFORM.
Now i want to assign the value of iafvgd to t_iafvgd.
I cannot make changes to global declaration.
I can make changes to local declaration of t_iafvgd.
But not supposed to declare local declaration as occurs 0 or with header line due to coding
standard of client.
When i have used as above and run a syntax check i get error telling
"The type of "T_IAFVGD" cannot be converted to the type of "IAFVGD"."
guide me as to how i need to declare the internal table t_iafvgd and how to assign the contents of iafvgd to t_iafvgd.
Edited by: SuryaD on Apr 8, 2010 10:33 AM