cancel
Showing results for 
Search instead for 
Did you mean: 

text length more tahn 255 charcters

former_member632991
Active Contributor
0 Kudos

Hi,

in my smartforms , i have a text field whose type i have defined as STRING since this value can be any length.

Actually it is being used to display the serial nos of matreials based on the quantity, so if quantity is 500, all 500 serial nos for that material will be displayed in that fiels, so i don't know the exact length of that field.

Problem is that i am getting the value in that STRINg field but that is not being displayed. Only upto 255 characters are displayed..

How to display the complete string?

Regards,

Sonika

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can not print more than 255 char,try to split into multiple lines using below Function module :

SWA_STRING_SPLIT

Reward Points if it is useful

Thanks

Seshu

Answers (3)

Answers (3)

former_member632991
Active Contributor
0 Kudos

Hi,

I can split the string and write as u all have suggested , but the problem is that i don't kvow the exact length of that string. It can contain any no dynamically so how far can i use str+255(510).....and so on when i don't know the output length.

Regards,

Sonika

Former Member
0 Kudos

Hi Sonika,

Use the following statement in your smartform.

&gv_strng0(255)&&gv_strng255(510)&&gv_strng+510(765)&........

where gv_strng is your field name.

Award points if found useful.

Regards

Indrajit

Former Member
0 Kudos

Hi Sonika,

u can split that text in 2 lines

string+0(244).

string+245(490).

plz see this wheather your problem can solve.

Thanks,

Suma.