cancel
Showing results for 
Search instead for 
Did you mean: 

Data element issue

Former Member
0 Kudos

Hi,

I have a Data Element PERSNO.

If i bind a input field with a context attribute of type persno then label for input field picks Field Symbol - Medium of this data element.

If i bind the ALV table's one column with attribute of type perso then column heading picked is Field Symbol - Heading for this data element.

Could anyone explain why this and if I want that Field Symbol - Long should be picked always when binded with input field then what needs to be taken care of ?

Any inputs on this .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

When you create a binding of text for a label with attribute then there you can define ( present at bottm ) to select Type Char as Long Text.

Hope this helps

regards

manas dua

Former Member
0 Kudos

Hi Manas,

Thanx. It worked for input field.

But one more thing :In case of my ALV Table it is picking Field Label :Header by default. How to change it to Long Text in case of ALV Table ?

Former Member
0 Kudos

HI

for this get the ALV column reference then get the heading reference for that column

something like this :

lt_column = lr_column_settings->get_columns( ).

  loop at lt_column into ls_column.

    lr_column_header = ls_column-r_column->get_header( ).  
 * lr_cloumn_header is of type ref to CL_SALV_WD_COLUMN_HEADER

   case   ls_column-id.

    when 'PERSNO'.
             lr_column_header->set_ddic_binding_field( cl_wd_caption=>co_long_text ).
   endcase.

  endloop.

I hope you got the hint

Regards

Manas Dua

Former Member
0 Kudos

Thanks alot Manas.

It worked.

Answers (0)