How to show value of list from stored table

How do you show the value of a list item stored in a table when
a record is queried from a different table?
ex:
Using the Scott/tiger database. If you have a form that lists
every employee(ENAME) one record at a time and there is a drop
down list for the department(DNAME). How do you make sure that
list (DNAME) changes to the correct value when you are
navigating the employee records?

use populate_group_form_query to create a group with the code
and name. then populate the list with the group (populate_list).
This should work automatically from this point.

Similar Messages

  • How to show value in list box on screen.

    Hey,
    I'm trying to write a little program to select a value from a listbox on a screen... 
    Filling the listbox, no problem.  But showing the value on screen, and using the selected value isn't working...
    So when i select a value, directly after the listbox 'closes', the selected value disappears...
    I read already different threads regarding this topic, but i don't see a solution :(.
    Below you find the code.  Anyone sees where the problem is?
    Screen number = 300.
    PROCESS BEFORE OUTPUT.
      MODULE status_0300.
      Module init_dropdown_box.
    PROCESS AFTER INPUT.
      MODULE user_command_0300.
    REPORT  ztesttom2                     .
    TABLES: zbadgelinks.
    TYPE-POOLS vrm.
    DATA values TYPE vrm_values WITH HEADER LINE.
    data: name type vrm_id.
    DATA  ok_code LIKE sy-ucomm.
    DATA save_ok LIKE sy-ucomm.
    DATA  init.
    DATA it_badgelinks LIKE zbadgelinks OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT * FROM zbadgelinks INTO TABLE it_badgelinks.
      CALL SCREEN 300.
    *&      Module  status_0300  OUTPUT
    *       text
    module status_0300 output.
      SET PF-STATUS 'ST_0300'.
      SET TITLEBAR 'TB_0300'.
    endmodule.                 " status_0300  OUTPUT
    MODULE init_dropdown_box output.
      IF init is initial.
        name = 'LB_SEL_PC'.
        loop at it_badgelinks.
          values-text = it_badgelinks-description.
          values-key = it_badgelinks-id.
          append values.
        endloop.
        CALL FUNCTION 'VRM_SET_VALUES'
             EXPORTING
                  id              = name
                  values          = values[]
             EXCEPTIONS
                  id_illegal_name = 1
                  OTHERS          = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    endif.
    init = 'X'.
    ENDMODULE.
    *&      Module  user_command_0300  INPUT
    *       text
    module user_command_0300 input.
      CASE OK_CODE.
        WHEN 'BACK'. LEAVE TO SCREEN 0.
        WHEN 'EXIT'. LEAVE TO SCREEN 0.
        WHEN 'CANC'. LEAVE TO SCREEN 0.
        WHEN 'CB_CANCEL'. leave to screen 0.
        WHEN 'CB_OK'.
          READ TABLE it_badgelinks WITh KEY ID = it_badgelinks-id.
          IF SY-SUBRC = 0.
            MESSAGE I398(00) WITH 'ID:          ' it_badgelinks-id
                                  'Description: ' it_badgelinks-description.
          ENDIF.
        WHEN 'SEL_PC'.
          CALL FUNCTION 'VRM_GET_VALUES'
            EXPORTING
              id                 = name
            IMPORTING
              VALUES             = values[]
            EXCEPTIONS
              ID_NOT_FOUND       = 1
              OTHERS             = 2
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
      ENDCASE.
    endmodule.                 " user_command_0300  INPUT
    Thanks in advance,
    Kind Regards,
    Tom

    Hi,
    Please check the below modified code of yours.
    Now the value is retained in the list box.
    REPORT  ztest_cert.
    TABLES: t511t.
    TYPE-POOLS vrm.
    DATA: lb_sel_pc(80).
    DATA values TYPE vrm_values WITH HEADER LINE.
    DATA: name TYPE vrm_id.
    DATA  ok_code LIKE sy-ucomm.
    DATA save_ok LIKE sy-ucomm.
    DATA  init.
    DATA it_t511t  LIKE t511t  OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT * FROM t511t  INTO TABLE it_t511t WHERE sprsl = 'EN'.
      CALL SCREEN 300.
    *&      Module  status_0300  OUTPUT
          text
    MODULE status_0300 OUTPUT.
      SET PF-STATUS 'ST_0300'.
      SET TITLEBAR 'TB_0300'.
    ENDMODULE.                 " status_0300  OUTPUT
    MODULE init_dropdown_box OUTPUT
    MODULE init_dropdown_box OUTPUT.
      IF init IS INITIAL.
        name = 'LB_SEL_PC'.
        LOOP AT it_t511t.
          values-text = it_t511t-kotxt.
          values-key = it_t511t-konst.
          APPEND values.
        ENDLOOP.
        CALL FUNCTION 'VRM_SET_VALUES'
          EXPORTING
            id              = name
            values          = values[]
          EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ELSEIF init = 'X'.
      <b>  lb_sel_pc = values-text.</b>
      ENDIF.
      init = 'X'.
    ENDMODULE.                    "init_dropdown_box OUTPUT
    *&      Module  user_command_0300  INPUT
          text
    MODULE user_command_0300 INPUT.
    data: l_code like values-key.
      CASE ok_code.
        WHEN 'BACK'. LEAVE TO SCREEN 0.
        WHEN 'EXIT'. LEAVE TO SCREEN 0.
        WHEN 'CANC'. LEAVE TO SCREEN 0.
        WHEN 'CB_CANCEL'. LEAVE TO SCREEN 0.
        WHEN 'CB_OK'.
          clear: it_t511t.
         lb_sel_pc = l_code.
          READ TABLE it_t511t WITH KEY konst = lb_sel_pc.
          IF sy-subrc = 0.
            CLEAR values.
            values-key = it_t511t-konst.
            values-text = it_t511t-kotxt.
            MESSAGE i398(00) WITH 'ID:          ' it_t511t-konst
                                  'Description: ' it_t511t-kotxt.
          ENDIF.
        WHEN 'SEL_PC'.
          CALL FUNCTION 'VRM_GET_VALUES'
            EXPORTING
              id                 = name
           IMPORTING
             VALUES             = values[]
            EXCEPTIONS
              id_not_found       = 1
              OTHERS             = 2
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
    <b>        l_code = lb_sel_pc.
            READ TABLE it_t511t WITH KEY konst = lb_sel_pc.
            CLEAR values.
            values-key = it_t511t-konst.
            values-text = it_t511t-kotxt</b>.
          ENDIF.
      ENDCASE.
    ENDMODULE.                 " user_command_0300  INPUT
    Thanks & Regards
    Praba

  • How Do I Stop Flash Player From Storing Cache?

    Windows XP SP3
    Latest Flash Player (i just upgraded it to the latest as of today)
    There are a couple of directories on my HDD that appear to be the place where Flash stores cache.
    One of them is (#1):
    c:\Documents and Settings\User\Application Data\Adobe\Flash Player\AssetCache\
    The other is (#2):
    c:\Documents and Settings\User\Application Data\Macromedia\Flash Player\#sharedobjects
    These directories were so bloated with subdirectories that it literally took about 12 HOURS OR MORE to delete everything in them!  I'm not kidding.
    There must have been 100,000 subfolders or maybe even more in these folders.  They were choking everything on my computer that had to read past them.
    I FINALLY was able to delete everything from them after hours of work.
    Now I want to keep them empty, so this doesn't happen again but I can't find out how to do that.  It is so dang frustrating.  I looked and looked for a way to shut this storage off.
    I finally found the online "Settings Manager" and thought I FINALLY solved the problem after setting the "Global Storage" setting to "Never" and unchecking the "Allow third party Flash content to be stored on your computer" and "Store common Flash components to reduce download times" boxes.
    BUT NO!!!
    It didn't do a thing.  I looked at those two folders again and they are still being filled up with new subfolders!!!!
    UUUURRRRRRRRRRRRRRRRRRRRRRRRRRRR!
    How do I keep Flash Player from storing this unwanted mess on my computer?!
    Thank you for ANY HELP!

    PS:
    Before I set the global settings as I stated above, I DELETED all the "Websites already visited" from the list in Settings Manager so that ALL Websites would be set according to the global settings.
    But none of that did a thing to stop the new folders from being created anyway.  How do I stop them??!!!

  • How to populate values in List Box in Adobe form

    Hi,
    How to populate values in List box in adobe forms?
    Thanks
    RB

    if you want to display a fixed values in the dropdown you can use list box ui and can specify values there
    or if u want to display values from the context node of the webdynpro
    1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
    2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
    with regards
    shanto aloor

  • How to delete unwanted contact lists from torch 9810?

    How to delete unwanted contact lists from torch 9810?

    1 THE ATTACHMENT DOES NOT SHOW IN THE BODY OF THE EMAIL -- BUT IS READABLE ONLINE
    2. I DO NOT HAVE NOR CAN I FIND THE LEFT HAND WINDOW (HEADED PERSONAL ..... ESS BOOK IN YOUR IMAGE). THEREFORE NO RIGHT CLICK THEREFORE NO DELETE FUNCTION. I ONLY SEE THE DEFAULT ADDRESS BOOK NAME EMAIL AND SO ON IN 1 WINDOW ONLY. SEE IMAGE 1

  • ON IOS8 UPDATE FOR IPHONE 5C, HOW DO YOU REMOVE RECENTS LIST FROM HOME SCREEN

    HOW DO YOU REMOVE RECENTS LIST FROM HOME SCREEN ON IOS8 UPDATE FOR IPHONE 5C

    SSettings/mail etc/show in app switcher turn that off

  • How to show value of COUNT_QUERY in a text Item?

    please tell me how to show value of COUNT_QUERY in a text Item?

    If you look a bit further down the thread Rosario posted, you might find the method DanielLiang posted to be easier to implement for you.
    you can use calculation:
    example :
    Database Data Block: block1 ( Query All Records : Yes )
    not Database Data Block : block2 (Single Record : Yes)
    block2 has a text item (number) ,it calculation property :
    calculation mode : summary
    summary function : count
    summarized block : block1
    summarized item : item1(block1's item)

  • How to transfer a contact list from a cd to the Iphone 4S

    How to transfer a contact list from a CD to the Iphone 4S?

    Import them from the CD to a supported contact application on your computer, then sync them to your phone.

  • Did not know simple things such as removing hyphen from phone numbers will be so complicated. How do i remove the hyphen from stored phone numbers since i am not able to make a phone call using VOIP. Everytime i make a phone call i have to type the number

    Did not know simple things such as removing hyphen from phone numbers will be so complicated. How do i remove the hyphen from stored phone numbers since i am not able to make a phone call using MobileVOIP. Everytime i make a phone call i have to type the number.

    Go into your contacts and edit them.

  • How do i remove reading lists from my safari on my mac book

    how do  remove a reading list from safari

    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro
    https://discussions.apple.com/community/mac_os?view=discussions 
    http://www.apple.com/support/macbookpro
    http://www.apple.com/support/safari

  • How to passing value into Captivate from html?

    How to passing value into Captivate from html?
    Or
    How to communicate between objects in one slides?

    Hi czhao0378 and welcome to the forums!
    Captivate does not natively allow you to communicate your own
    data, either internally or externally. The only way to make this
    happen is to create your own functionality, either via custom-built
    Flash objects or JavaScript code executed in the browser or a
    combination of both.
    The only example I've seen of any "data passing" inside
    Captivate is a custom text input/output solution that was posted on
    the Captivate Developer Exchange:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
    This solution consists of an input box that takes information
    from the user on one slide and a second box that displays that
    information on another slide. The functionality was built in Flash
    and is embedded in Captivate as a Flash "animation". Unfortunately,
    since this is a custom functionality, the information is not
    included in the user completion results Captivate can pass to a
    Learning Management System.
    Since the solution mentioned above relies on a Flash
    Actionscript variable to hold the information that is displayed,
    you can also pass the information from HTML to Captivate using the
    "SetVariable" command in JavaScript. This would at least allow you
    to display your own HTML-based data inside Captivate.
    Beyond that, I'm not aware of any other way to gather and
    pass data in Captivate.

  • How to change value of ${eol} from \n to \r\n, writing by File Adapter

    Hi All,
    How to change value of ${eol} from \n to \r\n, while writing file through File Adapter.
    As my file is being created in Linux environment, so for new line separater, \n is used. I mounted this file directory to windows System.
    As Windows requires \r\n for new line seperator. So I need to change value of ${eol} in the Schema created for file writing.
    Can any one provide help regarding this.
    Thanks in advance

    Hi,
    When an XML payload is written to a file \n would be used as the default line separator regardless of if its windows or linux, as per the XML specification http://www.w3.org/TR/REC-xml/#sec-line-ends.
    As such, one need not worry about the line separators because, the XML file would eventually be processed by a parser which usually would be able to understand both line endings (as they are whitespace characters as far as the parser is concerned).
    If you want to convert the line terminators (for readability etc), 10.1.3.4 has a new feature - in the XML schema definition for the file adapter payload, add these two top level directives to the schema element:
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    nxsd:normalizeLineTerminators="false"
    Regards,
    Shanmu.

  • How do I recover contact list from my Iphone 4?

    How do I recover contact list from my Iphone 4 if I do not have ICloud and do not have the ITunes sync installed/

    If you don't have backups, theres really not much that can be done other than to have everyone you know send you their numbers/emails again.
    Also, backup your contacts twice from now on. Use iCloud and Lookout Mobile Security.
    Make regular iPhone backups to keep this from happening again.

  • How to transfer your contact list from a nokia phone to iphone s

    how to transfer your contact list from a nokia phone to iphone s

    Import them from the CD to a supported contact application on your computer, then sync them to your phone.

  • How to execute Operating System commands from Stored procedure.

    Any help on how to execute Operating System commands from stored procedures will be appreciated.
    Nanditha.

    Search the forums for 'External Procedure' and you will find example code that has been posted before.

Maybe you are looking for

  • Using BAS in Transaction BP.

    Hi All,           I'm working on creation and change of Business partners. When ever i create or change a Business partner the SAP CRM system has to check with data from other Non SAP system which contains complete data.           Data is successfull

  • How can I graph a schedule?

    OK, I've enjoyed creating some pretty snazzy sheets and charts with Numbers, but this one is stumping me. I'm looking over our Film Festival entries, and I've created a sheet listing movies I want to see.  Title, length (in minutes), and showtimes. 

  • Conversion from Word 2003 changed format

    Converted a manuscript from Word 2003 to PDF. The PDF changed the format/margins slightly, resulting in different pagination. How do I work around that?

  • I cannot activate the phone now after upgrading software

    I have an old phone, 3GS that I no longer use and wanted to use for my kid. I had to update Itunes so I did that. When i connected the 3GS which is no longer being used as a phone (but it is unlocked for any provider was using Tmobile) it asked me to

  • I have i mac system, need all drivers for windows?

    I have I Mac system and i installed windows vista ultimate edition, i require all drivers for windows vista