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

Table Control Question

Former Member
0 Likes
683

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
634

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

5 REPLIES 5
Read only

Former Member
0 Likes
634

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.

Read only

0 Likes
634

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

Read only

0 Likes
634

go to screen user command module .

and do the coding there.

module USER_COMMAND_0100 input.

CASE ok_code.

WHEN 'PICK'.

CALL TRANSACTION ......

ENDCASE.

Read only

0 Likes
634

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

Read only

Former Member
0 Likes
635

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