‎2008 Feb 26 9:15 AM
‎2008 Feb 26 10:16 AM
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?
‎2008 Feb 26 10:49 AM
‎2008 Feb 26 10:59 AM
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
‎2008 Feb 26 11:53 AM
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?
‎2008 Feb 26 11:54 AM
hi,
what do u mean by display data for a line selected ?
u want more than one field?
‎2008 Feb 26 12:06 PM
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.
‎2008 Feb 26 12:08 PM
‎2008 Feb 26 12:14 PM
‎2008 Feb 26 12:28 PM
ok
i havent done interactive functionality between two tabs...sorry
‎2008 Feb 26 12:31 PM
‎2008 Feb 26 1:05 PM
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
‎2008 Feb 26 10:20 AM
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