Application Development and Automation 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: 
Read only

Webdynpro issue: Columns distorted

Former Member
0 Likes
622

Hi Experts,

We are facing an issue in SAP Solution Manager system after upgrading to SP14 recently.

The "width" of a columns in a specific webynpro screen gets fixed ie. non-resizable by the user.

Its pretty large and not as per the content, so the user can't see more than 1-2 columns at a time.

Changing personalization settings does not help.

The strange thing is , with another user (provided to SAP for analysis) this issue does not occur.

This issue occurs after the Upgrade.

I believe this to be related to some Webyndpro layout settings/parameters. Not sure how it can user specific.

Can you please help me on the same ?

Regards,

Shaswat

2 REPLIES 2
Read only

veerababu_alladi
Explorer
0 Likes
576

Hi sashwat,

You did that application by using ALV right ?

so you have adjust the width in programatically.

DATA: LR_IF_CONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE,

LR_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE,

LR_CMDL TYPE REF TO CL_SALV_WD_CONFIG_TABLE,

LR_TABLE_SETTING TYPE REF TO IF_SALV_WD_TABLE_SETTINGS.

LR_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).

IF LR_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.

  LR_CMP_USAGE->CREATE_COMPONENT( ).

ENDIF.

    • get reference to the ALV model

LR_IF_CONTROLLER = WD_THIS->WD_CPIFC_ALV( ).LR_CMDL = LR_IF_CONTROLLER->GET_MODEL( ).LR_TABLE_SETTING ?= LR_CMDL.

    • Set column width

DATA LR_COL TYPE REF TO CL_SALV_WD_COLUMN.

LR_COL = LR_CMDL->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'PERNR' ).

LR_COL->SET_WIDTH( '70' ) .

LR_COL = LR_CMDL->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'ENAME' ).

LR_COL->SET_WIDTH( '100' ) .

LR_TABLE_SETTING->SET_FIXED_TABLE_LAYOUT( ABAP_TRUE ).

Also refer

webdynpro component SALV_WD_TEST_TABLE_PROPs

Go for view TABLE and method SET_COLUMN_SETTINGS.

If you used Layout table you can adjust table colomn by selecting width in properties.

Thanks,

Veerababu.

Read only

0 Likes
576

Hi Veerababu,

This is a standard component and SAP standard code.

We have confirmed that the code itself (methods within the component) are not modified by the Upgrade.

In debugging the column widths are proper.

For your reference the effected component name is AGS_WORK_ALERT_DETAIL (found in SAP Solution Manager system)

Regards,

Shaswat