‎2010 Apr 06 9:58 AM
HI ,
My requiement is data is being populated into table control ( only display columns ) and, if the user select a row or double clicks
on the row, it should open new screen and also it should take first 2 columns data in the new screen.
Please help.
Regards,
Anktih
‎2010 Apr 07 5:49 AM
Hi Harsha,
I could not make it Yesterday, But better Late than never,
1) You need to select Respond to Double Click on Screen Table Control Field
2) Assign an OK code for F2 in PF-Status. (DBL) i did it like this
3) Assign OK in Screen Elements " Left Tab of Flow Logic
Declare all the Variables used here in TOP Include .
" This is a tested Program code in ECC6.0
in PBO
module status_0100.
in program
module status_0100.
set cursor field 'ITAB-CARRID' line line. " We get the Line value from MODULE_USER_COMMAND mentioned below
endmodule.
in PAI
module user_command_0100.
in program
module user_command_0100.
DATA : NO TYPE I.
CASE ok.
WHEN 'DBL'.
CLEAR ok.
DESCRIBE TABLE itab LINES tc-lines.
GET CURSOR FIELD fnam VALUE fval LINE line. " This gives the Row on Table Control
NO = TC-CURRENT_LINE + LINE - 1. " The line on which you Click in Internal Table
READ TABLE itab INDEX NO. " Now catch the Values from here and
" Call your new screen and pass these values there from ITAB Header Line
WHEN 'BACK'.
LEAVE PROGRAM.
ENDCASE.
endmodule.Cheerz
Ram
‎2010 Apr 07 7:27 AM
Thank a ton Ram for the reply.
I managed to solve 'click' problem and have a new one.
Wheneer user double clicks on table ctl row, I am calling a model window with new PF-status which has
Back and Exit. I am setting to 'Back' to set screen 100 & leave screen (original screen ). But, its coming off the entire application
when I press 'Back'.
Please help.
Regards,
Harsha
‎2010 Apr 07 8:14 AM
‎2010 Apr 13 7:45 AM