Application Development 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: 

Long Text --- 1000 characters

Former Member
0 Kudos

Hi All,

I have a report that is using ALV and one of my fields has to display a long text description of a material. My client has asked me to make sure that at least 1000 characters are displayed for a long text description. I have tried to explaing to my client that only 132 character can be displayed but insisted that he desparately needs 1000 characters....

Can anyone advice me out on this.

Regards,

Fred.

6 REPLIES 6

former_member181995
Active Contributor
0 Kudos

use Dataelement CACS_CHAR1000SF.Is it Classical ALV?

0 Kudos

I am using plain ALV. I am not sure of the data element you have sent me i have never used it before, may you sent me the sample code on how to use it?

Thanks.

0 Kudos

I'm Assuming The Term you used "Plain" ALV you meant classical one

you can give refrence of this datatype to your screen field.

data:text type CACS_CHAR1000SF.

and set the enough space for ptinting this 1000 char space.

make sure you are not using any line-size with your report statement.

0 Kudos

Hi,

This is the code i have used in my report:

      • Data definition***

Data: begin of i_tab occurs 0,

........

.......

text TYPE CACS_CHAR1000SF,

end of i_tab.

      • field catalog***

itb_fieldcat-fieldname = 'TEXT'.

itb_fieldcat-seltext_l = 'POD Text'.

itb_fieldcat-col_pos = 35.

itb_fieldcat-outputlen = 1000.

itb_fieldcat-emphasize = 'X'.

APPEND itb_fieldcat TO itb_fieldcat.

CLEAR itb_fieldcat.

FORM reading_text.

gv_repid = sy-repid.

SELECT SINGLE ebeln INTO i_tab-ebeln FROM ekpo WHERE matnr = i_tab-matnr.

line_id = 'BEST'.

line_name = i_tab-matnr.

line_lang = sy-langu.

line_object = 'MATERIAL'.

CLEAR i_tabs.

REFRESH i_tabs.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = line_id

language = line_lang

name = line_name

object = line_object

TABLES

lines = i_tabs

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

LOOP AT i_tabs.

CONDENSE i_tabs-tdline.

CONCATENATE: i_tab-text i_tabs-tdline INTO i_tab-text SEPARATED BY space.

MODIFY i_tab TRANSPORTING text.

ENDLOOP.

ENDFORM. "reading_text

The text is still cutting off.

Regards,

Fred

0 Kudos

Ahh,

I thought you were using from Classical but you are doing with ALV Grid/list.

I'm sorry to say thats would not be possible with Grid/List.Max limit is 128 char.Reason I'm not sure.But you can refer few notes on same.

OSS:910300,857823,959775

Cheers

0 Kudos

Hi,

How can i change this concept to classical? i have never used classical before but if it can solve my problem then i will go for it....

Thanks,