2010 Jun 08 5:23 PM
Hi Folks,
In my program want a variable which can accomodate unlimited characters. I declared a variable with type "STRING" in my program but I observed that it can accomodate only 264 characters. Kindly help me out.
Regards,
Santosh
2010 Jun 08 5:25 PM
2010 Jun 08 5:31 PM
2010 Jun 08 5:48 PM
Guess your observation is based on the number of characters you are able to see at a time in the debugging scree. Use offsets to have a look at the whole data. eg var+200(200)
Vikranth
2010 Jun 08 6:14 PM
As Rob noted, you're wrong...
May I suggest that you declare something of type string, put your cursor on the word string and press ABAP HELP? It's a really useful tool and should be the most used button/function on a noobie's ABAP workbench (not callin' you a noobie, just suggestin').
BTW, when I follow the help links, it looks like to me that I could expect around 2GB of data into a single string, but that can be limited by an SAP systems parameter, ztta/max_memreq_MB.
Of course, we know you're not going to require unlimited length, since computer screens are only so wide and tall, and there is a limited number of reams of paper that can be made from the world's remaining trees....etc...so maybe you could suggest what you're really trying to accomplish, or you might consider type C, which is limited to a inexplicably short 65,535 bytes.
2010 Jun 09 8:25 AM
Hi All,
Thank you very much for all your inputs. I had teh same doubt but to confirm I tried to download the file to check what is the exact no. of characters its holding I found that its 528. Kindly provide your inputs.
Regards,
Santopsh
2010 Jun 09 8:35 AM
SAP help clearly states:
The predefined data types string and xstring describe data objects of variable length ... the maximum size of a string is determined by profile parameter ztta/max_memreq_MB
Source: [http://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_COMPLETE.htm]
Better check the parameter ztta/max_memreq_MB in trxn RZ11.
BR,
Suhas
2010 Jun 09 2:02 PM
Hi Suhas,
Thank you very much for your input. It works. But still I have a small problem, I'm sending the string the SAP PI through ABAP Proxy. But when it reaches there the size of the string becomes 264.
Can you pls help me out in this.
Regards,
Santosh
2010 Jun 09 5:47 PM
Oh...there's more to the story...usually is, lol....
No fix for you, but don't blame it on STRING.
2010 Jun 14 2:50 PM