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

Xstring to string conversion when data is more than 255 char

Former Member
0 Likes
1,173

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
Read only

Former Member
0 Likes
774

check the table TCP00 for possible values of code page.

Read only

b_deterd2
Active Contributor
0 Likes
774

Hi,

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

Regards,

Bert