‎2005 May 04 3:00 PM
Dear all
Can anybody send me the : Table Control code for multiple records insertion to a Ztable plz.....
Thnx
moni
‎2005 May 04 5:00 PM
Hi Moni,
Its pretty simple.
Behind your table control you have an internal table. Assuming that you have handled all the table control logic to ensure that your internal table accurately reflects the changes on the table control, then:
Its simply-> MODIFY dbtab FROM TABLE itab.
This will handle both inserts and updates. BUT you should not forget deletes!!!. If records are to be deleted you should maintain a seperate internal table with records to be deleted and then issue:
DELETE dbtab FROM TABLE itab.
Don't forget to commit work!!!
Hope that helps.
Brad
‎2005 May 04 5:00 PM
Hi Moni,
Its pretty simple.
Behind your table control you have an internal table. Assuming that you have handled all the table control logic to ensure that your internal table accurately reflects the changes on the table control, then:
Its simply-> MODIFY dbtab FROM TABLE itab.
This will handle both inserts and updates. BUT you should not forget deletes!!!. If records are to be deleted you should maintain a seperate internal table with records to be deleted and then issue:
DELETE dbtab FROM TABLE itab.
Don't forget to commit work!!!
Hope that helps.
Brad