Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Mass update of table ausp

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check this FM CLVF_UPDATE_AUSP perhaps it may help.

Regards,

Ferry Lianto

5 REPLIES 5

Former Member
0 Kudos

hi,

use update query............

LOOP AT UPDATE_DATA.

update AUSP SET ATWRT = UPDATE_DATA.-ATWRT

WHERE CONDITION.............

ENDLOOP.

reward points if helpful,

Regards,

Imran

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check this FM CLVF_UPDATE_AUSP perhaps it may help.

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi

Try below BAPI

BAPI_CHARACT_CHANGE

Regards

Tushar

Former Member
0 Kudos

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

former_member404244
Active Contributor
0 Kudos

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