cancel
Showing results for 
Search instead for 
Did you mean: 

What is the special character for Char option of hAlign property of a cell?

Former Member
0 Kudos

Hello Experts,

The following is an excerpt from [the Web Dynpro ABAP documentation |http://help.sap.com/saphelp_nw04s/helpdata/en/91/880042d5c5e23ee10000000a155106/content.htm](http://help.sap.com/saphelp_nw04s/helpdata/en/91/880042d5c5e23ee10000000a155106/content.htm)

hAlign

Horizontal alignment of the content with the grid.

char - Alignment to a special character The assignment of the char value allows you to align the cell contents to a single character.

I assume that this special character has a default vaule and it can be customized, but I don't know where I can find this value or how I can customize it.

Could you please give me any hints? I appreciate your help very much.

Best regards,

Bo

Edited by: Bo Wang on Jun 2, 2011 6:57 PM

Edited by: Bo Wang on Jun 2, 2011 7:00 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I never tried this, i think using CL_WD_MATRIX_DATA=>E_H_ALIGN-CHAR you can set this.

cheers,

Kris.

Former Member
0 Kudos

Hi Kris,

Thanks for the information.

Constant CL_WD_MATRIX_DATA=>E_H_ALIGN-CHAR is useful when we want to dynamically set the horizontal alignment of a cell as Char. In this case, we can assign this constant to the hAlign property of the cell at run time. As shown in the following code excerpt from class CL_WD_MATRIX_DATA, there are other constants for this purpose as well.


  constants:
    BEGIN OF E_H_ALIGN,
  CENTER TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '00',
  " CellHAlign.center,
  CHAR TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '01',
  " CellHAlign.char,
  JUSTIFY TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '02',
  " CellHAlign.justify,
  FORCED_LEFT TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '05',
  " CellHAlign.forcedLeft,
  END_OF_LINE TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '06',
  " CellHAlign.endOfLine,
  FORCED_RIGHT TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '07',
  " CellHAlign.forcedRight,
  BEGIN_OF_LINE TYPE WDY_UIE_LIBRARY_ENUM_TYPE VALUE '08',
  " CellHAlign.beginOfLine,
 END OF E_H_ALIGN .

The question is, however, what this special character (used for Char alignment) is. We can set hAlign of a cell as Char at design time, but Web Dynpro ABAP Workbench doesn't allow us to specify a special character. I was wondering if we could set the character as a parameter for a Web Dynpro ABAP application.

Regards,

Bo

Edited by: Bo Wang on Jun 3, 2011 4:34 PM

Edited by: Bo Wang on Jun 3, 2011 4:36 PM

Edited by: Bo Wang on Jun 3, 2011 4:43 PM

Answers (0)