Skip to Content
0
Former Member
Jul 15, 2008 at 02:57 AM

add record

16 Views

hi,

i need to add record to sap standard table.

if i use insert then repeated key field not allowed me to do so.

should i do like this.

if record found use update whereas if record not found use insert.

loop

UPDATE ... SET ...

WHERE ....

IF sy-subrc = 0.

COMMIT WORK.

ELSE.

insert ....

COMMIT WORK

ENDIF.

endloop.

thanks