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: 

Xstring to string conversion when data is more than 255 char

Former Member
0 Kudos

Hi

I have come across many FMs which convert xstring to string, but all return string value in a string variable and the value is truncated after 255 char, can any one please tell any FM which can return string data in a itab of type string.

I hav found this one, but wht shoud i pass to in_codepage and ex_codepage.

CALL FUNCTION 'LXE_COMMON_XSTRING_TO_STRNGTAB'

EXPORTING

in_xstring = lv_datasource

TEXTKEY = '001'

in_codepage = ''

ex_codepage = ''

DROP_EMPTY_LINE = 'X'

IMPORTING

EX_TAB = itab.

  • PSTATUS =

Regards,

Tushar

2 REPLIES 2

Former Member
0 Kudos

check the table TCP00 for possible values of code page.

b_deterd2
Active Contributor
0 Kudos

Hi,

You should give class cl_document_bcs with method xstring_to_solix a try. This should work very well.

Regards,

Bert