cancel
Showing results for 
Search instead for 
Did you mean: 

how to remove the authorization of deletion in vl02n

krishnaswamy_kumaraswamy
Active Participant
0 Kudos

Hai

i want to restrict my users deleting the vl02n ( delivery )

i have checked the objects but not supporting

can any one help me in this regards

Thanks and regards

kumaraswamy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

I also had same issue and after spending some time I manage to found solution. This is explained in OSS note 580226. First we need to add activity '06' in authorisation object V_LIKP_VST and then add following code in delivery user exit MV50AFZ1.

FORM USEREXIT_DELETE_DOCUMENT.

*>>>> START OF INSERTION <<<<

authority-check object 'V_LIKP_VST'

id 'VSTEL' field likp-vstel

id 'ACTVT' field '06'.

if sy-subrc ne 0.

message a001(ZZ). "Use own error message here

endif.

*>>>> END OF INSERTION <<<<<<

ENDFORM.

In this way we can restrict user to have 'Delete' delivery authorisation or not.

Regards,

Sanjay

Answers (2)

Answers (2)

0 Kudos

You can create screen variant via SHD0 trxn to hide delete button in the delivery as following:

- open SHD0 and create new variant using create button

- It will ask for the program name and Status with Ok and "Functions" button

- Provide "SAPMV50A" for program and for Status press f4(possible entries) .. there you can select "E0"

- In the following screen expand "Function Setting"

- Deactivate "LOES_T---Delete" record after selecting it

- save variant and assign it to new T-code

you'll get the following result:

Lakshmipathi
Active Contributor
0 Kudos

Dear Kumaraswamy

Take the help of your basis team who can do this in no time.

thanks

G. Lakshmipathi

krishnaswamy_kumaraswamy
Active Participant
0 Kudos

Thanks

but Basis team is asking the object and activity

pls help

Former Member
0 Kudos

Dear Krishnaswamy,

I tried, but haven't found Object/ Activity. If, I get ot know the same, definitely let you know.

Meanwhile, you may check with Alernative way:

[Restrict User from Delivery Delete|]

Hope, this may help you.

Best Regards,

Amit