Skip to Content
avatar image
Former Member

ALV FIELD EDITABLE

I AM USING THE FOLLOWING CODE FOR EDITING THE COLUMN IN ALV BUT I AM GETTING AN ERROR I.E.. wd_cpuse_alv( ). IS UNKNOWN OR PRIVATE PROTECTED

CAN ANY BODY SUGGEST ME HOW CAN I REMOVE THIS ERROR

DATA: lt_columns TYPE salv_wd_t_column_ref,

ls_column TYPE salv_wd_s_column_ref,

lo_column TYPE REF TO cl_salv_wd_column ,

lo_col_head TYPE REF TO cl_salv_wd_column_header ,

lo_ref_cmp_usage TYPE REF TO if_wd_component_usage,

lo_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table ,

lo_value TYPE REF TO cl_salv_wd_config_table.

  • Get reference to the Component usage of the ALV.

lo_ref_cmp_usage = wd_this->wd_cpuse_alv( ).

IF lo_ref_cmp_usage->has_active_component( ) IS INITIAL.

lo_ref_cmp_usage->create_component( ).

ENDIF.

  • Get reference to the Interface controller of the ALV.

lo_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).

lo_value = lo_ref_interfacecontroller->get_model( ).

wd_this->m_alv_model = lo_value.

  • Get the Columns of the ALV

CALL METHOD lo_value->if_salv_wd_column_settings~get_columns

RECEIVING

value = lt_columns.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 09, 2009 at 04:18 AM

    Hi Rafiq,

    I guess you did not giv the correct name for that """wd_cpuse_alv( ).""" Actually the wd_cpuse* till here for all th ecomponents it will be common to check the exact name wht you need to giv on the application tool bar beside the code generator button you have " a button called Display Controller Interface " there you can find this name whcih you just copy and use it .

    Regards,

    Sana.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 09, 2009 at 06:47 AM

    Hi Rafiqh,

    Another way is to call the Webdynpro Code wizard( Ctrl + F7 ), and in that select the "Method call in the current controller".

    There press F4 in the Methods, and select the wd_cpuse_<alv comp use> name.

    This will help in calling the method of the used controllers.

    Hope it is helpful.

    Thank you,

    Regards,

    Shashikanth. D

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 08, 2009 at 03:39 PM

    You probably didn't name your component usage ALV. The wd_cpuse_* name is dynamically generated based upon whatever you named your component usage. Adjust everything after wd_cpuse_ to your specific usage name.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 09, 2009 at 08:45 AM

    closed

    Add comment
    10|10000 characters needed characters exceeded