Application Development 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: 

ABAP Data type to accomodate unlimited characters

Former Member
0 Kudos
1,010

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

9 REPLIES 9

Former Member
0 Kudos
334

how much max character you are expecting?

Former Member
0 Kudos
334

You observed incorrectly.

Rob

Former Member
0 Kudos
334

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

Former Member
0 Kudos
334

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.

0 Kudos
334

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

0 Kudos
334

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

0 Kudos
334

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

0 Kudos
334

Oh...there's more to the story...usually is, lol....

No fix for you, but don't blame it on STRING.

Former Member
0 Kudos
334

Closing