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

Doubt in Strings

Former Member
0 Likes
1,018

Hi

The maximum size of data a string can accomadate is 255. What i will do if the count is more than 256. The problem is when i am trying to store 300 characters in a string and print it into a smart form only 255 is displaying. But i need to print more than 300 characters in a single stretch..What i will do..Plz help...

Thanks..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
964

hi,

Save the string as Standard text and print using Text include, otherwise breakup the string and print it as substrings of length 255.

Regards

Karthik D

9 REPLIES 9
Read only

Former Member
0 Likes
965

hi,

Save the string as Standard text and print using Text include, otherwise breakup the string and print it as substrings of length 255.

Regards

Karthik D

Read only

0 Likes
964

Hi

Thanks for ur erply...I have this value in my Internal Table only...I mean this is an internal table field..How can i convert this into a standard text..Also in internal table string is displaying fully(I mean all the 300 characters)..But while coming into Smart form only 255 is coming in the output...Plz advice what i can do....

Read only

0 Likes
964

Hi,

Otherwise just print it as two strings as follows;

&wa_string+0(250)& , &wa_string+250(50)&

Regards

Karthik D

Read only

0 Likes
964

Hi

But in smartfor output its showing only 255..Remaining is not coming...Plz help....

Read only

0 Likes
964

Hi,

Before displaying it in your smartforms use program lines to break the string into two strings and display them accordingly. If you see the string truncate inside smartform then in the internal table itself split it into two fields before passing it to the smartform.

Regards

Karthik D

Read only

Former Member
0 Likes
964

hi,

you can create the table and store in raw format and then retrive it...eg for table

MANDT MANDT CLNT 3 0 Client

RELID INDX_RELID CHAR 2 0 Region in IMPORT/EXPORT Data Table

ECRNO ZECRNO NUMC 10 0 Employee change request Number

SRTF2 INDX_SRTF2 INT4 10 0 Next record counter in EXPORT/IMPORT data tables

CLUSTR INDX_CLSTR INT2 5 0 Length field for user data in EXPORT/IMPORT tables

CLUSTD INDX_CLUST LRAW 2886 0 Data field for IMPORT/EXPORT database tables

________________ ______________________________ __________ ______ ______ ____________________________________________________________

if you need more information regarding how to read and write the data let me know.

Atul

Read only

0 Likes
964

Hi

We have no problem for storing this in intenal table...But in smartform output only 255 is displaying...How to bring remaining characters also to output...

Thanks

Read only

Former Member
0 Likes
964

Hi,

you have to split the more then 255 characters and print the rest of characters.

regards,

Munibabu.K

Read only

Former Member
0 Likes
964

thnks