Skip to Content

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

Internal tables.

Hi,

I have an internal table it with

f1

70

70

70

80

80

80

I have another internal table it1 with the following set of values/

f1 no

70 4.

80 5.

I want values in the first internal table or another internal table in the following format.How to do it.The first field is common in both tables.

f1 no

70 4

70 4

70 4

80 5

80 5

80 5.

Thanks..

Tags:
Former Member
replied

ITAB1

F1

70

70

70

80

80

80

ITAB2

F1 No

70 4

80 5

loop at ITAB1.
  read table ITAB2 with key F1 = ITAB1-F1.
    if sy-subrc = 0.
      move ITAB2-No to ITAB1-No.
      modify ITAB1.
      clear : ITAB2.
    endif.
    clear : ITAB1.
endloop.

Regards

Gopi

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question