User authorization check in report

Hi All,
I want check user name in report while event (at user-command) trigger.
Have 2 buttons in report A.Process B. Display.
any user can press display button. but some of the user only can press Process button.
how can I do this using authorization objetcs.
I donot want to check by sy-uname, because I donot want to hardcode user names.
Thanks & Regards
Gupta......

Hi,
You need to ask to BASIS guy to create the authorization object.
Whenever user clicks the button PROCESS in PAI of that screen you need to write the authority check statement.
For example if i need to validate the country for the particular user :
MODULE user_command_9000 INPUT.
*Authority Check for Country*
AUTHORITY-CHECK OBJECT 'ZO9_CNTRY'
    ID 'COUNTRY' FIELD g_soldto_country.
if sy-subrc ne 0.
     clear g_ok_code.
     message E001(ZMESSAGE_AS) with g_soldto_country.
endif.
I hope this will be useful to you.
Plz reward if useful.
Thanks,
Dhanashri

Similar Messages

  • Re: Setting Authorization Check in Report Writer

    Hi,
    In ABAP Query or ABAP customized program, it is possible to set authorization object checking.
    In Report Writer, how can I do it?
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Thanks
    Edited by: Alvaro Tejada Galindo on Dec 26, 2008 10:59 AM

    Hi Colin,
    I would like to suggest,
    Creating an Authorization object & then using it in the report program is the preffered way.
    I would like to suggest a couple of references, quite similar to your issue,
    [SDN - Reference for using authorization checks at the report level|User authorisation check in ABAP-HR program;
    [SAP HELP - Standard Reference for Programming Autorization checks|http://help.sap.com/saphelp_nw04/helpdata/en/52/6712ac439b11d1896f0000e8322d00/frameset.htm]
    [SAP HELP - Standard Reference for Authorization checks|http://help.sap.com/saphelp_nw04s/helpdata/en/fc/eb3ba5358411d1829f0000e829fbfe/frameset.htm]
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Query : Authorization check for reports in report writer

    Hello,
    I want to secure reports created form report writer.
    How can I give separate Authorization to users, so that they are restricted only to display or for changing or for creating.
    Thank you in advance.

    Hi Naveen,
    Here is wonderful thread which can solve your issue.
    Authorization in my report
    Regards,
    Ganesh
    ****Reward points if Helpful*****

  • How to do Role and Authorization check in report program

    Hi Friends,
    Please provide me your guidance on how to add or give coding to check role authorisation of a particular field, input from selection screen.
    My requirement is,
    If the Fund center filed in my select option parameter has been filled, then I have to check the role authoriszation(which was created already) in the At selection-screen event to check and give access to the user to run the process further.
    Say my Fund center is "SH'
    and my Role authorisation to be settled to all users 'ZMM_BXI'.
    How to implement in report program, Please advise.
    Thanks & Regards
    Babu.

    Sorry SDN,
    Posted in a wrong Forum page.
    Please excuse.

  • How to give user authorizations for a Program or an ICF service

    Hi,
       1)How to give user authorizations for a report program or an ICF service.
       2)How to create an user authorization object.
    Regards,
    Vinay.

    check this online help for more info on authorization object creation
    http://help.sap.com/saphelp_nw04/helpdata/en/52/67168c439b11d1896f0000e8322d00/frameset.htm
    for question no1.
    ICF - you either maintain the auth obj relevant at the icf service level itself or you can code call authority object and block access
    for abap programs:
    you maintain auth object at the tcode or code the call authority object within the program
    Regards
    Raja

  • Check user role/authorization during Web report run-time?

    Hello again,
    I ran into a problem. I need to check <b>user's authorization during webtemplate execution (run-time)</b>. I want to have a possibility to allow in one web template extra functionality (through template menu) to key users. Normal users, who are running same report, should not have this extra menu visible.
    Is it possible to check user authorizations or roles during web-template run-time?
    Thank you!
    Vitaliy

    Hi Harinam,
    From my logic your are right.
    The restriction is in two new roles (Requestor and Approver role).
    But ->
    If I assign my approver role the selection possiblities of the request types during the AR creation is restricted and the AR search function does not work.
    If I assign my requestor role the restriction of the request type is not there, but the AR search function works again. :-(
    If I assign the original approver role of sap I have the same behavoiur for the AR search.
    Both new roles are a 1:1 copy of the SAP standard roles - > Exception, ristriction on request type 'Execption Approval' is not displ.
    I have execute ST01 now. If I try to open the log, the system syst "No records that correspond to these search criteria".
    But I have found something else.
    The problem appears only if I search for Process ID "Access Request Approval Workflow".
    If I select other Process ID such as "Control Assignment Approval Workflow" or "Fire Fighter Log Report Review Workflow", everything works fine.
    Very strange!
    BR
    Melanie

  • Create authorization check for a report

    Hi,
    I need to create an authorization check for a report. It means that I need to restrict the usage of the report to couple of users ( 'USER1' and 'USER2' ). How can I do that? I did read through a lot of threads regarding this piece got a bit confused and stuck while creating the authorization object.
    Say the report name is ZHR_TIMEABC.
    Can anyone explain how to create an authorization object and how are they tied to the object and call them in the abap code?
    Thanks in advance,
    VG

    Hi,
    Thanks. Here is my understanding, S_C_FUNCT calls a system generated function module to make an authority check. So, if different users say USER1 and USER2 have different authroization levels, defined in their user profile, just adding this piece code will take care of authroization check for the program OR do I need to take care of something else?
    If so, when do we need to create the authorization objects using SU20 and assign the group and follo this process? When do we use this approach ( lot of threads on authority check have mentioned this procedure)?
    Your inputs will be helpful to understand this concept.
    Thanks,
    VG

  • Need a Query/User Authorization Report

    Hello All,
    I am looking for tables, function modules, programs etc that will aid in building a report that will show every query and which users have access to them.
    This program I am wanting to build will serve as a periodic "reality check" on our authorizations.
    I am not sure about the tables/programs etc involved in interpreting the user's roles/profiles.
    My current thinking is that there may be a function module or program that is being by the BEx tools that comes up with the list of queries that the user has access to when they first select the query they want to run. Getting a hold of that would be very beneficial.
    Any ideas?

    Hi,
    Refer the below links
    www.das.state.ne.us/nis/security/docs/authorized_agent_manual.pdf
    script.wareseeker.com/PHP/uas-user-authorization-system.zip/18033
    eda.ogden.disa.mil/users_guide/trainMaterial/GeneralAdminMaint.ppt
    www.umaryland.edu/eumb/Documents/user_aff.pdf
    www.mariewagener.de/node/98
    https://wiki.sdn.sap.com/wiki/display/BI/AuthorizationinSAPNWBI?focusedCommentId=78053701
    www.bi-expertonline.com/downloads/Smith.doc
    https://aisweb.wustl.edu/hr/benefits.nsf/pages/files/$file/hrmssecurityauth07.pdf
    www.sapdev.co.uk/sap-bw/queryexit.htm
    naresh

  • Missing authorization check on the IM Reports

    Hi,
    We use RAIMINFO reports (S_ALR_87012805, S_ALR_87012806 u2026 ) to display
    structure and values in Ferrero Spa investment program
    On the initial screen, the value types which have to be output, are
    determined by the authorization checks to be carried out .
    For example in case that an user decides to display the plan or budget
    references to program position, the user has to have the authorizations
    on the Persons responsible (A_IMPR_VER). For us this is OK because we
    define responsibilities through A_IMPR_VER. But if user decides to
    display the appropriation request or measures and he doesnu2019t indicates
    the program position it seems that anything on the A_IMPR_VER will be
    performed. We need that the check on A_IMPR_VER will be performed always(for all objects: measures, appropriation request ).
    We think this is a function missing in RAIMINFO and in all the IM
    reports.
    Could you help us to solve this problem?
    Thanks and best regards,

    Hi,
    If you want use check box in crystal., then you can do this by writing piece of code.
    please try for
    If {Table.Field} = True Then
    'Display the checkbox of your choice here
    Formula = Chr(254).
    thanks.
    Bala

  • Authorization checked for infoObjects even though not relevant to report

    Hello guys,
    I am facing a problem in BI 7.0 authorization checks.
    For a given report the BI team has placed a restriction in the query only for infoObject 0Comp_code (company code) and 0SOLD_TO (sold to party). Accordingly i have created authorization in RSECADMIN and assigned to role--> user.
    But when the user runs the report, he gets as authorization error and during analysis in RSECADMIN i see that "list of Authorization relevant charecteristics(infoObjects) for info provider xxxx" contain other infoObjects as well.
    Is it a case where infoObjects can be made authorization relevant for the whole  info provider eg-ZSD_M42" (where this is a multi provider)apart from being checked for specific reports eg- ZSD_M42_Q0001?
    How do i get around this problem?
    Regards,
    Prashant

    Hi Prashanth,
    What Zaheer said was exactly correct.Make sure all the Auth relevant Chaaracteristics of an Infoprovider  are properly authorized through your Analysis Authorization.Suppose if you don't need security on other Characteristics of an InfoProvider give * in your AA which will byepass check on that particular Auth relevant Characteristics..
    More over,See to that all the key figures are properly authorized as all the keyfigures are by default auth relevant in BI.
    Cheers,,
    Ramkumar C

  • Report parameters - user authorization

    Hi all -
    We are trying to limit the ways a particular user can run a report (with a standard selection screen 1000).  For example, the report has a parameter for company code on the selection screen - but the user should only be allowed to run the report for ONE particular company code.  We can obviously create a transaction code that starts with a particular variant in order that the appropriate data is populated.  However, we want to limit the user's access to other variants available to that report.  Is there a way we can disable the "Get variant" button for a report selection screen? 
    If anybody has another suggestion as to how we can run a report where the user only has authorization to run with particular parameters, I would really appreciate hearing about it!
    Thanks -
    Abby

    Thanks, but unfortunately company code is just an example... there are other fields as well.  
    But I think I've found the solution...  limit the function code GET as shown below...
    DATA itab TYPE TABLE OF sy-ucomm.
    PARAMETERS test(10) TYPE c.
    AT SELECTION-SCREEN OUTPUT.
    APPEND: 'GET' TO itab.
    CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
    p_status = sy-pfkey
    TABLES
    p_exclude = itab.
    Thanks for the help!

  • Authorizations find and check in report Pgras

    Hi All,
    how to create a Authorizations for our programs,,,,,
    if authorizations are used in our report programs then how can we find used Authorizations ?
    Regards,
    Naresh.

    Hi Naresh,
    you are talking about the user authorized to use particular T-code / report / program right ?
    these things will done by the BASIS consultant, according to the client requirement you have to give the list of T-codes/reports/programs who are authorized and who are not authorized in the system.
    if you want more details please ask this discussion in the concerned area in SCN Basis.
    hope you understand the concept regarding the authorization of a report / program to a user.

  • Document search error in webshop(Error in authorization check: user unknow)

    Hi All
    actually we have implemented the document search functionality in webshop to access all the documents in webshop who have created order in the webshop.
    actually when i am logging into the portal with userid "skumar" after that there was role called "Document Search" when i click that document search role then the document search will be opened, based on the selections in the selection criteria then the documents will be displayed generally.
    actually come to my error when i select in the selection criteria "order acknowledgement" and i select the one more column called "period" after that i click the search button then i am getting the error as follows.
    <b>Error in authorization check: user unknown.</b>
    Can you please help me where to check the authorizations in the system for accessing the documents.
    Regards
    Sunil

    Hi Sunil generally this kind of error will occur when you choose acknoledgement
    for Future Periods,eventhough input is past date if the same problem occurs you should check for Su05 Internet USer authoriasations
    Reward if helpful
    Venkat

  • Ultiroute says "Check user authorization"

    My Ultiroute has suddenly started giving me a "Please check your User Authorization" error message when I try to route a board. Ultiboard runs fine, the internal rip-up router seems to be OK, but Ultiroute won't run any more. I can't find any way of dealing with this. The software is Ultiboard 2001 SP2.
    Thanks!

    Hello,
    You should be able to use the same Release Code if your hardware configuration hasn't changed; anyway if for some reason you have issues with this, just use the Online Release Code Generator to get a new code.
    Ultiboard/Ultiroute 2001 are products that we don't support anymore, therefore I won't be able to tell you what caused this error.
    Did the re-install work?
    Are you using a hardware dongle?
    Operating system?
    Ultiboard version (Personal, Pro)? 
    Regards,
    Fernando D.
    National Instruments

  • Authorization check on Z report

    Hello Experts,
    We had a requirement to develop a report which would combine the features of V.14 and V23 with some additional features like removing delivery blocks and billing blocks.
    We want to add some authorization checks so that some people are restricted to view information of only some sales organizations and some people like management will have a broader authorization to view details of multiple sales organizations.  How can we acheive this?
    For example in SU23 when we run our custom T code we do not see the authorization object which is used in the program. We are currently using VBAK_VKO in our program.
    Thanks and regards.
    ES.

    Hi,
    Adding to above replies, are you calling V.14 and V23 in your custom program or you created your own login in Z program? If standard tcodes are being called, make sure that appropriate restrictions are placed in SE97 tcode for the Z tcode.
    In SU24, you will have to add the object to the Z tcode. You will not see it automatically. But make sure that the authority check is there in program (can verify by a ST01 trace).
    As Anika said, you can create separate roles for each required sales organization.
    Thanks

Maybe you are looking for