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

Similar Messages

  • 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..........

  • 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.

  • Unable to filter LookupSet values based on another Lookup value

    Hey all, I've got a report item where I'm pulling a list of values using a lookupset. The lookupset is working as expected, however I need to filter those results based on a different value which belongs to the same dataset as the lookup value. I'm trying
    to filter on the tablix but nothing I try is working to filter. I just end up with no data when I know I should be getting one value. I tried filtering using a lookup and lookupset expression but that doesn't seem to be what is needed. This is my first time
    really diving into lookups so any help would be appreciated.
    Thanks,
    Bryan
    (using report builder 3.0)

    Do you only want the values where type = "Writing Assignment 1". If that is the case then modify your LookupSet as follows:
    =Join(Lookupset(Fields!identifier.Value+"Writing
    Assignment 1",Fields!Student.Value+Fields!value.Value,
    Fields!value.Value, "Comments"), vbCrLf)
    This will require that identifier matches student and type matches "Writing Assignment 1".
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • 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

  • Blank value in "Assignment" field in FBL3N transaction output

    Hi experts,
    When i exeucted FBL3N transaction, the assigment field gets displayed as blank in the output screen. 
    I have given input for GL Account, Company code and Posting date in FBL3N transaction input screen and executed. Iin the output, the "Assignment" field (field ZUONR) gets displayed with empty value.
    recently the system is upgraded from 4.6C to ECC 6.0.  When we checked in our 4.6C system, this FBL3N transaction displays value for Assignment field. But when we checked in ECC 6.0, this "Assignment" field gets displayed with blank value.
    Could anyone suggest the reason why the Assigment gets displayed with blank value..
    Is any OSS note to implemented for solving this issue?. If so, pls share the Note details..
    regards,
    Shanthi

    Hi,
    Yes, there is a SAP note. Check SAP note # 322910.
    You should have posted it in FI forums.
    Hope this helps.

  • 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)

  • How to pass the value to "Assignment" when submit the program RFITEMGL?

    Hello friends,
    I want to submit program RFITEMGL  (t-code FBL3N) with some screen fields, some fields are OK to fill such as u201COpen at key dateu201D, u201CG/L accountu201D and u201CCompany codeu201D。 But for the field "Assignment" (It will appear after cilck Dynamic Selection), I don't know how to pass value to it.
    Could you help me about how to pass the value to "Assignment" when submit the program RFITEMGL  (t-code FBL3N) ?
    Thanks a lot!

    Hi,
    Well you can create a small BDC.
    Regards,
    Harsh Bansal

  • Screen value not assign in field symbol

    Hi gurus,
             I create a field symbol for module pool programming for assigning screen value. I create a tab in main screen and three subscreen for tab.  in first screen values perfectly asign in field symbol but second subscreen FS1,FS2,FS3 values not assign.
    Atthe time of save three subscreen values stored in internal table, then insert into ztable.
    PERFORM SAVE_DATA USING '15' 'GTAB-IO_CODE' 'GTAB-IO_PER' 'GATB-IO_VAL'.
    PERFORM SAVE_DATA USING '26' 'GTAB-IO_SCODE' 'GTAB-IO_SPER' 'GTAB-IO_SVAL'.
    FORM SAVE_DATA USING X TYPE I
                         FS1 TYPE STRING
                         FS2 TYPE STRING
                         FS3 TYPE STRING.
    *FORM SAVE_DATA USING X TYPE I FS1 TYPE STRING.
      CLEAR SNO.
      CLEAR C.
      ITAB-MANDT = SY-MANDT.
      ITAB-BUKRS = '1000'.
      ITAB-DOCNO = '0001000005'.
      ITAB-BUDAT = SY-DATUM.
      DO X TIMES.
      IF X EQ '15'.
        FS1 = 'GTAB-IO_CODE'.
        FS2 = 'GTAB-IO_PER'.
        FS3 = 'GTAB-IO_VAL'.
      ELSEIF X EQ '26'.
        FS1 = 'GTAB-IO_SCODE'.
        FS2 = 'GTAB-IO_SPER'.
        FS3 = 'GTAB-IO_SVAL'.
      ENDIF.
        C = C + 1.
        SNO = SNO + 10.
        ITAB-SLNO = SNO.
        ZCOMRP_ORTRN-SLNO = SNO.
        CONCATENATE FS1 C INTO FS1.
        ASSIGN  (FS1) TO <FS>.
        ZCOMRP_ORTRN-PRCOD = <FS>.
        ITAB-PRCOD = <FS>.
        CONCATENATE FS2 C INTO FS2.
        ASSIGN  (FS2) TO <FS>.
        ZCOMRP_ORTRN-KBETR = <FS>.
        ITAB-KBETR = <FS>.
        CONCATENATE FS3 C INTO FS3.
        ASSIGN  (FS3) TO <FS>.
        ZCOMRP_ORTRN-DMBTR = <FS>.
        ITAB-DMBTR = <FS>.
       INSERT ZCOMRP_ORTRN.
        APPEND ITAB.
        INSERT  ZCOMRP_ORTRN FROM ITAB.
        CLEAR FS1.
        CLEAR FS2.
        CLEAR FS3.
       CLEAR C.
      ENDDO.
      PERFORM CLEAR.
    ENDFORM.                    " SAVE_DATA

    solved

  • 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 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.

  • The type of the value being assigned to variable ... differs from the current variable type

    I am trying to load a variable on SSIS Execute SQL Task with a string value. I keep on getting an error message :-
    “The type of the value being assigned to variable “User::LegacyColumns” differs from the current variable type”.
    Below are the settings on my package:
    Execute SQL Task Result Set –
    Single Row
    Variable Data Type –
    String
    The data to be loaded on the variable is a single row shown below:
    FirstName,LastName,MiddleName,PatientType,Title
    Can someone kindly help me to solve this as I’m lost for ideas.
    Thanks,
    Mpumelelo

    Thank you Sorna. I think I have managed to solve it. After a long search I have found a solution which advises that I should use a Foreach Loop Container. The help is on this link:
    https://social.msdn.microsoft.com/Forums/en-US/f46dea91-c26b-4ffe-ab1c-ebeef57c90b6/error-0xc001f009-at-mypackage-the-type-of-the-value-being-assigned-to-variable?forum=sqlintegrationservices
    Mpumelelo

Maybe you are looking for

  • Safari 4: Problems with animated GIF

    Hi, since I've updated to Mac OS X 10.6 my Safari 4.0.3 has Problems with some animated GIF. Some of these smileys look strange. OS: Mac OS X 10.6.1 Mac: iMac (24-inch Early 2008)

  • Earmarked Funds

    Hi Friends, My customer found error when post Earmarked Funds by multiple line.  The error message is "Express document 'Update was terminated' received from author 'XXXuserid'.  Tried to find out from SAP Note but nothing similar to this error. Plea

  • E-mail generation by sap

    Hi Gurus in my system I want that system should generate mail as the stock of perticular material reach re order point level hoe this is possible where to do setting for that ? is their any std.tcode or setting please suggest me regard

  • Simple PDF Form Signatures

    Hi all, My client has a requirement to capture a simple handwritten signature on a PDF form whenever they use the form with one of their customers. They have a tablet pen with their laptops and just want the signature on the form as the image and lef

  • Kodo JDO 2.5.0 now available

    All, Kodo JDO 2.5.0 is now available. Thanks, everyone, for helping out throughout the 2.5.0 public beta period. You're all great. You can get Kodo JDO 2.5.0 at: http://solarmetric.com/Software/Purchase/download.php Major changes include: - Major que