‎2008 Mar 01 6:22 AM
Dear All,
I developed a dialog program for stock query.
In that i have a list box in a screen that lists all the materials.
Also i have two table controls to display the plants and Sloc in which the selected material is kept.
when i select the material from the list box, plant are placed is the table control 1.
But my requirement is when i select a single plant from the table control 1, the TC2 should display all the Sloc in that plant.
Can Anybody help me out in this regard,
Thanks in Advance,
Sridhar S
‎2008 Mar 01 8:38 AM
Hi,
Try like this. I assume in 1st tabl ctrl having plants only
I aaume it_tablctrl have fieldanme as plant
This process wil take place whenever u press enter.
PROCESS AFTER INPUT.
loop at it_tblctrl.
module disp.
endloop.
module disp Input.
t_plant = tblc1-plant.
now,
select sloc from <tablename> into itab where plant = t_plant.
loop at itab into wa.
wa2-sloc = wa_sloc.
append wa2 to tblctrl2.
endloop.
REWARD POINTS IF HELPFUL. any questions revert me back.
Regards.
s.senthil kumar
‎2008 Mar 03 8:33 AM
Hi Senthil..
Thank u for ur response.
It will be helpful for me if u send me the solution with some more clarity.
I couldnt get u exactly.
Regards,
Sridhar