How to retrieve user defined attributes in Prepopulating a request dataset

Hi,
I have created couple of user defined attributes in user profile.
And I am tryting to develop a prepopulate adapter in a request dataset for a resource. I need to prepopulate request dataset based on the values of above said user defined attributes.
I tried to use tcResultSet result=UserOppsIntf.getSelfProfile(); in my pre-populate adapter but it is giving me only the following attributes and it is not giving any of my user defined attributes.
Users.Manager Key
Users.Manager Login
Users.Manager First Name
Users.Manager Last Name
Users.Password Warning Date
usr_locale
Users.Key
Users.Password Expired
Users.Middle Name
Users.User ID
Users.Password Expiration Date
Users.Status
Users.Password Warned
Users.Email
Telephone Number
Users.Display Name
usr_timezone
Users.Lock User
Users.Last Name
Users.First Name
MEMBERTYPE
If I use the code userData = usrService.getDetails("User Login", RequesterID, null); then I am getting only the following.
Display Name:
act_key:
Full Name:
usr_key:
User Login:
Last Name:
First Name:
Please let me know how to retrieve all of user defined attribute values in prepopulate adapter for a request dataset.

Use below code to get all attributes in user profile including UDF.
OIMInternalClient objOimInternalClient = null;
User user = null;
          UserManager usrService = null;
objOimInternalClient = new OIMInternalClient();
          if (objOimInternalClient != null) {
                    try {
                         objOimInternalClient.loginAsAdmin();
                         usrService = objOimInternalClient
                                   .getService(UserManager.class);
                         user = usrService.getDetails("usr_key", strUserKey, null);
                         endDate = (Date) user.getAttribute("End Date");
                    } catch (Exception e) {
                         e.printStackTrace();
                    } finally {
                         if (objOimInternalClient != null)
                              objOimInternalClient.logout();
                         if (user != null)
                              user = null;
                         if (usrService != null)
                              usrService = null;
In order to see all UDF's in User profile, please create Authorization Policy.

Similar Messages

  • How to retrieve user custom attributes in OID programmatically

    Hi,
    I created a custom attribute named "location" in OID. Could someone give indication/portion of code showing how to retrieve this custom attribute "location" of a user programmatically?
    For the moment, I just found sample code (using oracle.ldap.*) showing how to retrieve "uid" attribute of a user programmatically. I tried to get me inspired of this portion of code, but never succeed.
    Thanks a lot for any help.
    Jeff

    Use below code to get all attributes in user profile including UDF.
    OIMInternalClient objOimInternalClient = null;
    User user = null;
              UserManager usrService = null;
    objOimInternalClient = new OIMInternalClient();
              if (objOimInternalClient != null) {
                        try {
                             objOimInternalClient.loginAsAdmin();
                             usrService = objOimInternalClient
                                       .getService(UserManager.class);
                             user = usrService.getDetails("usr_key", strUserKey, null);
                             endDate = (Date) user.getAttribute("End Date");
                        } catch (Exception e) {
                             e.printStackTrace();
                        } finally {
                             if (objOimInternalClient != null)
                                  objOimInternalClient.logout();
                             if (user != null)
                                  user = null;
                             if (usrService != null)
                                  usrService = null;
    In order to see all UDF's in User profile, please create Authorization Policy.

  • How to assign a item to User Defined Attribute group?

    I have created a new User Defined Attribute(UDA) using PIM- setup responsiblity.
    But i don't know how to assign one newly created item to the UDA.
    Please help me out.
    Thanks in advance.

    hai Naren and Ganesh,
    i have few queries in wad can u help me in resolving the problems?
    i have generated a query using variables ,but when i am executing that query in web ,i am not getting any pop up asking fr variable.so wht might b the error.
    first i have selected the table in wad and assigned the dataprovider ie is query,
    in tht query a variable is also existed but i am not getting any pop up
    is there any radio button / check boexes to select and assign the variable
    so plz help me in this aspect..
    if u r working on wad can plz send me u r contact mail id so tht i can interact easily...my mailid is [email protected] ok
    regards
    Suri../

  • User defined attributes - usages

    Hi,
    I would like to hear how other OA developers have used user defined attributes for an item, if they have used it. I would appreciate if you could share that information.
    As for me, I used it for items (messagetextinput, choice etc) in my custom search region to assign attribute names to these items to know what the values given by the user should be associated with and searched for. I had to create a custom search region since query region from oaf didn't allow to associate more than on VO to it.
    I just want to see what other purposes others have used the user defined attributes to get a better understanding of it.
    Thank you,
    Arun

    Hello Antilles.
    The user defined attributes that you refer to it´s used to specify additional attributes.
    You can find more useful information about this topic in this link: http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/nav.htm
    Regards Pedro

  • User Defined Attributes

    Hi All,
    I wanted few information on User defined attributes in Projects. It would be of great help if I get few suggestions.
    I wanted to add few fields to the Update task progress screen. How can I add these field as there is no specific page layout exist for this page. Do I need to use OA Framework to achieve the same? If Yes, how can we modify these seeded pages?
    Please guide me.
    Thanks in Advance,
    Srini.

    UDA can be added to project/task/classification. We can not modify the Update Task Progress form using UDA. If the changes are minimal then you can go for personalization or modify the sources as per OAF standards.

  • User-defined Attributes in CRM WebUI

    Hi there,
    I am using the Attribute 1 (defined in IMG->CRM->Master Data->BP->Define Attributes->Define User-Defined Attributes) to determine if a customer may or may not be given credit, just a simple yes or no attribute. My question is how to make this attribute be available when I'm creating a new BP in the WebUI under General Data?
    Thanks in advance.

    Hi CharlieF,
    I have a trouble with the same attributes in the "Account overview", in the view "BP_HEAD/AccountDetails", when i select a value in this fields and i try to save, the system display the error message: " Field group Attribute 1 is hidden; do not enter data in corresponding fields" 
    Have you solved this issue?
    Can you explain me how?
    Thanks in advance.

  • How to Developed user defined functions to call function modules in SAP R/3

    •     how to Develope user defined functions to call function modules in SAP R/3 system

    Hello Raja,
    Go through this V.imp Link...
    http://download.oracle.com/docs/cd/B10464_05/integrate.904/b10408/rfc.htm
    Steps to crate FM..
    Follow these steps..
    Go to the T: code SE37
    First You Create Function Group
    On That u specify
    Function Group Name..............
    Short Text..............................
    save...
    Go to SE 37
    Specify the Function Module Name: Eg: Z_Bapi_Materialmaster
    Short Text.......
    Save...
    Next Go to Attributes..
    Select Radio button : Remote enabled model
    Go to Parameters..
    Click Import...
    Give Parameter Type Associate type S.t
    next Click Export...
    Give Parameter Type Associate type S.t
    Next Click Tables Button..
    Specify tables..
    Next click source code button..
    Write Source code here..
    Eg : Select statements Etc..
    Finally we should be select the Radio button Enable remorely
    https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=39728
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bapi%2bstep%2bby%2bstep
    Re: User Defined Functions Tutorials
    Hope this information is useful to you..
    Thanks ,
    Satya Kumar..

  • How to create user defined button in alv report

    how to create user defined button in alv report
    thnks in advance.

    Hi,
    U can define it the the PF-STATUS ( Menu for ALV ).
    For that u have to define it in the EVENTCAT.
    form z_eventcat  using    p_i_eventcat type slis_t_event.
      data: i_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
        exporting
          i_list_type     = 0
        importing
          et_events       = p_i_eventcat
        exceptions
          list_type_wrong = 1
          others          = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      clear i_event.
      read table p_i_eventcat with key name = slis_ev_top_of_page into
      i_event.
      if sy-subrc = 0.
        move 'TOP_OF_PAGE' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
      read table p_i_eventcat with key name = slis_ev_pf_status_set into i_event.
      if sy-subrc = 0.
        move 'SET_PF_STATUS' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
      clear i_event.
      read table p_i_eventcat into i_event with key name = slis_ev_user_command .
      if sy-subrc = 0.
        move 'USER_COMMAND' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
    And in the DISPLAY
    call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
         i_callback_program                = v_progname
         i_callback_pf_status_set          = 'SET_PF_STATUS'
         i_callback_user_command           = 'USER_COMMAND'
         i_callback_top_of_page            = 'TOP_OF_PAGE'
         i_grid_title                      = v_gridtitle
         i_save                            = 'A'
         is_layout                         = i_layout
         it_fieldcat                       = i_fieldcat[]
         it_sort                           = i_sortinfo
         it_events                         = i_eventcat
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        tables
          t_outtab                          = it_final
       exceptions
         program_error                     = 1
         others                            = 2
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    *MENU SETTINGS.
    form set_pf_status using rt_extab type slis_t_extab.
      set pf-status 'ALV_MENU'.
    endform.                    "SET_PF_STATUS
    endform.                    " Z_EVENTCAT
    Now double click on ALV MENU nad u can create a button in the application bar.
    Regards,
    Pritha.

  • How to use user-defined packages in JAX-RPC web service

    I am trying to use Object of my class located in my package in jax-rpc webservice,the code is
    package supercomputer;
    import Hello.*;
    public class SuperImpl implements SuperIF
    public String sendParam(String data)
    Temp ob=new Temp();
    int i=ob.get1(10000);
    return data+"returned by supercomputer";
    Temp is located in Hello package,I have jar the Hello package as Hello.jar and has set its classpath in targets.xml of Ant tool.
    The code compiles well and service is deployed successfully,but when i try to call the service from the client its gives me following error.
    [echo] Running the supercomputer.SuperClient program....
    [java] java.rmi.ServerException: Missing port information
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:357)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
    [java] at supercomputer.SuperIF_Stub.sendParam(SuperIF_Stub.java:60)
    [java] at supercomputer.SuperClient.main(Unknown Source)
    I dont know if it deploys why it gives error on client side.
    Please tell how to use user-defined packages and class in jax-rpc service code ,i am not talking about passing user-defined parameters i am just talking about making objects of user defined classes in jax-rpc service.I think there is some problem in classpath.
    Please guide me in doing that.
    Thanks,
    Farrukh

    Farrukh,
    I don't know if your error is about a missing class from your custom package, ... what track did you followed to say that?
    To use your package in the implementation of you web service, you should only follow the rules of making a web application: put your package jar in your \lib directory inside WEB-INF/ or your package classes unjared in classes (also in WEB-INF/).
    As I already said, I have doubts that your error should be originated from a missing class from your package, but:
    -try to see the logs (errors?) when you deploy your web service that could give a hint about the problem.
    -try to see if you can access your endpoint through your browser to see if there is a online status
    -display your config/WSDL file, and the steps you did to build your web service.
    regards,
    Pedro Salazar.

  • Limitations of User Defined attributes in USR.

    11.1.1.3
    I added a notes field to the user defined fields of a user, customer wanted a textarea to makes notes in reagarding the user in question.
    Can someone tell me where the limitations of these fields are listed?
    I added a large textfield and the system happily accepted the size and made a clob in the db.
    I have added the permissions in the policy to make it visible in create as well as in view and modify, all that works fine.
    However, when I modify the field by simply writing a small note in it....
    I save the change, no exceptions, no error whatsoever
    the correct data gets into the clob field in the USR table
    but the text area in the user view show the entity object name and reference/instance instead...
    i.e.
    i add the text "test" into the text area, press save
    the fields then shows me...
    weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB@65e1
    So, I am looking for where this limitation is mentioned in the manuals or trying to find out if its a bug.
    Reason I am wondering is because there is a field (USR.USR_NOTE) in the DB which is a CLOB but I cant
    find any reference to that in the User Configuration, i.e. what does the system use it for?
    So, if there is a limitation on the size of fields in the User Configuration, where can I see them?
    I looked in the System and developer manuals and I see nothing on that there.
    What is the maximum and where can I see that defined?

    Hello Antilles.
    The user defined attributes that you refer to it´s used to specify additional attributes.
    You can find more useful information about this topic in this link: http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/nav.htm
    Regards Pedro

  • Help needed in creating user defined attribute

    Hi all,
    I want to create user defined attributes and make it available for all users in sun LDAP5.2,I have followed the below mentioned steps,
    1.Under configuration-schema i have created attribute named "ldapproducts"
    2.I have created new object class "userproducts" and made the parent to be "inetorgperson" and added my "ldapproducts" attribute in required attribute.
    Now,in directory tab,Iam trying to add the "ldapproduct" attribute for each user but my defined attribute i.e,"ldapproducts"is not available in the "Add Attribute"list
    please let me know do i need to do some steps or do i need to do any changes in DS files..
    waiting for ur replies...
    thanks in advance.

    Hi,
    I dont know the solution for this, but heres a work arround
    //create new label some where else in the excel sheet as shown below
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                 lblcmbdata = new Label(75, i, (i+1)+" satish", format);
                 sheet1.addCell(lblcmbdata);
    }//set the validation range as shown below
    writableCellFeature.setDataValidationRange(75,0,75,1000);
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);this will create a combo list with 1000 values
    also you can keep the data to be populated in the different sheet in same workbook by creating a named range as below
    workbook.addNameArea("cmbdata", sheet1, 0, 0, 0, 1000);
    // then fill the data in sheet1
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                    lblcmbdata = new Label(0, i, (i+1)+" satish", format);
                    sheet1.addCell(lblcmbdata);
    //set the validation named range as below
    writableCellFeature.setDataValidationRange("cmbdata");
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);Thanks and Regards
    Satish

  • How to import user defined class in UIX page?

    Does anyone know how to import user defined class in UIX page so that the class can be called in the javascript in the UIX ?
    Thks & Rgds,
    Benny

    what you are referring to is not javascript.
    it is JSP scriptlets. These are very different.
    In order to keep a strict separation between View and Controller, it is not possible to run arbitrary java code from within your UIX code.
    However, you can run java code from within a UIX event handler; see:
    http://otn.oracle.com/jdeveloper/help/topic?inOHW=true&linkHelp=false&file=jar%3Afile%3A/u01/app/oracle/product/IAS904/j2ee/OC4J_ohw/applications/jdeveloper904/jdeveloper/helpsets/jdeveloper/uixhelp.jar!/uixdevguide/introducingbaja.html
    event handler code is run before the page is rendered.

  • How to map user-defined fields in XML communication on SRM site

    Hi All!
    We use the External sourcing scenario and we transfer requirements from ERP  in SRM through XI (PurchaseRequestERPSourcingRequest_In)
    We should transfer the user-defined fields, but we can not map it in SRM site.
    We have enhanced enterprise service in XI, have realized BADI PUR_SE_PRERPSOURCINGRQCO_ASYN on ERP site.
    I see the XML message with ours z-fields in tr.  SXI_MONITOR (into SRM), but I can not find it in BBP_PDISC.
    We try to use BADI BBP_SAPXML1_IN_BADI (there is no method for SC), and BADI /SAPSRM/BD_SOA_MAPPING (z-fields is empty)
    Someone can tell how to map user-defined field for SC?
    Thanks in advance
    Evgeny Ilchenko

    Hello, Julia
    We have found solution our problem
    We have enhanced standard service in a new enhancement name space and defined own enhancement elements in our namespaces. Then these enhancement elements refered to the SAP standard Enterprise Service.
    But In our new interfaces were different  XML namespaces
    When we have correct an error we could use the next BADI
    on ERP site: PUR_SE_PRERPSOURCINGRQCO_ASYN
    on SRM site: /SAPSRM/BD_SOA_MAPPING
    BR,
    Evgeny

  • How to create User Defined Variables in Procurement Contract 12.1.3

    Hi,
    We are using Procurement Contract 12.1.3. As per our business requirement while creating contract template we need to use many variables which are not available in 'System Defined' variable list. Please guide us with some samples (step by step) how to create the 'User defined' variables.
    Regards,
    Prabhu

    Hi Prabhu,
    Did you get the setps how to create user defined variables in Procurement contracts? if so please share me the setp by step flow.
    Prakash

  • How to alter user defined  objects in  oracle

    Hi all,
    Can any one tell me how to alter user defined objects in oracle .
    Thanks,
    P Prakash

    prakash wrote:
    Hi all,
    Can any one tell me how to alter user defined objects in oracle .
    DROP
    then
    CREATE
    Handle:      prakash
    Email:      [email protected]
    Status Level:      Newbie (80)
    Registered:      Feb 3, 2011
    Total Posts:      185
    Total Questions:      67 (65 unresolved)
    so many questions & so few answers.
    How SAD!
    Edited by: sb92075 on Sep 22, 2011 9:22 AM

Maybe you are looking for