Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Issue in passing contents of itab1 to itab2

Dear All,

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.

Regards,

SuryaD.

Edited by: SuryaD on Apr 8, 2010 10:33 AM

Former Member
Not what you were looking for? View more on this topic or Ask a question