‎2006 Jun 05 5:44 PM
I have a custom transaction where I have a table control.
In this table control are listed business partner numbers.
I want to double-click on one item in this list and goto another transaction that displayes the Business Partner record.
The control currently allows multiple selection due to user requirements.
How can I capture the BP number by double clicking on an item in the table control?
Is this possible?
Many Thanks
David
‎2006 Jun 06 10:57 AM
go to GUI status in ure program,
then goto funtion keys---->then recommended function key.
here assign a fct code to choose icon.
next in PAI use the following code
GET CURSOR FIELD <FIELD_NAME> VALUE <VALUE1>.
BY DOUBLE CLICK IN TABCONTROL u can get the field name and field value.in the above variable(<FIELD_NAME>,<VALUE1>)
cheers,
patro
‎2006 Jun 05 5:49 PM
Did you enable the 'react to double click' property on your table control? Double click is similar to 'PICK' function. So check in PAI, if this command is there in sy-ucomm.
‎2006 Jun 06 9:36 AM
Thanks, I didn't activate the 'react to double click' but I have now.
When I double click on the relevant place now I get 'Function code cannot be selected'.
I'm fairly new to dialog programming so I guess I've missed something else out?
Many Thanks
David
‎2006 Jun 06 9:40 AM
go to screen user command module .
and do the coding there.
module USER_COMMAND_0100 input.
CASE ok_code.
WHEN 'PICK'.
CALL TRANSACTION ......
ENDCASE.
‎2006 Jun 06 10:47 AM
Many thanks for all your help.
The final piece to get it working was putting the PICK in the F2 function key field.
I didn't seem to work in any function key fields.
Regards
David
‎2006 Jun 06 10:57 AM
go to GUI status in ure program,
then goto funtion keys---->then recommended function key.
here assign a fct code to choose icon.
next in PAI use the following code
GET CURSOR FIELD <FIELD_NAME> VALUE <VALUE1>.
BY DOUBLE CLICK IN TABCONTROL u can get the field name and field value.in the above variable(<FIELD_NAME>,<VALUE1>)
cheers,
patro