How to Populate a listbox based on another listbox selection. Please help!

Hi Experts,
     I have a requirement where I have two listboxs(dropdown list) in a selection screen. I have to populate the second listbox based on the selected item from the first listbox. How to do this?
I have created a listbox in a selection screen using
Parameters: p_soldto as listbox visible length 30 user-command chg,
            p_shipto as listbox visible length 30.
Then I have tried to look at the value of item selected  from first listbox in AT SELECTION-SCREEN OUTPUT, But I am not getting any value of p_soldto.
I think I am doing something wrong. I think I have to use some event handling like on selection of an item from listbox. But I don't see any such event handing in ABAP.
Please give me some code example.
Please help!
Thanks
Gopal

HI,
Check this program, it is using a list box and filling values into it at initilization event.
<b>REPORT ztest2.
TYPE-POOLS : vrm.
tables: bkpf.
DATA : values TYPE vrm_values.
DATA : wa LIKE LINE OF values.
PARAMETERS : list_box(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
PARAMETERS: dd type bkpf-BSTAT user-command abc.
select-options: a for bkpf-bukrs MODIF ID buk.
select-options: b for bkpf-belnr MODIF ID SEL.
at selection-screen output.
  If list_box = 2.
    loop at screen.
      if screen-group1 = 'SEL'.
        screen-input = 0.
        modify screen.
      endif.
    endloop.
  endif.
INITIALIZATION.
  wa-key = '1'.
  wa-text = 'Orange'.
  APPEND wa TO values.
  wa-key = '2'.
  wa-text = 'Red'.
  APPEND wa TO values.
  wa-key = '3'.
  wa-text = 'Blue'.
  APPEND wa TO values.
  wa-key = '4'.
  wa-text = 'Gray'.
  APPEND wa TO values.
  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id              = 'LIST_BOX'
            values          = values
       EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.</b>
Regards,

Similar Messages

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

  • My computer died. I do not want to loose one video on my iPod, how can I  use the iPod  on another computer? Please help!

    please advise how I can put my iPod on another computer, my old one died a slow death.  There is one short video on my iPod that can't  be replaced.

    - What is the source of the videos? If taken by the iPod you can transfer them to the new computer by:
    Copying personal photos and videos from iPhone, iPad, or iPod touch to your computer
    - If they were iTunes purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - If they were synced to the iPod and not iTunes purchases then you need a third-party program like TouchCopy or PhoneView.

  • I have had a reinstall nightmare getting my loops back they are in the apple library, I can access them through the media browser but I only have a few available through the loop browser, how do I get them all back there again? please help

    I have had a reinstall nightmare getting my loops back they are in the apple library, I can access them through the media browser but I only have a few available through the loop browser, how do I get them all back there again? please help

    "Where do I find my hundreds of dollars of downloads I have done since 2005?"
    They will only be where you put them  If you are doing the very basics, then they will be on your computer and they will be in your backup copy of your computer.
    The itunes store is not global at all, never has been. You cannot redownload your content from another country.  You can only use the countrys itunes store for the country that you are physically located.

  • I accidentally synced my mum's brand new iPad to my mac book air. A few days later I realised that my iTune library on my mac is completely gone. So is my iPhone 4s after I synced it with my mac. How do I get my old iTunes library back? Please help!

    I accidentally synced my mum's brand new iPad to my mac book air. A few days later I realised that my iTune library on my mac is completely gone. So is my iPhone 4s after I synced it with my mac. How do I get my old iTunes library back? I tried using icloud on my iphone but it stated that I have never back up my phone before. So I guess my iCloud data is gone too? But I have back up my mac in my harddrive using time machine. So how do I get my old itune library back? Please help! Thanks!

    1) ensure iTunes is authorized for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
    above works for purchases from the iTunes store. for everything else, check out this post by Zevoneer.

  • I want to bring over music from my iTunes library on iMac to an ipod touch with another apple id. please help

    I want to bring over music from my iTunes library on iMac to an ipod touch with another apple id. please help. Is this possible. In former versions of itunes this was posible. I can't find the solution is iTunes 11

    Perhaps those apps require a newer version of iOS than is compatible with your iPod.

  • My AppStore id is my apple id n password which is good when purchasing. But when I am updating from update option it ask for a password. The user id I see there is not mine, it's different. How do I change that to my apple Id? Please help me resolve .....

    My AppStore id is my apple id n password which is good when purchasing. But when I am updating from update option it ask for a password. The user id I see there is not mine, it's different. How do I change that to my apple Id? Please help me resolve  this issue. I have tried resetting it but nothing... Either I'm doing something wrong or....

    I believe the issue is with the Apple ID that was used to purchase the App. If you download an App that was purchased under a different Appple ID then all updates will also be linked to the original purchaser's Apple ID. Your Apple ID is the the same ID as your iTunes, iCloud, etc. Some folks use different ID for the different Apple sites. No need for that One ID for all Apple Sites, and if someone else buys an App using their ID and they(you) download that App onto your device and that App requires an update it will ask for the purchasers Apple ID. This happens a lot when folks sell their iPad or give it to someone else and leave some purchased(free) Apps on the iOS device. You cannot change the original ID the App was purchased under. A suggestion would be if someone else has an App that you like but do not want to pay for use their ID or in the future have them gift the App to you.

  • HT1222 I bought used iPhone and on this iPhone I'm not able to make new account  on i Cloud'.  How can I use this iCloud's on used iPhone   Please help me

    I bought used iPhone and on this iPhone I'm not able to make new account  on i Cloud'.  How can I use this iCloud's on used iPhone   Please help me
    When I logging there it told me that maximum no of iCloud's Account already activated on this iPhone.
    Please help me how can I open new iCloud's account on this iPhone
    Regard
    Faiz khan

    Set up the account using a desktop or laptop, then sign
    into that account on your iPhone.
    I am not aware of any method around the restriction once
    the maximum has been created on any individual iPhne.

  • I just got the macbook air for christmas and i also got the dr dre headphones so i am trying to enable my soundcheck on my iTunes but i cannot figure out how to find where sound check is located can someone please help!!

    i just got the macbook air for christmas and i also got the dr dre headphones so i am trying to enable my soundcheck on my iTunes but i cannot figure out how to find where sound check is located can someone please help!!

    Go to the iTunes menu > Preferences > Playback.

  • Why is my iPad all fuzzy and blue? This isn't normal? How do I get it back to normal? Someone please help me.....

    Why is my iPad all fuzzy and blue? This isn't normal? How do I get it back to normal? Someone please help me.....

    Try resetting it.  Hold the on/off and home buttons together for about 10 seconds till the Apple logo appears.

  • How to use a vector to navigate my database? please help me.. ty

    how to use a vector to navigate my database? please help me.. ty

    Quite unclear request�
    Can you provide more details?

  • Have tried to restore settings due to problems, now Iphone shows Sim Failure, how can I get back to using my phone? Please help, its a business phone. :(

    Hi, I have tried to restore settings on my Iphone due to problems I was having with the phone cutting out when talking on the phone, now Iphone shows Sim Failure, how can I get back to using my phone? Please help, its a business phone.

    Hi jclarke64, 
    Thank you for contributing to the Apple Support Communities. 
    I'm sorry to hear that your iPhone 4s was lost, and glad that you were able to upgrade. 
    If your iPhone 4s was backed up to iCloud or using iTunes, you can restore the backed up data to your new phone. 
    See the steps in this article for help with restoring from a backup:
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    All the best,
    Jeremy 

  • How to start Managed server in weblogic10gr3....please help me out...

    hi...
    How to start Managed server in weblogic10gr3....please help me out...

    Hi
    You can start Managed server in admin console ->servers
    or you can start the managed servers in Independent mode(without admin server)
    by using the startManagedWebLogic.cmd/>startManagedWebLogic.sh (this requires weblogic authentication).
    Hope this helps
    thanks

  • HT4009 I did not download the in-app purchase at time of original App download, now I cannot figure out how to find and download the in-app purchase.  Please help!

    did not download the in-app purchase at time of original App download, now I cannot figure out how to find and download the in-app purchase.  Please help!

    Hello paddyliverpool,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Refund is an option.
    Best of luck,
    Mario

  • I have downloaded iOS 6 to my iTunes but I have clicked "Download Only" not "Download and Update" how do i install/sync it to my iPad. Please help me, its taken me hours to download it i don't want to do it again :(

    I have downloaded iOS 6 to my iTunes but I have clicked "Download Only" not "Download and Update" how do i install/sync it to my iPad. Please help me, its taken me hours to download it i don't want to do it again
    PLEASE HELP ME!!!

    Hook your iPad into your computer and open iTunes. GIve it a couple of minutes to get going, then click on the name of your device, then the main summary page. In the middle you'll see a software update button/area. Click on check on updates and update and follow the prompts.
    it SHOULDN"T redownload but if you've already got it should just install.
    I'd suggest that you first do a complete sync before you update, that way you have a good backup to restore your device from if the upgrade doesn't go perfect.

  • In my iPhoto library i have photos of web pages i don't know how they got there there are hundreds of them ,how do i get rid of them and stop them please help me

    in my iPhoto library i have photos of web pages i don't know how they got there there are hundreds of them ,how do i get rid of them and stop them please help me as i have no idea many thanks

    im sorry to be a bit thick here i didnt know this was happening until i looked through all my photoes i use an sd card to put pictures on lap top and icloud from my phone but in library there are all web pages i have ever been to ie face book ebay etc i didnt know if there was any thing i should be turning off many thanks for ur last answer though

Maybe you are looking for

  • Need manual input of gl account- good issue against order

    Hi experts I want to give manual gl account when user issue a material against plan maintenance order(iw31). Is it possible? Or how i can assign a gl when i issue a material to order. Please help me to solve the problem.

  • PO RECEIPT Component Interface (PO_RECEIPT_CI)

    I am trying to use the default PO_RECEIPT_CI to create a new receipt from a 3rd party application. I have successfully setup the web service and I am able to send messages and get responses. However, when I try to create what seems to be a simple rec

  • Image cut off when printing from snipping tool

    I am using the snipping tool that is part of Microsoft Windows 7. Thank you for your help.

  • Project plant is different and Plant in PO is different

    Hi, I have a situation in production environment as: Project is created with plant TG01. No network/activity is in the project. Direct PO is made with 'Q'. But the user has put plant in PO as TD01. GR has been made. Quality inspection is through. Pro

  • BT Infinity Installation - One of the Worst Experi...

    I wonder if anyone can help. I'm having a nightmare getting BT Infinity installed. Despite telling BT I was moving back in April and being highly dependent on broadband as I work at home, three weeks after moving I am still waiting to be connected. I