Authorization - all Z reports

Hi,
What is the best way to set-up authtorizations for z reports?
We have different keys like company code,material,plant etc..
Can we use any standard objects to do this? Or do we need to develop a custom for each report depending on Key's used?
regards
Praveen
Message was edited by:
        PRAVEEN s

Hi,
You need to create an authorization object from Transaction SU21.
Ther you can give the authorirization fields.
Now in your report just call that authority object:
Let's say if you had created an auhorizatin object as V_VBAK_VBO then you can code something like this in your custom report.
*Check the authority of the user
authority-check object 'V_VBAK_VKO'
id 'VKORG' field it_salesorg-vkorg
id 'VTWEG' dummy "FIELD '*'
id 'SPART' dummy "FIELD '*'
id 'ACTVT' dummy.
*If the user is not authorised
if sy-subrc <> 0.
Give the error message.
endif.
For more information, please check this link.
http://help.sap.com/saphelp_bw21c/helpdata/en/52/6712ac439b11d1896f0000e8322d00/frameset.htm
Regards,
Ferry Lianto

Similar Messages

  • All Transactions Report to Non-System Admin

    Is it possible to broadcast a report of all transactions to a non-system admin?
    Background: Project Manager who is not a System/Travel admin,  would like monthly reports of all expense reports and expenses from system. Since reporting is based on role assignment is this possible? I have tried using Broadcast but user still only sees data for his direct reports. thnka you in advance for your help!

    Hi Juan,
    this should be handled very careful as you can get in trouble if you expose data to people that are not authorized to see it. So think twice before you do that.
    what is that project manager supposed to see? If he's allowed to see any detail, you might create a role that has no access restrictions. In this case, the report will show all expense reports. This way there is clear transparency in the system about authorizations
    Broadcasting works as well. In broadcasting you should deselect the "user specific" flag. In this case, the report runs with the authorizations of the broadcast creator (the system admin). It is probably useful to create a specific report for that and assign it to a work center view the system admin has assigned. However this way the system admin provides information to people that are not authorized by their role. So their needs to be another agreement in the organization to be on the safe side.
    Regards,
    Steffen

  • Authorization to FBL5N report .

    Hi All,
    Plz help me.
    I need to put authorization on FBL5N report on basis Customers.
    eg. a person in Mumbai(mumbai branch) should not be able to view data of customers in Goa(Goa branch).
    Thanks.
    Points will be granted for effective answers.
    Bye.

    hi,
    branch means business area for you? than you can make it easily addign the proper values to auth object F_BKPF_GSB
    ec

  • Cant use more than one authorization group per report with SBO CR Basic

    Cant use more than one authorization group per report with SBO CR Basic.
    I have installed on SAP Business One SBO 2007 SP00 PL49 the Crystal Reports Basic 2.0.0.7.
    i have defined two users, manager and supervisor.
    I have defined two groups, M and S.
    Manager belongs in managers (M), and supervisor is assigned to the supervisors (S).
    i enter to one report, disable the public option to enable group authorization, and then check M group.
    Manager can see the report, but Supervisor is not allowed. So far good.
    Then i uncheck M, then check S in the report properties, and Manager cant get in, supervisor opens the report, So far good.
    But when we check both Groups or more, only the M group authorization appears to work, and S group users cant acess, even the report is allowed for that group, also happens with all the groups appart the first (2nd, 3rd, 4th, etc.).
    It seems that a report can manage a single group, but i have to be shure to tell this to the customer.
    So far we have included all Manager users to the S group in order that only S group is used and authorized users can use, but this is duplicating user participation in groups, and it would be much easier to check the desired groups for a single report.

    Cant use more than one authorization group per report with SBO CR Basic.
    I have installed on SAP Business One SBO 2007 SP00 PL49 the Crystal Reports Basic 2.0.0.7.
    i have defined two users, manager and supervisor.
    I have defined two groups, M and S.
    Manager belongs in managers (M), and supervisor is assigned to the supervisors (S).
    i enter to one report, disable the public option to enable group authorization, and then check M group.
    Manager can see the report, but Supervisor is not allowed. So far good.
    Then i uncheck M, then check S in the report properties, and Manager cant get in, supervisor opens the report, So far good.
    But when we check both Groups or more, only the M group authorization appears to work, and S group users cant acess, even the report is allowed for that group, also happens with all the groups appart the first (2nd, 3rd, 4th, etc.).
    It seems that a report can manage a single group, but i have to be shure to tell this to the customer.
    So far we have included all Manager users to the S group in order that only S group is used and authorized users can use, but this is duplicating user participation in groups, and it would be much easier to check the desired groups for a single report.

  • Roles & Authorizations for Web Reports...

    Hello Experts,
    We are newly implementing Web Reports in our organization. I need your great thoughts regarding implementing Authorizations for users to access the reports.
    We are using a report menu page that contain links to all the reports. The page opens by clicking on a link on the portal. The individual reports are basically accessed from this page by clicking on the corresponding button (links a URL ).
    I wonder if there is any way to look into the menu page (XHTML code of that web page/application) when ever the users click on the reports link and disable those buttons that the users are not allowed to access depending on the roles users are assigned to. Otherwise is there any better way to do it.
    And also how to call a function from web applications.
    This is a kind of urgent issue any quick ideas would be greatly appreciated.

    I apologize for the difficulty in reading this  I will repost.
    We have had no training or received any documenation on WAD.  The below was created from internet research.  Hence there may be WAD functionality that would allow easier maintenance, however; this is what we use.
    With our dashboard, I have a web template that contains hyperlinks for our reports.  I will call this HeaderTemplate1.  For each web page I have report templates.  These report templates have the HeaderTemplate1 mentioned above as well as the report tables, charts, text elements, tabs, etc.
    The JavaScript logic for accessing the urls of the specific report templates is contained within our HeaderTemplate1.
    Below is how our setup was tested.  Keep in mind, this was only for testing basic functionality.  If this is something we use I will most likely create a master data table that houses the user ID and an attribute for the header type.  Thus, any report menu changes can be altered quickly without changing the javascript of each report template.  Also this will accomodate the few thousand users we have.
    To add the functionality of different 'menus', I created another header template with the same hyperlinks of HeadertTemplate1 with the exception of one or two hyperlinks.  This, HeaderTemplate2, was added to each report template just below HeaderTemplate1.  Note that both HeaderTemplate1 and HeaderTemplate2 were set as visible on each report template.
    Also, on each report template I added a text element.  The 'List of Text Elements'property was set as such; Element Type = General Text Sympol,  Element ID = SYUSER.  This Text Element was linked to a query  or view from BEx via the dataprovider.  On the HTML side, I surrounded this Text Element with
    <Font ID="UserID",,,textelement....</Font>
    Each Report template has this javascript function, fnRepOnLoad, which is triggered at the OnLoad event.
    [<SCRIPT language = "JAVASCRIPT">                       
      function fnRepOnLoad()
        var user_ID=document.getElementById("UserID").innerHTML;
        if (user_ID=='USER123')
          document.all["HEADTMPLT1"].style.visibility = 'hidden';
          document.all["HEADTMPLT1"].style.position = 'absolute';
        else         
          document.all["HEADTMPLT2"].style.visibility = 'hidden';
          document.all["HEADTMPLT2"].style.position = 'absolute';
    </script>
    The function results as this.  If the user is USER123, HeaderTemplate1 is hidden, leaving only HeaderTemplate2 visible.  Otherwise HeaderTemplate2 is invisible leaving on HeaderTemplate1 visible.
    We do not use buttons as our global leaders prefer hyperlinks but buttons can be enabled or disabled similarly.
    As mentioned before, if this method is implemented, I will create a reportable master data table.  Create a customer exit variable to retrieve the header template required for the user.  This header template variable value will then be pulled by a text element on each report template.  The script function will act as follows.  If many report headers are necessary I may use a case statement.
    Var User_template=document.getElementById("UserTmplt").innerHTML;
    If UserTmplt = HeaderTemplate1
    -->  make all header templates other than HeaderTemplate1 invisible
    else
    -->  make all header templates other than HeaderTemplate2 invisible
    etc...
    I hope this helps.  Please keep me posted with your solution.  I am very interested to learn what others are doing.
    Best Regards,
    Larry

  • Authorization for the report

    Hi
    I have made one report,  I needed to check the authorization for the report, how to do it.
    Eg.  One employee is executing the report, he only needed to select his transaction
    If somebody from one sales organisation, they only needed to take the data belongs to the sales office.
    SELECT-OPTIONS: p_vkorg  FOR tvkot-vkorg.
    SELECT-OPTIONS: p_pernr FOR pa0001-pernr
    for example two selection parameter is displaying. if my employee no is 100, while trying to enter execute the report for 200 employee no. no data should show. like that vkorg filed also should work.
    Please let me know how it possible.
    Regards
    Sebastian John

    Hi,
    You can change the code below
    *---Authorization for Company code entered by the users.
    *---This code will restrict users to see data for company
    *---codes which they are not authorized to.
    *---Select all the company codes based upon selection entered by the
    *---user
    SELECT bukrs
       FROM t001
       INTO TABLE li_bukrs
      WHERE bukrs IN z_bukrs.
    IF sy-subrc EQ 0.
    *---Clear Screen variable for Company code
       CLEAR z_bukrs.
       REFRESH z_bukrs.
    *---Filter and prepare Select options for Company code table to be
    *---passed to query. Table will only have values of company codes he is
    *---authorized to for display.
       LOOP AT li_bukrs INTO lwa_bukrs.
         AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
                           ID 'BUKRS' FIELD lwa_bukrs
                           ID 'ACTVT' FIELD '03'.
         IF sy-subrc = 0.
           z_bukrs-sign = 'I'.
           z_bukrs-option = 'EQ'.
           z_bukrs-low = lwa_bukrs.
           z_bukrs-high = space.
           APPEND z_bukrs.
         ELSE.
           lv_flag = 'X'.
         ENDIF.
       ENDLOOP.
    *---Give warning message to the user in case he is not authorized to see
    *---data for all the company codes that he has entered.
       IF lv_flag = 'X'.
         MESSAGE ID 'ZFNG' TYPE 'W' NUMBER '015'.
       ENDIF.
    ENDIF.
    This code does an authorization check at company code level and removes all the company codes that user has entered but is not authorized to look for. After that we pass the filtered list of company codes for which user is authorized to in the select query and fetch the results. You can first select all the records from database for PERNR and VKORG. Then filter them and prepare new list of VKORG and PERNR after performing authorization check and pass it further to select queries in your program.
    KR Jaideep,

  • Authorization for BI Reports

    Hi All,
    I am new to BI Authorizations. In my Project there are 150 Users are there.So for each user,Authorization Object
    is created in RSECADMIN and Roles are created in PFCG Tcode.
    Initially we have created 9 Reports and it is running in BI PRD. In all 9 reports we are using the Info Object
    "0CRM_PRCTYP - Business Transaction Type" and Authorization Relvent is Unchecked in this Case.
    Now the Client wants some more reports and need to provide Authorization for this Field "0CRM_PRCTYP - Business
    Transaction Type".And these new reports will be used by "New Users".
    So i have Checked the Authorization Relvent for the Info Object "0CRM_PRCTYP - Business Transaction Type" and
    Created Authorization Variable in Reporting Level.After doing this, I have executed the report by logging with new
    Users and it is working fine for new reports.
    Then i have checked the Old reports (9 Reports) ion RSRT and found that the error "NO AUTHORIZATION" for all 150
    users.
    Can you please help me how to rectify this error.
    Thanks,
    Jelina.

    Hello Jelina,
    First, try to check the reports by running them with the user account in transaction RSECADMIN -> tab Analysis -> Execute as user.
    If this will return an error please go with transaction SU53 and check what role/authorisation has generated the error. Afterwards, launch PFCG, go to Authorisation tabs, Display authorisation and add the reports BOTH under -> Business Warehouse-> Business Explorer Components  and ->Business Warehouse -> Business Explorer Components - Enhancement to the Owner.
    After this press the Generate button (looking like nuclear hazard but in red&white) and SAVE. Go to the TAB Users in PFCG and press the button USER COMPARISON and afterwards SAVE.
    Now it should work. Let us know if you still have problems.
    br,
    Dan

  • How to show all view tab (Main Report and all Sub Report) in Visual FoxPro 9

    I use ActiveX from Crystal Report Developer XI for viewer in Visual FoxPro 9 and I already know how to show Main Report by using command:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Inside the MyReport.rpt there is two subreport name :
    1. MySubReport1
    2. MySubReport2
    My Question is :
    How to show all view tab (Main Report and all Sub Report) at the 1st time we call ViewReport?
    I try to using command :
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptSub=oRptOpen.OpenSubreport("MySubReport1")
    oRptSub=oRptOpen.OpenSubreport("MySubReport2")
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    but only show Main Report (view tab name : Preview)?
    Did I miss any command before I call oRptView.ViewReport?

    Your right, there is only one tab to view the report.
    To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
    http://diamond.businessobjects.com/robhorne</a>

  • Discoverer viewer displaying all the reports instead of one report

    Hi Team,
    I have created one menu and attached 4 reports to that.after that that menu is attached to the main menu.This menu is attached to the one xyz responsibility.
    Now i am facing the problem is : After logging to the responsibility,i clicked on individual report ,but it is not displaying only one report.It is showing all the reports in the discoverer viewer.
    Can you please help me in this issue..

    Please post the details of the application release, database version and OS.
    I have created one menu and attached 4 reports to that.after that that menu is attached to the main menu.This menu is attached to the one xyz responsibility.
    Now i am facing the problem is : After logging to the responsibility,i clicked on individual report ,but it is not displaying only one report.It is showing all the reports in the discoverer viewer.Please review these docs and verify that you have completed all the steps.
    How to Create a Link to a Discoverer Workbook in Apps R12 [ID 471303.1]
    How to Create a Link to a Discoverer Workbook in Apps11i [ID 278095.1]
    Thanks,
    Hussein

  • Report S_ALR_87013105 : no authorization for the report/ table 7KU6_001

    Hi Gurus,
    While executing the program S_ALR_87013105 (Detailed Reports 
    For Sales Order : Plan/Actual Comparison ) system showing the selection log.
    "Have no authorization for the report/table  7KU6_001 and 7KU6_002".
    But for the user the authorization check through SU53 was successful.
    Pl can any one suggest on this issue.
    Thanks in advance,
    Vijay

    Hi,
    Contact your basis consultant to provide the missing authorisation. This is one of the authorisation object.
    Regards,
    Sankar

  • I now have 5 devices that access the "cloud" via Match. I also have 3 computers that need to be authorized. Is there a way to authorize all these computers/devices in such a way to allow everything to access and sync to the cloud?

    I now have 5 devices that access the "cloud" via Match. I also have 3 computers that need to be authorized. Is there a way to authorize all these computers/devices in such a way to allow everything to access and sync to the cloud?

    I had a problem with a 5.0.3 project that would cause 5.0.4 to crash. Apple asked for a copy of the project and later told me it was because there were some empty text layers. Apple is aware of the issue and is working on a fix.
    In my case I still had 5.0.3 on another Mac and could clean up the project. If empty text layers might be the problem, do you know someone with an earlier version who could open it and remove the empty layers? I'd be willing to give it a try if you'd want to send me the project.
    Ross Hunter

  • Export all sql reports in a region to csv or pdf

    Hello there,
    I have a region on a particular page in apex and that region has about 12 different sql query reports.
    I have enabled csv option for each of them so there are 12 links to export each report. However
    I would like to have only 1 link which will save the contents of all the reports to csv or pdf. The
    column headings are different for some of these reports but wanted to know if something like this
    is possible.
    Thanks in advance for reading this.

    You might try wrapping the regions in html regions that essentially give you the ability to specify a valign=top for the report regions.
    So, your regions look like this:
    30 Report Start - contains region source = (div)<table width="100%" cellspacing="0" cellpadding="0"><tr><td valign="top">
    40 Approved Tests Report (Column 2) Conditional
    45 Report 2 Start - contains </td><td valign="top">
    60 Unapproved Tests Report (Column 2) Conditional
    65 Report 3 Start - contains </td><td valign="top">
    80 Approved Count by Build Report (Column 2) Conditional
    85 Report End - contains "</td></tr></table>(/div)"
    Replace () with the angle brackets
    Maybe there is a more elegant solution with templates or page level CSS or something..
    But that should work.
    Edited by: Bob37 on Sep 17, 2010 3:33 PM
    Edited by: Bob37 on Sep 17, 2010 3:33 PM

  • Web part created on a subsite for a sharepoint list in another site using sharepoint designer, to show only the subsite's reports. Connection dropping off and showing all the reports

    I crated web parts in the sub-sites (we have about 10 subsites) using sharepoint designer from a main list in another site.  Then used web part to show only the  ubsite's reports - using connection to the main list.  Problem is, the connection
    is dropping off and showing all the reports on the main list that are confidential.  this has happened 3 time lately.  Could someone explain why it happens some times?  I had to fix it by adding the web part again and connecting it
    Thanks, Subathy.

    Hi George,
    If you want to use a top level site "department" list column in all sub-sites, you can go to top level site and create a
    lookup type "Site column" to look up the value from the department list, then all sub-sites can use this lookup type site column created in top level site.
    Thanks 
    Daniel Yang
    TechNet Community Support

  • Option to download all the reports in a page

    Hi All,
    I have a requirement like this.I have a page on my dashboard.In that page i have 4 reports.Is there any option to download all the reports in the page at a time or any workaroungd for this.
    Thanks,
    chandra

    Hi,
    You can download all the reports in the same dashboard at a time.
    1.Add a text to the dashboard at the end of the dashboard.
    If you want download in a PDF format then Add this code to Text
    open(<) a href="give ur dashboard path here"&Action=Download&Format=pdf"(>)DownloadPDF(close tag</a>)
    If you want download in a Excel format then Add this code to Text
    open(<)a href="give ur dashboard path here&Action=print&Format=excel2000">Excel 2000(close tag</a>)
    HTML code will be like this
    open A tag href="path&Action=download&Format=pdf/excel2000">
    Assign text(Download PDF/Excel)
    close A tag
    Note:Remove the "(" and")" in the HTML code
    mark if helpful/correct...
    thanks,
    prassu

  • How does one view all scheduled reports?

    I am scheduling 12 reports to run monthly. I don't find any view in which to see all of my scheduled reports, in order to verify  success (or failure) of last instance run, to delete or modify a report's schedule, etc.
    I also see no such "I am scheduled" indication or view on individual reports.

    Hi Randy,
    To add to John's response, you would be able to get the list of all schedules, through the
    1. Instance manager. Log on to CMC and go to instance manager to see all your report schedules.
    2. You can always navigate to a reports history to view its instances.
    3. Run the below query in the Query Builder (AdminTools) application to get the list of schedules
    SELECT SI_ID,SI_NAME,SI_PARENTID FROM CI_INFOOBJECTS WHERE SI_INSTANCE=1
    The above query would bring you 1000 results of all the report instances in the CMS database, irrespective of the kind of the report.
    You can fine tune your query as per your requirement if you need to get the instances of particular report. Below is the query to get instances for a particular report
    SELECT SI_ID,SI_NAME FROM CI_INFOOBJECTS WHERE SI_PARENTID=<ReportId for which you need to get the instances> AND SI_INSTANCE=1
    4. By using BusinessObjects SDKs. For working with BO SDKs, you would need to be familiar with the 3rd option above as through the code you would be executing similar queries to CMS database to get the results in your application.
    Regarding your query 'We want to have the ability to let any users go to one page/or click a link in webi and the page would show all of that user's scheduled reports in one single list where they can view and edit the report's schedule.. I wonder if that is possible to achieve'
    This is surely possible using the BusinessObjects sdks. For more queries regarding it, you would probably have to post your questions in the java sdks space. Below is the link for the same.
    http://scn.sap.com/community/bi-platform/java-sdk
    Thanks,
    Prithvi

Maybe you are looking for

  • Sending email using system default mail client on linux and Mac

    Want to send e-mail using defalut mail client of Linux, Mac OSX, others.

  • RSS Feeds in G6

    Dose anyone know what happan to XML Source Portlet in G6? How do I do RSS feeds in G6?

  • My Creative Zen Nano Plus bro

    my Creative Zen Nano Plus mp3 player stopped working after i dropped the mechanical part. When I checked it, I didn't see any chip marks or anything, but still it won't work. Can anyone help me? I'll post up pictures if u need me too, and I'll show h

  • Server 2012 HyperV woth Nvidia Quadro 4000

    Hi i am looking for a server, where we can use several HyperV's and we want to put in the server a Nvidia Quadro 4000 to add some graphic performance. so my question is whether it will work or not thank u in advance marco --cacciu--

  • Getting row count of file into table column

    Hi experts, I want to insert the row count of the file into a table column for generating a summary file containing the detials of all the files generated for the day along with the row count and also for audit purpose. My design is to create table i