06-08-2007 2:38 PM
I have been asked to do a mass update of the characteristics table AUSP. I am changing one field only (ATWRT). Is there a function module available for this or some other method? BAPI? I'm a relative newbie so any help appreciated.
Thanks.
06-08-2007 2:44 PM
Hi,
Please check this FM CLVF_UPDATE_AUSP perhaps it may help.
Regards,
Ferry Lianto
06-08-2007 2:44 PM
hi,
use update query............
LOOP AT UPDATE_DATA.
update AUSP SET ATWRT = UPDATE_DATA.-ATWRT
WHERE CONDITION.............
ENDLOOP.
reward points if helpful,
Regards,
Imran
06-08-2007 2:44 PM
Hi,
Please check this FM CLVF_UPDATE_AUSP perhaps it may help.
Regards,
Ferry Lianto
06-08-2007 3:10 PM
06-08-2007 3:15 PM
See if standard SAP program RCCLBI03 is what you are looking for.
Actually, this program, though well documented, is not particularly easy to use. If the BAPI suits your purposes, I'd use that.
Rob
Message was edited by:
Rob Burbank
06-08-2007 3:42 PM
Hi,
get the data in an internal table and then update..
select <fields u want> into i_ausp where <some condition>
loop at i_ausp.
i_ausp-awert = <newvalue>.
modify i_ausp.
endloop.
UPDATE AUSP FROM TABLE i_ausp.
if sy-subrc eq 0.
COMMIT WORK.
endif.
Regards,
Nagaraj