‎2021 Mar 13 3:04 PM
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.
‎2021 Mar 13 5:44 PM
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'.
‎2021 Mar 13 5:49 PM
Hello Sandra,
Thanks for the suggestion. Would you mind to send me the full code which need to be implemneted to handle this
‎2021 Mar 13 6:35 PM
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.
‎2021 Mar 13 6:38 PM
‎2021 Mar 13 6:39 PM
It was not difficult to find it by searching this:
"CL_ABAP_CONV_OBJ" "BROKEN = 'R'" site:sap.com