How to Authorize thru coding

Dear All,
I wish to authorize only certain users to execute a report. I know it's an admin issue but can I achieve this through my ABAP code also?
Regards,
Alok.

Hi Alok,
For this you will have to create a authorization object and give it to ur basis team to  assign it to profiles of the user who shud be able to execute ur prog..
Next step is to check for authorzation in ur prog..This is goind to be very first line in ur START-OF-SELECTION.
Write following code
You program the authorization check using the ABAP statement AUTHORITY-CHECK.
<b>AUTHORITY-CHECK OBJECT 'S_UR_AUTHORY_OBJ'
                ID 'ACTVT'    FIELD '16'.
IF SY-SUBRC <> 0.
      MESSAGE E...
ENDIF.</b>
For more details check following SAP help link
<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/52/67167f439b11d1896f0000e8322d00/frameset.htm">Authorization Checks in Your Own Developments</a>
Hope this helps you...
Enjoy SAP.
Pankaj Singh

Similar Messages

  • Just got a new mac mini and I can't figure out how to authorize it. Help!

    Just got a new mac mini and cannot figure out how to authorize it.  Help!
    m

    Link your phone number and Apple ID for use with FaceTime and iMessage

  • How to modify the coding part of KE30 reports ?

    How to modify the coding part of KE30 reports ,
    so that I can be able to restrict report output based on sales office.
    I am unable to find out the program name also.
    Regards
    Anubhav

    >
    Venkat Reddy wrote:
    > Hi,
    >
    > If u want to know the program running for KE30 just go to SE93 and give KE30
    > and click on display you can see the program running for KE30 will be SAPMKCEE.
    > I think this is much simpler :-).
    >
    > Rather than change the standard report try to prepared your own that will be more
    > comfortable since it will be complex task to achieve editing the standard program.
    > Good Luck
    >
    > Regards
    > VEnk@
    >
    > Edited by: Venkat Reddy on Dec 11, 2009 4:52 PM
    Venkat,your answer is much simpler If the OP knows there is a tcode Se93, what if he/she does not know it?? 
    P.S: Just a thought.
    Regards.
    Vishwa.

  • How to authorize more than one device on my adobe digital editions Ebook reader

    I have a computer, iPhone and iPad, and can't read a downloaded ebook (EPUB) on more than one device  at a time. If I try to open the item on my Overdrive account with a device other than the one I originally used when I downloaded the ebokk,  it gives me an error code "Fullfill  2004. This license has already been fulfilled by another user".  When I contacted Overdrive Media  they explained that I need to contact Adobe to authorize my various devices to have access to my Overdrive account which utilizes Adobe digital editions 4.0
    Please provide info on how to authorize my additional devises to have access to downloaded e-books  on my overdrive account

    Please authorize your devices with same credentials in order to read the book across devices.
    thanks

  • Help! I just got a new MacBook and I cannot figure out how to authorize it to play my purchased iTunes music.

    Hi!
    I just got my new Macbook today (!!!) and I love it, but I can't figure out how to authorize this computer to play my purchased itunes music. I don't have any other computers authorized to play my purchased music, as I have de-authorized my previous computer. How do I authorize this new one? I know the FAQ section says to go to Store > Authorize computer, but I can't seem to find where this is located? I've never owned a Mac before.

    Silly me... I didn't realize that the top of the screen changes as you change windows (unlike windows computers). Thank you so much for the help. I really appreciate it!

  • HT1420 The instructions on how to authorize a computer need links. I can't find store menu and I can't find authorize this computer.

    Hi - Does someone know how to authorize a computer so it will play the songs you've bought from iTunes? I've wasted nearly two hours trying.  It all began when I tried to remove a previously authorized computer which broke down years ago.
    Step 1 - Log in with apple ID, go into account and click the deauthorize computers button (that's what they tell you to do if you can't connect the broken computer to deauthorize it).  I managed that. 
    Result - Now it says I have no authorized computers. Fair enough.  Except I'm trying to reauthorize the one and only working computer we own so it plays the music we've previously bought, and so we can use the iTunes store credit we still have.
    Step 2 - Try and reauthorize the working computer - the one I'm typing on - it was authorized earlier today - until I had to unauthorize it to remove the defunct computer  with that deauthorize all button.
    Anyway the instructions to authorize/reauthorize a computer say, "Go to Store menu - then authorize this computer. " Sounds simple!
    It's at this point I'm stuck - the instructions are insufficient for me.There are no links to redirect you to the correct place to authorize your computer. It just says to go to store and authorize this computer. When I press store it's connecting me to store but I can't find anything that says authorize this computer - I can just see album covers etc. On the right I can see our account but I can't find store menu or an authorize this computer button in that either. If I click on our account it says that we have no authorized devices or computers. I'm logged into our account with the correct apple ID - otherwise I wouldn't be able to read that we have no authorized computers would I? And I've logged in and out several times and tried to refresh the page.
    Could someone please send me a link to the Store menu so I can click on the correct page then hopefully reauthorize our previously authorized computer. We are using Windows 7, but I don't know what version of itunes - it's a fairly recent version though.
    I wish they would make removing and authorizing computers easier - can't they just put a button on the main screen or something?

    Ozfamily wrote:
    Anyway the instructions to authorize/reauthorize a computer say, "Go to Store menu - then authorize this computer. " Sounds simple!
    It's at this point I'm stuck - ...
    If using iTunes 11... See this Discussion...
    https://discussions.apple.com/thread/4631735?tstart=0

  • How to print hard-coded data in multiple language in sapscript.

    Hi All,
    How to print hard-coded data in multiple language in sap-script, here the requirement is when printing the output
    we can see the window heading, description which are mostly hard-coded here I want to print these in both language as fallows,
    Goods to be delivered: = Morada de Entrega:
    Total net value excl. tax = Valor Total (IVA não Incluído)
    Description = Descrição
    Item = linha
    here I want to print in both languages like----       Goods to be delivered:/ Morada de Entrega:
    and the above headings in English are hard-coded.
    Kindly suggest me on this.
    Thanks in advance.
    Arun.

    Hi Arun,
    Use Standard text ade those text elements. Then use those in SAP script using different languages.
    Regards,
    Amitava

  • How to authorize ebook reader in Adobe Digital Editions?

    I downloaded Adobe Digital Editions from the website so that I can borrow ebooks via the public library system.  I was able to authorize my computer, but can't figure out how to authorize by ebook reader (Kobo Touch) - without authorizing the device, I can't transfer the ebooks from my Mac to the Kobo Touch.  Any information on how to authorize the ebook reader would be appreciated!

    Assuming your reader is supported you need to have it connected via usb and turned on prior to launching Adobe Digital Editions.  Once you launch Adobe Digital Editions it will ask to authorize your device.
    If you have additional questions please post your inquiry to the Adobe Digital Editions forum.

  • How to authorize a new PC in itunes?

    how to authorize a new PC in itunes?

    Authorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.
    Also see, iTunes Store- Authorize or deauthorize your Mac or PC

  • Does anyone know how to authorize iCloud on the computer so that i can re-download things ?

    Does anyone know how to authorize iCloud on the computer so that i can re-download things ?

    Pages 5 now uses the system-level auto-correction in System Preferences > Keyboard > Text. Unfortunately, a lot of the options available in previous versions of Pages no longer exist.
    Leave feedback for the Pages team using the link in the Pages menu. Also leave feedback for Mavericks.

  • HT5622 I cant figure out how to authorize my office computer to download songs that I have purchased. A message saying I cant do it, but gives me no link to make it happen. Frustrating.Can someone help?

    I cant figure out how to authorize my office computer to download songs that I have purchased. A message saying I cant do it, but gives me no link to make it happen. Frustrating.Can someone help?

    If you're running iTunes 11 and you don't see the menus, press Control-B or go to the small icon with the arrow at the extreme upper left and select "Show Menu Bar":
    Apple for some inexplicable reason elected to hide the menus by default in the Windows version of iTunes 11.
    I doubt that this will address a download problem, though. You'll need to provide more details about that; what device you're attempting the download on, the exact error message, and other such pertinent information.
    Regards.

  • How i authorize my computer to download past purchases on it?

    how i authorize my computer to download past purchases on it?

    All you have to do is sign in to the apple store inside iTunes. If is doesn't show up automatically go to the Store menu > Authorize This Computer... You will have access to all of your purchases.

  • How to authorize my Mac

    I can not find how to authorize my Macbook Pro.  I do not find an add device anywhere

    iTunes Store: About authorization and deauthorization - http://support.apple.com/kb/HT1420
    Image of where this is in iTunes 11: https://discussions.apple.com/message/20585561

  • How do authorize computers

    I do not know how to authorize my computer to have my music allowed to play on my computer

    Authorization and Deauthorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.
    More On De-authorizing Computers (contributed by user John Galt)
    You can de-authorize individual computers, but only by using those computers. The only other option is to "de-authorize all" from your iTunes account.
      1. Open iTunes on a computer
      2. From the Store menu, select "View my Account..."
      3. Sign in with your Apple ID and password.
      4. Under "Computer Authorizations" select "De-authorize All".
      5. Authorize each computer you still have, as you may require.
    You may only do this once per year.
    After you "de-authorize all" your authorized computers, re-authorize each one as required.
    If you have de-authorized all computers and need to do it again, but your year has not elapsed, then contact: Apple - Support - iTunes - Contact Us.

  • How to authorize my computer to play itunes music

    I'm trying to authorize my music on my new laptop but it keeps on telling me that i have to authorize my computer im just wondering how i do this so i can listen to my music

    Authorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.
    Also see, iTunes Store- Authorize or deauthorize your Mac or PC

Maybe you are looking for