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: 

Dependent Dropdowns in ALV Grid (OOPs ALV)

OmerZ
Discoverer
0 Kudos
187

I am new to ABAP and currently working on an ALV Grid using Object-Oriented ALV (OOPs ALV) in SAP ABAP. I have two columns in my ALV, both of which are dropdowns:

  1. Data Type: This column has dropdown options - "Number" and "Text".
  2. Conversion: This column's dropdown options should depend on the selection in the "Data Type" column.

Here's the behavior I need:

  • If "Number" is selected in the "Data Type" column, the "Conversion" column should show dropdown options like "Sum" and "Division".
  • If "Text" is selected in the "Data Type" column, the "Conversion" column should show dropdown options like "Upper" and "Lower".

How can I implement this dynamic dropdown behavior in an ALV Grid using the OOPs approach? Any guidance would be appreciated.

1 REPLY 1

thomas_mller13
Participant
0 Kudos
91

Implement an event handler for the on_f4 event, open a f4-help and change cell content from inside via: 

lo_alv->change_data_from_insideit_cells lt_cell ).