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

TABLE CONTROLS

Former Member
0 Likes
728

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
646

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.

4 REPLIES 4
Read only

Former Member
0 Likes
646

Hi,

Can you look at the Demo programs

<b>demo_dynpro_tabcont_loop

demo_dynpro_tabcont_loop_at</b>

Regards

Sudheer

Read only

Former Member
0 Likes
646

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.

Read only

Former Member
0 Likes
646

Check..

demo_dynpro_tabcont_loop

demo_dynpro_tabcont_loop_at

Read only

Former Member
0 Likes
647

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.