Skip to Content

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

update ztable records

Hi,

I am trying to move Internal table contents to Z TABLE.

I am having data issue. In debugging I see ITAB enteries say for example 100

all are not getting in to ZTABLE.

I am not filtering anywhere

I have 100 records in itab with fld1 = 'ZBC'.

LOOP AT t_data WHERE fld1= 'ABC'.

ZTAB-FLD1 = t_data-FLD1.

ZTAB-FLD2 = t_data-FLD2.

ZTAB-FLD3 = t_data-FLD3.

ZTAB-FLD4 = t_data-FLD4.

modify ZTAB .

commit work.

endloop.

Anything wrong in my code?

Rgds

Praveen

Tags:
replied

hi,

instead of modify use update statement.

UPDATE TABLE SET COLUMN-UPDATE STATEMENT

or use this

Single-line inserts

LOOP AT INT-TAB

INSERT INTO TABLE VALUES INT-TAB

ENDLOOP

wtih regards

janani

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