10-16-2007 9:44 AM
Hi,
I need to modify (empty) 1 field for all enteries in table EANL?
What is the most efficient way to do it?
tnx,Adibo.
10-16-2007 9:54 AM
Hi,
To modify a single field for all the entries in the table try this,
UPDATE dbtab set field = space.
Reward if useful.
Thanks,
Muthu.
10-16-2007 9:47 AM
10-16-2007 9:51 AM
Hi,
Refer to the following example.It is updating a table(ZCBU) with the field sfid for all entries in the table.
SELECT cbu sfid FROM zcbu INTO TABLE zcbu_temp_update
FOR ALL ENTRIES IN zcbu_update WHERE cbu = zcbu_update-cbu.
LOOP AT zcbu_update.
UPDATE zcbu SET sfid = zcbu_update-sfid
WHERE cbu = zcbu_update-cbu.
IF sy-subrc = 0.
count = count + 1.
ENDIF.
ENDLOOP.
Hope this helps.
Reward if helpful.
Regards,
Sipra
10-16-2007 9:53 AM
10-16-2007 9:54 AM
Hi,
To modify a single field for all the entries in the table try this,
UPDATE dbtab set field = space.
Reward if useful.
Thanks,
Muthu.
10-16-2007 9:55 AM
10-16-2007 9:56 AM
Hi Adible
loop on table
Modify table with TRANSPORTING field name
endloop
Piyush
10-16-2007 9:59 AM
Update EANL set <field name> = <value> [where <condn>].
where condition is optional....
10-16-2007 10:04 AM
Hi,
isn't possible to use tcode EL59?
I think it's better to modify a sap-table via BDC, TCODE, BAPI etc.
as via abap.
Regards, Dieter
10-16-2007 10:04 AM
Hi,
To empty the contents of the particular field name use this logic.
LOOP AT ITAB.
CLEAR ITAB-'give fieldname here' .
MODIFY ITAB TRANSPORTING 'give fieldname here' .
ENDLOOP.
Pls reward me points if it is useful.
Thanks & Regards,
D. Ramya.