cancel
Showing results for 
Search instead for 
Did you mean: 

About DropDown in ALV

Former Member
0 Kudos

Hi, experts

I want use the dropdown by key field in alv,

How to catch the event 'ON_CLICK' when user choose

a value from DropDown?

Thanks you very much!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

You can make use of the alv event 'ON_DATA_CHECK' which is triggered as soon as the user selects some value in your dropdown.

Regards

Karthick

Former Member
0 Kudos

Hi, Karthick

I try to do it, but it is not successful, if you have source

code, can you show it to me?

Thanks you very much!

AFork
Advisor
Advisor
0 Kudos

Hey,

pleaes register the event in the view (WDINIT):

  • Register the event for changes...

lo_model-if_salv_wd_table_settings~set_cell_action_event_enabled( value = abap_true ).

Then define the Eventhandler for "ON_CELL_ACTION" in the ALV.

That should work.

Good Luck!

Achim

abhimanyu_lagishetti7
Active Contributor
0 Kudos

go through WDR_TEST_EVENTS standard web dynpro component, where you have typical usage of all the UI elements.

Abhi

Former Member
0 Kudos

Hi, Abhimanyu

Thanks you for your reply!

I want catch event in alv, i catch event of button

successful in alv , but dropdown not successful.

Former Member
0 Kudos

Hi, experts

Who can help me, Thanks you very much!

I can not catch event of dropdown by key

from 'ON_FUNCTION' or 'ON_CLICK' in ALV.

Former Member
0 Kudos

Hi Ken,

Please check the fourth tutorial in the below link:

[ALV Tutorials|https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/webcontent/uuid/60ea94e5-0901-0010-c3bb-aad5ea9620d8] [original link is broken];

This series will let u know well about ALV.

I hope it helps.

Please revert back with issues.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

The SALV UI elements that are exposed as part of the ALV are a bit abstracted in order to encapsulate their usage within the ALV. That does mean that you lose some of the control - not all events or properties of the underlying UI elements are exposed via their SALV counterparts. I believe that in this case the event you want for DDLB is simply not exposed.

Perhaps you should consider if the regular table UI element can meet your needs. With a table UI element, you have full control of the column UI elements.