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 Selection Row

Former Member
0 Likes
718

Hi all

I have a little problem I can't solve: when creating a table control with screen painter, I can set a row marker. (the one you use for example in almost all transaction when you select rows before clicking "delete lines").

well

What I would like to do is really simple:

when user clicks on the marker an event is associated; for example I click on a row and on another part of the screen details of the row selected is shown.

Tecnichally the problem is that (also activating debugging) the PAI is not triggered, BUT also a double click does not trigger PAI until I set a Fcode on status for detail (F2).

I think it's possible because many transaction do what I need ..

can anyone help me?

Regards

Gabriele

5 REPLIES 5
Read only

RaymondGiuseppi
Active Contributor
0 Likes
621

Just define the selection field as a checkbox in screen painter and assign a function code to it. You could also declare this field as a pushbuton.

Regards,

Raymond

Read only

0 Likes
621

I don't understand. I don't want to use something else. I want to use the row marker in table control (so that row selected is highlighted)

Read only

Former Member
0 Likes
621

Hi,

you have to write the set PF status and title bar inside the PBO module.


module status_0100 output.
  set pf-status 'MAIN'.
  set titlebar 'MAIN_T'.
endmodule.   

Hope your problem will be solved.Please let me know if you will face same problem in your program.

Regards,

Suvajit

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
621

I think it's possible because many transaction do what I need ..

Thats is an ALV grid and not a table control. Now most of the enjoy transactions are built using ALV. You have to use the Object oriented ALV for this. Those are events which gets triggered. You can search in SCN or Google for many related examples.

Read only

0 Likes
621

I was almost sure about what you say, and you confirmed it to me. I think anyway it's really strange: bind the double click and not the simple selection ...

thank you