Assign Authorization Object dynamically

Hi,
I just want to know through coding is it possible to assign authorization object to user based on some condition dynamically.
Its related to BP and in CRM 6.0
Pls provide some approach if its possible.
Thanks a lot.
Regards,
Shobhit

Shobhit,
Displaying authorization details would not be much of a problem. We can add a flag in the customer master and fetch the customers with the flag in the search result. I believe there is BADI to do that.
Once the customers are retrieved navigating to the account details should be standard procedure. It should make use of standard events to go to the BPHeadOverview screen.
But, the concern is whether or not there is authorization failure when we are trying to save the activity created using these flagged customers.
Regards
Prasenjit

Similar Messages

  • Assigning authorization through assigning authorization objects

    hi all,
    can anybody tell me the whole procedure for assigning authorizations by assigning authorization objects from the scratch along with the example with guide for assigned authorizaon using this method.b'coz this is the requirement of our organization.
    I mean to say assign authorization manually without assigning trnsaction codes.
    suggestion are always accepted.
    if you want to send me the documents then my email id is [email protected]
    thanks in advance,
    waiting for reply............
    hardik patel.

    hi kumar,
            thanks for your help.
            ok i got it and i agree that i can find the authorization object by your suggested way.
        now my point is that i find that this perticulat object is corresponding to this particular trnsaction code. now if i want to aloow only four transaction code out of all transaction codes belongs to that authorization objects. so, for this how can i maintain authorization for this authorization objects.
    It means on " Change authorization tab" it shows fields of that added authorization objects. so what values should i give to those fields so that i can allow only particular transaction codes which i want. so, how can i determine these values for allowing particular transaction codes, not all transaction codes. can you guide me regarding this?
    Please help me regarding this?
    thanks for your support,
    waiting for your reply...............
    Regards,
    Hardik Patel.

  • Programmatically assigning Authorization Objects to roles

    Hi there,
    I have created an authorisation object with eight fields. The fields control which parts of my application are accessible to the user. (Each field is one category, each category has several subcategories).
    What I want to do is the following:
    There shall be a custom authorization dialog, wherein the system administrator can configure the access of the application for a specific user.
    In plain text: I want to develop an interface which makes it possible to assign authorisation objects with specific values to a user or to an already existing role.
    Is there any functionality, that allows me to perform this assignment and regenerate the users profile?
    I already discovered, that the table UST12 contains the connection between the authorization profile of a role and an authorization object, as well as the assigned values. Anyhow, just to write new values to that table has no affect to the authorization when calling "authority-check object" in an ABAP report.
    Does anyone know, whether there are standard functions in the ERP System, that support the changing of authorization objects and the regeneration of roles?
    Thank you very much,
    Gregor
    Edited by: Gregor Bender on Mar 11, 2008 8:41 AM

    >
    Gregor Bender wrote:
    > I already discovered, that the table UST12 contains the connection between the authorization profile of a role and an authorization object, as well as the assigned values.
    Nope, sorry, it's not the connection but only one of the many.... Roles and profiles are stored in quite a lot of different tables so manipulating one table directly will hardly ever get you the desired situation. It may even lead to problems due to inconsistencies.
    For mass regenerating profiles there's transaction SUPC.
    For manipulating the contents of roles/profiles have a look at scripting with SECATT or LSMW in combination with PFCG.
    If you want to write code to add objects to roles you have to look at least in tables AGR_1250, AG_1251 and AGR_1252. The UST* tables are updated when generating profiles and/or comparing users.

  • Assign authorization objects to newly created transaction

    I have just created a new transaction YMM02 as a copy of MM02. When I create a role using PFCG and enter in the new transaction there are no authorization objects proposed. Do these come from the original transaction or can I assign them through a SAP transaction or via a table entry?
    Regards,
    Brian

    Hi Brian,
    that's transaction SU24.
    See also its documentation if needed : http://help.sap.com/saphelp_nw70/helpdata/en/52/671449439b11d1896f0000e8322d00/frameset.htm
    BR
    Sandra

  • Assigning authorization objects to transaction

    Hi All,
    While creating a new role using transaction PFCG, If i enter transaction SE38, i will get lot of authorization objects, fields where i can decide whether i should allow only display or change or create etc. But if i create my own transaction, then i will not get these authorization objects. Where should i assign there objects for my transactions.
    I tried to assign this in transaction se93, but that did not work.
    Thanks in advance.
    Best Regards,
    Surendra<b></b><b></b>

    TRY with SE97.
    and check the check box change mode and try running there you can change the authorizations..
    vijay

  • Assign authorization object to standard transaction (VA02)

    I've success to create an authorization object and assigned to va02. I also use su24 to check indicator for my customize object. There are reported that it is Check. I think it is activated. Then i access va02, but it still can access, I suppose i no have right to access the va02. What's wrong for my setting. Acutally, I no much ideas for the authorization object. Can you give me some advise. Thanks a lot.

    Hi Giri,
    You could (and probably should) specify the check in SU24, but this won't make the check happen.  The values in SU24 are used in transaction PFCG when a role is created that includes this transaction.
    To make the authorisation check at runtime you'll need to code a user exit or similar to check your new authorisation object.
    Regards,
    Nick

  • Assign authorization objects

    HI ,
    1. When i create new set of WS do i need to create to them authorization object ?
    2. if i create new set of users from scratch in the system and i want to provide to them one role that
    I create and contain for instance all the report and transaction that i want to provide,
    do i need to add to them another authorization objects ?
    3. if i create authorization object in the system how i add it to certain role ,i don't see these
    option in PFCG.
    Best Regards
    Michael

    HII,
    Yes u can aad  other authorization object to the existing role if the role needs it because user is unable to perform any task releated to it because of missing authorization object after seeing it in su53 because sometimes tcode assigned but corresponding authorization is not added by system automatically this creates prob for the user to perform task as far as adding up an authorization object u can added it  throught su24 or pfcg in pfcg u need to click on manuaally option u can added upto 8 authroziation objects and if u want to added it through su24 u click on add authorization object feild
    but never forget to save and generate the profile after adding authorization object and also do user comparsion and complete comparsion so this object gets added to the role
    byeeeeeeeeeeee
    takecare

  • How to assign authorization objects to a cube

    Hello,
    My cube includes 0profit_ctr which is marked as authorization relevant. Still in RSSM my cube is not included in the list of infocubes for an authorization object (zprofit) linked to 0profit_ctr. I'm therefore not able to enable that authorization object for my cube. I have a few ODSs which are included in the list. Why is my cube missing? Is there something I must do to include it, or is it a bug?
    When checking the infocube for authorization objects in RSSM this list is empty as well. I don't see any option to add authorization objects in that list.
    I have read the following document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b849e690-0201-0010-9b88-c00cca40736f
    I'm using BW 3.5.
    Regards,
    Christoffer

    Hi Christoffer,
    In RSSM  you will find a button  "Update Check Status ( Authorization Objects, Info providers) ". After this update you should find your cube in the list.
    Jaya

  • PO account assignment authorization object

    Dear Guru's,
    We want to restrict PO creation (ME21n) for certain Account assignment catagories (one for one particular plant and not system wide).
    Is there any Authorization oject for this using which we can restrict the creation?
    Kindly share your idea.
    Thanks and Best Regards,
    Mohan

    No. There isn't.
    We discussed this a couple of times over in the security forum. If you search there, you will find solutions that other boarders have applied (exits, etc.).

  • Authorization object  assigning to user profile

    Hi all,
      Wht are the steps involved in assigning authorization object S_GUI with activity 60 (S_GUI ACTVT=60) to the users profile.
    Thanks

    you can assign authorization profile to user through Role..
    goto PFCG, either create a new role or change an existing role(which the user has)
    go to authorization tab, change authorization, click manually button,
    add S_GUI and then click on values, select 60.. save the role, generate it..
    if it is new role that you have created, then go to SU01 - roles, add it.. save user..

  • Authorization object for Command Button

    Hi all,
    How can I create the Authorization object for command button which is on application server.
    if you do not have auth when you click on that command button, it should be say 'you dont have auth'.
    please help me in this.
    regards,
    Ajay reddy

    Hi,
    Tcode for Authorization Objects are,
    su20----> for defineing authorization field ,
    su21-----> for authorization class,
    su22------> for assignement authorization object
    To create an authorization object:
    1) Execute transaction SU21
    2) Double-click an Object Class to select a class that should contain
    your new auth object
    3) Click on CREATE (F5)
    4) (If creating custom field) - Click the 'Field Maintenance' button -->
    Click on CREATE (Shift+F1)
    5) Enter the Name for the New Authorization field and the corresponding
    Data Element and SAVE
    6) Confirm the Change Request data for the new Authorization Field
    7) Go back two screens (F3-->F3)
    8) Enter the Authorization field name and document the object:
    9) SAVE and ACTIVATE the documentation
    10) Save the new Authorization Object
    11) Confirm the change request data for the Authorization Object and
    EXIT SU21
    12) Finally, the SAP_ALL profile must be re-generated
    Regards,
    hema.

  • Is there any BAPI or FM to authorization object to user in ABAP program??

    Hi guys.
               My requirment is to assign  authorization object to user in ABAP program,is there any FM OR Bapi to do this?

    Hai  ,
    In order to do the authority check in the program ,   in your report at selection-screen event   you need to check for the corresponding authority output .
    example :
    T SELECTION-SCREEN ON p_carrid.
      IF p_carrid IS INITIAL.
        MESSAGE 'Please enter a value' TYPE 'E'.
      ENDIF.
      AUTHORITY-CHECK OBJECT 'S_CARRID'
                          ID 'CARRID' FIELD p_carrid
                          ID 'ACTVT'  FIELD '03'.
    Regards,
    K.VinayKumar

  • Authorization object P_ASRCONT

    Hi Experts,
    I want to assign authorization object P_ASRCONT to one user. Also I need to check the particular user has this authorization object P_ASRCONT or not.
    Can anybody help me on this?
    Thanks,
    Helps will be appreciated.

    Hi,
    Procedure for checking authorization object assigned to user:-
    T-code: SUIM --> roles -->roles by authrorization object
    Enter authorization object --> Execute
    Double click on roles --> Click on user
    Regards
    Sudheer

  • How to control the  authorization of IM05 through  authorization object

    Now we want to control the  authorization of IM05 through  authorization object C_PRPS_USR, but C_PRPS_USR is not assigned to tcode im05.How can we assign authorization object C_PRPS_USR to tcode im05? OR do we have any other method to obtain the same result?

    write a factory method that controls the number of instances for you:
    import java.util.List;
    import java.util.Arrays;
    public class Bar
       private static final int MAX_BARS = 5;
       private static int numBars = 0;
       private int id;
       public static void main(String [] args)
          try
             int numBars = ((args.length > 0) ? Integer.parseInt(args[0]) : MAX_BARS+1);
             Bar [] bars = new Bar[numBars];
             for (int i = 0; i < bars.length; ++i)
                bars[i] = Bar.create();
             System.out.println(Arrays.asList(bars));
          catch (Exception e)
             e.printStackTrace();
       private Bar() { this.id = numBars++; }
       public String toString() { return "I am bar number " + this.id; }
       public static Bar create()
          Bar nextBar = null;
          if (numBars < MAX_BARS)
             nextBar = new Bar();
          return nextBar;
    }%

  • PR05 authorization object

    Hi,
    Please tell me how can we find the authorization object for an tcode PR05.
    Problem is users are able to approve their own trips in PR05 T-code. for that i want necessary authorization objects and values.
    I need now for PR05 the authorization object.
    Thanks
    zeni

    Hi,
    Its no like finding the authorization object for an tcode PR05.
    You have to create an authorization for tcode PR05 and for creating this authorizations please follow the below steps
    Tcode for Authorization Objects are,
    su20----> for defineing authorization field ,
    su21-----> for authorization class,
    su22------> for assignement authorization object
    To create an authorization object:
    1) Execute transaction SU21
    2) Double-click an Object Class to select a class that should contain
    your new auth object
    3) Click on CREATE (F5)
    4) (If creating custom field) - Click the 'Field Maintenance' button -->
    Click on CREATE (Shift+F1)
    5) Enter the Name for the New Authorization field and the corresponding
    Data Element and SAVE
    6) Confirm the Change Request data for the new Authorization Field
    7) Go back two screens (F3-->F3)
    8) Enter the Authorization field name and document the object:
    9) SAVE and ACTIVATE the documentation
    10) Save the new Authorization Object
    11) Confirm the change request data for the Authorization Object and
    EXIT SU21
    12) Finally, the SAP_ALL profile must be re-generated
    Please reward points if it helps
    Thanks
    Vikranth

Maybe you are looking for

  • Lenovo G560 and windows 8.1

    Hi This question is related to a laptop (Lenovo G560) with "Intel HM55 chipset + Integrated Intel HD graphics w/ shared video memory". I wanted to know if windows 8.1 will run on it (At present it is running on windows 7 hom basic). The lenovo site d

  • Change the colour of the rectangle dynamically:

    Hi, I've some tiles in wpf application. (non clickable, drawn using Rectangle). I want to change the colour of the tile depending upon condition Ok, Warning, Error to the colour Blue, Yellow, Red respectively.  Can you please let me know how can I ac

  • Transfer of AUC?

    HI gurus, There is a scenario which has to be solved, I am transferring some costs from one WBS to another whose budget is maintained by IM program, and it has been periodically settled to an AUC , now the business wants to transfer the ongoing proje

  • Importing existing JFrame class into a new Java Studio Enterprise 8 project

    I have taken over the re-development of some old code, and have imported it into the Java Studio IDE. However, the help files seem to indicate that I cannot use the Form Editor to make changes to the existing JFrame object. It can only be used if you

  • Problem in refreshing popup

    ADF11g : I have problem in refreshing popup. On main page there is one table and in one column of that table i put commandImageLink .on click of that image i supposed to open one popup where i am displaying info result. on first click of that image i