Skip to Content
0
Former Member
Mar 20, 2009 at 06:07 AM

i want long long text

26 Views

dear guru,

i want to concatanate the texts of upto more than 2.5k chars into l_text1, but i think there is an limit of holding the character values. because after a fixed length it doesnot hold more. what should i do.

my ltext table is as follows.

noise while running

Smoke while eng starts

fuel tank symptom

burnning fumes hjkhfjksdhfkshfkjshfkshkfhksdhfkshdkfhskfhkshfkshfkshfkhskfhsdkfhkshfkshfkhskfhskfhkshfkshfkhskfhskfhskdfhksdhfkshkfhksdhfkshkfhsdkfhksdhfkshkfhskfhks amol.

and the final value of l_text1 comes as 'noise while running ,Smoke while eng starts ,fuel tank symptom ,burnning fumes hjkhfjksdhfkshfkjshfkshkfhksdhfkshdkfhskfhkshfkshfksh' only.

plz see the code as follows.

data: l_text1(25000) TYPE c.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = lv_objid

language = sy-langu

name = name1

object = lv_obj

TABLES

lines = ltext

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.

DELETE ltext WHERE tdline IS INITIAL.

LOOP AT ltext.

if l_text1 is not INITIAL.

CONCATENATE l_text1 ' , ' ltext-tdline INTO l_text1.

ENDIF.

if l_text1 is INITIAL.

CONCATENATE l_text1 ltext-tdline INTO l_text1.

ENDIF.

i = i + 1.

ENDLOOP.

suggest me where to edit. i have no idea to do............???

with thanks and regards

ajay