Skip to Content
avatar image
Former Member

Web Dynpro ALV : get_model_extended - example

Hi,

I'm trying to used this method to limit my columns display, if any one can help to give me the example to use this method.

Need to pass S_PARAM, i'm not sure what value to be passed.

There is note for this, but there is no usage example.

[https://cw.sdn.sap.com/cw/docs/DOC-16797]

Thanks for your help.

Edited by: badz lee on Sep 15, 2010 11:13 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 15, 2010 at 10:16 AM

    hi badz lee

    Look at the sample code

    data : ls_alv_get_model TYPE if_salv_wd_table=>s_type_param_get_model,
    ls_alv_get_model-default_columns = abap_false.
    
    *      set for standard view first
        lr_alv_model = lr_salv_wd_ifc->get_model_extended(
         ls_alv_get_model
        ).

    Regards

    chinnaiya.P

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi chinnaiya.P,

      Thanks for the answer, need further clarification on how to set our own column without using the default columns (abap_true)

      Thank you.

      as answer to above question, what i had done is :

      1) assigned original context node A (lot of columns) to another context node B that was defined with required columns only.

      2) Move the the data at component controller level at context node A method.