This website is not affiliated with, sponsored by, or approved by SAP AG.

How to identify is only classification data changed in MM02

Logistics : MM and its sub-modules (WM, IM, PO, LIS)

Moderators: Snowy, thx4allthefish, svetja, Ha Tran

How to identify is only classification data changed in MM02

Postby gopalbaliga » Tue Sep 20, 2016 3:16 am

hi Experts

My requirement is to clearly identify that ONLY classification is changed in MM02.

In MM02 if I select Basic data 1 and Classification views but in the next screen I change only classification data then I need to execute my custom code. However if I select Basic data 1 and Classification views and change data in both the tabs then my custom code should not be executed.

Is there any way to precisely determine that ONLY classification data was changed?

I even tried the FM
CALL FUNCTION 'MAIN_PARAMETER_GET'
TABLES
mtab = lt_mtab.

Here in mtab output, i check the field pfstatus and tbnam = mara.

But this also not helping me.

In MM02 if I select Basic data 1 and Classification views but in the next screen I change only classification data then in mtab, pfstatus = KC and tbnam = mara.

Even if in the next screen I change both basic and classification data then also I get the same values in mtab, pfstatus = KC and tbnam = mara.

SO what shall I do?

Thanks
Gopal
Last edited by Gothmog on Tue Sep 20, 2016 3:31 am, edited 1 time in total.
Reason: urgency removed...
gopalbaliga
 
Posts: 13
Joined: Fri Apr 21, 2006 11:32 am

Re: How to identify is only classification data changed in MM02

Postby Gothmog » Tue Sep 20, 2016 3:35 am

It could help to know where (exit ? enhancement ?) you're doing this check.
You could try to compare MARA (current basic data) and *MARA (previous basic data).
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: How to identify is only classification data changed in MM02

Postby gopalbaliga » Tue Sep 20, 2016 4:31 am

Hi Gothmog

Thanks for your response.

I am using user exit FM : EXIT_SAPLMGMU_001
Include : ZXMG0U02.

In this user ext how do I compare MARA (current basic data) and *MARA (previous basic data)?

Please help

Thanks
Gopal
gopalbaliga
 
Posts: 13
Joined: Fri Apr 21, 2006 11:32 am

Re: How to identify is only classification data changed in MM02

Postby Gothmog » Tue Sep 20, 2016 5:19 am

I'm afraid you don't have access to the previous values of mara in this exit, only the current values.
You'd have to play with field symbols to get this in the calling program if you really want to do this here.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: How to identify is only classification data changed in MM02

Postby gopalbaliga » Tue Sep 20, 2016 8:30 am

Hi Gothmog

In this user exit there are many parameters. How do I know which will get updated when basic data 1 or 2 is changed?

IMPORTING

WMARA
WMARC
WMARD
WMBEW
WMLGN
WMLGT
WMVKE
WSTAT
WMFHM
WMPOP

CHANGING

CMARA
gopalbaliga
 
Posts: 13
Joined: Fri Apr 21, 2006 11:32 am

Re: How to identify is only classification data changed in MM02

Postby gopalbaliga » Tue Sep 20, 2016 9:19 am

Hi

Also If in Basic data 1 I just change the material description then in the user exit both wmara and record from mara are still same.
There is no material description field in wmara. Hence in user exit there is no way I can determine if material description in basic data 1 was changed. What shall I do for this?

Thanks
Gopal
gopalbaliga
 
Posts: 13
Joined: Fri Apr 21, 2006 11:32 am

Re: How to identify is only classification data changed in MM02

Postby Gothmog » Tue Sep 20, 2016 9:36 am

Parameters WMARA and CMARA both hold the current values of MARA (in different structures, one being modifiable).
The material descriptions would be in table STEXT.

I don't think you get to know if it's been modified in this exit - it's intended to check the material data if it's been potentially changed, not to tell you what's been changed.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home


Return to Logistics MM

Who is online

Users browsing this forum: No registered users and 8 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.