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 control sel_box

Former Member
0 Likes
1,310

Hello,

i am using a table control through wizard.now i want to capture a particular line and fetch some data based on it to the other screen.

i went through the following thread.

now i dont know where to enable the sel_box option.

12 REPLIES 12
Read only

Former Member
0 Likes
1,284

hi,

is it compulsory to take check box in table control...its possible to make interactive in table control same as ALV...means clicking on some line and getting its detail info in other screen?

will it be ok?

Read only

0 Likes
1,284

dhawni we can do it that way 2 but would that be simple?

Read only

0 Likes
1,284

yup,

do like this

make that field of table control respond to double click ( attributes -->display) from which u want detail list....

now

make one button PICK in application toolbar of gui status

name must be PICK and assign f2 as function key.....

now in user_command module of PAI...


*MODULE user_command_1000 INPUT.*

  CASE ok_code.
    WHEN 'BACK' OR 'UP' OR 'CANC'.
      LEAVE PROGRAM.

    *WHEN 'PICK'.*
      *GET CURSOR FIELD xblnr VALUE bill_no.*
      *CALL SCREEN 1001*.

  ENDCASE.

ENDMODULE.                 " USER_COMMAND_1000  INPUT

here 1001 is my second screen on which i want detail info...

now makw table control on that scren also...

and in one module of PBO say fetch_data1

write like this


*MODULE fetch_data1 OUTPUT.*

  SELECT SINGLE xblnr bldat rmwwr cputm FROM rbkp INTO
     CORRESPONDING FIELDS OF itab2
     WHERE xblnr = bill_no.
  APPEND itab2.

*ENDMODULE.                 " fetch_data1  OUTPUT*

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 26, 2008 11:49 AM

Read only

0 Likes
1,284

hello,

thanks for the response.

i want to display data for a line selected on the table control and not for a particular field.how do i go about that?

Read only

0 Likes
1,284

hi,

what do u mean by display data for a line selected ?

u want more than one field?

Read only

0 Likes
1,284

i have a tabstrip and on the tab 'line items' i have a table control.supposing i have more than 1 record in this and i select one of these records and move to the other tab 'schedule lines' then i have an sql query to fetch data corresponding to a field in the line items into the table control schedule lines.

Read only

0 Likes
1,284

so ultimately u want data from any one field only no?

Read only

0 Likes
1,284

yes

Read only

0 Likes
1,284

ok

i havent done interactive functionality between two tabs...sorry

Read only

0 Likes
1,284

can u explain how to make a field respond to f2?

Read only

0 Likes
1,284

hi,

ya that i can do

when u create ur button it will ask for function key

or open expand function keys..

there will be recommended function key setting...

there would be F2...

assign PICK to that

Read only

Former Member
0 Likes
1,284

Hai ,

U can write the following code in the PAI .

Loop at itab.

module modify_data.

endloop.

Module modify_data.

modify itab index tablecontrol-current_line.

if sy-subrc <> 0.

append itab.

endif.

endmodule.

before that in the screen u need give the "SEL" name as itab-sel.

Neeraj