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

Module pool programming

Former Member
0 Likes
390

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
371

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

2 REPLIES 2
Read only

Former Member
0 Likes
372

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

Read only

Former Member
0 Likes
371

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