Plant wise authorization

Hi,
My client is asking that , we want plant wise authorization in sales order level (va01), how we will do for this and what are the settings needed. please any one knows tell me.
Thanks,
Anand.k
Edited by: Anand2mnp on Mar 3, 2011 9:21 AM

Hi,
With the help of Abaper you can create a Z authorization object with field of WERKS and activity 01,02,03 ie create,change,Display.
The authorization object has to be called during the Save user exit during Sales order Processing. In standard SAP we have the authorization object     M_MATE_WRK.
Either u can call tha authorization object in the exit or copy the object znd create your own authorization object.
MV45AFZZ - USEREXIT_SAVE_DOCUMENT

Similar Messages

  • Plant wise Authirization

    Dear All,
                 My client having 15 user licenses, each user   belong to one particular plant (werks). Example: Coimbatore user belongs to 1000, Chennai user belongs to 1100, and Calcutta user belongs to 1200 u2026etc up to 15 users.
    Here I developed one ALV report for territory wise sales report, my client requirement is they need to restrict the report plant viceu2026plant 1000 user  want to see plant 1100 user report means it wont allow, Only   I have to give authorization to see for 1000 user. I already declared plant in my selection screen .pls give me input to address this issue..     
    Thanks and regards
    Murugesh

    You can try by using authorization check on the PLANT(WERKs) field and also you can display an information message for which user has no authorization.
    Try by using below code-
    AT SELECTION-SCREEN.
      IF NOT p_plant IS INITIAL.
        REFRESH: it_werks,
                 it_werks1.
    *Fetch data from master table of plant (T001W)
        SELECT werks FROM t001w
                      INTO TABLE it_werks
                      WHERE werks = p_plant.
        IF sy-subrc EQ 0.
          LOOP AT it_werks INTO wa_werks.
    *check authorization for plant
            AUTHORITY-CHECK OBJECT 'M_MATE_WRK'
                     ID 'ACTVT' FIELD '03'        "FOR DISPLAY THE DATA
                     ID 'WERKS' FIELD wa_werks-werks.
            IF sy-subrc EQ 0.
    *Plants with authorization
              wa_rwerks1-sign   = 'I'.
              wa_rwerks1-option = 'EQ'.
              wa_rwerks1-low    = wa_werks-werks .
              APPEND wa_rwerks1 TO r_werks1.
            ELSE.
    *Plants without authorization
              APPEND wa_werks TO it_werks1.
            ENDIF.
            CLEAR wa_werks.
          ENDLOOP.
    *No plant is authorized
          IF r_werks1[] IS INITIAL.
            MESSAGE e011 WITH text-039.
    *Display all the plant in an information message
    *for which user has no authorization
          ELSEIF it_werks1 IS NOT INITIAL.
            LOOP AT it_werks1 INTO wa_werks1.
              CONCATENATE wa_werks1-werks ',' gv_text INTO gv_text.
              CLEAR wa_werks1.
            ENDLOOP.
            MESSAGE i011 WITH text-040 gv_text.
          ENDIF.
        ENDIF.
      ENDIF.
    This works for me.
    thanks,
    Khush

  • Access to tables plant wise

    Hi All,
    We have several number of plants and we want to restrict the access to Tables plant wise.
    Finance tables in plant A should not be visible to somebody in Plant B and vice versa.
    the access has to be given by the data owner of the plant.
    Please let me know can we restrict the access like this.
    Pravin.

    Hi,
    Just click on the "Display object documentation"
    Organizational criterion: Link to the table key fields to which the row authorization refers. (i.e. palnt werks field value with the table name)
                                  Possible values: All organizational criteria defined in customizing. Use the F4 help.
    Organizational criterion attributes 1-8: Each attribute refers to a particular table key field. There can only be values for as many attributes as are defined in the organizational criterion (at least one).
    Possible values: Table key field values (individual values and/or intervals).

  • Locking plan versions , plant wise

    Hello experts,
    Requesting your expert advice in the below requirement of ours.
    The requirement is to plan cost  using plan versions, period wise. This is achievable in CJR2.
    Now when the user is planning cost for the next month, he would like to lock that plan version
    for the previous month. This also can be achieved by T-code OKP1.
    But the users are restricted to each plant. So the users in plant XXXX, if he locks the CO version say AAA
    the other users in plant YYYY can still be able to plan with version AAA for that period.
    In one statement, this is like locking planning version by plant wise.
    Do we have any options available for this in SAP.
    Or any other suggestions to carry out cost planning , plant wise.
    Thanks in advance.
    Regards
    Sandeep

    I think you need to go for a Z development.
    Create one Z table and maintain the combination of user and plant.
    Use a Z tcode for cost planning where you give plant as selection field and also use authorization object to check whether th user is available in the Z table maintained. and also update another Z table where plant status locked after cost planning.

  • Plant Wise restriction of SD Module transactions

    Hi Gurus,
    We are having 2 plants in our company. We need to provide restricted authorization (plant wise) in SD Module to create Sales Order, Shipment, Delivery, Billing etc. The users shall only be authorized to execute the cycles in relevant plants only. This should include selcting the plant specific materials while creating the sales order itself.
    We have tried to achieve the same through basis level authorization restriction, but not succeeded. Cany anyone suggest, whether there is any option available to achieve this objective Any user exit will be helpful in this?
    Please guide,
    Thanks & Regards,
    Vinod

    Hi Raja,
    Thanks for your reply. But I checked for user exit MV45AFZZ. It is not available in the list. We are having ECC 5.0.
    For restriction, we mentioned the relevant Plant values in the following objects, which are the only available objects when we add the required SD T Codes.
    1. M_MATE_MZP-WERKS,
    2. M_MATE_WRK-WERKS
    Even after mentioning the required Plant values, the user is able to create Sales Orders with the other plant, which is not relevant for him.
    Unfortunately we are not able to find any suitable objects under SD node, where we can mention the required Plant values.
    Please guide.
    Regards,
    Vinod

  • Maintain plant wise purchase document type

    Hi,
    I want to know that is there any way where I can able to maintain plant wise purchase document type.
    Thanks.

    Please make the following settings
    Scenario:
    Plant 0001 Should create only PO type NB and PR type NB
    Plant 0002 Should create only PO type ZNB and PR type ZNB
    TCode : OLME
    Create new PR type by copying NB (all dependencies): ZNB  <<<Separate number range can be used
    Create new PO type by copying NB (all dependencies) : ZNB <<< Separate number range can be used
    To avoid accidental assignment of (by users)
    Remove linkage of NB PO type to ZNB PR type
    Remove linkage of ZNB PO type to NB PR type
    TCode: OMDT
    Assign PR type per plant per MRP Group for MRP generated PR's
    Once MRP is run for materials PRs are created as follows plant 0001 type NB and plant 0002 type ZNB, when they run ME57 to create POs from PRs, ZNB PO type will default to PR types ZNB and NB type to NB.
    Authorization objects to be changed for each plant respectively (go to SU21 to look up)
    Users of Plant 0001 can only create NB type PR and NB type PO
    Purchase Order:
    M_BEST_BSA   ACTVT=01; BSART=NB; 
    Purchase Requisition:
    M_BANF_BSA   ACTVT=01;BSART= NB;
    M_BANF_WRK  ACTVT=01;WERKS= 0001 ;
    Users of Plant 0002 can only create ZNB type PR and ZNB type PO
    Purchase Order:
    M_BEST_BSA   ACTVT=01; BSART=ZNB; 
    Purchase Requisition:
    M_BANF_BSA   ACTVT=01;BSART= ZNB;
    M_BANF_WRK  ACTVT=01;WERKS= 0002 ;
    Ofcourse you need to create output message config for each PO type.
    Edited by: Jeevan Sagar on Feb 13, 2012 11:16 PM

  • Report to show unsettled Orders Plant-wise

    Hi All,
    Recently we had some problems in settling orders during year close..now we want to see if any orders are there which are left over for settlement to make them settle manually..is there any report to show Orders settlement status Plant wise?
    Appreciate your quick response.
    Thanks in advance.
    Regards,
    Sree

    Hi,
    Good evening and greetings,
    Please use the transaction code COOIS for getting the details using the dynamic selection option.
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • Report for monthly sales(sales office wise,sales group wise,plant wise)

    Please send the Report for monthly sales(sales office wise,sales group wise,plant wise)  with T.CODE.,

    Hi
    As per my knowledge there is no Standard Report in SAP based on sales office, sales group. and plant.
    You may create your own report using MC18,MC21 and MC24.... Otherwise ask your ABAPer's help...
    Muthu

  • Plant wise stock report

    Dear All,
    I want get a report from Apr to March of a fiscal year.
    The report should contain plant wise purchase, consumption, opening stock and closing stock values.
    How can I get the report.
    Regards,
    Venkat

    Hi,
    For your requirement, report MB5B suits well.
    here in selection screen, select "Non-Hierarchial Display" option and also input the Validity Period as per your requirement and execute.

  • A/c determination process - automaticaly flows to the exact plant wise

    HI,
    I'm posting again, on my blw query,
    Pls explain the process abt a/c determination for service po's (with item catelory & a/c assign) during miro.
    For example. I have three plants and same tax codes used for all plants and gl numbers are diff as per below. ,
    For plant #1 - ESA - 101, ESE - 102, VSE -103
    For Plant #2 - ESA- 201, ESE-202, VSE-203
    For Plant #3 - ESA- 301, ESE-302, VSE-303
    And assume gl is assigned in OB40 (w/o tax code combination) as,
    ESA-101 , ESE - 202 , VSE -303 .
    While doing miro for what ever plant, it's going and set on appropriate plant g/l nbrs based on trns. key.
    Pls tell me how a/c determination process flows automaticaly to the exact plant wise.

    Hi ,
       For the automatic account posting to different G/L account for different plant---- Group the plants with different grouping by assigning different valuation grouping code. All the automatic account posting config is to be done for each of the valuation grouping code.
      Thus the automatic account postings to different G/L accounts happen for different valuation grouping code.
    Thanks & Regards,
    Amjad

  • A/c determination process flows automaticaly to the exact plant wise

    Dear All,
    Pls explain the process abt a/c determination for service po's (with item catelory & a/c assign) during miro.
    For example. I have three plants and same tax codes used for all plants. I have defined in FS00 different G/L number for every plant as per below,
    For plant #1 - ESA - 101, ESE - 102, VSE -103
    For Plant #2 - ESA- 201, ESE-202, VSE-203
    For Plant #3 - ESA- 301, ESE-302, VSE-303
    And assume gl is assigned in OB40 (w/o tax code combination) as,
    ESA-101 , ESE - 202 , VSE -303 .
    While doing miro for what ever plant, it's going and set on appropriate plant g/l nbrs based on trns. key. pls tell me how a/c determination process flows automaticaly to the exact plant wise.

    no answer

  • How to get open production orders by plant wise

    Hi,
    How to get open production orders by plant wise.
    i know from tcode COOIS, is it possible to get from this. if so what are the parameters we have to give to get open production orders by plant wise.
    is there any tcode or tables available , please provide details .
    regards,
    Hari priya

    Hi,
    What is your definition of Open Production Orders?
    Definetly you will get the report from COOIS for Plant wise.
    Whther you want to consider all the Orders having the Status REL but not DLV?
    Then there is a chance of having the Orders, still with PDLV status but GR is done for the full Qty. May be you don't want to consider the TECO status, eventhough the Order is short closed??
    Better to ommit the Orders with CRTD status also..
    So, based on this which status to consider and which status not to consider..
    You can define the "Selection profile status" in BS42.
    Use this selection profile in COOIS, so that the rsults will be accurate..
    Best Regards,
    Siva

  • Sales report for plant wise

    Dear All,
    I would like to know the sales report for plant wise, my client is having 1 sales org &  3 plants , will this do or can I go for more sales orgs? If so how will I get the plant wise report?
    Thmx&Regards,
    Ramu

    Hi
    You can view the list of sales orders in VA05 with plant as the selection criteria. Though Plant is not included in the Further Selection Criteria, you can add this by following the below steps.,
    Goto IMG - Sales & Distribution - Sales - Lists - Define Selection Criteria - execute
    In the screen - goto New Entries and add the following details..
    1. Program Name - SAPMV75A
    2. TRG (Transaction Group) - 0
    3. Display Group - K
    4. Event - SELK
    5. It - 8
    6. Field Name - WERKS
    Enter the details and save the changes. Goto VA05 and you can see the field PLANT in the Fur Sel Criteria.
    Thanks,
    Ravi

  • KE5Z report and plant wise sales report (Z report develped) not matching

    thanks for support
    could any body tell me in report KE5Z (proft center actual line items) .profit center wise sales is not matching
    with plant wse sales  Z report developed (based on plant - plant wise sales ) In MM01 master data maintenance  we have tagged every plant to a profit center , becoz of this mapping these report should match ? but big differnce is coming?

    Hi,
    Check on it:-
    Missing Data in the KE5Z report
    Regarding reports KE5Z &  S_ALR_87013326
    http://wiki.sdn.sap.com/wiki/display/ERPFI/KE5Z-Additionaltextfields+missing
    pherasath

  • Default profit centers Plant wise for Balance Sheet tax relevant Items.

    Dear All,
    We have an issue in profit center acccounting.
    In balance sheet accounts, Vat input tax payable, TDS payable, Cenvat clearing etc are picking profit center from 3KEH. When Exicse is getting captured cenvat clearing account having the profit center but while doing the MIRO cenvat clearing do not have profit center & plant.
    Why it is so?
    Basically we are doing the following steps.
    1. Purchase order creation ME21N.
    2.Goods received via migo
    3. invoice receipt via miro.
    At the time of miro posting, system creates automatically accounting document, with default profit center maintained in 3KEH, which are assigned to Vat input tax payable, TDS payable, other tax accounts. For GR/IR clearing account right profit center is picking without any mistake, while doing MIGO & MIRO.
    We need to extract the Balance Sheet profit center wise at plant level.
    Derivation rule is created for this balance sheet account along with Valuation area condition to post to correct profit center maintained under Tcode: 3KEI . But system is taking only default profit center (3KEH).
    I have checked configuration and the following areas like Material master costing view, tax code areas, and account group but did not find any mistake.
    Please advice and Guide us, how to get correct profit center at plant level for these balance sheet accounts instead of default. (I want to make default profit centers plant wise).
    It is urgent.
    Thanks,
    Shailendra Gupta.

    Hi!
    You can use following report :
    S_ALR_87013336 (Report for Balance sheet at Profit Center and Group Level).
    Hope this will help.
    Thanks & Regards,
    Taral Patel

Maybe you are looking for