‎2007 May 11 10:40 AM
Hi,
Hi,
I had created two screens in module pool, second screen has table control
in that i want to two tables data print.By using of join statement i had written the select statement but the data was not printed.
plz tell me how to print two tables data in the table.
send me code.
reguards
raji
‎2007 May 11 10:47 AM
Hi Rajyalakshmi,
SELECT amatnr amEINS AMTART DMAKTx bwerks clgort c~labst INTO CORRESPONDING FIELDS OF TABLE I_ab
FROM mara AS a
INNER JOIN MAKT AS D on amatnr = dmatnr
inner join marc AS b
ON amatnr = bmatnr
inner join MARD as c
ON BMATNR = CMATNR AND BWERKS = CWERKS
where AMATNR IN S_MATNR and bwerks in s_werks.
loop at i_tab with control tab_cntrl .
READ TABLE i_tab1 INDEX tab_cntrl-current_line.
endloop.
Reward points if helpful.
Regards,
Hemant
‎2007 May 11 10:47 AM
Hi Rajyalakshmi,
SELECT amatnr amEINS AMTART DMAKTx bwerks clgort c~labst INTO CORRESPONDING FIELDS OF TABLE I_ab
FROM mara AS a
INNER JOIN MAKT AS D on amatnr = dmatnr
inner join marc AS b
ON amatnr = bmatnr
inner join MARD as c
ON BMATNR = CMATNR AND BWERKS = CWERKS
where AMATNR IN S_MATNR and bwerks in s_werks.
loop at i_tab with control tab_cntrl .
READ TABLE i_tab1 INDEX tab_cntrl-current_line.
endloop.
Reward points if helpful.
Regards,
Hemant
‎2007 May 11 10:49 AM
Hi,
In the PAI event of the first screen,,u can fetch the data into Internal table...
In the PBO of second screen...
u need to use
loop at itab with control Tc cursor current-line.
endloop..
In the PAI of second scrren u have to use an empty loop statement...
then the data will apper in ur table control..
For clear understanding go through sap library....
Cheers,
ravi