Application Development and Automation 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: 
Read only

Write a Mass Update ABAP Program

Former Member
0 Likes
2,311

My User would like to me to write a mass update program to update the Accounting Clerk Field (KNB1-BUSAB) instead of using the xd99.

I learned that KNB1 is a SAP standard table and not able to direct update to the table.

I am thinking of using the BDC recording from tcode 'XD02' to update KNB1-BUSAB, but user say that there will be a large volume of records to be updated either or daily or monthly basis and would like to have something simplified 'XD99' instead using BDC.

I am studying the "XD99" and figure out that it using the function call "MASS_CHANGE_DATA" to do the mass update, refer below.

Anyone has the idea on how to use this function or is it a SAP standard function call ?

Are there any other ways to do the mass update without performance issue ?

Thanks.

4 REPLIES 4
Read only

former_member156446
Active Contributor
0 Likes
1,593

hi u can also use MASS transaction , may be it might be usefull

Read only

RoySayak
Active Participant
0 Likes
1,593

u should use some bapi to update customer master.

at this moment i can't remember any bapi for customer change.

otherwise u've to use BDC.

Thanks

Sayak

Read only

Former Member
0 Likes
1,593

It would probably be best if you convince management to go along with batch input.

But if you can't, this looks like one of those "safe" fields that SAP customers occasionally update on there own.

If I had to do this, I would run a performance trace (ST05) while updating this field. This will show you if there are any other fields/tables being updated at the same time. It may help you decide.

But you will probably find that both CDHDR and CDPOS are being updated. So if you simply change this field, no change documents will be created. But I think you can create the change documents separately.

Rob

Read only

Former Member
0 Likes
1,593

Take a look at the function module SD_CUSTOMER_MAINTAIN_ALL.

-Mark