2012 Aug 24 4:22 AM
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
2012 Aug 24 6:54 AM
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
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
2012 Aug 24 6:54 AM
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
2012 Aug 24 7:11 AM
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.
2012 Aug 24 8:00 AM
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
2012 Aug 24 10:32 AM
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.