Skip to Content
avatar image
Former Member

Restrict revoking of TECO in IW32 for some users

I would like to restrict revoking of TECO status in IW32 but only for some users.

I found out some threads explaining this should be possible using BS02 and OPJH. I tried tu use these transactions but without success.

Does anybody know how to do that using these transactions or maybe another way to do it ?

Thank you in advance for your help

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 08, 2017 at 09:01 AM

    Janaka Vitharana

    There is way. It is user-exit IWO10009.

    First create a Ztable (say ZTABLE) having the list of authorized users in field say UNAME. Have all the authorized userIds in this table in field UNAME.

    Now put the code below in the include ZXWOCU07 of the above exit.

    IF caufvd_imp-iphas = '2'.
      DATA: v_stat TYPE char1,
            v_name TYPE uname.
      SELECT SINGLE iphas INTO v_stat FROM afih WHERE aufnr = caufvd_imp-aufnr.
      IF v_stat = '3'.
        SELECT SINGLE uname INTO v_name FROM ztable WHERE uname = sy-uname.
        IF v_name IS INITIAL.
          MESSAGE: 'You are not authorized to revoke TECO status.' TYPE 'E'.

    After this, when a user not listed in the Ztable tries to 'Cancel the Technical Completion' of an Order, he will not be allowed by receiving this error message in the status bar.

    I have tested the code and found working well. You too test it thoroughly before adopting.

    Good luck.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 08, 2017 at 12:10 PM

    You can do this with user statuses.

    Create a user status profile for PM/PP orders (BS02/OIBS), then create a new user-status and ensure business transaction Revoke technical completion is forbidden.


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Peter,

      Thanks Mr Pete,But there are no PM Oder type.There are showing only PM Oder type.Please help me