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

STRING_SIZE_TOO_LARGE

0 Likes
2,769

I am converting xstring to string value by using standard FM ECATT_CONV_XSTRING_TO_STRING. Since my file is large in size more than 2 GB hence the FM is producing short dump as the string size exceeds the maximum length.

Please suggest if there is any other way to convert large xtring value to string. We are getting the xtring from Middleware after decrypting the file.

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
2,110

I guess you are decoding text encoded in UTF-8 (?)

Try to process it by chunks of 100000 bytes for instance. CL_ABAP_CONV_OBJ used to work well for that, with constructor parameter broken = 'R' to handle "broken characters" at end of chunks. Parameter INUSED of method CONVERT says exactly how many bytes were decoded (for instance 99997 to 100000) so that to start at the right offset for the next chunk.

I don't know if there's a successor of old CL_ABAP_CONV_OBJ.

See in the forum if there are examples for CL_ABAP_CONV_OBJ with parameter broken = 'R'.

Read only

0 Likes
2,110

Hello Sandra,

Thanks for the suggestion. Would you mind to send me the full code which need to be implemneted to handle this

Read only

0 Likes
2,110

Please use the COMMENT button for comments, questions, adding details, replying to people, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,110

See here .

Read only

Sandra_Rossi
Active Contributor
2,110

It was not difficult to find it by searching this:

"CL_ABAP_CONV_OBJ" "BROKEN = 'R'" site:sap.com