Skip to Content
0
Former Member
Dec 06, 2006 at 10:02 AM

Internal table Field

23 Views

Hi everyone,

I have an Interbal table based on this following Types.

TYPES: BEGIN OF ty_Dyn,

Field1

Field2

Field3

DynField

END OF ty_Dyn.

I am trying to fill this internal table from another 2 Itabs.

Say Itab1

Itab1.

-


Field1

-


Field2

-


Field3

Itab1.

Itab2

-


Field1

-


DynField

Itab2.

Now Itab1 and Itab2 are related by Field1.and for one value of Field1 i can have multiple DynFields.

so after processing, my Itab2 would look like

============

Field1 = John

DynField = XXX

Field1 = John

DynField = YYY

Field1 = John

DynField = WWW

Field1 = John

DynField = ZZZ

================

My requirement now is while populating my I_DynField

i should have

Field1 = John

Field2 = Consultant

Field3 = SAP

DynField = XXX

DynField = YYY

DynField = WWW

DynField = ZZZ

hope all this makes sense.. please help me if can thanks a lot.