Skip to Content

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

spilt the ITAB based on condition

Hi Experts,

I have a requirement to split the internal tables.

ITAB1:

Filed1   Filed2

1         A

1         A   

2         B 

2         B

3         C

3         C

ITAB2:

Field3  field4

3           C

3           C

3           C

4           D

4           D

5           D

here the if the field1 value '3' also exist in ITAB2, now I need to move all the records ( where filed 1= 3)  from ITAB1 to ITAB2.

so the result should be

ITAB1

field1  field2

1         A

1         A

2         B

2         B

ITAB 2:

Field 3  Filed 4

3           C

3           C

3           C
3           C

3           C

Please suggest me how can I write the logic

thanks

SV

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