cancel
Showing results for 
Search instead for 
Did you mean: 

Restriction fields in IW32

Former Member
0 Kudos


Dear All,

I want some solution to my problem have searched many discussions but of no use. The requiremnt is in tcode: IW32, the users should not be able to change the main work center field and WBS field in IW32. Only one person should be allowed to change these both fields. How can i achieve this. Is this possible with authorization?? or any user exit is available for the same.

Regards,

Priti.

Accepted Solutions (1)

Accepted Solutions (1)

jogeswararao_kavala
Active Contributor
0 Kudos

Hi Preeti,

I've just worked on your requirement.

The code you need to give in the include (ZXWOCU07) of Enhancement IWO10009 is as under.


DATA: LV_VAPLZ TYPE AUFK-VAPLZ,
            LV_PSPEL TYPE AUFK-PSPEL.


IF SY-TCODE = 'IW32' AND SY-UNAME <> 'XXX_XXX'.    
   SELECT SINGLE VAPLZ FROM AUFK INTO LV_VAPLZ WHERE AUFNR = CAUFVD_IMP-AUFNR.
   SELECT SINGLE PSPEL FROM AUFK INTO LV_PSPEL WHERE AUFNR = CAUFVD_IMP-AUFNR.
   IF CAUFVD_IMP-VAPLZ <> LV_VAPLZ OR CAUFVD_IMP-PSPEL <> LV_PSPEL.
     MESSAGE: 'You are not authorized to change the field values of ''Main. Work Center'' OR ''WBS Element''. ' TYPE 'E'.
   ENDIF.
ENDIF.

The string 'XXX_XXX' in the code represents your Authorized UserId.

When, some other UserId changes either of these fields (Main Work Center or WBS element) and tries to Save the Order, then the following error is thrown by the system.

I have checked it, it is working fine.

Now, of you want to confine this restriction to a particular order type (say ZM03), then Insert the above code between these two lines.

IF CAUFVD_IMP-AUART = 'ZM03'.
"Above  code here
ENDIF.

By this,  the above restriction will be applicable to only 'ZM03' type orders.

Hope you'd take benefit out of this post.

Jogeswara Rao K

Former Member
0 Kudos

Hi,

Thanks to all we will let you know once we are done with the coading part.

Regards,

Priti.

Former Member
0 Kudos

Dear All,

Thanks we will go by the development and maintain users in table.

Regards,

Priti.

Former Member
0 Kudos

If you are finished with your query, please close the thread.

Answers (1)

Answers (1)

Former Member
0 Kudos

Not possible with authorization. You may develop a solution with user exit.

IWO10009 PM Order: Customer Check for 'Save' Event


Maintain Z table with list of users who can able to change. Using above exit, compare the changes as well as the user id, then provide the error message.