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

Track changes of value in classification data under Classification View (MM02)

Former Member
0 Likes
1,816

Hi all,

Here is my current scneario:

I'm developing a user exit which was used for validation of material when user want to made changes to material in MM02.

So, when user press save, my user-exit will trigger.

Problem is how I can get the new/change characteristic value of a material entered by user? Classification data would not pass to the user-exit.

The only way I can get the changes is through buffer. I have refer to this thread http://scn.sap.com/thread/1645097 for info.

However, these is an issue when a class original has value (let say Y for a field), if I changed the field to empty, the buffer would not get the changes, it will remain as Y which is wrong, any FM or other buffer that will get the latest changes to a classification data in classification view?

Thanks.

Regards,

Marlson

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,216

Hi Marlson,


I would suggest try Exit CLFM0003 component  EXIT_SAPLCLFM_003 although the main purpose of this exit is different then your requirement but I think you can use for your requirement as well check the parameter I_FROM_API and I_APPL you may get the classification values which you want to send to legacy system but do put the condition SY-TCODE = 'MM02' since this exit is called in so manyTcodes.


please read the documentation carefully before implemeting.


Regards

Chudamani

4 REPLIES 4
Read only

Former Member
0 Likes
1,217

Hi Marlson,


I would suggest try Exit CLFM0003 component  EXIT_SAPLCLFM_003 although the main purpose of this exit is different then your requirement but I think you can use for your requirement as well check the parameter I_FROM_API and I_APPL you may get the classification values which you want to send to legacy system but do put the condition SY-TCODE = 'MM02' since this exit is called in so manyTcodes.


please read the documentation carefully before implemeting.


Regards

Chudamani

Read only

0 Likes
1,216

Hi Chudamani,

Thanks for your reply, but I have the requirement to do it at this user exit - EXIT_SAPLMGMU_001 as I have additional validation needed to be done here.

Read only

0 Likes
1,216

Hi Marlson,

As EXIT_SAPLMGMU_001 does not have the classification data as a import parameter you can not get the values of classification data entered  here, reading buffer will I dont think work because buffer is the place in Application server which get updates during database read or update but if you change some value in SAP GUI screen it will not transfered to buffer unless and until you save it, till then it will be available in local GUI buffer which you can not read.

you can try one thing, check that if above exit mentioned by me is being called by system before your exit, if yes then you can transfer the data to memory id in that exit and read that data in your exit.

Regards

Chudamani Gavel    

Read only

0 Likes
1,216

Thanks for your recommendation. I have finally found the solution by using function module CLAP_DDB_BUFFER_PARAMS. It will get the last value before save, thread closed.