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

lr_column problem

Former Member
0 Likes
516

WHy doens this work??

      lr_column ?= lr_columns->get_column( 'AS4USER' ).
      lr_column->set_long_text( 'User' ).
      lr_column->set_output_length( 7 ).

The field is of type:

   as4user LIKE e070-as4user,

The column header is printed a Owner?

3 REPLIES 3
Read only

Former Member
0 Likes
449

Hi Kenneth,

I'd guess because the long text isn't used for the column header.

Try calling set_medium_text or set_short_text.

Cheers
  Adi

Read only

Former Member
0 Likes
449

Hi Kenneth,

Column header depends on Medium text ,not on long one

so you should try like this

      lr_column ?= lr_columns->get_column( 'AS4USER' ).
      lr_column->set_medium_text(text-001).   [create a text element Text-001 = 'USER' or soem variab as your wish ]
      lr_column->set_output_length( 7 ).

Thanks,

Deb

Read only

0 Likes
449

Hello,

Strange, on my fields of fx. type string i dont have to set medium_text.... Why do i need it on this field?

/Kenneth