2015 Nov 28 7:19 AM
Hi All,
Is there any table where deleted model master entries are tracked. We have an issue in Production where vehicles are procured for a vehicle model(say X) but the model master record is not showing now in /DBM/VMODEL. We suppose some one has deleted the model and want to check. Please suggest if there is any table to check the deletion details. Also if there is any authorization object available to restrict delete authorization to the users.
Regards,
Manasa
2015 Nov 30 1:48 AM
Hi Manasa,
In the Model Master table /DBM/V_MODEL the deletion indicator is not present thus the history cannot be retrieved.
There is no standard Authorisation object as well for the deletion check, you can create a custom object with a copy of Authorisation Object /DBM/VMCAT, remove the model catalog & add Vehicle Model & activity is already there in the object for checking the deletion.
Use the object in the code to restrict deletion of Vehicle Model.
Regards,
Sachin Balmiki
2015 Nov 30 1:48 AM
Hi Manasa,
In the Model Master table /DBM/V_MODEL the deletion indicator is not present thus the history cannot be retrieved.
There is no standard Authorisation object as well for the deletion check, you can create a custom object with a copy of Authorisation Object /DBM/VMCAT, remove the model catalog & add Vehicle Model & activity is already there in the object for checking the deletion.
Use the object in the code to restrict deletion of Vehicle Model.
Regards,
Sachin Balmiki
2015 Nov 30 4:38 AM
Hi Sachin,
Thank you for the response. But I didn't get in what part of code it should be restricted? Can you please let me know where it can be added so that user gets an error message as soon as he clicks delete in /DBM/VMODEL?
Regards,
Manasa
2015 Nov 30 10:43 AM
HI Manasa,
I think if you ask your ABAP Consultnat where to write the code, I'm sure he will be able to find a correct spot.
My suggestion is to create an custom FM same as /DBM/CHECK_MODELCATALOG_AUTH & add then add the code of the check in the new custom FM.
Then use this FM to do the authorization check at the include /DBM/LVM17F19 so before deletion the authorization object checks the authorization & throws the message.
This could be a enhancement spot, however it would be solely customer responsibility to ensure that it is working correctly, as you are aware SAP doesn't support custom changes.
Regards,
Sachin Balmiki