2008 Mar 14 4:50 AM
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
2008 Mar 14 8:17 AM
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
2008 Mar 19 1:27 PM
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