Generate user list assigned specific Company code....

Hi All,
I want to generate a list of users who are assigned a specific Company code say 'XYZ' ?
Is it possible if yes how can it be done ?
appriciate  immd  response..
Rgds
D L

Hello Dhaval,
Yes it is possible though using you may not be able to determine if the user has display or change access to the company code. Execute report RSUSR002. Under selection by field name give Field Name as BUKRS and Value as XYZ and then execute.
Regards.
Ruchit.

Similar Messages

  • How to restrict the user id to a specific company code?

    Hi,
    I want to restrict a user id to access a specific company code only for both customizing and application data creation. This means that the user id can do customizing and create application data for that company code only and not for any other company codes.
    how can i do this?

    Hello Raja,
    You requirement of restricting users for application data can solved by adding the company code in the organization level button and the user will be restricted to mainatin application (transaction) data for the org element for which he is authorized for, if the transaction has objects which check company code.
    Customizing data authorization can be very tricky, as most of the customizing transactions are for maintaining customizing tables will not necessarily have an authorization check for org elements. In this case you may to manually insert a object called S_TABU_LIN alongwith S_TABU_DIS it will perform the job of restricting authorizations.
    In cases where the end user is accessing tables directly with SE16 S_TABU_DIS is the object that is check and maintained in PFCG.But,Such a restriction cannot be made with S_TABU_DIS alone. Fortunately SAP provides us with another authorization object S_TABU_LIN (Authorization for Organizational Unit), which can be used in conjunction with S_TABU_DIS to enforce such a restriction.
    This authorization object works only with Maintenance Views and Customizing tables. Also note that an Organization Criterion is a prerequisite for implementing the same
    A detailed step by step procedure to be followed is given below:
    1. The first step in implementation of line authorization is defining an Organization Criterion. For this we need to access the u201CSAP Reference IMGu201D customization page from SPRO transaction.
    2. From the IMG display screen select SAP Web Application Server -> System Administration -> Users and Authorizations -> Line Oriented Authorizations. Select the execute ( ) button for the u201CDefine Organization Criteriau201D.
    3. The resulting table display show all available Org Criteria values existing in the system. For our purposes we will create a new Org Criteria to suit our needs. Select the tab u201CNew Entriesu201D as shown below.
    4. Give an appropriate name starting with Y or Z for the new value. Note that a name starting with another letter will not be accepted by the SAP system. Click on u2018Saveu2019 button to save the newly created Org Criteria. This opens a new window asking for a Workbench Transport Request. This would be required so as to transport the new Line authorization restrictions further to the test and production systems.
    5. Now select the new Org Criterion u201CY_TESTu201D and double-click the u201CAttributesu201D tab as below to define the various Org Attributes.
    6. Provide the new Attribute name and Description for the same. Also fill the Authorization field value from the provided dropdown (1st Org Criterion Attribute u2026. 8th Org Criterion Attribute). The search help field is an optional field which can be filled if a search criterion exists or has been created earlier for the specific purpose. This field enables the u201CF4u201D when filling entries in the authorization object
    7. We already have a search help (C_T001) available, which provides as an F4 help the list of all available Company Codes in the system.
    Note that we can create up to 8 Org Attributes as per our requirements (by selecting u201CNew Entriesu201D tab), each corresponding to a column in the target table.
    8. Selecting the attributes link again will show us a list of all defined attributes and the authorization Field it will appear in. Now that we have defined the Attribute Field that we require, we need to associate each attribute to the corresponding Table Field in the target table.
    Select one of the attributes as below and double-click on the u201CTable Fieldsu201D button to define the field associations.
    9. Select the u201CNew Entriesu201D tab to create a new table field association.
    10. The View/table field must be filled with the target table which we need to control.
    11. The u201CField Nameu201D will require the field name of the target table which be linked with the specific Org Attribute. Performing an F4 on this field will display the list of all possible fields available in the View/table provided earlier. Here we will select the field name BUKRS (Company Code). Save the entries in the same workbench request created earlier.
    12. The next step would be to activate this new Org Criterion so that SAP now checks the authorization for S_TABU_LIN for every user
    13. In the u2018IMG displayu2019 go to SAP Web Application Server -> System Administration -> Users and Authorizations -> Line Oriented Authorizations. Select execute ( ) button for the u201CActivate Organization Criteriau201D.
    14. From the resulting customization screen tick the check-box for the Org Criterion that we have created. On saving the settings the system then asks for a Customizing Transport Request for further transport into test and development systems.
    15. Any user without this authorization will not be allowed in to the SM30 display/change screen for this table.
    16. In the role for which the S_TABU_DIS provides maintenance access for the table , we will now also need to maintain the object S_TABU_LIN.
    17. On selecting change button besides any authorization field you will need to select the Organization criterion which needs to be maintained here. Note that only one Org Criterion can be maintained in one instance of S_TABU_LIN object.

  • How to restrict user to process own company code data in z program

    Hi All,
    I have this issue. in asset management I would like to restrict user to process its own company data.
    for example A who works in company 0123 only can process comp code 0123 data whereas X who is manager can process all company code data.
    In the abap program, how can i achive this? by authority object? if yes what asset management authority object to use?
    i have company code in selection screen. so may i know what method i can achive so that A can only execute co 0123 whereas X can do for all company code.
    thanks

    Hi,
    One way would be:
    For all persons for whom you would like to 'control' the access to a specific company, SU01-->Parameters--->Give some parameter ID say XXX, & in PArameter Value key in the compnay code whose data it can process.
    Please note that this is only one time process which has to be carried out for all the users. Then in your z-program  in SELECTIO-SCREEN OUTPUT use GET PARAMETER ID 'XXX" Field w_value. If GET PARAMETER ID returns su-subrc = 0 then move w_value to your company code on the selection screen. Then Use LOOP AT SCREEN & make SCREEN-INPUT = '0' for company code so that company code will be displayed but protected thus not allowing the user to change the company code.
    I hope this helps,
    Regards
    Raju Chitale

  • How to calculate no.of records for a specific company Code and Transaction

    Hi All,
    Could you please help me how to calculate or count no.of records, in a table which are having a specific Company Code and Transaction Code and populate  in an output table displaying that these many records are present for this company code and Transaction code.
    The table is having the data like this:
    LOB   TRAN CODE    COUNT
    X1                             1   
    X1                              2   
    X1                              3   
    X1                              4   
    F1   NB                      5   
    F1   NB                     6   
    F1   NB                     7   
    F1   NB                    8   
    F1   NB                    9   
    F1   NB                    10  
    F1   NB                    11  
    F1   NB                    12  
    F1   NB                     13  
    F1   NB                     14  
    F1   NB                     15  
    F1   NB                     16  
    F1   NB                     17  
    F1   NB                     18
    F1   NB                    19  
    F1   NB                    20  
    F1   NB                   21  
    F1   NB                   22  
    F1   NB                   23  
    F1                          24  
    F1                         25  
    F1                         26  
    F1                         27  
        In the above table there are totally 27 records,where as the no.of records with F1 as company code and NB as transaction code are 18..so i have to display like F1 NB and 18 as one record as output.
    Thanks and Regards,
    Johny

    You can go for Control Breaks for your requirement.
    First sort the internal table by company code and transaction. Declare a counter variable.
    Now loop the internal table and increment the counter variable. within the loop use AT END OF tcode.......ENDAT. Within the control break append the counter variable as well as the company code and tcode to some other ITAB and clear the counter.
    This will give you the total number of records for a combination of co code and tcodes.
    This will be a good reference for your requirement. What I am doing here is, for each Vendor i am calculating total number of deliveries and amounts for that vendor. For every new vendor i am writing the ouput on to a list and clearing the counter variables.
      LOOP AT t_vend_prod_grp INTO fs_vend_prod_grp.
        w_total_delv = w_total_delv + 1.
        w_total_amt = w_total_amt + fs_vend_prod_grp-dmbtr.
        AT NEW matkl.
          w_mat_grp = fs_vend_prod_grp-matkl.
    * To display the material group and the header texts for the data
    * grouped by material group and vendor.
          SKIP 1.
          WRITE:  text-mtk  COLOR COL_HEADING
                                  INTENSIFIED,
                / w_mat_grp COLOR COL_NORMAL
                                  INTENSIFIED OFF.
          SKIP 1.
          FORMAT COLOR COL_HEADING ON INTENSIFIED.
          ULINE  1(54).
          WRITE:/ sy-vline,
                2 text-ven,
               12 sy-vline,
                  text-dlv,
               26 sy-vline,
               38 text-amt,
                  sy-vline,
               46 text-cur,
               54 sy-vline.
          ULINE /1(54).
          FORMAT COLOR COL_HEADING OFF INTENSIFIED.
        ENDAT.                             " AT NEW MATKL
        AT END OF lifnr.
    * To display the actual data for the grouping based on Material group
    * and Vendor.
          FORMAT COLOR COL_NORMAL ON INTENSIFIED OFF.
          WRITE: / sy-vline,
                 2 fs_vend_prod_grp-lifnr COLOR COL_KEY,
                12 sy-vline,
                   w_total_delv,
                26 sy-vline,
                   w_total_amt CURRENCY text-usd,
                   sy-vline,
                46 text-usd,
                54 sy-vline.
          FORMAT COLOR COL_NORMAL OFF INTENSIFIED OFF.
          CLEAR: w_total_amt,
                 w_total_delv.
        ENDAT.                             " AT END OF LIFNR
      ENDLOOP.                             " LOOP AT T_VEND_PROD_GRP

  • Delete authorization for specific Company Code

    All,
    For a specific transactions, our users may only run the transaction for a specific company code. Transaction is TPM55A
    What authorization object do I need to add to my role, so the users have only authorization for let's say Company code range 1000 - 1050.
    Many thanx for help
    kr,
    Stef

    Hi Stef,
    Please try to add this authorisation object manually F_BKPF_BUK- Authorisation object for company code.
    In the filed BUKRS you can maintain the company code as you required for the users.
    I hope this may help you in resolving the issue.
    Thanks
    Karthick

  • User Assigment to more Company Codes

    Hi all,
    we use SRM 7.0 and we created an organization model as follows:
    Company Code 1 -> Purchasing Organization 1 -> Purchasing Group 1
                                      ORgUnit 1 -> User 1 (Central Person) -> Assigned Company Code 1 and Plant 1 (Extended Attributes)
    Company Code 2 -> Purchasing Organization 2 -> Purchasing Group 2
                                      OrgUnit 2 -> User 1 (Central Person) Assigned Company Code 2 and Plant 2 (Extended attributes)
    Expected Behaviour
    Because it's possible to assign the same user (central person) to both company codes I expected  the user can buy for both company codes.
    System Behaviour
    1. If I lock in with user 1 and create a shopping cart the company code 1 is determined from the system but the company code 2 is not selectable.
    2. If I assign the company code 2 additional to user 1 I can select the company code 2 but the system shows only the purchasing group 1 not the purchasing group 2.
    Question: Whats wrong ???
    Kind Regards
    Hermann

    Hi,
    Company Code 1 -> Purchasing Organization 1 -> Purchasing Group 1 -> Responsibilty company code 1 + 2
    Company Code 2 -> Purchasing Organization 2 -> Purchasing Group 2-> Responsibilty company code 1 + 2
    Both company codes are assigned to user 1 attributes
    Results in shopping cart
    1. I log in with user 1
    2. I changed the company code from 1 to 2
    3. Purchasing groups 1 and 2 are selectable independent from company code
    4. System allways said shopping cart o.k.
    Problem
    1. If I select company code 1 and purchasing goup 2  - because it's possible - the system determines purchasing organization 2 (field not visible in SC)
    2. System reported  - shopping cart o.k.
    3. But in R/3 purchasing organization 2 is assigned to company code 2 not to company code 1
    4. If I now try to create the PO (Carry out Sourcng) system says - purchasing organization 2 not allowed for company code 1.
    Question: How it is possible to select only the purchasing groups for the entered SC company code ?
    Kind Regards

  • Error--Control indicators not assigned to company code

    While creating PO in IDEAS following error is coming.
    "Control indicators not assigned to company code"
    Pl . suggest the remedy,
    Thanks a ton,
    Regards,
    NB

    Goto T code OKKP select your co.code on left side click on Activate components.
    in first tab " activate components" activate cost center ,  order mgmt, comm mgmt etc and save it.
    Reward if useful;
    Rgds
    GIrish Kavital

  • How find out which user is using which company code?

    Hi Gurus,
    I am having more than 500 users in Production System.I need to find out which user is using which company code?I can get the roles and users separately from two different SAP tables.
    Is it possible to get it from a single table or Tcode?
    Best Regards,
    Rahman

    Hi,
    Thanks for the update.Yes I tried with SUIM.But I was unable to find any clue.
    Regards,
    Rahman

  • Issue in Assignment of company codes to controlling area  TKAO2 and OKKP

    Hello Gurus,
    I configured company code and controlling area in development client  and transport to Testing client.But in QA client I can see  in the Table TKA02 and respective assignment of company code to controlling area .But if I am checking in TCode OKKP and selecting Controlling area and checking the company codes assisgment there is no asssisgmnet. is this issue relating to transport as I am FICO consultant not geting solution.
    This issue pertain to only one  controlling area other controlling area with there company code assignment is correct.
    Thanks a lot
    Edited by: Manu Rathore on Apr 7, 2011 8:56 AM
    Edited by: Manu Rathore on Apr 7, 2011 8:58 AM

    Hello Balaji,
    But I transport everything through one transport request and I haven't maintain any sequence.can this issue  be due to mine non maintaining   of sequence in transport request or something else?
    if so How to solve it.
    Many Many Thanks
    Manu

  • Error as no calculation procedure assigned to company code

    Dear Member,
    I am SAP hr Fresher, Im practising in IDES,
    When i create Personal Area iam getting
    Error as no calculation procedure assigned to company code???
    What should i do???????
    Help me out experts.......
    Thanks
    Jose

    Please execute t-code OX02 and assign your company code to the country in which it exists.
    Hope this helps,

  • Personnel area without assigning to Company code.

    Hi All,
    Can you let me know the scenario where it is not mandatory to assign a company code to the personnel area ?
    Also, is it possible to configure SAP HR for a personnel area in such a situation?
    Thanks & Regards, Swapnil Mishra

    Hi Swapnil,
    I think assignment of Personnel Area to Company Code is required when SAP HR-Payroll results are posted into Accounts, means it is required for integration of SAP HR and SAP FI. Also you will find a feature 'PPMOD' used during accounting posting also use BUKRS in decision tree.
    Regds.
    Suman

  • Error " material is not assigned to company code" How do I

    Hi
    Guys I am getting the error
    " material is not assigned to company code" How do I solve it?
    Thanks
    samuel

    hi samuel,
    this error is due to the fact that you must have assigned the plant to this material and that plant is not assigned to your company code. or the other case may be the organisational levels whic you have maintained in which you enter your sales org. check if that sales org is assigned to your company code.
    in short chec all the assignments related to your enterprise structure.
    Regards,
    Archit

  • Unable to assign multiple company code to a controlling area in PPOME

    Hi Experts
    In PPOME I was trying to assign multiple company codes under 1 controlling area in account assignment. e.g. ABC is the company, its 2 company codes, ABC1 and ABC2.
    In PPOME when I am assigning the root org unit (ABC) with controlling area ABC1 and company code ABC1, it hierarchially inherits the below structure.
    Whereas when I want to change the company code for ABC2 orgunit, it doesnot give the provision to change. It hierarchially inherits the root org unit structure.
    I have tried to differentiate it by creating different costcentres for different companycodes, but that also doesnot help to fulfill the need.
    Please help me to solve the issue as early as possible.
    Warm Regards
    Anwi

    Hi Rajdeep
    The same function can be handled from PPOME also, because in case of assignment of enterprise structure components with org structure components we use IT 1008.
    However, if yours process is followed, then also I am unable to change the COMPANY CODE. Rest can be well taken care of.
    Cheers
    Anwi

  • All plants Under specific company code

    Hi,
    What is the Tcode for All plants under Specific company Code.
    I Know about EC01 Navigation..
    But is there any other tcode available or not?
    Is there any table for all plants under company code?

    Go to SE11.. Give table name T001K..Execute... Give the company code in the field BURKS.. the result will give u all the plants under it....(WERKS is the field name for Plant)..
    Karthick

  • How to Assigning the company code to the billing units from ecc to crm

    Hi,
    Iam doing the roll out project , i require the help.
    can any one suggest me how to assign the company code to the billing units from ecc to crm.
    Thanks
    Mustafa

    Hi Mustafa
    You can load this data from R/3 to CRM by going to transaction R3AS in your CRM system, and using load objects EQUIPMENT, MATERIAL, and CUSTOMER_MAIN.
    Best Regards
    Gavin

Maybe you are looking for