2008 Dec 03 9:50 AM
hi,
by using following code I uploaded data into ztable but if one time we inserted data in ztable we can't change that
( insert ZPHYSICALSTOCK from table itab accepting duplicate keys.)
but i want if data will be changed in itab ,ztable have to be chaged means previous data must have to overwrite
with latest data .
plz reply me earliest
thanx ,
Jyotsna
2008 Dec 03 9:53 AM
Hi there,
I think you can using field symbols.
and modify .
thanks
Edited by: BrightSide on Dec 3, 2008 9:54 AM
hi,
by using following code I uploaded data into ztable but if one time we inserted data in ztable we can't change that
( insert ZPHYSICALSTOCK from table itab accepting duplicate keys.)
but i want if data will be changed in itab ,ztable have to be chaged means previous data must have to overwrite
with latest data .
plz reply me earliest
thanx ,
Jyotsna
2008 Dec 03 9:53 AM
Hi there,
I think you can using field symbols.
and modify .
thanks
Edited by: BrightSide on Dec 3, 2008 9:54 AM
2008 Dec 03 9:54 AM
for that you have to use modify statement.
if data is already there in the ztable for the key fields, use
modify ztable from internal-table.
2008 Dec 03 9:56 AM
2008 Dec 03 9:58 AM
Hi ,
Use this
UPDATE ZPHYSICALSTOCK SET REV_RMZHL = WF_CONF_COUNT
REV_MBLNR = WL_SPACE
STOKZ = WL_SPACE
GR_RFLAG = WL_SPACE
STATUS = TEXT-020
USNAM = SY-UNAME
ERDAT = SY-DATUM
CPUTM = SY-UZEIT
WHERE RUECK EQ FS_TAB_CNTRL-RUECK AND
RMZHL EQ FS_TAB_CNTRL-RMZHL AND
MBLNR EQ FS_TAB_CNTRL-WABLNR.
the above syntax will update the already existing record in z-table with the changed values.
Hope this will help.
Regards,
Rohan.
Edited by: Rohan on Dec 3, 2008 12:30 PM
2008 Dec 03 11:27 AM
hi reshma rimpa & BrightSide ,
my problem has been solved .
thanx a lot to all of u.
ragards,
Jyotsna
2008 Dec 03 11:29 AM
Hi Jythsna,
Its always suggested to use MODIFY instead of UPDATE and INSERT !!
keep this thing remember when u r working fruther more !!
Regards
sAS
2008 Dec 03 11:29 AM
hi rohan,
Thanx 4 reply but I didn't got ur code so , plz reply in detail.
regrads,
jyotsna
2008 Dec 03 11:33 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |