‎2006 Sep 29 4:53 AM
Hi
i am using the following statement
MODIFY ZDISPLAY FROM TABLE GT_OUTTAB. then my dbtable zdisplay is not updating only last record of gt_outtab. all records are not getting appended any commit statement i have to use before or after?
‎2006 Sep 29 5:09 AM
make sure the int table GT_OUTTAB is of type ZDISPLAY only.
Regards
Gopi
‎2006 Sep 29 6:15 AM
Hi srinivas
I think ur key value is same in urs internal table. u make one new key (in ztable & internal table) sr no. as a key field and incremant +1 in loop. urs problem may be slove. otherwise send me data & struct. of tables.
Thanks
Manish Kumar
‎2006 Sep 29 6:25 AM
Hi kota,
1. Primary key
2. The modify statement,
will only modify
if the primary key combination of fields,
matches with that of work area.
3. If EXACT match is not found,
then it will automatically INSERT a new record.
4. Moreover, we have to use like this.
LOOP AT GT_OUTTAB.
MODIFY ZDISPLAY FROM GT_OUTTAB.
ENDLOOP.
regards,
amit m.
‎2006 Sep 29 7:01 AM
hi,
tips
*********
1. gt_outtab should have the same structure of zdisplay
2.all the key combination shuld be there, if there is any chnage in the key field insdie the loop, it will insert a new record into the ZDISPALY.
3. use like this.
loop at gt_outtab.
modilfy zdisplay from gt_outtab.
clear gt_outtab.
endloop.
rgds
anver
if still problem pls let the forum know.
mark points 4 all hlpful answers
‎2006 Sep 29 7:27 AM
hi srinivas..
give in loop.
loop at itab.
modify ZDisplay from table itab.
endloop.
‎2006 Sep 29 7:41 AM
Hi Srinivas,
Adding to Anversha reply...
take care of key ...if you dont sepecify any then combination of all character fields will be taken as default key ..