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

Deactivate change logs when changing material master with BAPI

Former Member
0 Likes
1,544

Dear all,

For some reasons in PP, some fields in material master (MARC) have to been changed to its initial value. After executing another program, these fields must get back the previous value.

So I have created an ABAP-program that changes fields in material master and I use BAPI_MATERIAL_SAVEDATA to do this. This program runs every day in a background job. But now I'm getting a lot of change logs for this materials, which I do not need (tables CDHDR/CDPOS).

Is it possible to deactivate the change log during execution of a abap-program.

We are working in release 46C.

Regards,

Christine

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
883

Hi Friend,

CDHDR/CDPOS entry created with change document flag ticked in the data element of field of table.

Here table is MARA, and it has many fields which has data element with that flag ticked. So there is now way you can stop change logs excep you change the data element.But that is not advisable.

Hope it will help you.

Regards

Krishnendu

2 REPLIES 2
Read only

Former Member
0 Likes
884

Hi Friend,

CDHDR/CDPOS entry created with change document flag ticked in the data element of field of table.

Here table is MARA, and it has many fields which has data element with that flag ticked. So there is now way you can stop change logs excep you change the data element.But that is not advisable.

Hope it will help you.

Regards

Krishnendu

Read only

Former Member
0 Likes
883

Hi Krishnendu,

Thanks for your reply.

So, the only way to avoid change logging is by updating the table directly?

Regards,

Christine