‎2006 Dec 04 3:16 PM
HELLO,
CAN ANYONE TELL ME AS TO HOW A TABLE CONTROL IS DECLARED IN PAI,PBO AND GLOBAL DECLARATIONS..............WAT IS THE SYNTAX TO B USED?
I HAVE TWO TABLE CONTROLS IN ONE TABLE I HAVE MATNR.WHEN I SELECT ONE MATNR IN THE 1ST TABLE AND PRESS A PUSH BUTTON THAT PARTICULAR RECORD SHOULD GO INTO THE SECOND TABLE CONTROL.CAN U TELL ME HOW TO DO THAT??
THANKING U IN ANTICIPATION.
REGARDS,
SUPRIYA MATTA.
‎2006 Dec 04 3:38 PM
Ya supriya matta,
regarding your second question:
for selecting a record you have to use get cursor rite for this you have to declare 2 variables at the starting like ..........
DATA: V-FNAM(10), V_FVAL(10) TYPE N.
one for holding the filed and another one for holding the value in that field
then in the coading let us take your tab is 'item'.
module...PAI of first tc let us take(110)
case sy-ucomm.
when 'item'.
get cursor fileld V_FNAM value V_FVAL.
SELECT......................................
as normal stuff what ever u require.
call screen 120.
that means u r calling the screen where this selected values results should be displayed.
endcase.
as i said before make the loop-endloop statements in both pai and pbo side where ever u use the table controls
I think it would be helpful for you
If you find it useful plz mark the points
Regards,
SRI.
‎2006 Dec 04 3:19 PM
Hi,
Can you look at the Demo programs
<b>demo_dynpro_tabcont_loop
demo_dynpro_tabcont_loop_at</b>
Regards
Sudheer
‎2006 Dec 04 3:29 PM
hi supriya,
here I am giving some info in brief
first of all in the data declaration
Controls: tconctrol(tc name) type tableview using screen '120' (what ever may be the screen where u have placed it)
PBO side
loop at ( internal table) itab with control tcontrol.
module status_0120.
endloop.
PAI side
just you have to specify the loop
PAI.
loop at itab.
end loop.
Regards,
SRI.
‎2006 Dec 04 3:33 PM
‎2006 Dec 04 3:38 PM
Ya supriya matta,
regarding your second question:
for selecting a record you have to use get cursor rite for this you have to declare 2 variables at the starting like ..........
DATA: V-FNAM(10), V_FVAL(10) TYPE N.
one for holding the filed and another one for holding the value in that field
then in the coading let us take your tab is 'item'.
module...PAI of first tc let us take(110)
case sy-ucomm.
when 'item'.
get cursor fileld V_FNAM value V_FVAL.
SELECT......................................
as normal stuff what ever u require.
call screen 120.
that means u r calling the screen where this selected values results should be displayed.
endcase.
as i said before make the loop-endloop statements in both pai and pbo side where ever u use the table controls
I think it would be helpful for you
If you find it useful plz mark the points
Regards,
SRI.