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: 

Restrict the no.of segments generated as per the changes in MM02

former_member183835
Participant
0 Kudos

Hi Experts,

I am changing the material master classification data from MM02. Then I run T.Code for change pointers through BD21 for message type CLFMAS.

My IDOC is successfully generated.My problem is that data for all the characteristic value are getting generated.

My requirement is that only changed characteristic value segments should be generated and not all the charecteristic value segments.

Helpful answers will be rewarded.

Thanks,

Anoop

8 REPLIES 8

RatneshSisodiy1
Active Participant
0 Kudos

Hi Anoop,

Please check BADI (BDCP_BEFORE_WRITE). It can be implemented if we want to create change pointer(or upated change table) for only particular type of material type. By simply implementing badi’s methods and removing entries for particular condition from internal at the run time.

Please let me know if you need more detail.

Best Regards,

Ratnesh Sisodiya

0 Kudos

Hi Rathnesh,

The problem is that I am changing only a single characteristic value(W201 Drive).I changed it to front wheel as shown.

The IDOC is getting generated with the changed values as shown.

But it is also generating segments for the remaining characteristic value also which I have not changed(Refer the below fig)

I want that only those segments with the characteristic value should be generated that I have changed and not all the characteristic value.

thanks,

Anoop

0 Kudos

What is the reason that you do not want all classification in the IDOC?

I would suggest you take this IDOC and enter it  WE19, then you remove the unwanted segments and then you post it.

then check the classification if it was really updated (do not just look whether the status became 53)

0 Kudos

Hi Jurgen,

I do not want this because I am dealing with change pointers. So here only those segments should be generated that have actually been changed in classification.

Generating the IDOC and later deleting it does not make sense.

My requiremnet is that the IDOC with only the changed segments should be generated,and not all the segments.This is what the user wants.

Regards,

Anoop.

0 Kudos

I understood what you want. But you have to care as well about what the system wants.

it does not make sense to just have one changed classification value in an IDOC if SAP expects the classifcation values for all characteristics in the class..

Thats why I said you shall do a test

0 Kudos

Hello,

I understand your point. But this is what the user expects from us. And we will have to do it that way.

I read somewhere that we can restrict the segments created based on tables CDHDR ans CDPOS. But the problem is that material classification data changes are not tracked in those tables.

Any solution for this??

Regards,

Anoop.

0 Kudos

classification changes are not automatically tracked, you have to activate change history

It is described in OSS Note 65124 how to do it.

Former Member
0 Kudos

Hi Anoop,

Did you get this resolved? I also got the same requirement from the user. Could you please help me out to resolve this?

Regards

R Paul