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

pushbutton in alv column

Former Member
0 Likes
406

Hello,

I have to create an ALV(not using OO) with a pushbutton column. The requirement is as follows: the grid contains a text column. When the text contains more than 100 characters, a column with a pushbutton (named: More...) is selected by the user to view the rest of the text description. Scrolling within the text column is not desired.

Can someone tell me how to define the column as a pushbutton. How about how to disable the pushbutton for the row, when the text is less than 100 characters? I am thinking that I can handled the event in the user_command area of the ALV.

Can this be done?

Regards,

Anna-Liza

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
381

Hi

You can show a field as ICON (it menages it in catalog table) and assign the HOTSPOT option to it.

In this way the field should behave itself like a push button.

As soon as you know the row you can decide which action has to be done: to show or not to show the rest of text:

you can do it activing the event HOTSPOT_CLICK.

Max

2 REPLIES 2
Read only

Former Member
0 Likes
382

Hi

You can show a field as ICON (it menages it in catalog table) and assign the HOTSPOT option to it.

In this way the field should behave itself like a push button.

As soon as you know the row you can decide which action has to be done: to show or not to show the rest of text:

you can do it activing the event HOTSPOT_CLICK.

Max

Read only

0 Likes
381

Hello Max,

thanks for the suggestion. I tried it and it works.

Regards,

Anna-Liza