Application Development 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: 

Table Control double click / w/ set column

Former Member
0 Kudos

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

4 REPLIES 4

former_member1245113
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

Use set screen 0. Leave screen

Former Member
0 Kudos

Found solution myself.