Lookup values

Hi Guru's
We have requirement to get values from another application and used for the calculation in the other application.Does the script works.Please advice.
time      KEY EXP     signeddata
2011  K1     L     0.5
2011  K1     E     0.8
2011 K2     L     0.05
2011 K2     E     0.20
*LOOKUP PDP
*DIM TIME
*DIM KEY="1"
*DIM EXP_B1:EXPC=B
*DIM EXP_C1:EXP=C
*DIM EXP_F1:EXP=F
*DIM EXP_I1:EXP=I
*DIM EXP_L1:EXPT=L
*DIM EXP_M1:EXP=M
*DIM EXP_N1:EXP=N
*ENDLOOKUP
*LOOKUP PDP
*DIM TIME
*DIM KEY="2"
*DIM EXP_B2:EXP=B
*DIM EXP_C2:EXP=C
*DIM EXP_F2:EXP=F
*DIM EXP_I2:EXP=I
*DIM EXP_L2:EXP=L
*DIM EXP_M2:EXP=M
*DIM EXP_N2:EXP=N
*ENDLOOKUP
Thanks
Buggi
Edited by: Buggi9 on Sep 8, 2011 8:21 AM

Here is an example:
*LOOKUP PDP
*DIM TIME=2011
*DIM EXP_B1KEY1:KEY="1"
*DIM EXP_B1KEY1:EXPC="B"
*DIM EXP_B2KEY2:KEY="2"
*DIM EXP_B2KEY2:EXP="B"
etc.

Similar Messages

  • How to get lookup value for a lookup_type and pass as a parameter in OAF

    Hi,
    I have requirement wherein I have to enable the "Add Attachment" Button only for a particular deliverable name.
    Steps I followed
    1) I have extended the corresponding Controller class.
    2) Sting str1="XYZ";
    3) Getting the attachment table bean and the deliverable name thru Data Mappings as Attachment is the built-in funtionality in OAF.
    4)Checking if the deliverable name whether it is equal to str1 or not
    Case1: If the deliverable name is not equal to str1 then I am placing the insertallowed as BOOLEAN.FALSE
    Case2:If not it will be enabled.
    5)The functionality as per the requirement is working fine.
    6)Here for str1 I have hardcoded the value initially but I need to take up the value from a lookup created for this value because may be in future if for more than one value the "Add Attachment" Button has to enabled they it will be easy to add in the look up only. No need to change the controller class.
    7) So please let me know the steps in getting the value from a lookup and have to pass the lookup values (Here str1--"XYZ","ABC","DEF") into the extended Controller Class.
    Thanks in Advance,
    Regards,
    Ramya

    Ramya,
    Here for str1 I have hardcoded the value initially but I need to take up the value from a lookup created for this value because may be in future if for more than one value the "Add Attachment" Button has to enabled they it will be easy to add in the look up only. No need to change the controller class.For this u need to iterate through the lookup values.
    Share ur existing Controller Code.
    Regards,
    Gyan

  • Workflow Activity "Lookup Value" returns An error occured while enumerating the filter using [//WorkflowData/customvalue]

    I want to generate an Accountname using EmployeeID, FirstName and LastName via a workflow.
    I'm using the Granfeldt Workflow Activity Library (https://fimactivitylibrary.codeplex.com/)
    I'm using the FIM Powershell Workflow Activity (https://fimpowershellwf.codeplex.com/)
    Steps:
    Passing the EmployeeID, FirstName and LastName to the powershell Activity, generating a logonid based on logic.
    Add-PSSnapin FIMAutomation
    $EmployeeID = $fimwf.WorkflowDictionary.EmployeeID
    $Forename = $fimwf.WorkflowDictionary.Firstname
    $Lastname = $fimwf.WorkflowDictionary.Lastname
    'logic creating a custom logonid here
       ==> This works
    Returning data back to the workflow via that powershell script:
    $fimwf.WorkflowDictionary.Add('NewAccountName',$newlogonid)
       ==> This works
     Using Lookup Value Activity to read the Workflow data and update the [//Target/AccountName] fails.
    This gives an error:
           An error occurred while enumerating the filter 'string' .
    (where string is the actual generated userid that I've got back from the powershell script. Example dab2563)
    I tried with only [//WorkflowData], then this gives the error:
          Index was outside the bounds of the array.
    Any hints to solve this?    
    Kind regards,
    David

    The Lookup Activity is for looking up an object in the FIM Service. Seems like thats not what you're trying to accomplish.
    For updating the target of the workflow, just use the built-in Function Evaluator. The Lookup WF was not built for that and it is failing because you have not specified a valid XPAth lookup filter, such as /Person[AccountName='BillG']
    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

  • VLOOKUP not reading lookup value correctly

    Hi,
    I'm having a problem with my VLOOKUP. For my lookup value, I'm using a cell containing a RANDBETWEEN so that whenever I refresh with F9, I would get a new number in the RANDBETWEEN cell, which will then make VLOOKUP show the cell corresponding to the newly
    generated number.
    This isn't exactly what I did, but this is an example of the basic gist of what I was trying to do.
    On Worksheet A, I had Column A list numbers 1 through 12, while Column B had January through December.
    On Worksheet B, I had Cell A1 contain RANDBETWEEN(1,12) and Cell B1 contain VLOOKUP(A1,'Worksheet A'!$A$1:$B$12,2)
    So, when I pressed F9, I would be able to get RANDBETWEEN to generate a random number between 1 and 12, and the VLOOKUP would generate the corresponding name of the month.
    However, when I tried this, the random numbers continued to be generated, but the VLOOKUP did not keep up with the new numbers being generated. What did I do wrong? I tried using my file on Onedrive's version of Excel as well as OpenOffice Calc, and none
    of them are working.
    As noted in my username, I am still in the beginning stages of learning Excel. So, if I'm doing something stupid, please be easy on me...
    Thank you for your time.

    Could you create a stripped-down copy of the workbook (without sensitive information) and make it available through one of the websites that let you upload and share a file, such as Microsoft OneDrive (https://onedrive.live.com),
    FileDropper (http://filedropper.com) or DropBox (http://www.dropbox.com). Then post a link to the uploaded and shared file here.
    Or register at www.eileenslounge.com (it's free) and post a message in the Excel forum. You can attach files up to 250 KB to a post there (zipped if necessary).
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Group by Clause displaying all lookup values

    Hello Friends
    I've a simple table with columns namely Date, Reason, Product and Count and the sample data is displayed below.
    ==========================
    Date Reason Product Count
    ==========================
    06/08/2012 Reason1 Home 1
    07/08/2012 Reason2 Motor 1
    08/08/2012 Reason1 Home 1
    09/08/2012 Reason3 Home 2
    10/08/2012 Reason1 Home 1
    06/08/2012 Reason5 Home 1
    ===========================
    In total I've 5 reason lookup values from Reason1 through to Reason5, but the above table consists of few of them.
    I would like to diplay result per day and take an example of 6th August, I want to display below result, i.e. display all 5 reason looksup and assign zero count if there are no records for that day.
    =====================================
    DATE REASON HOME_COUNT MOTOR_COUNT
    =====================================
    06/08/2012 Reason1 1 0
    06/08/2012 Reason2 0 1
    06/08/2012 Reason3 0 0
    06/08/2012 Reason4 0 0
    06/08/2012 Reason5 1 0
    =====================================
    If we write group by clause, missing reasons like Reason3 and Reason4 will not be displayed in the result set.
    And I've tried to write multiple UNION ALL queries to get the above result which works fine, but if there 100 lookup values, I do not want to write 100 Union queries.
    Please let me know if you have any analytical functions to display the end results?
    Thanks
    Murali.
    Edited by: Muralidhar b on Aug 19, 2012 8:17 PM

    If you followed relational design, you have reason lookup table. If you do not have it you should create one. Also, date is reserved word and count is a keyword, so do not use them as column names. Then use outer join:
    SQL> create table tbl as
      2  select to_date('06/08/2012','dd/mm/yyyy') dt,'Reason1' reason,'Home' product,1 qty from dual union all
      3  select to_date('07/08/2012','dd/mm/yyyy'),'Reason2','Motor',1 from dual union all
      4  select to_date('08/08/2012','dd/mm/yyyy'),'Reason1','Home',1 from dual union all
      5  select to_date('09/08/2012','dd/mm/yyyy'),'Reason3','Home',2 from dual union all
      6  select to_date('10/08/2012','dd/mm/yyyy'),'Reason1','Home',1 from dual union all
      7  select to_date('06/08/2012','dd/mm/yyyy'),'Reason5','Home',1 from dual
      8  /
    Table created.
    SQL> create table reason_list as
      2  select  'Reason' || level reason from dual connect by level <= 5
      3  /
    Table created.
    SQL> select  d.dt,
      2          r.reason,
      3          nvl(
      4              sum(
      5                  case product
      6                    when 'Home' then qty
      7                  end
      8                 ),
      9              0
    10             ) home_qty,
    11          nvl(
    12              sum(
    13                  case product
    14                    when 'Motor' then qty
    15                  end
    16                 ),
    17              0
    18             ) motor_qty
    19    from      (
    20               select  min_dt + level - 1 dt
    21                 from  (
    22                        select  min(dt) min_dt,
    23                                max(dt) max_dt
    24                          from  tbl
    25                       )
    26                 connect by level <= max_dt - min_dt + 1
    27              ) d
    28          cross join
    29              reason_list r
    30          left join
    31              tbl t
    32            on (
    33                    t.dt = d.dt
    34                and
    35                    t.reason = r.reason
    36               )
    37    group by d.dt,
    38             r.reason
    39    order by d.dt,
    40             r.reason
    41  /
    DT        REASON                                           HOME_QTY  MOTOR_QTY
    06-AUG-12 Reason1                                                 1          0
    06-AUG-12 Reason2                                                 0          0
    06-AUG-12 Reason3                                                 0          0
    06-AUG-12 Reason4                                                 0          0
    06-AUG-12 Reason5                                                 1          0
    07-AUG-12 Reason1                                                 0          0
    07-AUG-12 Reason2                                                 0          1
    07-AUG-12 Reason3                                                 0          0
    07-AUG-12 Reason4                                                 0          0
    07-AUG-12 Reason5                                                 0          0
    08-AUG-12 Reason1                                                 1          0
    DT        REASON                                           HOME_QTY  MOTOR_QTY
    08-AUG-12 Reason2                                                 0          0
    08-AUG-12 Reason3                                                 0          0
    08-AUG-12 Reason4                                                 0          0
    08-AUG-12 Reason5                                                 0          0
    09-AUG-12 Reason1                                                 0          0
    09-AUG-12 Reason2                                                 0          0
    09-AUG-12 Reason3                                                 2          0
    09-AUG-12 Reason4                                                 0          0
    09-AUG-12 Reason5                                                 0          0
    10-AUG-12 Reason1                                                 1          0
    10-AUG-12 Reason2                                                 0          0
    DT        REASON                                           HOME_QTY  MOTOR_QTY
    10-AUG-12 Reason3                                                 0          0
    10-AUG-12 Reason4                                                 0          0
    10-AUG-12 Reason5                                                 0          0
    25 rows selected.
    SQL> SY.

  • How to pass one lookup value to another lookups

    Hi All,
    I've two relational sources with a join condition,added lookup and kept join condition too.I've to pass this lookup value to another lookup.
    let me know how we can handle this in odi.
    Thanks

    If you don't use "expression in the SELECT clause" option, why don't you simply drag and drop your file datastores in your canvas and do a standard join?
    The result will be the same.
    See here for more details : Re: Lookup Vs Join

  • Lookup value not getting populated...

    I am using following xml code (copy.asmx > method CopyIntoItems). Per Microsoft
    http://msdn.microsoft.com/en-us/library/websvccopy.copy.copyintoitems(v=office.14).aspx I should be able to update lookup fields value as well because Lookup list is on the same subsite and both source and target libraries are on the same sub-site as well.
    Any idea? Item gets copies and all the columns get populated except the lookup column. I verified that the ID and value matches for the lookup value.
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="htthttschemas.xmlsoap.org/soap/envelope/" xmlns:m="schemas.microsoft.com/sharepoint/soap/">
    <soap:Header>
    </soap:Header>
    <soap:Body>
    <m:CopyIntoItems>
    <m:SourceUrl>http://internal.col.com/sales/bymonth/Active/0973410.pdf</m:SourceUrl>
    <m:DestinationUrls>
    <m:string>http://internal.col.com/sales/bymonth/NonActive/0973410.pdf</m:string>
    </m:DestinationUrls>
    <m:Fields>
    <m:FieldInformation Type="Text" DisplayName="Sales Code" InternalName="SalesID" Value="99999"></m:FieldInformation>
    <m:FieldInformation Type="Text" DisplayName="Sales Person Name" InternalName="FullName" Value="TEST, John S."></m:FieldInformation>
    <m:FieldInformation Type="Choice" DisplayName="FileSection" InternalName="PersonnelFileSection" Value="1- New Hire Paperwork, ECA, Termination, LOA"></m:FieldInformation>
    <m:FieldInformation Type="Choice" DisplayName="FileCategory" InternalName="PersonnelFileCategory" Value="Termination Paperwork"></m:FieldInformation>
    <m:FieldInformation Type="Text" DisplayName="Year" InternalName="Record_x0020_Year" Value="2014"></m:FieldInformation>
    <m:FieldInformation Type="DateTime" DisplayName="Effective Date" InternalName="Anniversary" Value="04/22/2014 00:00:00"> </m:FieldInformation>
    <m:FieldInformation Type="Choice" DisplayName="Status" InternalName="Current_x0020_Status" Value="Terminated"></m:FieldInformation>
    <m:FieldInformation Type="Lookup" DisplayName="AreaCode" InternalName="AreaCode" Id="cdae6ca0-d49c-4971-a580-2adcd7a282f1" Value="4;#1795004"></m:FieldInformation>
    <m:FieldInformation Type="Text" DisplayName="Title" InternalName="Title" Value="TEST"></m:FieldInformation>
    </m:Fields>
    <m:Stream>base64Binary</m:Stream>
    </m:CopyIntoItems>
    </soap:Body>
    </soap:Envelope>

    How many values are pulled in the lookup column?
    Also thourgh UI are you able to see values for the lookup column.
    Please ensure that you mark a question as Answered once you receive a satisfactory response.

  • Lookup value in assignment

    Hello All,
    We are using lookup field value in assignment.
    field1 is lookup field and Lookup table has only one field Name
    Name
      a
       b
       c
    Field2 is lookup field and Lookup table(Cross Ref) has 2 fields Name1 Name2
    Name1          Name2 (Display field)
    a                      1
      b                     2
       c                    3
    What we are trying to do is
    if field1 has value a than Field 2 needs to have value 1
    i am running an assignment
    in Expression window i am putting  "field1.(Record)
    and in table field i am putting Field2. so that depending on field1 value Field2 will be assigned values based on cross ref manitained.
    Is this the right way to do it ? is there any other way around?
    (we want field2 value to be poppulated dynamically based on field1 value. We have cross ref table that is referenced to Field2 as lookup table where we maintain field1 lookup value and corresponding Name2 value of Field2)
    If this is the right design than i am facing one more problem ...
    In Field2 lookup i have following entries
    Name1                Name2
      a                          1
      b                         2
      c                          3
      d                          4
       e                         5
      f                           6
      g                          7
      h                          8
      i                           9
    Now except h and i values i am getting value assigned dynamically if Field2 has values from a to g .but when it comes to h and i i am getting assignment error as Assignment failed.????
    Instead of this can we have middleware like XI to take care of this cross Ref? as based on Field2 we are syndicating records to target system via middleware?

    Hi,
    The following are steps to be followed in the data manager to make Assignment to work.
    1) Create Assignment
    2) By Default Main table gets assigned .
    3) Select table where you want to change.
    4) Go to Assignment Editor
    5) Go to Looks ups and select the Lookup value what you want to assign...
    Hope this will help .
    Thanks
    Ganesh Kotti

  • Lookup values displayed in info path

    Hi Experts of the world,
    Here is my scenario
    List A is a list of companies and their details.
    List B is a order form with a lookup value on the ID of company
    On my infopath form I would like to populate more information on to the form regarding the company.
    So when they select company A it will display , address, postcode, telephone no ect on List B
    My issue is when I go to data connection is't only displaying Company name and ID and not the rest.
    I've looked on youtube and blogs and it's not answering what I wan't
    This video shows me what I wan't but I would like to have all the other fields on company to come over and populate on the form when the compnay is selected
    https://www.youtube.com/watch?v=-HnLhXVQf-M
    Please help
    Thank you for taking the time to read my post.
    Regards 

    Bascially it's having the addtional fields populate in info path.
    So when you click on the lookup field in the list it will bring up that particular item in another form with all it's details.
    I would like that to populate in my form so when they select the ID it will auto populate the fields in the form.

  • Urgent! Display lookup value and return value at the same time.

    We are using pop up lov.
    How can we display lookup value and return value at the same time. let me claer..
    Our lov query is like fallowing
    select dname, deptno from dept
    we want to return deptno column into a database bind text item and dname column into a display item (look up)
    can we do it (we need to do)
    thanks for your help.

    We did it .
    But pop up key lov (display description return value ) property doesn't appear for tabular forms item.
    (Report Attributes pages Tabular Form Element section display As property list)
    can we set or not.
    Thank you.

  • UIX LOV: How to Design an LOV that provides lookup value to multiple field

    Hi,
    I've have an input form which has following fields.
    1) Task Name1: (input lookup field. invokes LookupTask.uix)
    2) Task Name2: (input lookup field. invokes LookupTask.uix)
    3) Task Name3: (input lookup field. invokes LookupTask.uix)
    4) TaskId1 (hidden form field. tied to field Task Name1)
    5) TaskId2 (hidden form field. tied to field Task Name2)
    6) TaskId3 (hidden form field. tied to field Task Name3)
    the way I intend to have the LOV work is as follows:
    The three Task Name input fields are populated by using the same LOV page LookupTask.uix. The user will select a task name from the LOV page.
    When the user invokes the LoV against the TaskName1 field, and selects a value from the LoV and closes it, then it should transfer the task name from the LoV to the Task Name1 field and the corresponding task id to TaskId1 hidden field on the input page. If the LoV was invoked from the TaskName2 field, then the lookup values should be transferred to the TaskName2 and TaskId2 fields correspondingly.
    I am able to make it work if there is just one pair of field, i.e. TaskName1 and TaskId1. I'm not able to make it work with multiple fields served by the LOV window.
    any suggestions on making this work will be greatly appreciated.
    thanks
    Lalit Agarwal

    Lalit -
    Have you tried setting the onLovSelect attribute on the lovInput to a javascript callback function that populates the hidden form fields?
    Matt Lee
    UIX Team

  • Validate the Selected Lookup value.. Is it possible??

    Hello Experts,
    Can we Validate a lookup field across a Integer field??
    In detail..
    I have a Look up field which holds 4 digt numeric values
    Order Number
    0001
    0002
    0003
    0004
    Serious is a integer field where the user enters 4 digit numbers..
    So, i need to validate whether the user Selected a value from Lookup Field and its the same value that he keyedin in the Serious Field Or not!!!
    Did anyone face similar situation!! If so how did you resolve, i have tried many tricks in validation but not sure What i am missing!!
    I have tried the below but it did not Work..
    IF (Order Number.[Record] = Serious,TRUE)
    KR
    John

    To be very specific..
    My Maintable has..
    1) Material Type - Lookup Field
        Lookup values:
        Raw material
        Storage
    2) Order Number - Lookup field
    Lookup values:
    0001
    0002
    0003
    DUMMY
    3) Serious - Text Field With length as 4
    Now my requirement is IF Material Type is Raw material THEN Order Number Should be Equal to DUMMY or Equal to Serious...
    I tried may types of validatios but none worked,  Like for example..
    IF(Material Type . Type = Material Type [Raw material]  AND Order Number . Number = Order Number [DUMMY] OR Order Number . Number = Serious , TRUE)
    Did anyone face similar situation, If so how di you fix!!!!
    Please Help
    KR
    John

  • OIM dynamically loading lookup values

    hi.
    we have extended the Create User form with som additional attributes. these are defined as lookup fields. what we want to accomplish is to dynamically populate the lookup values based on the value of the previous lookup field. e.g. if we choose "Car" in lookup A a set of car manufacturers will be populated in lookup B, but if we choose "Boat" in lookup A a set of boat manufacturers will be populated in lookup B.
    any ideas?
    //tb

    You would have to use a pre-update entity adapter to populate the rest of the values based on an initial selection. It won't be a dynamic looking like on a request if you use a Lookup SQL Query using the different fields that have already been selected.
    -Kevin

  • APIs for Country lookup values and Timezone lookup values

    Hi,
    We are developing a J2EE application for remote user management in EP.
    We want to query the lookup values for country and timezone (required when we create user). Are there any APIs that would return these values when called from our J2EE application?
    Also let me know if there are any workarounds?
    Thanks and regards,
    Pratik H. Thakkar

    Hi Guys,
    By using Java API, I got 239 countries on Windows 2K professional. Whereas in EP there are 233 countries. Also the names are not matching for eg: American Samao is missing in my local machine.
    Please help.
    Regards,
    Pratik H. Thakkar

  • Assignment of lookup values

    Hi Gurus,
    Is it possible to use lookup values for assignment expressions.
    For eg:
    There are 3 Plants X,Y,Z & also 5 vendors A,B,C,D,E.
    Plant & Vendors are lookup flat tables.
    Now i want an expression such that if i choose vendor A or B then automatically plant field should be filled by X.
    Thanks in advance.
    Pramod

    Hi Minaz,
    As u said assignments can be done on Main Table as well as lookup table
    But what if I am running an assignment on main table and I want to update a lookup table field value.
    The assignment on main table never gives lookup table fields,
    it will only give main table fields.
    Please elaborate on ur statement that assignments work on both main table as well as lookup table.
    I guess assigments work individually on the specified table.
    Please help I need to run assignment on main table and update a lookup table field.
    Please tell me if dis is possible.
    Regards Tejas..........

  • Oracle HR - lookup values

    Hi,
    Could you tell me where the lookup values for domainValues_Employee_Ethnic_Group_Code_ora11i come from.  The documentation says to 'SELECT DISTINCT PER_INFORMATION1 FROM PER_ALL_PEOPLE_F' - but where does this get populated from?
    Thanks in advance

    Duncan,
    Thanks for your reply. I successfully udpated the table validation and this does apply date-tracking functionality in the professional forms. I have not come across any errors, although an error message might actually be helpful. For instance. if the user updates an HR record with a value that has a future end-date, then date-tracks forward to a date after the value's end-date, the value is still there on the HR record and there is no error message - presumably because the validation is only envoked when the user tries to update the record again. Not sure what I would need to change here..
    thanks,
    Darryl

Maybe you are looking for

  • Items available in CVC not in planning book

    Hi Team, we are facing some error... we need to activate some new products in the forecasting process so the items are already transferred to SCM .Items are available in SCM data base and even in CVC but it not reflecting in the planning book. Pls he

  • Is that adapter 1394 the same as firewire or i-link?

    Hello, i have a neo2 and i´m trying connect my mini dv video camera to the back conector with a firewire cable but i can´t find the camera or i don´t know how to do it. Anyone of you can tell me where can i found information in order to configure it.

  • Billing Plan Start Date not copied to Sales order from Service Contract

    Hi We are developing a process of Creation of Service Contract and then a order confirmation. Now based on the Order Confirmation will bill based on the Bill Plan. The Bill plan start date in contract header is not flowing to Sales Order header while

  • MRP에서 RESOURCE를 REPLAN시 FRM-40735 ERROR 발생

    제품 : MFG_MRP 작성날짜 : 2002-11-27 MRP에서 RESOURCE를 REPLAN시 FRM-40735 ERROR 발생 ========================================== PURPOSE Problem Description MRP에거 Resource Replan시 FRM-40735 Error 발생. **Reproduce steps 1. Run MRP with MRP-M1-PRD plan (plan capaci

  • ABAPer_ASSET MANAGEMENT

    Dear experts, what are the minimum things one should know in asset management as an abaper...especially consolidation.. thanks in advance