To populate two inputbox based on one f4 search help

Hi,
I have two input box where I need to use a search help for the first input box where I will get the user id but the second input box which is read only should also be populated with the user name from the same database table of the search help simultaneously. I tried using onenter method of the first input box but the problem here is I am gettin the name only after clicking enter button.. I don't need that.. I need it to get populated that instant when the user id is populated.
I hope my writing is not more confusing that I am right now.
Any help will be really appreciated.
Thanks and Regards
Tenzin

Hi Tenzin,
As per told by you that your are not able find the link which I have mentioned.. though I got the component .
With that component check the VIEW - V9, otherwise check the logic given below.
Logic for OVS Search help.
1. Take a Component Usage of WDR_OVS in you component controller.
2. Then take that used component of OVS in your view Controller.
3. Then for which attribute you need the OVS search help, make that input help mode properties to OVS and in the OVS Component usage pass the OVS component usage name.
4. After this bind the attributes to the UI element .
5. Then create a method of type event and assign the OVS event of the component usage of ovs you have created to that event.
After this write this logic within that method.
method on_ovs .
  data: l_spfli_node     type ref to if_wd_context_node,
        l_struc_spfli    type ig_componentcontroller=>element_sflight,
        l_element        type ref to if_wd_context_element,
        l_tab_output     type table of wdrtest_ovs.
  field-symbols: co_phase_1.
nothing to do here
    when if_wd_ovs=>co_phase_2.
query
      cl_wdr_flights=>get_data(
          exporting
            tab_name   = 'SFLIGHT'
          changing
            data     = l_tab_output ).
      ovs_callback_object->set_output_table( output = l_tab_output ).
    when if_wd_ovs=>co_phase_3.
apply result
      if ovs_callback_object->selection is not bound.
*******TODO exception
      endif.
      assign ovs_callback_object->selection->* to  ).
      endif.
  endcase.
endmethod.
Regard
Manoj Kumar

Similar Messages

  • Populate and display internal table results using search help exit...

    I have copied F4IF_SHLP_EXIT_EXAMPLE and made changes. I want this search help exit to populate and display contents related to 'FIELD1' when the user enters a specific value for it in the search help screen, meaning when the user restricts the search by that value.  For field2, field3, field4, field5, field6, field7, and field8 I am using a custom view.
    Following is the code:
    TYPES:  BEGIN OF t_search,
                   field2 TYPE field2,
                   field3 TYPE field3,
                   field4 TYPE field4,
                   field5 TYPE field5,
                   field6 TYPE field6,
                   field7 TYPE field7,
                   field8 TYPE field8,
                   field1 TYPE field1,
                END OF t_search.
      DATA: it_itab TYPE TABLE OF t_search,
            wa TYPE t_search,
         wa_selopt TYPE ddshselopt,
            wa_fielddescr TYPE dfies.
    ranges: r_field1 for std_table1-field1
    STEP SELECT    (Select values)
        FREE: r_field1.
    **Get the value entered for FIELD1 in search help
        LOOP AT shlp-selopt INTO wa_selopt.
          CASE wa_selopt-shlpfield.
            WHEN 'FIELD1'.
              r_field1-sign = wa_selopt-sign.
              r_field1-option = wa_selopt-option.
              r_field1-low = wa_selopt-low.
              r_field1-high = wa_selopt-high.
              APPEND r_field1.
              CLEAR: r_field1.
          ENDCASE.
        ENDLOOP.
    **Select 'ID' and 'FIELD1' from table into lt_itab
        SELECT id field1
              INTO TABLE lt_itab
                FROM std_table1
                  WHERE field1 IN r_field1.
        IF sy-subrc = 0.
    **Now, based on the particular IDs from lt_itab, I need to select other values
    from other tables which also have 'ID' as the key.
           SELECT std_table2~field2
                std_table2~field3
                std_table3~field4
                std_table3~field5
                std_table3~field6
                std_table4~field7
                std_table4~field8
                std_table1~field1
              INTO CORRESPONDING FIELDS OF TABLE it_itab
              FROM std_table2
                         INNER JOIN std_table3 ON
                                std_table3mandt = std_table2mandt AND
                                std_table3id = std_table2id
                         INNER JOIN std_table4 ON
                                std_table4mandt = std_table2mandt AND
                                std_table4id = std_table2id
                         INNER JOIN std_table1 ON
                                std_table1mandt = std_table2mandt AND                                           std_table1id = std_table2id
              WHERE
                    std_table1~field1 IN r_field1.
    'id' is common in all the std_tables --> std_table1, std_table2, std_table3, std_table4.
    STEP DISP     (Display values)
    **Then I need to gather all the results in my internal table it_itab and display
    in search help results for the value of FIELD1 entered by the user in the search help.
        CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
          EXPORTING
            parameter   = 'FIELD1'
            fieldname   = 'FIELD1'                          
          TABLES
            shlp_tab    = shlp_tab                                   
            record_tab  = record_tab
            source_tab  = it_itab
          CHANGING
            shlp        = shlp
            callcontrol = callcontrol.
    I am not getting all the data in my internal table and wanted to know if there is anyting wrong in my select statement.
    Any guidance will be appreciated and awarded appropriate points.
    Thanks.

    the webdynpro fieldname and the search help input parameter name were made same.

  • Automatically populate other fields on screen while applying search help on

    Hi,
    There is some urgent requirement
    I have one screen in which 3 fields are there
    Functionality is like this when I apply search help for one field it will call a FM which populate a internal table in which value for all 3 fields will be there and it should be populated in all 3 fields.
    I am assigning proper value to all 3 fields in POV event but only one feild is getting populated on which I am applying search help.
    Anybody can sort this out.
    will be thankful to U.

    Hi..,
    just copy, paste and execute this code..
    Check this code..will be helpful for u..
    tables:mara,makt,mseg.
    parameters: p_bukrs type t001-bukrs,
    p_butxt type t001-butxt,
    p_ort01 type t001-ort01,
    p_land1 type t001-land1.
    data: dynfields type table of dynpread with header line.
    data: return type table of ddshretval with header line.
    at selection-screen on value-request for p_bukrs.
    call function 'F4IF_FIELD_VALUE_REQUEST'
    exporting
    tabname = 'T001'
    fieldname = 'BUKRS'
    dynpprog = sy-cprog
    dynpnr = sy-dynnr
    dynprofield = 'P_BUKRS'
    tables
    return_tab = return
    exceptions
    field_not_found = 1
    no_help_for_field = 2
    inconsistent_help = 3
    no_values_found = 4
    others = 5.
    refresh dynfields.
    read table return with key fieldname = 'P_BUKRS'.
    Add it back to the dynpro.
    dynfields-fieldname = return-retfield.
    dynfields-fieldvalue = return-fieldval.
    append dynfields.
    Get the company code from db and add to dynpro
    data: xt001 type t001.
    clear xt001.
    select single * into xt001
    from t001
    where bukrs = return-fieldval.
    dynfields-fieldname = 'P_BUTXT'.
    dynfields-fieldvalue = xt001-butxt.
    append dynfields.
    dynfields-fieldname = 'P_ORT01'.
    dynfields-fieldvalue = xt001-ort01.
    append dynfields.
    dynfields-fieldname = 'P_LAND1'.
    dynfields-fieldvalue = xt001-land1.
    append dynfields.
    Update the dynpro values.
    call function 'DYNP_VALUES_UPDATE'
    exporting
    dyname = sy-cprog
    dynumb = sy-dynnr
    tables
    dynpfields = dynfields
    exceptions
    others = 8.
    <b>
    plz do remember to close your thread, when ur problem is solvedd !! reward all helpful answers !!
    regards,
    sai ramesh</b>

  • Separating values for two fields which is have same search help

    Hi Folks,
    I have one requirement like this. i have 2 fields in MM02 t-code. if i see F4 for those 2 fields it is showing 7 values in that search help. both fields are having same search help so that it is showing same 7 values for these 2 fields. but i want to separate this. if i click on the first fields then it has to show first 3 fields and if i click 2 field it has to show rest 4 fields. can any one suggest what to do for this. these 2 fields are not having search help exit and this one im doing in ECC 6.0.
    Regards..
    kanna

    Hi Rajesh,
    Your are mention related to MM02 which is standard t-code. I am not sure it is possible for that. It can be restrict through code level only..
    Regards,
    Kumar

  • Need to create two nodes based on one condition in message mapping.

    Hi Experts,
                    In my mapping I have two different nodes. If my condition is true then only one node should be created otherwise both the nodes should be created.
    requirement is I need to print. one header before first item record and after every 200 item records.
    i.e I need to create header node if (item recordno) is 1 or (item recordno % 200) is 1. I have tried using this condition. But Iam getting all the header records( 3 headers for 600 items) in sequece and then all  item records (600).
    i want 1 header then 200 items , then again header followed by 200 items. so on.
    Can any body help.
    Thanks&Regards,
    REYAZ HUSSAIN

    Hi REYAZ HUSSAIN,
    as graphical mapping is "target field mapping" this is not possible. The parser for graphical mapping traverses the taget message from the first element to the last!
    You need another kind (ABAP, XSLT, JAVA) of mapping.
    Regards Mario

  • How to merge two .mp4 files into one file?---Help!

    When two clients make viedo chats on FMS,FMS saves two clients' audio and video informations into two seperate mp4 files.
    Now I want to get one mp4 file which contaions one cilent's audio and video informations and another client's audio information when recording
    Is there any way to deal with this problem?
    Thanks in advance..

    Hi Tibor,
    Below is the output i got.
    [Tracer_2]<?xml version="1.0" encoding="UTF-8"?><Rowsets DateCreated="2015-04-05T23:22:05" EndDate="2015-04-03T11:10:27" StartDate="2015-04-03T11:10:27" Version="14.0 SP5 Patch 11 (Aug 27, 2014)">
        <Rowset>
            <Columns>
                <Column Description="" MaxRange="100" MinRange="0" Name="col1" SQLDataType="1" SourceColumn="col1"/>
                <Column Description="" MaxRange="100" MinRange="0" Name="col2" SQLDataType="1" SourceColumn="col2"/>
                <Column Description="" MaxRange="100" MinRange="0" Name="col3" SQLDataType="1" SourceColumn="col3"/>
            </Columns>
            <Row>
                <col1>1</col1>
                <col2>2</col2>
                <col3>3</col3>
            </Row>
            <Row>
                <col1>11</col1>
                <col2>22</col2>
                <col3>33</col3>
            </Row>
            <Row>
                <col1>a</col1>
                <col2>b</col2>
                <col3>c</col3>
            </Row>
        </Rowset>
    </Rowsets>
    Please find the image below to achieve this. Please note, I have used local variables to assign input xmls and repeat through it. Repeater_0 for Headers and Repeater_1 for body.
    Kindly ignore Doc_0 here, it's for another purpose. Document_1 is what we are focussing on.
    Please note, you would not be able to see columns as those are dynamically created. Still you can map it as shown above.
    Hope this helps.
    Best Regards,
    Swaroop

  • Two MDB can look one Queue?-help

    Hello All,
    i have one promblem regarding implementing MDB with Queue,
    My module flow like this
    EAI send one Request messge to My queue, i have one MDB with msg selector is 'Verify' , pick up the message and process it and put it n same queue. after that EAI send one acknowledgement msg to same queue, i have one session bean , that bean waiting for the ack. msg and pick up the message and again process and put it n same queue with n 30 seconds. if i fail to put the message with n 30 seconds, EAI Send one cancelation msg to that queue.
    so my problem is
    how can i pick up the cancelation msg without using Session bean.?
    can i use one more MDB to Pick up the cancelation msg?
    can i use two MDB with Msg selector looking for one queue?
    or any other way to solve the prblm?
    thanx n advance
    muruganandam

    hi
    no session bean not register with queue
    basically one helper class (msgReceiver ) receive the msg and handover to session bean,
    so no listener n session bean

  • Two IPod Nanos On One Computer..HELP

    My son has an IPod Nano and has all his songs on my computer, he received free songs when we first hooked it up to ITunes.
    Problem, my daughter now has the same IPod and is using my computer to get her music as well. When we first hooked hers up, she did not receive free music like my son did even though hers is registered too. How does she get the free music and how do we get it so she has her own music list? They do not like the same music and it is trying to put my son's music on hers.
    Please someone help.
    IPod Nano   Windows XP Pro  

    This should help. Using multiple iPods on one computer. I prefer method three.
    Don't know about the free music.

  • How to add Two Interface Mappings to One Receiver(BPM) Help needed urgently

    I have a requirement where i get a flat file and split into multiple files and send to BPM.
    For each split file I created Interface Mapping using Java Mapping Program.
    In the Configuration how to add more Interface Mappings?
    Thanks for your help in advance.
    Regards
    Sudha

    You can use Enhanced Interface Determination to split one message to Multiple hence to multiple Interfaces.
    You have to change the Occurance of Messages in Message Mapping and their Corresponding Interfaces in Interface Mapping. That would create Multiple Files with Multiple Interfaces to Receiver (BPM)
    1) You need not to use Multilpe Interface Mapping
    2) You will use Extended Interface Determination for this.
    regards.
    Jeet.

  • Itunes on two sites, and only one ipod? help please

    have itunes at home (on a mac) and at another location (on a pc) - simple enough, but my library is at home and i have limited tracks at the other venue. but when i plug in the ipod the alternate itunes wants to make it the default "home". my question is am i able to change this to act only as a secondary "hub" as it were, i cant seem to find anything in the pref's to do this.

    hi,
    firstly - thanks alot for the reply, it is good to know there are people willing to help (i tried another forum and got nowhere.)
    secondly - trying to change the preferences on the windows based machine, it does not allow alteration until the ipod is connected, but when i do connect it it asks me to change to it (being the windows pc)the default library - and when i decline the ipod is not connected to itunes. being new to the mac experience (both ipod and computer) i know there is prob an easy way round this but i am afraid i cant see it.
    any chance of an idiots guide?
    thanks for looking and the help so far

  • Two iphone 4 Devices, One Apple ID - Help me Change

    My wife and my son both have iPhone 4 devices.  At the current time they both use the same Apple id. My wife uses iCloud with her phone and iMac for business.   Last night my son update to iOS6 and in the process iCloud got turned on.  Now all of his Apps and Contact have migrated to my wifes device as well.  I need sons phone to have different id now without killing his or her data, How do I do this on his phone while restoring her world back to normal?
    She's not happy....Help

    You will need to create a new Apple ID for your son.
    The problem is that all the apps downloaded on the shared ID will still ask for that password when updating and they will update on the other devices. You will have to manually remove the apps you don't want from the devices.
    It's issues like this that show why you shouldn't share ID's

  • Two Creative cloud accounts - one computer. Help.

    Here's the deal - I have a creative cloud account on my home computer for photography and I do photography for work so I installed it on my work desktop too. So far that's been great. Now, however, my boss is also in need of my work desktop and wants to use cc application from his account on my work station. I only have cc for photography (lightroom and photoshop) and he has the full suite. Do I have to uninstall CC for myself and install his or is there a way to switch between accounts (and available applications) on the fly?

    Hi ntsloan,
    You just have to sign out from your Adobe Id and let your boss sign in with his Adobe Id.
    Please refer : Sign out, Sign in | Creative Cloud Desktop app
    Thanks,
    Atul Saini

  • Two info provider in one query

    Hi ALL,
    i am currently looking at two info providers from where data needs to be pulled, but i am not able to get two info providers in one report while using the query designer.
    is this a restriction. can i have more than one info provider in one report?
    what would be the procedure to get two inf providers in one report
    plz help....
    Regards
    Arvind Kumar

    Hi,
    You can create a report through query designer only on single InfoProvider(either Multiprovider, InfoCube, InfoSet, DSO,Master Data Object).
    If you need to get data from more than 1 info provider you have create a Multiprovider which will include the relevant info providers, and then create report on that Multiprovider.
    Hope it helps!!
    Thanks,
    Lavanya.

  • Two Dimension Hierarchys based on one Logical Table

    Is it possible to have two dimesion hierarchys based on one logical table? Suppose we have the following case:
    Accounts Table
    Code
    Name
    Category
    Subcategory
    Level 1
    Level 2
    Level 3
    I would like to have one dimension Total > Category >Subcategory > Code and one Total > Level 1 > Level 2 > Level 3 > Code, so I can drill down on both paths. Is this possible?
    Thanx

    Yes, the trick is to have the same key on the lowest level in your hierarchy.
    regards
    John
    http://obiee101.blogspot.com/

  • How to populate a table based on a row selection from another table.

    Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario .
    By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to populate an another table at the bottom of the same page from another view. These two tables are related by primary key . May i know how to populate a table based on a row selection from another table. Thanks
    ganesh

    I understand your requirement and the tutorial doesn't talk about Association between the views so that you can create a Master-Detail or in DB parlance, a Parent-Child relationship.
    I will assume that we are dealing with two entities here: Department and Employees where a particular Department has many Employees and hence a Parent-Child relationship.
    Firstly, you need to create an Association between the two Entities - Department and Employees. You can do that by right clicking on the model's entity and then associating the two entities with the appropriate key say, DepartmentId.
    Once you have done that, you need to link the two entities in the View section with this Association that you created. Then go to AppModule and make sure that in the Available View Objects: 'EmployeesView' appears under 'DepartmentView' as "EmployeesView via <link you created>". Shuttle the 'DepartmentView' to the right, Data Model and then shuttle
    "EmployeesView via <link you created>" to the right, Data Model under 'DepartmentView'.
    This will then be reflected in your Data Controls. After that, you simply would have to drag this View into your page as a Master-Detail form...and then when you run this page, any row selected in the Master table, would display the data in the Detail table.
    Also, refer to this link: [Master-Detail|http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html]
    Hope this helps.

Maybe you are looking for

  • Basic IDOC types

    what are these  ORDERS05, DELIVERY03 & WMMBID02 i found that these are basic idoc types. what does it mean? Regards, pandu.

  • BEx: Compare Week current year vs. prev. year

    Hello, In BI7.0 I have to create a report with following design: Budget 2009: Week 01.2009 : 50 Week 02.2009: 60 Week 03.2009: 70 Budget 2008: Week 01.2008: 30 Week 02.2008: 35 Week 03.2008: 40 The report shout display on rows level: 01  /   02   /  

  • 16:9 problems

    I am trying to create a 16:9 dvd. I used a 6.0 theme. I burned the dvd, it plays widescreen completely on my widescreen TV, then on my 4:3 TV the menu is squished but the video plays letterboxed. So it's not my TV setting that is wrong, I thought the

  • I cannot make a connexion with update server

    If i get a message to update my Fierefox i tried to make contact with the update server, but this does not work

  • Reservation to be created from another plant

    Dear All I have a scenario where stores person has created one plant as engineer stores ,which is different from maintenance plant, When executing the work order i can able to specify the plant which is corresponding to the engineer stores.from which