- Deleting all records from database table
DELETE FROM <ztable-name> WHERE <field-name> EQ 'condition'.
- Adding new records to an empty database table
LOOP AT lt_equip INTO lw_equip.
INSERT ZEQUIP_SERNO FROM lw_equip.
CLEAR : lw_equip.
ENDLOOP.
IF sy-subrc EQ 0.
COMMIT WORK.
ENDIF.
- Update and Modify
UPDATE <Table> FROM <work_area>.
Modify means it going to modify the record if it exists. If record is not there it going to add that record.
https://scn.sap.com/thread/157718
- Commit Work
https://scn.sap.com/thread/157718
No comments:
Post a Comment