cancel
Showing results for 
Search instead for 
Did you mean: 

Delete columns in alv

former_member497277
Participant
0 Kudos

In my application I have a component ALV in which, depending on the option that is selected in an element radiobuttongroup, this alv shows a fields or others.

I am using this for not show columns:

l_value->if_salv_wd_column_settings~delete_column ( 'name_column' ).

And in case of this erased column has to be showed (for another option of the radiobuttongroup):

l_value->if_salv_wd_column_settings~create_column ( 'name_column' ).

But this column does not get to be showed.

Exists another form to do it?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member497277
Participant
0 Kudos

Hello Frank.

Thanks for your response.

I had thinking this. I'm reading about method get_model_extended but this method has an importing parameter type ref to IF_SALV_WD_TABLE=>S_TYPE_PARAM_GET_MODEL, and I don't see any example of how it works.

Somebody know this??.

Thanks in advance.

frank_ruggaber
Explorer
0 Kudos

Hi Ana!

Why don't you call your ALV configuration method (where you do all your

ALV settings) again - for instance with a parameter if the specific column should

be shown or not. This would be the easiest way.

Greetings

Frank