How to give Authorization?

I have created a 'Z' application which consists of create, change and display User interface.Whenever the user selects craete all fields go editable, change will have some fields editable and display all uneditable.I used only one view and i handled all three modes using invisible and enable property.
Now i want to allow only certain users to access create and change but display for all users.How to give this kind of autorization in webdynpro????
Please explain me about authorization in webdynpro taking my scenario?

Hello,
I hope you are aware of authority checks in ABAP in general. In your scenario, what you can do is: create one context attribute IS_AUTHORIZED of type WDY_BOOLEAN.
And in WDDOINIT of the component controller or view controller,
do the authorization check using AUTHORITY-CHECK stmt and if the check fails i.e. sy-subrc is not equals to 0, then
set the attribute  IS_AUTHORIZED to false. Otherwise set it to true.
And you have to bind the enabled property of the buttons to this context attribute IS_AUTHORIZED.
Please refer to the following code sample:
    DATA lo_nd_selection_type TYPE REF TO if_wd_context_node.
    DATA lo_el_selection_type TYPE REF TO if_wd_context_element.
    lo_nd_selection_type = wd_context->get_child_node( name = wd_this->wdctx_flex_config ).
    lo_el_selection_type = lo_nd_selection_type->get_element( ).
  AUTHORITY-CHECK OBJECT <objectName>
  ID <name1> FIELD <f1>
  ID <name2> FIELD <f2>.
  IF sy-subrc <> 0.
* Prohibhit the user from modifying config
    lo_el_selection_type->set_attribute(
      name =  `IS_AUTHORIZED`
      value = abap_false ).
  ELSE.
    lo_el_selection_type->set_attribute(
      name =  `IS_AUTHORIZED`
      value = abap_true ).
  ENDIF.
Hope this helps!
Regards,
Srilatha

Similar Messages

  • How to give authorization for create and change particular Condition Type

    Hi...
       In my requirement is , Only one user can be authorized to create and change a particular condition type 'ZABC' in vk11 and vk12 .
    For remaining condition type can be used as in normal .
    How to do this ? How to give authorization for a particular user for particular condition type ?
    Plz guide me ..
    Thanks in advance .
    Deepa .

    Hi Deepa ,
    u can check A.Object V_KOND_VEA, in user profile u can assign condition type or tables.
    have a word with ur basis guy , so he can help u in better way.
    aand also ref FM SD_COND_AUTH_CHECK
    Regards
    Prabhu

  • How to give authorizations.

    Hello friends,
    I have i report which generates the smartform.
    And my requirement is, if the program is given to the end user,
    then he should be able to generate the report only for his plant.
    Please help me in this regard

    Hi Susimitha,
    Check the code below  .. Instead of BUKRS change to WERKS
    START-OF-SELECTION.
    FORM AUTHORIZATION.
    ** AUTHORIZATION VERIFICATION
      SELECT * FROM T001 WHERE BUKRS IN SBUKRS.
        AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
                    ID 'BUKRS' FIELD T001-BUKRS
                    ID 'ACTVT' FIELD '03'.
        IF SY-SUBRC EQ 0.
          BUKRS-SIGN = 'I'.
          BUKRS-OPTION = 'EQ'.
          BUKRS-LOW = T001-BUKRS.
          APPEND BUKRS.
          CLEAR BUKRS.
        ELSE.
          AFLAG = 'X'.
        ENDIF.
      ENDSELECT.
      IF AFLAG = 'X'.
        MESSAGE I004(ZMSG) WITH 'Output will get strict to the'
              'Authorisation of Company Level'.
      ENDIF.
      IF BUKRS[] IS INITIAL.
        MESSAGE I004(ZMSG) WITH 'Company Code Authorization not found'.
        STOP.
      ENDIF.
    ENDFORM.                    " authorization
    Reward points if my reply is useful
    ~Lakshmiraj~

  • 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

  • How do I authorize my computer? I can not find the "Authorize This Computer" option anywhere.

    PLEASE READ ALL EMAIL. ANYONE THAT CAN HELP WOULD BE GREATLY APPRECIATED. As you read through the emails, you will see that "C" the customer service person responds the same way. All the emails are from the same thread.  I would reply to his email, he would, I guess, copy and paste an answer, and the response is the same. He never pays attention to the previous emails. HELP PLEASE!!!
    This is very frustrating to me. If you read back through your emails, you state the SAME INFO 4 times. If you would read my email AND see thescreen shots attached you would see. Why do you continuously state the same info..(SEE RED HIGHLIGHTS BELOW).I NEED HELP ASAP TO GET THIS TAKEN CARE OF...Do you have any other info EXCEPT for what is listed below??????
    IT DOES NOT GIVE THE OPTION TO AUTHORIZE COMPUTER!
    I HAVE NOT CHANGED ACCOUNT NAME
    IT DOES NOT REPEATEDLY ASK TO AUTHORIZE COMPUTER BECAUSE IT DOES NOT GIVE THE OPTION TO START WITH.
    I TRIED EVERYTHING AT http://support. apple.com/kb/TS1389, 3 TIMES NOW. (ATHORIZING PURCHASES, HAVE THE CORRECT NAME, REMOVING THE SC INFO FOLDER).
    I NEED HELP! IS THERE A PHONE # I CAN CALL??? CAN THIS BE FORWARDED TO YOUR SUPERVISOR SINCE YOU ARE UNABLE TO HELP?
    From: iTunes Store <[email protected]>
    To:
    Sent: Sunday, January 13, 2013 5:00 PM
    Subject: Re: EL : (en_US) Connecting & Downloading; Follow-up:
    Dear
    Thank you for replying. It's C from iTunes Customer Support.
    Addressing your concern is really important for me. I will do my best to answer your question.
    S, if your computer is not currently authorized to play your account's purchases, when you try to play an iTunes Store purchase, the authorization dialog will appear. You will see the name of the account that purchased the item. If you've changed your account name, replace the old account name with the new name, then enter your password and click Authorize. This authorizes your computer to play the account's purchases.
    If you are repeatedly asked to authorize your computer to play your purchases, you may find this article helpful:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    If you still cannot authorize your computer, please include a screen shot of any error received, as well as any additional details about the error itself.
    Thank you for contacting the iTunes Store.
    Have a great day!
    Sincerely,
    C
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    I work Friday to Tuesday, 10:00 AM to 07:00 PM CST.
    Thank you for allowing me the opportunity to assist you.
    I do not get an error, I do not even get the authorization dialog. I have sent 2 screen shots, they are attached.
    When I try to play an iTunes store purchase, a bubble pops up and states that this computer is not authorized. It does not pop up account name or password. I have also completed everything stated in the http://support.apple.com/kb/TS1389  link.
    This is very frustrating.
    S
    From: iTunes Store <[email protected]>
    To:
    Sent: Friday, January 11, 2013 3:22 PM
    Subject: Re: EL : (en_US) Connecting & Downloading; Follow-up:
    Dear S,
    Thank you for replying. It's C from iTunes Customer Support.
    I understand that you have been unable to play some of your iTunes Store purchases. Addressing your concern is really important for me. I will do my best to answer your question.
    S, if your computer is not currently authorized to play your account's purchases, when you try to play an iTunes Store purchase, the authorization dialog will appear. You will see the name of the account that purchased the item. If you've changed your account name, replace the old account name with the new name, then enter your password and click Authorize. This authorizes your computer to play the account's purchases.
    If you are repeatedly asked to authorize your computer to play your purchases, you may find this article helpful:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    If you still cannot authorize your computer, please include a screen shot of any error received, as well as any additional details about the error itself.
    Thank you for contacting the iTunes Store.
    Have a great day!
    Sincerely,
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    I work Friday to Tuesday, 10:00 AM to 07:00 PM CST.
    Thank you for allowing me the opportunity to assist you.
    Please see the attached document.  I am unable to authorize computer.
    S
    From: iTunes Store <[email protected]>
    To:
    Sent: Saturday,
    January 5, 2013 5:36 AM
    Subject: Re: EL : (en_US) Connecting & Downloading; Follow-up:
    Dear S,
    Thank you for replying. It's C from iTunes Customer Support.
    S, I understand that you have been unable to play some of your iTunes Store purchases, and I'll be happy to help you with this.
    If your computer is not currently authorized to play your account's purchases, when you try to play an iTunes Store purchase, the authorization dialog will appear. You will see the name of the account that purchased the item. If you've changed your account name, replace the old account name with the new name, then enter your password and click Authorize. This authorizes your computer to play the account's purchases.
    If you are repeatedly asked to authorize your computer to play your purchases, you may find this article helpful:
    iTunes repeatedly prompts to authorize computer to play iTunes
    Store purchases
    http://support.apple.com/kb/TS1389
    If you still cannot authorize your computer, please
    include a screen shot of any error received, as well as any additional details about the error itself.
    Thank you for contacting the iTunes Store.
    Have a great day!
    Sincerely,
    C
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    I work from Tuesday-Saturday, 8.30 AM to 5.30 PM CST.
    Thank you for allowing me the opportunity to assist you.
    I try to play an iTunes store purchase, but it just gives the box that is shown in page 2. How can I authorize my computer?
    From: iTunes Store <[email protected]>
    To:
    Sent: Friday, January 4, 2013 1:47 AM
    Subject: Re: EL : (en_US) Connecting & Downloading;
    Follow-up:
    Dear S,
    Welcome to iTunes Store Customer Support. My name is C.
    I understand that you were unable to authorized your computer. I know how eager you must be to have this issue sorted out. I will be happy to resolve this concern today.
    S, if your computer is not currently authorized to play your account's purchases, when you try to play an iTunes Store purchase, the authorization dialog will appear. You will see the name of the account that purchased the item. If you've changed your account name, replace the old account name with the new name, then
    enter your password and click Authorize. This
    authorizes your computer to play the account's purchases.
    If you are repeatedly asked to authorize your computer to play your purchases, you may find this article helpful:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    If you still cannot authorize your computer, please include a screen shot of any error received, as well as any additional details about the error itself.
    Thank you for contacting the iTunes Store.
    Have a great day!
    Sincerely,
    C
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    I work from Tuesday-Saturday, 8.30 AM to 5.30 PM CST.
    Thank you for allowing me the opportunity to assist you.
    Details:
    I am trying to authorize my new computer. I do not see AUTHORIZE MY COMPUTER anywhere. I see COMPUTER AUTHORIZATIONS, but not an option to authorize.

    There's a couple of ways to get through to the authorisation controls in the 11.0.x versions.
    The control is still in the Store menu, but first (if you're using iTunes versions 11.0.x) you might need to bring up the menu bar to see the Store menu.
    If you're using 11.0.x, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:
    Then you'll find the control in the Store menu:
    Alternatively, if you don't want to bring up the menu bar, it's still possible to get into the authorise controls via nested menus accessible from the wee boxy icon. Here's a screenshot of where to find them:

  • How to create authorization in BI 7.0 objects

    Dear Friends,
    how to create authorization in BI 7.0 objects. Pls any body help. tghjis is morevhelpful for me
    Regards
    Ramana

    give the user name to whom you have to give the authorizations.
    maintain user then you can see the roles tab where you can assign the roles for the user.
    for these roles you can assign the authorization objects. when you double click on the roles you can get the maintenance of the role where you can edit or give the authorization objects for that role.
    some example for the authorization objects are:
    S_RS_ADMWB (Datawarehouse workbench-objects), S_RS_IOBJ(Datawarehouse workbench-Infoobject), S_RS_DS(Datawarehouse workbench-Datasoure for release greater than 3.X), S_RS_DTP(Datawarehouse workbench-DTP's) etc
    You can edit these authorization objects like providing them display or create or modifying authorizations
    Go through the below link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/659fa0a2-0a01-0010-b39c-8f92b19fbfea

  • Give  authorization object to fm

    Hi,
    How i can give  authorization object to new Fm ,
    i new in this topic .
    P.S. if i ask in wrong forum plz tell me where .
    Regards

    go to SU21
    press create dropdown and select Authorization Object
    give a name - Zxxxxx
    text - your text
    Field -  ACTVT
    press save, select your package, it will prompt to maintain the permitted values for ACTVT, select 01 and save
    in your code at the start of FM
    AUTHORITY-CHECK OBJECT Zxxx
                      ID 'ACTVT' FIELD '01'
    if sy-subrc ne 0.
        error.
    endif.
    so it will fail for anyone calling this FM w/o this object and activity in the profile. But w/o any security guy how owuld you assign it to correct users?

  • I can't give authorize my iPhone to use my iTunes store but still i can buy stuff through it...

    ive tried to give authorization in the store but it just dont recognizes it

    You should have a backup copy of your entire itunes library ( and everything else on your computer).
    iTunes: Back up your iTunes library by copying to an external hard ...
    How to back up your media in iTunes
    The Complete Guide to Backing Up your iTunes Library | iLounge ...

  • How to give a user just the acess to its order services/affectations ?

    Hello experts,
    Do you know how to give a user just the acess to its order services/affectations ?
    Thanks for your answer,
    Best regards,
    Alexandre Dupont

    For order services, contracts and activities set object CRM_ORD_OP as I said.
    For Ibase use CRM_IBASE but with this one it is not possible to set authorizations only for own ibases. Maybe there is some other object for ibases.
    Also for business partner there is no such authorization object to shown only own partners. You have 2 options. To play with object B_BUPA_GRP but that means you will have to maintain group for each responsible employee. Or you implement logic in badi BADI_CRM_BP_UIU_AUTHORITY.

  • How to set authorization to limint plant to craete reservation from IW32

    Please advice me how to set authorization to limit plant to create reservation from IW31 or IW32 (Maintenance Order).
    I set at M_MRES_WWA (authorization object) but it is not work.

    Hi consult.,
                      I am not very sure about the object you are using, but if it is correct(else serch for the correct object), then make a master role for the T-Codes IW31 and IW32.
    then make a drived role from the above made role, and assign the object(above searched object) in the object give the value as that of your plant, and activity as per the requirement.
    you can maintain as many derived roles as the no. of plants.
    hope it helps.
    regards,
    YK

  • How can I authorize my new computer (win7 prof 64bit) on ADE 3.0 (previous Win XP; ADE 2.0)?

    how can I authorize my new computer (win7 prof 64bit) on ADE 3.0 (previous Win XP; ADE 2.0)?

    Two things worth trying ..
    ~~~~~~~~~~~
    ~~~~~
    Sometimes ADE gets its registration/activation confused and in a semi-authorized state.
    Uninstalling and reinstalling does not help.
    Unfortunately, it often then gives misleading error messages about what is wrong.
    A common incorrect message informs you that the ID is already in use on another computer and cannot be reused.
    This can often be resolved by completely removing any authorization using ctrl-shift-D to the Library screen on ADE (cmd-shift-D if on Mac).
    Restart ADE, and then reauthorize with your (old) Adobe ID.
    In extreme cases on the mac, the following extra step has helped some people.  Navigate to /Users//Library/Application Support/Adobe/Digital Editions and drag the activation.dat file to the trash. If you are using 10.7, see Access hidden user library files | Mac OS 10.7 Lion. http://forums.adobe.com/thread/1265248?tstart=0
    ~~~~~~~~~~
    There are lots of bugs in ADE2.0.  Try replacing ADE2.0 with the older but more reliable v1.7.2.
    (You can have them both installed at once if you like.)
    Version 1.7.2, it is a little difficult to find, available on Adobe site for Windows and for Mac.
    http://helpx.adobe.com/digital-editions/kb/cant-install-digital-editions.html
    The forum software is sometimes corrupting the link above.  There shouldn't be a blank in 'editio ns.html'.  The following redirects to the same page: http://tinyurl.com/diged172

  • How to give an user permission to access centain Transformations?

    I would like to know how to give an user permission to access centain Transformations in one InfoArea only. I already limited the selection in one InfoArea now. I want users can only Display Transformations for all the InfoObjects under this InfoArea. Does anyone know the detail steps? Thanks!

    HI,
    are you working under Analysis Auth (BI7) or Reporting Auth (BW 3.X)?
    If you work with the new concept you can restrict your authorization by using theinfoobjet: 0TCAIFAREA.
    before you Add 0TCAIFAREA as an external hierarchy characteristic to 0INFOPROV also when you restrict your auth by infoprovider you can choose the infoarea hierarchy
    hope it help
    Regard's

  • How can i authorize music from one apple id acount to another

    how can i authorize music from one apple id acount to another? My IPhone 5 wont play my songs that were purches from my old apple id account

    timss22 wrote:
    how can i authorize music from one apple id acount to another?
    You cannot. iTunes purchases remain on the iTunes account they were purchased with.
    My IPhone 5 wont play my songs that were purches from my old apple id account
    So just upload them from iTunes.
    You have mulitple AppleIDs?
    Why?

  • My computer died and I have a new one. How do i Authorize my new computer to synch the content of my iPod?

    My computer died and I have a new one. How do i Authorize my new computer to synch the content of my iPod?

    Authorization
    iTunes Store- Authorize or deauthorize your Mac or PC.
    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.

  • I just downloaded iTunes on my new PC and all the music that I have purchased through ITunes that was backed up on the cloud won't play. It is telling I must authorize this computer before it play pre purchased music. how do I authorize my computer.

    I just downloaded iTunes on my new PC and all the music that I have purchased through ITunes that was backed up on the cloud won't play. It is telling me I must authorize this computer before it can play pre purchased music. how do I authorize my computer to play this music?
    Thank you for any assistance.

    Tigon's already got you covered here. But I'll chime in with some English localisation advice.
    There's a couple of ways to get through to the authorisation controls in the 11.0.x versions.
    The control is still in the Store menu, but first (if you're using iTunes versions 11.0.x) you might need to bring up the menu bar to see the Store menu.
    If you're using 11.0.x, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:
    Then you'll find the control in the Store menu:
    Alternatively, if you don't want to bring up the menu bar, it's still possible to get into the authorise controls via nested menus accessible from the wee boxy icon. Here's a screenshot of where to find them:

Maybe you are looking for

  • Missing codecs for Blackmagic HD Extreme?

    I just installed a new BM HD Extreme card. I installed the latest driver (6.3) I am running QT 7.2 and FCP 6.0.1 When I launch FCP it prompts me to select a Sequence Preset. The drop down window contains many Blackmagic options- but many others are m

  • Publish to DVD says it completes, does not write the ISO file in version 13.

    When I publish to DVD and select ISO it says it completes but it does not write the ISO file in version 13.

  • Problem for import & package

    Hi, I got a problem about the import and package , my problem is like that : I write 2 java files call Test.java (C:\..\test\GetAdd\Test.java) and Tambah.java(C:\..\test\tambah\Tambah.java) //Test.java package test.GetAdd; import test.tambah.*; publi

  • File Properties Length does not match rendered video clip

    I have Premiere Elements 8. I decided I did not want to use audio in some of my video files, so I unchecked audio in the Advanced tab given under the section in SHARE which indicates Presets, File Name, and Save in. I rendered a 720p file with audio

  • Slowness in the video's I view. The video is out of sync with the audio?

    When I'm on a website that displays video and audio, the two are not in sync with one another. This constantly happens. Whether I'm watching a music video on youtube, or watching a discussion on yahoo finance, the problem is always there. Can someone