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

is it possible interactive concept in table control

Former Member
0 Likes
528

if possible any body can send me the sample code.

thanks,

maheedhar.t

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
504

Do you mean to have a field respond to double click inside the table control, sure this is possible, you will need to set the attribute "Reponds to double click" by double clicking the field in screen painter, the attribute is part of the dialog.

Then handle this in the PAI, the fcode that will be fired is PICK.

Regards,

Rich Heilman

if possible any body can send me the sample code.

thanks,

maheedhar.t

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
505

Do you mean to have a field respond to double click inside the table control, sure this is possible, you will need to set the attribute "Reponds to double click" by double clicking the field in screen painter, the attribute is part of the dialog.

Then handle this in the PAI, the fcode that will be fired is PICK.

Regards,

Rich Heilman

Read only

0 Likes
504

You would get the value that is doubleclicked by using the following statement. Do this in the PAI, also handle the PICK fcode accordingly.

data: 
      cursorfield(20) type c,
      cursorline type i,
      cursorvalue(20) type c.

  get cursor field cursorfield line cursorline value cursorvalue.

Handle PICK FCODE.



  save_ok = ok_code.
  case ok_code.
    when 'BACK'.
      clear ok_code.
      leave to screen 100.

    when 'PICK'.
      clear ok_code.

  if not cursorvalue is initial.
    case cursorfield.
      when 'I_INTR-KDAUF'.     "<-Verify the column doubleclicked
        set parameter id 'AUN' field cursorvalue.
        call transaction 'VA03' and skip first screen.
    endcase.
  endif.

  endcase.


Regards,

Rich Heilman