Populate UDF from API

Hi,
is it possible to populate UDF attribute from API? I have errors when i'm using code like this:
tcUserOperationsIntf moUserUtility = (tcUserOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
HashMap user = new HashMap();
user.put("Users.User ID","testuser");
user.put("Users.First Name","Test");
//user.put("Users.Middle Name","");
user.put("Users.Last Name","User");
user.put("Organizations.Key","1");
user.put("Users.Role","Full-Time");
user.put("Users.Xellerate Type","End-User");
user.put("Users.Password","xxxxxxxx");
user.put("Users.Manager Login","XelSysAdm");
user.put("Users.USR_UDF_TEST","test");
I get error: Error In createUser:Exception Thor.API.Exceptions.tcInvalidAttributeException: 'Users.USR_UDF_TEST' is not a valid attribute name.
best
mp
***solved*** we have to: user.put("USR_UDF_TEST","test");
Edited by: J23 on 2011-09-12 13:16

user.put("Users.USR_UDF_TEST","test");
Use this one :
user.put("USR_UDF_TEST","test");

Similar Messages

  • Update UDF from APIs in process task

    Hi,
    OIM 11g here. I need to write a task which updates a UDF. How should i do this? I am looking at APIs task but how would i pass the map and resultset through the design console to the method updateUser?
    thx in advance
    Edited by: Prorad on Dec 3, 2010 7:41 AM

    You can instantiate an API like this :
    (tcUserOperationsIntf) tcUtilityFactory.getUtility(dataProvider, "Thor.API.Operations.tcUserOperationsIntf");
    userInfoMap.put( "Users.User ID", "ABC001");
    UserUpdateMap.put("Users.First Name","SUREN")
    logger.debug(className, methodName, "Searching For User !!");
    tcResultSet userSet = userOper.findAllUsers( userInfoMap );
    if ( ( userSet != null ) && userSet.getRowCount() > 0 ) {
         userOper.updateUser(userSet, UserUpdateMap);
    Thanks
    Suren
    Edited by: Suren.Singh on Dec 3, 2010 9:12 PM
    Edited by: Suren.Singh on Dec 3, 2010 9:13 PM

  • Info package ABAP Routine to populate date from and To filed

    Hello Experts,
    I have requirement to populate the From and To dates with the: T-1 to T (Current Date u2013 1 to Current Run Date aka Sy-Datum) at info package level.I have written a code for this but see that From filed is not getting populated but TO filed is filled with current date.Can someone please tell me wats wrongwith my code?It is a delta info pacakage.
    data: l_idx like sy-tabix.
    read table l_t_range with key
         fieldname = 'CPUDT'.
    l_idx = sy-tabix.
      l_t_range-sign = 'I'.
      l_t_range-option = 'BT'.
      l_t_range-low = sy-datum - 1.
      l_t_range-High = sy-datum.
    modify l_t_range index l_idx.
    p_subrc = 0.
    Thanks,

    Was able to tackle this using the following code.
    data: l_idx like sy-tabix.
    data: V_date type sy-datum.
    v_date = sy-datum - 1.
    read table l_t_range with key
         fieldname = 'CPUDT'.
    l_idx = sy-tabix.
      l_t_range-sign = 'I'.
      l_t_range-option = 'BT'.
      l_t_range-low = v_date.
       l_t_range-High = sy-datum.
    modify l_t_range index l_idx.
    p_subrc = 0.
    Thanks,
    I am closing this thread

  • How to populate data from dynamic drop down list to the text field

    Hi,
    I tried to populate data from dynamic drop down list to city field. I would like to concat data from drop down list.When selecting add button to add the item and select item from drop down list, data should be displayed in the text field. However, Please help. I spent alot of time to make it works I am not successful.
    Please see the link below.
    https://acrobat.com/#d=SCPS0eVi6yz13ENV0cnUdw
    Thanks for your help
    Cindy

    Hi Rosalin,
    Loop the hidden table, get the values and populate drop down in each iteration.
    DropDownList1.addItem("Text","Value");
    You can use one more solution for this scenario. If it is a matter of 2,3 dropdowns, put three dropDowns in the form layout and give seperate static data binding to them. At run time make the dropDowns hide/visible as per the requirement.
    Hope this helps.
    Thanks & Regards,
    Sanoosh

  • How to populate data from table into datagrid in form

    hi there. may i know how to populate data from a table into a datagrid? i have created a datagrid in a form using OLE's microsoft datagrid. i'm having problem to populate data from table into the grid. can i know how to do that? thanks

    Not exactly. I want to enter input from form and the user can have all options to choose i.e. HIGH, MEDIUM or so on.
    Suppose, you have option to select HIGH, MEDIUM or LOW and you can see all these options together. You select LOW and when you save, it is saves in the table as a value. So when you view the table again, it will show LOW as active and HIGH and MEDIUM are null.

  • How to create an Undefined Code Combination from API? (Urgent)

    Hi All,
    I used the following API to create the code combinations in a Inventory custom form.
    SELECT CHART_OF_ACCOUNTS_ID INTO :PARAMETER.CHART_OF_ACCOUNTS_ID
    FROM ORG_ORGANIZATION_DEFINITIONS
    WHERE ORGANIZATION_ID = :PARAMETER.ORG_ID;
    FND_KEY_FLEX.DEFINE(
    BLOCK => 'XX_MRN_TRX_HEADERS',
    FIELD => 'TO_ACCOUNT',
    CODE => 'GL#',
    APPL_SHORT_NAME =>'SQLGL',
    NUM => ':PARAMETER.CHART_OF_ACCOUNTS_ID',
    ID => 'TO_ACCOUNT_ID',
    VRULE => '\\nSUMMARY_FLAG\\nI\\nAPPL=SQLGL;NAME=GL_NO_PARENT_SEGMENT_ALLOWED\\nN\\0GL_GLOBAL\\nDETAIL_POSTING_ALLOWED\\nE\\nAPPL=INV;NAME=INV_VRULE_POSTING
    nN',
    REQUIRED => 'N',
    DINSERT => 'Y',
    VALIDATE => 'FULL',
    USEDBFLDS => 'N');
    This creates the correct ccid if the combination is already available in GL (gl_code_combinations_kfv), But when its a new combination it returns '-1'.
    How can I create an Undefined Code Combination from API in custom forms?
    If any one one can help me on this it'll be a great help.
    Thanks

    Solved by Using FND_FLEX_EXT.GET_COMBINATION_ID.
    Thanks

  • Update multiple UDF from one query generator

    Hi All,
    I have Form1 with multiple UDF1 which have been key in by users
    And another Form2 with multiple UDF2 which exactly same with Form1 UDF1
    Is there a way that I can copy multiple UDF at Form2UDF2 from Form1UDF1 instead of creating query for each individual UDF, where in query generator I can select more the one column but only first column will be insert to the single UDF.
    Thanks

    Hi Firos,
    I mean I have 7UDF in the Payment Form where the information to this UDF are come from 7UDF in the invoice form which already created previously so I would like to copy those UDF from invoice to UDF in payment by using single query to capture all the UDF information by doing:
    SELECT T0.[DocNum], T0.[UDF1], T0.[UDF2], T0.[UDF3], T0.[UDF4], T0.[UDF5], T0.[UDF6], T0.[UDF7]
    FROM OINV T0 WHERE T0.[CardCode] = $[ORCT.CardCode]
    From above query can I pass the result directly to UDF in Payment Form? or I need to create one query for each individual UDF.
    Thanks

  • How to update UDF from marketing documents to Journal Entry UDF

    Hi Experts,
    I have a UDF in the marketing documents and I want to save the value to Journal Entry UDF.
    Regards,
    Jummie

    Hello Jummie,
    If I understand correctly, the scenario is that copy the value of UDF from marketing document to the UDF its target JE from when the marketing document is created.
    if so, just listen to FormDataAdd Event for the marketing document, copy the value of udf when document is created.
    Here is the sample code.
    Private Sub FormDataEventHandler( _
        ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, _
        ByRef BubbleEvent As Boolean) Handles oApp.FormDataEvent
            'You may add the target documents, 133 - A/R invoice.
            'Before action = true, start the transation
            If BusinessObjectInfo.FormTypeEx = "133" _
                    And BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD _
                    And BusinessObjectInfo.BeforeAction = True Then
                oCompany.StartTransaction()
                'BubbleEvent = False
            End If
            'Before Action = false,
            'Update product item tree
            'Succeed, commit, otherwise rollback
            If BusinessObjectInfo.FormTypeEx = "133" _
            And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD) Then
                If BusinessObjectInfo.BeforeAction = False And BusinessObjectInfo.ActionSuccess Then
                    Dim objectKey As String = String.Empty
                    oCompany.GetNewObjectCode(objectKey)
                    MsgBox(BusinessObjectInfo.Type)
                    Dim oInvoice As SAPbobsCOM.Documents = Nothing
                    oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                    If oInvoice.GetByKey(CInt(objectKey)) Then
                        'Retrieve the UDF value in documents
                        Dim udfValueInDoc As String = oInvoice.UserFields.Fields.Item("***").Value
                        Dim oJE As SAPbobsCOM.JournalEntries = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
                        'Retrieve the JE for the document
                        oJE.GetByKey(CInt(oInvoice.JournalMemo))
                        Dim succeeded = True
                        'add you code to copy the UDF from document into JE
                        If succeeded Then
                            'update the production tree succesfully,
                            oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
                        Else
                            oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
                        End If
                    End If
                End If
            End If
        End Sub
    Regards, Yatsea

  • Fetch territory name from API by using Transaction Qualifiers value

    Hi All,
    I want to get territory name from API by using Transaction Qualifiers value. But I am unable to find any suitable API.
    Is there any standard API available?
    Its urgent issue. Please any one help me.
    Thanks in advance
    Subhas Samanta

    There is no such API available. But, I can give you a query based on the qualifier. The query changes from qualifier to qualifier.
    Thanks,

  • Populate data from internal table

    Hi Experts,
    DATA: BEGIN OF it_tables OCCURS 0,
              file(30),
              tabname TYPE tabname,
              END OF it_tables.
    DATA: ldo_data TYPE REF TO data,
               ld_tabnam TYPE tabname.
    FIELD-SYMBOLS: <lt_itab> TYPE table.
      ld_tabnam = it_tables-tabname.
      CREATE DATA ldo_data TYPE STANDARD TABLE OF (ld_tabnam).
      ASSIGN ldo_data->* TO <lt_itab>.
      ld_tabnam = it_tables-file.
    In the above code it_tables-tabname contains the structure name by which <lt_itab> structure is declared. it_tables-file contains the internal table name.
    Now the next step is, i want to populate data from the internal table using ld_tabnam into <lt_itab>.
    Is this possible?
    Thanks & Ragards
    Akshay

    HI,
    Refer to this link..how to populate the dynamic internal table
    How to populate data into Dynamic Internal Table.

  • Populate textInput from DataGrid

    Please help!
    My DataGrid has "FIELD_NAME" and "FIELD_VALUES" columns.
    My TextInput objects has to match id names from "FIELD_NAME"
    columns, and populate value from "FIELD_VALUES" column into text.
    How I can do this?
    Thank you very much!
    Slava

    Sorry for the messed up cut and paste.
    private function itemClickEvent(event:ListEvent):void
    if(event.columnIndex < 0)
    //can't do anything
    else
    var
    selectedVIPName:String=event.currentTarget.selectedItem.VIPName;
    var
    selectedVIPAddress:String=event.currentTarget.selectedItem.VIPAddress;
    var
    selectedExternalAddress:String=event.currentTarget.selectedItem.ExternalAddress;
    var selectedvid:String=event.currentTarget.selectedItem.vid;
    vipname_inp.text=String(selectedVIPName);
    vipaddress_inp.text=String(selectedVIPAddress);
    external_inp.text=String(selectedExternalAddress);
    vid_inp.text=String(selectedvid);
    <mx:DataGrid id="dg" dataProvider="{lc}" width="100%"
    height="100%" rowHeight="20" itemClick="itemClickEvent(event);"
    >
    <mx:columns>
    <mx:DataGridColumn headerText="VID" dataField="vid"
    visible="False" />
    <mx:DataGridColumn headerText="VIP Name"
    dataField="VIPName" />
    <mx:DataGridColumn headerText="VIP Address"
    dataField="VIPAddress"/>
    <mx:DataGridColumn headerText="External Address"
    dataField="ExternalAddress"/>
    </mx:columns>
    </mx:DataGrid>

  • Populate combobox2 From database WHERE combobox1.text = something

    I want to populate combobox2 from database WHERE combobox1.text = something. Here is the code I have and also I am using datable so I want to keep it that way
    private void cbCompany_SelectedIndexChanged(object sender, EventArgs e)
                this.cmpLocationTableAdapter.FillLocbyCmp(this.shahiemsDataSet.cmpLocation, cbCompany.SelectedText.ToString());
                cbLocation.DataSource = shahiemsDataSet.cmpLocation;

    The result is a blank combobox2(cbLocation).
    Hello,
    Did you mean that the combobox2 bound to the datatable cbLocation, but it didn't contain any item, right?
    If so, it seems that the method FillLocbyCmp didn't fill any data to that datatable, to troubleshoot this case, we need to check the following tips.
    1. Whether the database for that dataAdapter contains any data, and whether you connected to the right database.
    2. Whether that database could get any result filtering by that text value.
    3. Whether that method could get that datatable filt succeccfully.
    Since we could not get code about that FillLocbyCmp method, if possible, you could share them with us.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Checkout: Auto Populate Billing from Shipping ?

    Hi,  I'm trying to cobble together a auto populate billing from shipping or vice versa,  and I've gotten this far with JS and added it to the register buy form, but it is supposed to go into the header, for which, in the module template, there is no access.  I'm sure I have some of it wrong, because I grabbed it from another site. Anyway, when I check the box for same as,  nothing happens.  I 'm wondering  if the script needs to be placed elsewhere and/or if the variables I am using are incorrect for BC ?  
    <script type="text/javascript">
    <!--
    function shipsame(form){
    if(form.sameasbilling.checked){
    form.ShippingAddress = form.BillingAddress;
    form.ShippingCity = form.BillingCity;
    form.ShippingState = form.BillingState;
    form.ShippingCountry = form.BillingCountry;
    form.ShippingZip = form.BillingZip;
    else{
    form.BillingAddress= "";
    form.ShippingCity = "";
    form.ShippingState = "";
    form.ShippingCountry = "";
    form.ShippingZip = "";
    //-->
    </script>
    <div class="shop-checkout shop-form">
    <h1 class="heading colr">Check Out</h1>
    <p>&bull; Required</p>
    <form id="catwebformform42059" name="catwebformform42059" onsubmit="return checkWholeForm42059(this)" action="/FormProcessv2.aspx?WebFormID=10850&amp;OID={module_oid}&amp;OTYPE={module_otype} &amp;EID={module_eid}&amp;CID={module_cid}" method="post" enctype="multipart/form-data">
        <div class="form">
        <div class="item">  
    ...SNIP....
       <label> Same as Shipping <input type="checkbox" name="sameasbilling" value="checkbox" onclick="shipsame(this.form);" />
        <div class="item">  <br />
        <label>
        Billing Address</label>
        <input class="cat_textbox" id="BillingAddress" type="text" maxlength="500" name="BillingAddress" />
        </div>
    TIA,
    Jeff

    A button would only work once. So if the user went back and changed the billing address the change would not be reflected in the shipping address.
    With a check box one can use a calculation script in the shipping address to check if the billing address should be copied over.

  • [svn] 2863: Changes recommend from API review.

    Revision: 2863
    Author: [email protected]
    Date: 2008-08-15 20:28:51 -0700 (Fri, 15 Aug 2008)
    Log Message:
    Changes recommend from API review.
    QE: YES
    Doc: YES
    Checkintests: YES
    Reviewer:
    Bugs:
    Move APIs from IFocusManager2 into IFocusManager and remove IFocusManager2.
    Rename SandboxUtil -> SecurityUtil
    * mx.utils.SecurityUtil
    Remove hasMutualTrustWithParent()
    Remove hasMutualTrustWithChild()
    Add hasMutualTrustBetweenParentAndChild()
    Rename SWFLoader.compatibleLoad -> SWFLoader.loadForCompatibility
    Create mx.managers.FocusDirection
    Rename SystemManager.dispatchEventToSandboxes -> SystemManager.dispatchEventFromSWFBridges
    * mx.managers.IFocusManager
    addFocusManagerBridge() -> addSWFBridge
    removeFocusManagerBridge() -> removeSWFBridge
    * mx.managers.SystemManagerProxy
    activateProxy() -> activateByProxy()
    deactivateProxy() -> deactivateByProxy()
    * mx.managers.ISystemManager
    useBridge() -> useSWFBridge()
    Move/Rename mx.sandbox.ISandboxBridgeProvider -> mx.core.ISWFBridgeProvider
    Move/Rename mx.sandbox.ISandboxBridgeGroup -> mx.core.ISWFBridgeGroup
    Move/Rename mx.sandbox.SandboxBridgeGroup -> mx.core.SWFBridgeGroup
    Delete ISandboxGroupAccess, IParentAccess, IChildAccess
    Rename many methods in mx.core.ISWFBridgeGroup
    Rename mx.core.IAppliationLoader -> mx.core.ISWFLoader
    * mx.core.ISWFBridgeProvider
    Rename sandboxBridge -> swfBridge
    add parentAllowsChild property
    add childAllowsParent property
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/managers/WindowedSystemMa nager.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/Alert.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/SWFLoader.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/core/IContainer.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/core/UIComponent.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/FocusRequest.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.a s
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/FocusManager.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/IFocusManager.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/IFocusManagerContai ner.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/ISystemManager.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManager.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManagerProxy. as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/utils/EventUtil.as
    flex/sdk/branches/3.0.x/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwc DependencyRules.java
    Added Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/core/ISWFBridgeGroup.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/core/ISWFBridgeProvider.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/core/ISWFLoader.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/core/SWFBridgeGroup.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/core/SandboxBridgeGroup.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/FocusDirection.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/utils/SecurityUtil.as
    Removed Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/core/IApplicationLoader.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/IFocusManager2.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/sandbox/
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/utils/SandboxUtil.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • How do i populate certificates from a spreadsheet

    I am trying to print some certificates and would like to populate them from a spreadsheet.  Unsure if Numbers or Pages or Keynote would be the correct application.

    You've posted this in the iWork for iOS forum, is that what you really wanted?
    The Mac version is here:
    https://discussions.apple.com/community/iwork/pages?view=discussions
    Peter
    btw Helps if you say what version of Pages you are using.

Maybe you are looking for

  • Adobe Acrobat 9 no more updates?

    My company has about 50 licenses of Adobe Acrobat 9 (updated to 9.5.5). For a while updates were fast and furious. I checked their website today and saw that V 9.5.5 was "Latest and FINAL release. This patch fixes specific security issues." Does this

  • *cannot overwrite or remove $ORACLE_HOME/rdbms/admin/externaljob.ora while

    Hi, I have trying to apply 10.2.0.4 patch on oracle home i.e. i am trying to upgrade my oracle software from 10.2.0.3 to 10.2.0.4 But whil applying patch i am getting following message: cannot overwrite or remove $ORACLE_HOME/rdbms/admin/externaljob.

  • Mail Issue Using AOL setting

    Hey, just got my hard drive replaced and im trying to set up the mail application. I use aol mail and i called aol and they walked me through what settings i need to have. The issue is that its not letting me recieve or send mail. Here are my setting

  • Yoga 2 Pro screw fell out again - THANKS LENOVO

    OK, so I've been an owner of the Best Buy Special (the Yoga 2 Pro with 256 GB SSD, 8 GB RAM, and i7 CPU) since last November, and the system died on me once a few months back.  Fine, I send into Lenovo for repair and they got it back to me pretty qui

  • Cannot configure Oracle Cluster File System (OCFS2)

    Dears,, While trying to use ocfs2console to Configure Oracle Cluster File System (OCFS2) Error appear to me as following: Could not start cluster stack error.This must be resolved before any OCFS2 filesystem can be mounted. How can solve this please?