Application Development 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: 

Need help in table control

Former Member
0 Kudos
73

Hi,

I have two screens.. where in which based on the input we give in the first screen, it has to compare the values with the database table and display those record in the second screen table control..

Please help me out..

thanks,

shiva

2 REPLIES 2

Former Member
0 Kudos
58

First create two screens 100 and 200.

1, first screen 100 - create input fields i_MATNR and pushbuttons 'ENTER'

with function code 'ENTE' what ever you required.

2, Second Screen 200 - create a table control.

controls : gt_control type table control with

SCREEN-- 100.

In PAI

case sy-ucomm.

when 'ENTE'.

call screen 200.

select * from mara into table gt_mara where matnr = i_matnr.

endcase.

SCREEN -- 200.

in PBO.

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

LOOP AT GT_MARA WITH CONTROL FLIGHTS.

ENDLOOP.

PROCESS AFTER INPUT.

LOOP AT GT_MARA.

module read_table_control.

ENDLOOP.

So the fields from mara is popated into table control.

Regards,

Madhavi

Former Member
0 Kudos
58

hi ,

go through this link hope usefull , *remember to reward point

http://saptechnical.com/Tutorials/ABAP/TableControl/Demo.htm

Regards

Fareedas

Edited by: Fareeda Tabassum S on Mar 19, 2008 6:57 PM

Edited by: Fareeda Tabassum S on Mar 19, 2008 6:58 PM