12-17-2017 1:14 PM
Dear Support,
I have a loop which Concatenates two strings, the problem is Concatenate is limited only for 255 char.
how do I Concatenate string which is larger than 255 ?
Thanks
12-17-2017 1:34 PM
It's not the SAP support here, it's a community with people of good will (most of them are not related to the SAP company), trying to help other people.
12-17-2017 1:39 PM
Sorry but the concatenation is not limited to 255 characters at all, where did you read that?
Run this code which does nothing except it doesn't short dump which proves that the resulting string3 is 400 characters long :
DATA: string1 TYPE string, string2 TYPE string, string3 TYPE string.
SHIFT string1 RIGHT BY 200 PLACES. TRANSLATE string1 USING ' X'. " or string1 = repeat( val = 'X' occ = 200 ).
string2 = string1.
CONCATENATE string1 string2 INTO string3.
ASSERT strlen( string3 ) = 400.
12-17-2017 2:25 PM
I think the issue is he didn't actual use a "string" data type or field.
12-17-2017 2:43 PM
12-17-2017 2:47 PM
I guess your target field is limited to 255 characters. That would be trivial.