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: 

Display Change log for Z field (Saves in Ztable) in MM01/MM02

former_member212705
Active Participant
0 Kudos

Hi Experts,

I have one requirement.

I have added few fields in MM02 transaction in one custom tab. for those newly added fields i have created one Z table in which MATNR is the primary key. As soon as in MM02 these fields gets changed all the values are getting stored in my Z table. I have written logic to populate thses fields in my custom table.

Now everything is working fine except DISPLAY LOG DATA in MM02/MM03/MM01.

This log is getting displayed for all the fields that present in MARA but the fields i have added are not in MARA so even activating Change Log, i can't see them with this 'DISPLAY CHANGES' option.

I have created LOG object using tcode SCDO and also written the logic to save change log in CDHRD and CDPOS.

But now i am unable to see those thanges via DISPLAY CHANGES Option. If those fields would have been added in MARA itself then i guess it would be working fine. But as my table is custom so how to do that.

Any help would be appreciated.

Thanks,

Ashish Trivedi

7 REPLIES 7

Lakshmipathi
Active Contributor
0 Kudos

How about in MM04 ?

G. Lakshmipathi

0 Kudos

Hi LakshmiPathi,

if i am not wrong MM04 displays change in Material where CHANGE OBJECT is 'MATERIAL'.

but here the issue is that because my table is custom table so manually i created one change object.

in MM02 screen fields has been referred as

field1 =  ZTABLE-ZFIELD1

fieldd2 = ZTABLE-ZFIELD2.

I have written separate logic to save these fields in my custom table where key is MATNR.

0 Kudos

Hi Ashish,

For the fields you added in z table are having type as data element. Go to SE11. Give data element name in Data type . Change data element. Check for change document in further characteristics tab of data elements. You will able to see that change log after changing any value in MM02.

Regards,

Santosh

0 Kudos

Already done santosh. But as i wrote that these fields are getting saved in custom Z table not in MARA so even change log was not getting generated, that i have done manually via SCDO.

in MM02 screen fields has been referred as

field1 =  ZTABLE-ZFIELD1

fieldd2 = ZTABLE-ZFIELD2.

I have written separate logic to save these fields in my custom table where key is MATNR.

0 Kudos

Hi.

If you save your fields in a custom table and not in MARA, you'll have to update the changes by your own user-exit or badi in MM02/MM01 transaction.

If you need this it's an other question. Hope to help if you nedd.

Bye.

0 Kudos

Hi Roberto,

I am able to save the changes in cdpos but not able to display via MM02- environment-display changes. For that i tried to find badi exit but could not. Its SAP 4.7 . i can see 'Display changes' is displaying mm04  output.

0 Kudos

Hi.

Well You have to append your ztable structure to MARA cause with no reference you'll not have change log registration. MATERIAL_WRITE_DOCUMENT is the standard function related to MATERIAL Document Change Object (you can see from SCDO).

Hope to help

Bye