Application Development 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: 

change column due to value in previous column alv grid

Former Member
0 Kudos

Hi,

is it posible to create column with checkbox 'VS_ODP', checkbox will be only in rows which have in previous column 'FUNCTION' values 'VP'.

regards,

Joanna

4 REPLIES 4

former_member223537
Active Contributor
0 Kudos

HI,

THe internal table which you pass to ALV should have first field as CHECK.

data :

Begin of i_output,

check type c,

matnr type mara-matnr,

maktx type makt-maktx,

end of i_output.

In the fieldcatalog, pass Checkbox = X for the CHECK field.

wa_fieldcat-checkbox = 'X'.

Best regards,

Prashant

0 Kudos

yes I know but in this case all fields in column will be as checkboxes but i need only checkboxes in field where in previous column is value 'VP', when there is another value in VS_odp there is not checkbox and cell is not aditable.

regars,

joanna

former_member223537
Active Contributor
0 Kudos

Hi Joanna,

There is no alternative to have Checkbox only for specific rows.

Workaround is to have Checkbox as a column(Details mentioned above).

Depending on the value VS_ODP, you can make each Checkbox either editable or non-editable.

Best regards,

Prashant

0 Kudos

how can I do it?

regards,

Joanna