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

Modification log not updated for customer when using tcode MASS

Former Member
0 Likes
2,046

Dear experts,

I am having an issue with customer update. I have some specific fields (product attributes) added on KNVV. On update of this fields on XD02, the modification log correctly displays the changes (Environment>Account changes>All fields). However when an update is done on these fields via transaction MASS. The modifcation log is not updated. No sign of any changes done on the prod attributes even though the fields are correctly updated. Is there any configuration for the modifcation log to specify changes on fields?

Thanks in advance.

Regards,

Char

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,364

Hi,

Changes to fields in table KNVV are recorded by change document DEBI, and if the data elements of your table append have the necessary flag set they will get recorded whenever this change document is generated.

For the change document to be generated the program making the update needs to call function module DEBI_WRITE_DOCUMENT.  It would seem that XD02 does this and MASS does not, this is not configuration just the SAP design.

regards,

Nick

5 REPLIES 5
Read only

Former Member
0 Likes
1,365

Hi,

Changes to fields in table KNVV are recorded by change document DEBI, and if the data elements of your table append have the necessary flag set they will get recorded whenever this change document is generated.

For the change document to be generated the program making the update needs to call function module DEBI_WRITE_DOCUMENT.  It would seem that XD02 does this and MASS does not, this is not configuration just the SAP design.

regards,

Nick

Read only

0 Likes
1,364

Hi Nick,

Thanks for your reply. The FM is also called for MASS and modification log also being updated for the std fields. it's just for the custom field that it is not updating the log.

Read only

0 Likes
1,364

Hi,

If the FM is being called from transaction MASS and change documents are being created (in CDHDR), but without CDPOS entries for every updated field it would suggest that the before and after structures for KNVV being passed to the FM are not correctly populated for the customer fields.

You'll need to check the MASS code in more detail.

Regards,

Nick

Read only

0 Likes
1,364

Hi Nick,

I have debugged the program. I have dicovered that MASS does not do any update for custom fields. Infact there is an enhancement that has been done on my sytem to update these custom fields. and call to FM DEBI_WRITE_DOCUMENT is done way before the enhancement, so its normal that the log is not updated!

Thanks so much for your replies cheers

Regards,

Char

Read only

0 Likes
1,364

I tried to call the FM DEBI_WRITE_DOCUMENT in my ehn. It correctly updated the modification log . Think this might be the solution.