cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while setting the webdynpro alv table column set size

Former Member
0 Kudos

Dear Dynpro guru's,

  i'm facing problem while setting the fix length of the alv Webdynpro table that one is my table column is not visible while i'm using the below code.

  LO_CMP_USAGE =   WD_THIS->WD_CPUSE_ALV( ).

    IF LO_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.

     LO_CMP_USAGE->CREATE_COMPONENT( ).

    ENDIF.

   LO_INTERFACECONTROLLER =   WD_THIS->WD_CPIFC_ALV( ).

   LV_VALUE = LO_INTERFACECONTROLLER->GET_MODEL( ).

   LV_VALUE->IF_SALV_WD_TABLE_SETTINGS~SET_WIDTH( '500' ).


LR_TABLE_SETTINGS ?= LV_VALUE.

LR_COLUMN = LV_VALUE->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'SNO' ).

LR_COLUMN->SET_WIDTH( '20' ) .

LR_TABLE_SETTINGS->SET_FIXED_TABLE_LAYOUT( ABAP_TRUE ).

Please help me to this situation .

Thanks & Regards,

Suresh Reddy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try this

   LV_VALUE->IF_SALV_WD_TABLE_SETTINGS~SET_WIDTH( '100%' )

If this still not helpful to you, Pls check whether you have set the visibility of the column as none in your code .

Thanks

KH

Former Member
0 Kudos

Hi Hawkins,

Thanks for your feed back. if i am  used  like the your suggestion getting the output as the default width of field but here problem is making the column width to 20% of the original width of the column width.

Thanks & Regads,

Suresh Reddy

Former Member
0 Kudos

Hi,

Comment this code and check.

LR_TABLE_SETTINGS->SET_FIXED_TABLE_LAYOUT( ABAP_TRUE ).

Thanks

KH

Former Member
0 Kudos

Dear Hawkins,

Thanks for your valuable suggestion now i am able to adjust the size of column while comment the line. LR_TABLE_SETTINGS->SET_FIXED_TABLE_LAYOUT( ABAP_TRUE ).

Thanks & Regards,

Suresh Reddy

Answers (1)

Answers (1)

former_member197475
Active Contributor
0 Kudos

Hi Suresh,

Check whether are you dynamically making the column invisible at some where else.

BR,

RAM.

Former Member
0 Kudos

Hi Ramakrishnan,

   Thanks for your feedback, Here i am not make the columns as dynamic visible or invisible.reduce the column width of the alv column to 20% of the original width of the column.Please give u r valuable comments..

Thanks & Regards,

Suresh Reddy