Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Doubt in Table Control

Former Member
0 Likes
323

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

2 REPLIES 2
Read only

Former Member
0 Likes
310

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

Read only

0 Likes
310

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