Populating a authorisation object at runtime...

Hi,
how to populate a authorisation object at runtime? is it possible to have a variable etc that can be populated a runtime?
I have a object zsales_off which has different values for different users. i need to create separate roles just to have different values for sales office for different users. i would like to avoid this by having a single role with the zsales_off getting populated at runtime.
Details steps with code will be appreciated.
thank you.

Hello AHP,
i am not still very clear about the detailed steps to be carried out as i am a novice in abap.
i have created the authorisation variable and am using it in the query. if i manually assign values for sales office in the role, it is working fine.
i want to assign values at run time. i am confused with the process as such.
few doubts like:
1> the variable should be of "authorisation" processing type or "customer exit" processing type.
2>what to use I_step=0 or I_step =1? how to use? where to use?
3>to write a abap code or use a func module, which one? how to use.
any example(like in my case different sales office values for diffrent users) with DETAILED STEPS & CODE would be appreciated.
also i need to have multiple single values for each user(but not interval).
Please help.

Similar Messages

  • SRM 7.0: Authorisation object? Aliases for services in java portal?

    Here's how we did in old SRM 5.0 system (the old and working scenaio):
    In SRM 5.0 we employed S_ICF object to determine, whether a particular user who has just logged in to a system via web using a particular alias - is authorised to use this service.
    We want external and internal users to use different ways to get into system. We have two aliases:
    for internal users: http://srm5.domain.com/srmint
    for external users: http://srm5.domain.com/srmext
    We make aliases using transaction SICF:
    /srmext
    /srmint
    to service /default_host/sap/bc/gui/sap/its/bbpstart
    For alias /srmext we set field  SAP Authoriz. = EXT.
    For alias /srmint we set field  SAP Authoriz. = INT.
    We make 2 roles, both containing just a S_ICF auth object with differend values of field ICF_VALUE, an appropriate role to a user. If a particular user logs in to the system using an alias matching to the authorization value set in his role, he gets in, otherwise he gets an error upon logon. So that his logon is only successful if he used the right alias in URL (provided correct login name and password of course).
    Question. How do we apply similar scenario in new SRM7?
    Is there an authorisation object for java portal in SRM 7.0 - similar to S_ICF object for ABAP portal in SRM 5.0?
    Is it possible and how to make an aliases to java portal, or otherwise automatically detrermine at runtime upon logon, which way (which URL or using some parameter in address line) the user has logged in?

    This question has been answered by the following blog:
    /people/ulli.hoffmann2/blog/2009/10/07/srm-70-running-it-without-the-portal

  • How do I create multiple objects during runtime?

    I don't know how to create multiple objects during runtime, here's my problem:
    I get a String as input. Then I create an object called newobject. I put the object in a hashtable with the above string as key.
    Then comes the problem, in order to create a new object, I have to rerun the same class, which uses the same name (newobject) to create a 2nd object. Now my hashtable doesn't reference to my 1st object anymore...
    Is there anyway I can fill up the hashtable with different objects, and make each key point to each object it was supposed to?
    For those who want to see a bit of the program:
    public class PlayBalloon{
    public Hashtable ht = new Hashtable();
    for(){
    Balloon pB = newBalloon;
    newBalloon=new Balloon(pB);
    ht.put("Some input from user", newBalloon);
    for(){
    ht.get(s).draw;<= s=string, draw=own meth. in Balloon
    }

    I think i can see the problem that you are having. You have, in effect, duplicate keys in your hashtable - ie, two strings used as keys with the same name.
    The way that a hashtable works is as follows...
    When you ask for a value that is mapped to a key it will go through the table and return the first occurence it finds of the key you asked for. It does this by using the equals() method of whatever object the key is (in your case it is a String).
    If you cant use different Strings for your keys in your hashtable then i would consider writing an ObjectNameKey class which contains the String value that you are trying to put in the hashtable and an occurrence number/index or something to make it unique. Remember to override the equals method in your ObjectNameKey object or else the hash lookup will not work. For example
    class ObjectNameKey {
        private String name;
        private int occurence;
        public ObjectNameKey(String name, int occ) {
            this.name = name;
            this.occurence = occ;
        public String getName() {
            return name;
        public String getOccur() {
            return occurence;
        public boolean equals(Object o) {
            if (!(o instanceof ObjectNameKey)) {
                return false;
            ObjectNameKey onk = (ObjectNameKey)o;
            if (onk.getName().equals(name) && onk.getOccur() == occurence) return true;
            return false;

  • How to create a text object at runtime?

    Hi,
    I am using crystal reports for visual studio 2010 and using c# to programming.
    I need to create  a text object in a specific section like section 2. and also I need to control the text object's position and text.
    I tried to move a object like:
    reportDocument1.ReportDefinition.Sections[j].ReportObjects<i>.Left = 0x8760;
    but object's position doesn't change at all.
    How can I do these (create a text object and change a object postion)?
    Thanks

    Hi Don,
    Thank you.
    I have downloaded a RAS ( report application Server ) sample.
    The sample uses the Business Objects Enterprise XI release 2. I am using win 7 and crystal reports for vs2010. Can I use this version of crystal reports to create  a text object at runtime? If not, what is the lowest version I have to purchase to achieve what I want?
    Basicly I need following capabilities at runtime:
    1) craete text objects, line objects, image objects.
    2) change text object, line object and image object positions, sizes, values of text object. If can I like to be able to change font as well.
    3) supress objects, sections. 
    4) change section's height

  • Custom Annotation :: inject object at runtime

    I would like develop a custom annotation to inject object at runtime. The annotation will work as follows
    1. develop ValidatorClass annotation on type.
    2. If annotated on a type object will be created at runtime and injected to the object. e.g. in class A it will inject validatorimpl object to vald object/
    Please let me know how to implement that.
    package com.debopam.validate
    public interface validator{
    public String validate();
    package com.debopam.validate
    public class validatorimpl implements validator{
    public String validate(){
       return "true";
    pckage com.debopam
    public class A{
    @ValidatorClass(name="com.debopam.validate.validatorimpl")
    validator vald;
    }

    yogeshd,
    It might be that the .class file for the annotation that you are compiling against is the one you have given us the source code for above, but when you run the program, the class file for the annotation is not the same, and is one that was compiled before you added the static field.
    This can happen if your classpath is wrong. (and would explain why the problem only occurs sometimes - because it is only failing when the classpath is wrong).
    If you run the following program with the Fully qualified name of your annotation as the argument, and with the same classpath as you run your program, it can tell you where it is finding the annotation class file. Check that this is the same one that you are compiling to.
    class WhereLoaded {
        public static void main(String[] args) {
            Class theClass=null;
            if(args.length > 0) {
                try {
                    theClass=Class.forName(args[0]);
                } catch (Exception e) {
                    e.printStackTrace();
                    theClass=Object.class;
            } else {
                System.out.println(
                    "The first argument should be a fully qualified class name," +
                    " using java.lang.Object instead"
                theClass=Object.class;
            String name=theClass.getName();
            name=name.substring(name.lastIndexOf(".")+1) + ".class";
            System.out.println(name + " loaded from " + theClass.getResource(name));
    }regards
    Bruce

  • Authorisation object for "PO text in the material master"

    Hi,
    My requirement is as below:
    "All users can see the Purchase Order Text as usual, but only a few users should be allowed to create / change the PO Long Text.
    For other users, the same should appear in display mode only (both in creation & in change mode, MM01 & MM02)."
    Please let me know, How to map this.
    As per my knowledge thsi is possible only thru authorisation. But I want to know what is the authorisation object for "PO text in the material master" (Pl note that only for PO text in the material master field). we want control on "PO text of material master"
    Regards.
    Chinna

    Hi,
    The authorisation object is "M_MATE_MAT", pl check
    Regards
    Merwyn

  • Authorisation object for Supplier field in Shopping Cart

    Hi Team,
    In Shopping Cart Source of Supply tab field Supplier is not getting displayed as it in hidden for some users, sor those users an authorisation object has to be provided to display the Supplier field.
    Can you please Suggest me the authorisation object to be used to display Supplier field in Source of Supply tab of Shopping Cart.
    Thanks & Regards,
    Goutam Kolluru.

    Question is solved.
    Answer can be find in bellow link
    Field Supplier is not displaying in Shopping Cart with Std Roles SRM 7.0

  • Request for info regarding MAC address population in computer objects

     
    Hi,
    I am trying to determine how MAC address information is populated in computer objects. I had assumed initially that the hardware scan would be used, but observation shows this information
    to be obtained prior to any hardware inventory.
    I have laptops that are primarily connected via VPN, and before long their objects lose the internal network interface's MAC address. When I try to rebuild them, they fail to PXE boot. I have
    found that importing a CSV of host / MAC / SMBIOD GUID will update the object (rather than having to delete and recreate it) which works temporarily. The MAC will eventually disappear, and the device fail to PXE boot.
    I have thousands of these devices to manage, and it is already difficult enough having a CAS and two primaries (the windows Deployment Service on a DP only cares about devices in the DPs primary
    site, and so devices that move site are a real pain already, try finding that anywhere in the OSD reference documents!)
    I'm assuming now that this information is pulled from the actual client-server connection, and therefore is dynamic(ish), like IP information. If this is the case, more detail around that process,
    where to find evidence of  that process occurring would be very useful.

    The MAC is updated by hardware inventory and heartbeat discovery. 
    Torsten Meringer | http://www.mssccmfaq.de

  • Authorisation object F_T011 not linked correctly to authorization

    Hello Everybody,
    I get an authorisation problem, I hope to be in the correct forum.
    I am about to adapt some rules for Fi user. When using transaction code S_ALR_87012284, I get an error message about a missing authorisation.
    After running SU53, I see that the object F_T011, with the activity 03 and the statement version I required are missing.
    In PFCG, I added manually in my rule these missing authorisation. I generated the rule but the problem is still happening. In debug mode I see effectively that the "authority-check" on this authorisation object F_T011 is missing.
    In looking in PFCG, I see that my authorisation object F-T011 was added to the authorisation T-BT19013100. But if I run SUIM to see the authorisation object presents in the authorisation T-BT19013100, I see all the other object but not object F_T011.
    It seems that a link or something like that is missing between the authorisation and the authorisation object.
    Does someone have an idea ?
    If someone want more details or screenshots of PFCG or SUIM to better see what I explained, don't hesitate to answer.
    Thanks in advance,
    Regards
    Céline JOMARD

    I find the solution : It seems that I needed to regenerate after transport the rule in the other client.

  • Restricted Backflush Authorisation Object C_BFLS_L  is NOT working!

    Hi,
    We are using the IS-MILL version of SAP 4.7. We are trying to restrict the authorisation of users for Tcode MFBF only to a few. As suggested in the SPRO help files we tried useing the 'Authorisation Object' [bC_BFLS_L]</b> Restricted Backflush but it is giving an error message <b>"This object is out-of-date and is no longer checked from Release 4.6A".</b>
    KINDLY ADVISE ON WHICH AUTHORISATION OBJECT IS TO BE USED and also HOW TO RESTRICT USAGE OF MFBF ONLY TO A FEW USERS if this does not work!
    <u>With Best Regards,</u>
    <b>V.NAGARAJ,</b>

    Hi Enrico,
    Thanks a ton for your advice. We did check the authorisation object mentioned by you <b>(C_BFLS)</b>. But the following message is displayed -<b> "This object is out of date and is no longer checked from 4.6A"</b>. KINDLY ADVISE, PLEASE!

  • Object with runtime number '0' not defined

    Hello,
    We have a problem in one step of the workflow we created for sales orders.
    The following are the errors:
    EXECUTE_METHOD_OBJECT_SYNC -> Object with runtime number '0' not defined
    EXECUTE_METHOD_BOR -> Object with runtime number '0' not defined
    EXECUTE_METHOD_BOR -> Object with runtime number '0' not defined
    Object with runtime number '0' not defined
    Message no. OL808
    We have already seen all the binds and correct.
    Thanks!
    Ariel Prebianca

    Associated message no with message 'Object with runtime number '0' not defined' is OL 808.
    Check Note 1322173 - Wrong error msg raised in BP_JOB_READ of interrupt process. It may not directly solve the issue but it will help you show correct message.

  • Authorisation Object for Payment Block Filed(ZLSPR) in FB02

    Hi,
    I want to restrict the authorisation to modify the field Payment Block to some of the users only in FB02 Tcode.
    How can i achieve it.
    My basis team said it can help me if i can give the authorisation Object  for the same they can restrict the authorisation object to limited users.
    regards
    Jaya

    Hi Mallikarjun,
    The authorisation Object given is related to Excise invoice ? So, please let me know how this would help in restricting modification of payment block filed in FB02?
    regards
    jaya

  • Authorisation object for Purchase order release codes

    Hi,
    Can anyone let me know the authorisation object to be used for the PO release codes to be assigned in the ME28 and ME29N for the users.

    Hi,
    Release code and groups detials for the PO authorisation is as follows.
    M_EINK_FRG Release Code and Group (Purchasing)
    FRGCO      Release code
    M_EINK_FRG Release Code and Group (Purchasing)
    FRGGR      Release group
    Regards,
    Sakthi

  • HOW TO CREATE AUTHORISATION OBJECT IN ABAP PLEASE HELP

    HOW TO CREATE AUTHORISATION OBJECT IN ABAP PLEASE HELP

    You can Use Transaction code: RSSM
    Check the following link
    http://www.sap-img.com/bc042.htm
    In SU20 you will have to create a CLass.
    After saving this double click this and you will taken to another screen where you can create Auth Object.
    You can create authorization fields in SU21 or use existing ones.
    You can also do above thru tcode SE80 Edit -> Other Object. In one the tabs you will see Auth. Objects .

  • Authorisation Object for PFTC

    Good day buddies.
    We are trying to find authorisation object that used by transaction PFTC.
    Users is able to see workflow template (object type WS, WF) but they are unable to display workflow task (object type TS, T).
    The SU53 doesn't produce anything
    From ST01, I could not find red color (RC not equal 0) under "AUTH" Type column.
    In the user's authorisation profile, we giving authorisation object "PLOG"
    Infotype : *
    Object Type: T, TS, WF, WS
    Plan version: *
    Function Code: *
    Subtype: *
    Is there any transaction code that I can trace? Or perhaps somebody having similar problem before, I am really appreciate it if one of you can share your problem solving

    Hi,
    Got to SU24 and give the transaction code PFTC and execute.Click on Display Check Indicator  ..It will give you the list of ahtuorization objects .
    Regards,
    Phani

Maybe you are looking for