Query on SAP Roles usage

Dear experts,
I have a BASIS query.
I have created a role "ABC_XYZ" which has authorization for company code - "1000" and has been assigned user "SMK001".
My query is,Can I use the same role "ABC_XYZ" assigned user "SMK002" but having authorization for different company code - "2000" only.
Can we restrict the legal entities and other business objects at user level instead of role level?
Any input appreciated.
Thanks in advance.

Hi,
You can't use the same role for accessing other company code.
SInce this role is authorised for company code 1000, you can assign to any number of users, but all of them have access to 1000 only, not for 2000 compnay code. so the role concept is nothing but restricting the access to the orgn entities like CC, Plant, Pur orgn, sales Orgn etc.
all are restricted only with authorizations and roles only.
reward if useful
regards,
ANJI

Similar Messages

  • How to search roles by Query in SAP BW?

    how to search roles by Query in SAP BW?

    Use SUIM with option roles with Auth object and put S_RS_COMP or S_RS_COMP1 here u can put the query for which u want role.

  • Howto Refresh SAP BW Query Changes for roles (User menu)

    Hi All,
    I have apply new changes for combine hierarchy. However I have tested in Query Designer/web and its works ok hence the user cant see the change.
    Howto Refresh SAP BW Query Changes for roles (User menu)
    Below is the setup we do have (sap bw 3.5)
    1. User run query from User menu (They logon to bw backend and run query by click on the icon on thier user menu.
    Changes.
    1.Apply combine hierarchy (Rows in Query Designer)
    2. I have display query on the web and its work as expect
    Issue
    1. Query not refresh in user menu (Roles) Users run the query through user menu
    Regards Jon

    thank you

  • How to enter a query into a role

    Hello Everyone,
    We are starting to look at the new analyzer.  We cannot find how to Enter a query in a role.  In the old analyzer there was a button called this.  Where is it in the new analyzer?  How to you enter and assign a query to a role?
    Thanks so much!

    Hi,
    We have a new concept of authorization where you are no more suppose to assign the query to the role from business explorer.
    I am not sure if you have gone through this but see this link a it explains about the new authorization concept that is analysys authorization.
    http://help.sap.com/saphelp_nw70/helpdata/EN/be/076f3b6c980c3be10000000a11402f/content.htm
    Now we have to create authorization object and use existing SAP autorization objects to assign authorizations...
    Also you use advanced search for searching new authorization concept in BI...this will give you plenty of links for it.
    Thanks
    Ajeet

  • Error when running "role usage synchronization" job in ERM

    I get an error in my job log when I run "role usage synchronization".  Has anyone seen this before:
    179 12/8/09 5:02:47 PM Ready Job created
    179 12/8/09 5:03:31 PM Running Include users for user access review: A,L
    179 12/8/09 5:03:31 PM Running Exclude locked users with lock codes: 32,64
    179 12/8/09 5:03:31 PM Running Exclude Expired Users : Yes"
    179 12/8/09 5:03:31 PM Running Job running
    179 12/8/09 5:03:31 PM Running Role usage synchronzation for connector WBS is started
    179 12/8/09 5:03:33 PM Running Updated records for 21 users in database
    179 12/8/09 5:03:34 PM Running For 5 users there was no role assignment
    179 12/8/09 5:03:34 PM Running WBS : Total number of users 21, Total number of role assignments: 71
    179 12/8/09 5:03:34 PM Running Error in backend system/Web service; Input data length not a multiple of blocksize.
    179 12/8/09 5:03:34 PM Completed Job completed
    Thanks,
    Peggy

    Peggy,
       I have seen this kind of error more than a year back. May be the role name contains special character or somewhere in the role table there is a space or something. I will recommend you to open a message with SAP.
    Alpesh

  • Advantages of BW Query in SAP Portal when compared to WEB BEx Analyzer

    Hi
    What are the advantages of having a BW Query in SAP Portal when compared to WEB BEx Analyzer
    I had to presention to higher managers of having a SAPPortal for BW report that WEB BEx Analyzer
    can any one please update me with few points (10-20) that will be useful for my presentation
    screen to geethikakrishna->gmail
    Thanks in advance

    Hi Krishna ,
    I think you should highlight the portal role in presentation
    Now a days all organizations using sap portal as their user interface. We can login portal once and we can get all the information from bw,crm...sap systems and non sap systems.
    so no need to login each and every system individually.
    The portal offers a single point of access to SAP and non-SAP information sources, enterprise applications, information repositories, databases and services in and outside your organization—all integrated into a single user experience. It provides you the tools to manage this knowledge, to analyze and interrelate it, and to share and collaborate on the basis of it.
    With its role-based content, and personalization features, the portal enables users—from employees and customers to partners and suppliers—to focus exclusively on data relevant to daily decision-making processes
    For all information on portals refer to help.sap.com->documentation->netweaver->Netweaver2004->English
    IN people integration you will find information on portals
    http://help.sap.com/saphelp_nw04/helpdata/en/19/4554426dd13555e10000000a1550b0/frameset.htm
    check below threads for some information
    easiest way to publish
    Easiest way to post existing BW queries onto portal
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/92dceb49fd25e5e10000000a1553f7/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9d/24ff4009b8f223e10000000a155106/frameset.htm
    Execution of BW Reports Through Enterprise Portal
    Best Practices for BI Report publishing on Portal - BI 7
    Use of BI's Enterprise Portal
    The web application designer offers rich functionality for creating dashboards. In SAP NetWeaver BI 2004s (aka 7.0), when you publish a template it is automatically created as an iView for the portal.
    SAP NetWeaver 2004s BI - Define your Publishing Strategy Part 1
    Koti Reddy

  • UAR and Role usage synchronzation job

    Hi,
    we would like to implement UAR. Executing the Role usage synchronzation-job we get the information that the job is completed. But when we go in job history we get the following error message:
    Error in backend system/Web service; Exception from the service : Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:&quot;http://<server>:<port>/VirsaCCActionUsageService/Config1?wsdl&amp;style=document&quot;
    The system log says:
    [[email protected]4464[jobId=24,lastModifiedDate=Tue Aug 03 08:30:13 CEST 2010,statusId=0,statusDesc=Ready,message=0301], [email protected]1fc2[jobId=24,lastModifiedDate=Tue Aug 03 08:30:54 CEST 2010,statusId=1,statusDesc=Running,message=0302], [email protected]0d8e[jobId=24,lastModifiedDate=Tue Aug 03 08:30:55 CEST 2010,statusId=1,statusDesc=Running,message=23106#_!CONNECTOR#_!LS_DI6_300], [email protected]0218[jobId=24,lastModifiedDate=Tue Aug 03 08:30:55 CEST 2010,statusId=1,statusDesc=Running,message=4771#_!UAR#_!A,L], [email protected]0ac[jobId=24,lastModifiedDate=Tue Aug 03 08:30:55 CEST 2010,statusId=1,statusDesc=Running,message=4772#_!Locked#_!32,64], [email protected]10af[jobId=24,lastModifiedDate=Tue Aug 03 08:30:55 CEST 2010,statusId=1,statusDesc=Running,message=4773#_!Expired#_!Yes], [email protected]7cf5[jobId=24,lastModifiedDate=Tue Aug 03 08:30:59 CEST 2010,statusId=1,statusDesc=Running,message=23112#_!CONNECTOR#_!LS_DI6_300#_!NOS#_!32], [email protected]e91f[jobId=24,lastModifiedDate=Tue Aug 03 08:31:01 CEST 2010,statusId=1,statusDesc=Running,message=4774#_!CONNECTOR#_!LS_DI6_300#_!NOS#_!32#_!NOSOFROLES#_!40], [email protected]0ea9[jobId=24,lastModifiedDate=Tue Aug 03 08:31:01 CEST 2010,statusId=1,statusDesc=Running,message=4780#_!CONNECTOR#_!LS_DI6_300#_!NOS#_!13], [email protected]854c[jobId=24,lastModifiedDate=Tue Aug 03 08:31:01 CEST 2010,statusId=1,statusDesc=Running,message=23114#_!ERRMSG#_!Exception from the service : Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://<server>:<port>/VirsaCCActionUsageService/Config1?wsdl&style=document"], [email protected]6dd8[jobId=24,lastModifiedDate=Tue Aug 03 08:31:02 CEST 2010,statusId=3,statusDesc=Completed,message=0304]]
    Any ideas?
    Regards,
    Bjoern

    Hi,
    username and password should be correct. The user has profile sap_all.
    The webservice URL is: http://<server>:<port>/VirsaCCActionUsageService/Config1?wsdl&style=document
    Regards,
    Bjoern

  • Role Usage Synchronization job

    When I run the ERM Role Usage Synchronization job (step in UAR) I get the error "Error in backend/Web service; Field USER_NAME_TYPE not a member of TABLES".....we are on GRC 5.3 SP 15.

    Hi Jack,
    Is your backend runnung VIRSANH SP16 and VIRSAHR SP14? That's is the minimum requirement. Please check SAP Note 1352498 (there is an attachment to the note).
    Regards,
    Luis

  • Upload Role Usage is failing

    This was fixed in SP15.3 (so says SAP). We are on SP 16.0 on ERM and this issue is still a problem.  When I use the upload role usage function, using the downloaded template, only 18 of 800+ rows in the xls file get loaded into the VT_RE_ROLE_USG table. I did not notice this until SP16.0, will I be forced to go to 17?  or is there a work-around?

    more info:  the VT_RE_USR table is being populated correctly (325 users) however the VT_RE_USG table stops at 30 rows. Does not seem to matter the sort order in the xls, still stops at 30 rows. the  VT_RE_USG table entries are the bottom 30 rows of the xls....ignoring the remaining 900 rows (930 rows of data total). The xls template is an actual xls (excel 2003 format, all cells formated GENERAL, so the dates are excel dates.  The other oddity in the VT_RE_USG usage table is the LASTEXEC column is null, but if you leave it blank in the xls, it does import at all.

  • How to write a SQL query in SAP B1 2007 B with input parameters?

    How to write a SQL query in SAP B1 2007 B with input parameters, on execution of which will ask for some input value from the user and the values will be selected from a list such as item list?

    The syntax like
    SELECT * FROM OITM T0 WHERE T0.ItemCode = '[%0\]'
    Thanks,
    Gordon

  • Various questions on SAP XI usage

    Hi XI Experts,
    I have few questions on SAP XI usage :
    Q1-Does SAP XI is unique - client like BW ?
    If multi - clients is possible is there any particular usage recommandations when in design, configuration and production deploiement on PRD SAP XI System ?.
    Q2-is it technically possible to restart a well processed message (with nice black & white flag in SXMB_MONI) ?
    And I know its not a good thing to try to do this...
    Q3-is it technically possible to modify XML payload in message ?
    And I know again its a very bad thing to try to do this...
    Q4-We have to work with xCBL 4.0 definitions. I think i only have to import all XSD definitions as External Definitions in Interface Objects of my repository. Does it right ?
    Great thanks for your(s) response(s).
    Best regards
    Etienne

    Hi,
    >>>>Q2 : few methods....hum hum...
    one of them I described in my weblog:
    /people/michal.krawczyk2/blog/2005/11/09/xi-restarting-successfully-processed-messages
    >>>>Q3 : i 'm in SP16. Do you think it'll be as simple as "Right click on message -> Restart message" ?.
    yes it will be that simple as WE19 for IDOCs in R3:)
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Error in while running a query in SAP B1

    Hi All,
    I am creating one Q-PLD so i have to run the following query. Query is working fine in SQL Server
    But while running with SAP B1 showing error 'Cant convert into varchar to small int'
    Query is
    Select (select M1.[GroupName] from OCRG M1 where M1.[GroupCode] = T2.[GroupCode]) As 'State',
    T0.[CardCode] AS 'Customer Code',T0.[CardName] AS 'Customer Name',T4.[U_SchNo] As 'Scheme Ref No',
    T1.[U_Itmgrp] AS 'Item Group',T1.[U_TAdvAmt] AS 'Actual Adv',T0.[DocDate] As 'Doc Date',
    T0.[DocNum] AS 'Invoice No.',T1.[U_QtyKgs] AS 'Qty In KG',T1.[U_CAdvRate] AS 'Advance Rate',
    T1.[U_DedAdvA] AS 'Actual Adv. Adj.',T1.[U_BalAdvA]- T1.[U_DedAdvA] As 'Balance'
    from [dbo].[OINV] T0  INNER JOIN [dbo].[INV1] T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN [dbo].[OCRD] T2 ON T0.CardCode = T2.CardCode
    INNER JOIN [dbo].[OCRG] T3 ON T2.GroupCode = T3.GroupCode
    LEFT OUTER JOIN [dbo].[@CUSTAMT] T4 ON T0.[CardCode] = T4.[U_Custcode]
    And T1.[U_Itmgrp] = T4.[U_Itemgrp]
    Where T0.[DocDate] between '[%0]' And '[%1]' And
    T0.[CardCode] between '[%2]' And '[%3]'
    And T1.[U_Itmgrp]  between '[%4]'  And '[%5]'   ' This line i am getting error
         ' If i this line will remove error will disappear or i will pass parameter directly like 'ItemGrop1'
    And T3.[GroupName] between '[%6]' And '[%7]'
    By
    Firos C

    Hello Firos,
    Now, first I assume that the t1.[U_Itmgrp] refers to the [ItmsGrpCod] in the OITM.
    I have tested this simple query in SAP Business One (Query Generator) as your query uses user defined fields I do not have in any database here.
    If this is the case you need the number associated with the item group name. This is the 'ItmsGrpCod' and you can find it in table OITB, therefore I would suggest to add this table to the query and search for the ItmsGrpNam that is the one that appear in the Item Master Data. E.g.:
    SELECT T0.[ItemCode] FROM OITM T0  INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod WHERE T1.[ItmsGrpNam] = 'server'
    If this is the wrong assumption please consider CAST, but in this case you would need something similar to this:
    CAST ([U_PriceKG.NUMBER ]AS NUMERIC(19,6))
    Hope this helps, but if it doesn't can you please tell me what kind of values you have in U_Itmgrp and if it is written by the user or there is a formatted search?
    Thank you for your information.
    Marcella Rivi
    SAP Business One Forums Team

  • Select query in SAP SCRIPT

    Dear Experts,
    In printing of MB23n , I need to print STR_SUPPL1 and STR_SUPPL2 from ARDC table. I already have ADDRNUMBER.
    We are using SAP SCRIPT.
    Please guide me how to insert the following query in SAP SCRIPT.
    tables: lfa1, adrc.
    data: begin of it_test occurs 0 ,
    str_suppl1 like adrc-str_suppl1,
    str_suppl2 like adrc-str_suppl2,
    end of it_test.
    select str_suppl1 str_suppl2 into corresponding fields of table it_test from adrc addrnumber = lfa1-adrnr.
    Please hekp me to solve the issue.
    Thanks in advance.
    Regards
    Ankur

    Hi,
    In Script - Page Window -
         PERFORM <form name> IN PROGRAM <Program Name>
         USING &VBDKR-VBELN_VL&
         USING &VBDKR-VBELN_VAUF&
         CHANGING &ADDR_LINE1&
         CHANGING &ADDR_LINE2&
         CHANGING &ADDR_LINE3&
         CHANGING &ADDR_LINE4&
         CHANGING &ADDR_LINE5&
         ENDPERFORM
                         &ADDr_line1&&ADDR_LINE3& &ADDr_line2&
         &ADDR_LINE4&
         PROTECT
         &ADDR_LINE5&
         ENDPROTECT
    In SE38 - Create Prog as Subroutine pool --> Write a Form with same name
    SELECT SINGLE adrnr INTO twlad-adrnr FROM twlad WHERE werks = lips-werks AND
                                                              lgort = lips-lgort.
        IF sy-subrc = 0.
          CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'
            EXPORTING
              address_type            = '1'
              address_number          = twlad-adrnr
            IMPORTING
              address_printform_table = lt_address.

  • Query in SAP don't shows more than 2 decimals

    Hi!
    I'm trying to create a query that shows the Currency for each operation by day, in this case are the payments, the operations. But the problem is that my query get all the payments when the paymeny is by local currency and foreign currency, i mean when is dollars and when is pesos, so even when the payments are in pesos whe need to get the currency of the dollar at these day, so my query get the currency from the table of the currencies when is in pesos and when is in dollars it get the currency from the payments table, so this is my query.
    Reporte de Pagos
    /SELECT FROM OINV T1/
    DECLARE @FECHA AS DATETIME
    /* WHERE */
    SET @FECHA = /* T1.DocDate */ [%0]
    /SELECT FROM OINV T2/
    DECLARE @FECHA2 AS DATETIME
    /* WHERE */
    SET @FECHA2 = /* T2.DocDate */ [%1]
    SELECT DISTINCT T0.[DocNum],T1.[DocEntry],T2.[NumAtCard],T0.[CheckAcct],T0.[DocType],T0.[Canceled],T0.[CardName],T0.[DocDate],
    CASE
    WHEN T0.[DocCurr] = 'USD' THEN T0.[DocTotalFC]
    WHEN T0.[DocCurr] = 'MXP' THEN T0.[DocTotal]
    END AS 'Total'
    CASE
    WHEN T0.[DocRate] = 0 THEN (SELECT CAST(T3.[Rate] AS float) FROM ORTT T3 WHERE T3.[RateDate] = T0.[DocDate])
    WHEN T0.[DocRate] <> 0 THEN CAST(T0.[DocRate] AS float)
    END AS 'T.C.'
    ,T0.[DocCurr],
    (SELECT T4.[SlpName] FROM  OSLP T4 WHERE T4.[SlpCode] = T2.[SlpCode]) AS 'Vendedor'
    FROM ORCT T0 
    INNER JOIN RCT2 T1 ON T0.DocNum = T1.DocNum
    INNER JOIN OINV T2 ON T1.[DocEntry] = T2.[DocEntry]
    WHERE T0.[DocDate] >= @FECHA
    AND T0.[DocDate] <= @FECHA2
    The real problem is that with this, the query just bring me 2 decimals in the currency and i need at least 4 decimal, i don't know what happen because if i run the query in the SQL Management Studio the decimals are correct it brings me more than 4 decimals, but when i run the same query inside SAP Query Manager it brings me just 2 decimals.
    How can i fix that?
    Hope you help me.
    Thanks in advance
    Regards!
    Xavier

    Xavier,
    This is because the decimal place setting in General Settings > Display tab is 2 decimals.  Similar question has been raised a few times on this Forum and I will send you the link when I find it.
    In the meanwhile the hint is to use CAST function.
    Link for the thread  Rounding in Query Generator
    Suda

  • Query in sap

    hi
    is there any application
    in which we can run query as we do in sql
    like if i want to fetch records from two tables as
    select a, b , c from tablea and table b
    where something like that
    can we directly execute any query in sap?
    plz help me with step by step solution

    hi
    go thru the following tutorial on ABAP Query
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_FunctionalAreas_WithoutLogicalDB.asp
    <b>reward points for useful ans</b>
    Regards
    Aarti

Maybe you are looking for

  • Can't play MIDI the same time as any other sound.

    Hello there. I am a bass player and therefore I use GTick from [extra] as a metronome and TuxGuitar from [community] as GuitarPro tablature reader. I have a problem with (at least) this two programs: when I try to start the metronome or to play a tab

  • Creative cloud photoshop CC and lightroom don't react I have no access any more  WHY   I have paid my monthly subscription can you to that.

           I have no access to  creroonative cloud  photoshop CC and lightroom      WHY   I paid my monthly  subscribtion.   [personal information removed... Mod - https://forums.adobe.com/docs/DOC-3731] [This is an open forum, not Adobe support, please

  • E book does not work

    Previously I bought an ebook and I keep its address in my favorite link, and it worked. However, after a year, when I click that link, abobe home appears and it seems to ask me to buy monthly services. How can I read that e book again? Thank you very

  • How to access Portal Database ( ORACLE) through webdynpro  java

    Hello experts, I  want to <b>access portal database tables</b> ( WCR_USERSTAT,WCR_WEBCONTENTSTAT,WCR_USERFIRSTLOGON )<b> using</b> <b>webdynpro  java</b> application/service . Our portal DB is Oracle , so please tail me some solution for this asap. I

  • Overheating

    Hi My first macbook pro did not get really hot. The one I have now (under a year old) gets extremly hot under - with same kind of use. Why does this happen and how can I prevent it? Trine