Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
tugcezorlu
Explorer
1,239

Scenario: The delete function is active in VA02 for an empty order in the document flow. How can we disable this function for some users

Go to Se38

MV45AF0C

111.png

We will write in the following include MV45AF0C_CUA_MODIFIZIEREN

112.png

As below, we add exite by giving the user information of which user will not be active

IF SY-UNAME EQ 'TZORLU' and US_STATUS eq 'U'.
    READ TABLE cua_exclude WITH KEY 'LOES' TRANSPORTING NO FIELDS.
    CHECK SY-subrc ne 0.
    append 'LOES' to CUA_EXCLUDE.
  ENDIF.

113.png

User TZORLU is still unable to delete a delivery with empty document flow in VA02

114.png

Active on other user

116.png

 

I would be happy to read your thoughts and comments and if there are better ways to fulfil the requirement, please leave them in the comment section below.

Thanks so much

3 Comments
Labels in this area