Reservation authorization to limit plant on IW31,IW32

Dear all,
         Could you please advise me about authorization check in
reservation created from maintenance order. I create role to use IW32
and maintain authorization to limit plant at authorization object
M_MRES_WWA. But we still create reservation from maintenance order all
plant but we cannot create reservation by MB21 except plant that we
maintain at authorization object.
I do not sure that I maintain it correctly or there are other way
to limit plant to create reservation from maintenance order.
Thank you.

Hi consult.,
                  I am not very sure about the object you are using, but if it is correct(else serch for the correct object), then make a master role for the T-Codes IW31 and IW32.
then make a drived role from the above made role, and assign the object(above searched object) in the object give the value as that of your plant, and activity as per the requirement.
you can maintain as many derived roles as the no. of plants.
hope it helps.
regards,
YK

Similar Messages

  • How to set authorization to limint plant to craete reservation from IW32

    Please advice me how to set authorization to limit plant to create reservation from IW31 or IW32 (Maintenance Order).
    I set at M_MRES_WWA (authorization object) but it is not work.

    Hi consult.,
                      I am not very sure about the object you are using, but if it is correct(else serch for the correct object), then make a master role for the T-Codes IW31 and IW32.
    then make a drived role from the above made role, and assign the object(above searched object) in the object give the value as that of your plant, and activity as per the requirement.
    you can maintain as many derived roles as the no. of plants.
    hope it helps.
    regards,
    YK

  • Authorization object for plant on selection-screen

    Hi All,
    I need to cehck the authorization object for plant on sleection screen..the palnt is select-options.
    I have written the code
    Declaration of local constants.
      CONSTANTS : lc_i(1)  TYPE c VALUE 'I',
                  lc_eq(2) TYPE c VALUE 'EQ'.
      REFRESH : r_werks.
      LOOP AT s_werks.
        IF s_werks-low IS NOT INITIAL.
          AUTHORITY-CHECK OBJECT 'M_MATE_WRK'                "Check if the user has autorization for the plant.
                               ID 'ACTVT' FIELD '03'
                               ID 'WERKS' FIELD s_werks-low.
          IF sy-subrc NE 0.
            r_werks-sign   = lc_i.
            r_werks-option = lc_eq.
            r_werks-low    = s_werks-low.
            APPEND r_werks.
          ENDIF.
        ENDIF.
      ENDLOOP.
      LOOP AT s_werks.
        IF s_werks-high IS NOT INITIAL.
          AUTHORITY-CHECK OBJECT 'M_MATE_WRK'                "Check if the user has autorization for the plant.
                               ID 'ACTVT' FIELD '03'
                               ID 'WERKS' FIELD s_werks-high.
          IF sy-subrc NE 0.
            r_werks-sign   = lc_i.
            r_werks-option = lc_eq.
            r_werks-low    = s_werks-high.
            APPEND r_werks.
          ENDIF.
        ENDIF.
      ENDLOOP.
    My doubt is will the authorization will check the plants in between 1001 and 2001..suppose i have pplants 1001,1002,1003,1004,2001..Now will the above code will check for all the plants or only 1001 and 2001 if i specify in the select-options.
    Regards,
    raj

    Hi Raj
    First no need to LOOP AT s_werks and check s_werks-high as it will always be present only once in the table s_werks.
    Do this
    SELECT werks FROM t001w INTO li_werks
    WHERE werks IN s_werks.
    LOOP AT li_werks.
    *check your authority thing here and fill the range
    ENDLOOP.
    Pushpraj

  • Missing authorization for the plant - Message no. ME303

    Missing authorization for the plant - Message no. ME303
    I am getting the above error while creating the PO.
    what is the cause of error?
    How do I rectify this?
    I have used the right data, till yday it was working fine. I doubt some config change has happened

    Hi,
    Check with your basis  consultant whether the authorization is change ?
    Regards,
    Chetan.

  • RAISE_EXCEPTION  error in iw31 iw32 iw34 iw36

    Hi guys,
    My problem is that I am getting RAISE_EXCEPTION  error in my development when ever i am trying to acces standard transaction like iw31, iw32, iw34, iw36 from my program .

    Check the dump if any in st22. Go to active call and event and then try to find out the root cause.
    Regards
    Kavindra

  • Screen enhancement with table control IW31, IW32, IW33.

    Hi Gurus,
    I am facing issues with enhancement implementation for Maintenance Orders transaction IW31, IW32, IW33. (SAP basis version 4.7)
    1) I have implemented enhancement IWO10018 for creating an Enhancement tab in transactions Iw31/ 32/ 33. This tab has got a table control which has 4 columns: -Operations, Operation short text, Estimated Cost and Currency Unit.
    First two fields are non editable and are populated for all the Operations in Operations tab. Last two columns are editable and value entered in these are stored in the database on saving. Now the issue is I am able to fetch all the operations from  AFVC table but these are the one which have been saved. Suppose I navigate between the tabs Operations and Enhancement and enter a new operation in Operations tab, I should get the same in my Enhancement tab table control field as well.
    Though we can obtain one value from structure (SAPLCOIH)AFVGD but this gives only one value. If we need to get the table of values, is their any option ???
    P.S. Assumption in this requirement was that there can be at max 50 operations in an order and 200 new fields are created for this in include CI_AUFK in table AUFK.
    2) In standard report transction IW39 to display the orders and operations, if we need to display additional columns for displaying Estimated Costs and Units per order, how do we need to implement enhancement IWOC0004. Do we need to add all custom fields in structure RIHAUFK_LIST as well. If you could please elaborate its implementation, it would be helpful.
    3) In standard report transaction IW49N, is there any enhancement available to add new fields in ALV display. (SAP basis version 4.7).
    I would be grateful if i can get a quick response as I am stuck in middle of something important.
    Edited by: shreya tagra on May 12, 2010 8:32 PM

    Hey All,
    To my questions further, I had found the runtime internal table where Operations are stored before saving.
    It is AFVGD_BT and its main program is SAPLCOBO. So it can be accessed through (SAPLCOBO)AFVGD_BT[].
    Also for 2 and 3 question, the given enhancement would work and we need to update fieldcatalog with custom fields.
    For this add our fields in RIHAUFK_LIST.
    Now, I am facing another issue. Since the enhancement tab is a subscreen, i am not able to get its okcodes. eg: When I click enhancement tab, sy-ucomm is 'CUK', when I scroll up or down again it is 'CUK', if I press enter again it is '+CUK'. To enable scrolling functions I need to get correct okcodes and differentitaed ones because on each user command, a different action is required. Any pointers how can this be achieved.
    Will post my solution once i m completly done with it. Till then your pointers are awaited..
    Thanks,
    Shreya

  • No Authorization for Planning plant in MIGO

    Hi Gurus,
    I have an issue for the Goods Receipt for multiple line items of account assigned( F) PO.
    When user try to receive goods thru MIGO, system throws an error (dump) saying "NO AUTHORIZATION FOR PLANNING PLANT XXX" even though roles are assigned to the user.
    I went thru the OSS note 385830 but it hardly helped me.
    Pls throw some light on the issue...
    Regards
    Shashidhar

    Hi,
    Check for the Authorization Object that system is referring for the error in SU53 transaction. You may process the transaction and once the error comes, go to transaction SU53 check for the Authorization object there.
    You can check the roles available for a given authorization object in SUIM transaction.

  • Long Text to Short Text connversion in IW31/IW32

    Hi Experts,
    I am working on a requirement where I need to overwrite the short text for material description with the long text while creating the maintenance order in IW31/IW32.
    Initially I thought of handling this in a implementation of BADI IWO1_PREQ_BADI in method DECISION_COLL_PREQ.
    But this this method is gettign triggered when the paurchasing data is being entered and even before the long text is entered.
    Once the order is ready to be saved, and once the user clicks on save I want to write this conversion where I can copy the long text into short text overwriting the material description in component tab of IW31/IW32.
    Please check and suggest the BADI/userexits for thsi purpose.
    Regards
    Kishore

    Hi Kishore,
    Go to transaction SE24, class name CL_EXITHANDLER, go to methods, double click on method GET_INSTANCE.
    Set a break point at
    CALL METHOD cl_exithandler=>get_class_name_by_interface
    EXPORTING
    instance = instance
    IMPORTING
    class_name = class_name
    CHANGING
    exit_name = exit_name
    EXCEPTIONS
    no_reference = 1
    no_interface_reference = 2
    no_exit_interface = 3
    data_incons_in_exit_managem = 4
    class_not_implement_interface = 5
    OTHERS = 6.
    CASE sy-subrc.
    Now run trasaction IW31, press f8 till you reach bfore save button, enter the long text and all, now press the save buttton, control will break if in case any BADi is there(I think there is), exit name and instance will give you the BADI details.
    I think this is one of the simplest way.
    Thanks and Regards,
    Antony Thomas
    Edited by: Antony Thomas on Aug 10, 2010 12:13 PM

  • Screen Exit for Component tab in IW31/IW32

    Hi All,
    I require to add a custom column in the table control of Component tab of tcode: IW31/IW32.
    Please share the idea how to achieve the requirement.

    Hi,
    check exit: IWO10012: Maintenance order: Priority handling on central header
    Regards,
    Alok Tiwari

  • User exit at PM order reading (IW31/IW32)

    Hi!
    Does anyone know, which user exit is triggered, during the reading of a PM order in IW31/IW32?
    If I enter the PM order number in IW32 and press enter, it has to stop, before the order appears...
    Please do NOT list all of the exits, I know their names...
    Thank you
    Tamá

    use following prog to find user exits for the given tcode.
    *& Report  ZUSEREXIT                                                   *
    report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
             tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
       select single * from tadir where pgmid = 'R3TR'
                        and object = 'PROG'
                        and obj_name = tstc-pgmna.
       move : tadir-devclass to v_devclass.
          if sy-subrc ne 0.
             select single * from trdir where name = tstc-pgmna.
             if trdir-subc eq 'F'.
                select single * from tfdir where pname = tstc-pgmna.
                select single * from enlfdir where funcname =
                tfdir-funcname.
                select single * from tadir where pgmid = 'R3TR'
                                   and object = 'FUGR'
                                   and obj_name eq enlfdir-area.
                move : tadir-devclass to v_devclass.
              endif.
           endif.
           select * from tadir into table jtab
                         where pgmid = 'R3TR'
                           and object = 'SMOD'
                           and devclass = v_devclass.
            select single * from tstct where sprsl eq sy-langu and
                                             tcode eq p_tcode.
            format color col_positive intensified off.
            write:/(19) 'Transaction Code - ',
                 20(20) p_tcode,
                 45(50) tstct-ttext.
                        skip.
            if not jtab[] is initial.
               write:/(95) sy-uline.
               format color col_heading intensified on.
               write:/1 sy-vline,
                      2 'Exit Name',
                     21 sy-vline ,
                     22 'Description',
                     95 sy-vline.
               write:/(95) sy-uline.
               loop at jtab.
                  select single * from modsapt
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                       format color col_normal intensified off.
                       write:/1 sy-vline,
                              2 jtab-obj_name hotspot on,
                             21 sy-vline ,
                             22 modsapt-modtext,
                             95 sy-vline.
               endloop.
               write:/(95) sy-uline.
               describe table jtab.
               skip.
               format color col_total intensified on.
               write:/ 'No of Exits:' , sy-tfill.
            else.
               format color col_negative intensified on.
               write:/(95) 'No User Exit exists'.
            endif.
          else.
              format color col_negative intensified on.
              write:/(95) 'Transaction Code Does Not Exist'.
          endif.
    at line-selection.
       get cursor field field1.
       check field1(4) eq 'JTAB'.
       set parameter id 'MON' field sy-lisel+1(10).
       call transaction 'SMOD' and skip first   screen.
    Sameer

  • How to populate Special Stock Indicator in IW31/IW32

    Hi SAP experts,
    I want to populate the <b>Special Stock Indicator</b> under <b>Components Tab</b> automatically when user presses ENTER in T.Code <b>IW31/IW32</b> based on some condition.
    Thanks in Advance.
    Help will be rewarded.
    Gaurav

    Gaurav,
    You want to do it during a Call txn BDC or write your conditions as an enhancement?
    Assuming that it is a Call Txn BDC, all you need is an additonal field in your input file for the stock indicator, with 'X'. Also, you will have to call the screen & tab (dynpro).
    Correct me if I got it wrong.
    Reward if helpful.
    Karthik

  • Creating Authorization for multiple plants

    Hi,
    I have one requirement that, Creating Authorization for multiple plants
    SELECT-OPTIONS:    s_werks FOR mseg-werks.
        AUTHORITY-CHECK OBJECT 'M_MSEG_WMB' 
               ID 'ACTVT' FIELD '03'
               ID 'WERKS' FIELD s_werks.
    1. If have no of plants in s_werks then how to authorize the plants?
    2.if i dont enter any plant in my selection screen how to authorize that?
    3. if i have 5 plant only then how i can authorize those perticular plants only?
    Thanks in advance,
    Thanks,
    DP.

    S_WERKS is not a field; it's a set of fields.  Use simple ABAP to select your plants and loop at the selection(s) to check...

  • Settlement order in iw31 / iw32

    Hi all,
    I am working on work order validation during release.
    Using iw31/iw32, without selecting release button or additional data ;i am not able to get details of Settlement rule for a work order.
                My requirement is to check this settlement rule before saving the work order.Since settlement rule is generated and saved in table COBRB only if i select RELEASE , i am not able to check the work order if it is not released. Kindly provide me a solution for the same.
    Anil..

    Hi,
    Search is there any BADI/USER EXIT which triggering before clicking save button.
    Hope this helps u.
    thanks.

  • Iw31/iw32 change date using userexit

    HI,
    I need to change a date(CAUFVD-GLTRP) when PM work order creates or changes based on the rules(tcodes IW31,IW32).
    I have tried couple of userexits. i didn't gey any luck. Please help , if anyone come across this issue.
    thanks

    Check Note [441323|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=441323] for change log or use revision field for change the date
    -S.N

  • How to find out Authorization Object for Plant

    Hi,
    I have to implement an Authorization check for Plant in My Report Program.
    Is there any transaction which can help me to find out Authorization Object for any field like Material and plant?
    Thanks,
    Mamta

    Using SU21 u can create Authorisation Object.
    The ABAP command AUTHORITY-CHECK is used for performing authorizaton checks in programs.
    check f1 help on AUTHORITY-CHECK for the syntax.
    check these links
    link:[http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c;jsessionid=(J2EE3417500)ID1605942050DB11298929682009193279End]

Maybe you are looking for

  • BI 7.0 Analysis authorization creation issue

    Hi, We are prototyping the new analysis authorization concept have a question regarding the build. We've had the BI execute the pre-implementation tasks (activate the business related content and OTCT* and OTCTA* infocbues and and OCTA* infoCubes). T

  • I'm getting error

    Dear experts,                      When i run the sfp application, i'm getting this error, ADS: SOAP Runtime Exception: CSoapExceptionTransport :(100101) Message no. FPRUNX001 Thanks and Regards, Thiru. R

  • Issue with client-side rules after Groupwise to Office365 migration

    We are preparing for migration from Groupwise to Office365 and face an issue for which I do not have a solution for: Groupwise rules currently contain functional mailboxes that include rules to implement business logic. When migrating these mailboxes

  • Album doest show file name !!!

    I have Xperia M2 with 4.4.4 update. album update is 6.6.A.0.6. When i open album and go to movies folder, i cant see name of the videos !!! How can i see the name of perticular video file for playing ?

  • Playlist Sync not work

    I just received my Zen Micro. I downloaded all my music to WMP and then synced it onto the device. However I then made playlists on WMP and tried syncing them onto the micro zen. I did this by connecting the device to the computer and then going to s