‎2008 Aug 11 11:16 AM
Hi Friends ,
In my table control if i click any line then i have to go to next screen based on the line i have clicked.
so, I need to capture the key fields to read the internal table for the get the value in next screen .
i am tring to do with
READ CURRENT LINE.
Addition:
... FIELD VALUE f1 INTO g1
...
fn INTO gn ...
which is not helping me ....
Can any one guide me how to read those values apart from get cursor values keyword
Thanks
Poornima
‎2008 Aug 11 11:29 AM
Hi ..
go to gui status and under Recommended function key settings
put F2 as PICK and
then in user command module in PAI..
write
WHEN co_pick.
CLEAR ok_code.
GET CURSOR LINE l_line.
l_line = l_line + tabl_sc2-top_line - 1.
READ TABLE internal table INDEX l_line.
m not sure how to do it without cursor
regards
vivek
‎2008 Aug 11 11:20 AM
Hi,
first you have to find the current position of the cursor:
GET CURSOR { { FIELD field [field_properties] }
| { LINE line } }.
then you read your internal table with that information
READ TABLE int_table index line.
Read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] if found helpful!!!
Edited by: Julius Bussche on Aug 11, 2008 10:36 AM
‎2008 Aug 11 11:29 AM
Hi ..
go to gui status and under Recommended function key settings
put F2 as PICK and
then in user command module in PAI..
write
WHEN co_pick.
CLEAR ok_code.
GET CURSOR LINE l_line.
l_line = l_line + tabl_sc2-top_line - 1.
READ TABLE internal table INDEX l_line.
m not sure how to do it without cursor
regards
vivek
‎2008 Aug 11 11:34 AM
Hi Poornima,
Use this...
GET CURSOR FIELD M1 VALUE M2.
where M1 is of type string and M2 is of the field type...
Then u'l hv the field value in M2...Pass this value to the next screen field..
‎2008 Aug 11 12:01 PM