2006 Dec 19 2:39 PM
if possible any body can send me the sample code.
thanks,
maheedhar.t
2006 Dec 19 2:44 PM
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
2006 Dec 19 2:44 PM
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
2006 Dec 19 2:49 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |