‎2005 Dec 09 11:04 AM
Hello All,
I am modifying my zDB table from my internal table.
but only the last record is inserted into it. Following is code I am using.
Kindly suggest where I am getting wrong.
Regards,
Dilip
CASE SY-UCOMM.
WHEN 'EXT'.
LEAVE PROGRAM.
when 'SAVE'.
modify zcostsheet from izcostsheet[].
ENDCASE.
‎2005 Dec 09 11:07 AM
Hi dilip,
Use the below
Modify zcostsheet from table izcostsheet.
It should be
Modify <b>DBtable</b> from table <b>Itab</b>.
Thanks&Regards,
Siri.
‎2005 Dec 09 11:07 AM
Hi dilip,
Use the below
Modify zcostsheet from table izcostsheet.
It should be
Modify <b>DBtable</b> from table <b>Itab</b>.
Thanks&Regards,
Siri.
‎2005 Dec 09 11:08 AM
‎2005 Dec 09 11:08 AM
modify zcostsheet from table izcostsheet.
is the correct syntax
‎2005 Dec 09 11:10 AM
Hi,
use modify <dtable> from <b>table</b> <itab>
Regards,
Sakthi
‎2005 Dec 09 11:10 AM
hi
try this
tables zcostsheet.
zcostsheet-field1 = ''.
zcostsheet-field2 = ''.
modify zcostsheet.
instead of <b>modify</b> you could also use <b>insert</b>
regards
Arun
Message was edited by: arun a v
Message was edited by: arun a v
‎2005 Dec 09 11:17 AM
hi,
try this.
loop at izcostsheet.
modify zcostsheet from izcostsheet[].
endloop.
regards,
maheswaran.B
‎2005 Dec 09 11:17 AM
‎2005 Dec 09 11:19 AM
try this code snippet.
<b>loop at itab.
ztable-fieldname = itab-fieldname.
..
..
..
..
..
..
Modify ztable.
endloop.</b>
if you are adding a new record, go for
<b>Insert ztable</b>. instead of <b>Modify.</b>