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

Problem in printing String

Former Member
0 Likes
1,670

Hi All,

I am printing a string, with a length of around 1300, in SmartForm,

but I am able to print only first 250 Characters.

Any body worked over this Issue please help.

I can not use Internal Table or Split string to print my string content, since all the String content should come well alligned.

Thanking You All.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,643
11 REPLIES 11
Read only

Former Member
0 Likes
1,643

How about using INCLUDE TEXT?

Read only

Former Member
0 Likes
1,644
Read only

0 Likes
1,643

Hi Shambhu,

Thanks for the reply, but I can not use, Include text, since I have to apply some logic over SO10 Text Content, so I am using Read_text FM and then appling my own logic over there.

About the other Link you ahve posted,

infact I am also thinking about some similar approch, but that does not seems to be a good idea.

Hope, its a technical limitation with String Printing. 😞 😞

Waiting for some other helpful reply.

Read only

0 Likes
1,643

if you can't utilize include text, you have removed your options. 

Why don't you modify it and put it back into a temporary text with SAVE_TEXT, output it as an include text and then use DELETE_TEXT to remove the temporary version?  Why put yourself into a box and refuse to innovate?  The user doesn't need to know how it was done...just make it work and remove the temporary version of text after you output the form.  See SO10 for possible parameter options... I do that and the user never knows that there was a temporary text version stored in the SAP instance.

Personally, trying to output a (long) string in a SmartForms is not something I would even consider.  I always need the output optimization that I get from using a particular font in a paragraph format and sometimes embedded character format commands in the text, and allowing SmartForms to figure out how much text will fit in the margins, etc. 

So, a little innovation is called for, don't you think?

Read only

0 Likes
1,643

Hi BreakPoint,

Boss, the Idea you are talking about will put a big performance Issue.

So, I can not think of this idea.

Thanks for help provided.

Read only

0 Likes
1,643

  Oh, you've already tried this and discovered that it takes a few micro or millseconds longer?  I'm in awe of your experience and expertise.

Read only

0 Likes
1,643

You can use logic and variables to select or modify an included text.

Rob

Read only

Former Member
0 Likes
1,643

Hi Ankit ,

    Try this.

With Regards,

Sudhir S

Read only

0 Likes
1,643

Hi Sudhir,

Thanks for helping, but the image you have posted is not visible.

Read only

0 Likes
1,643

Read only

0 Likes
1,643

Hi Friends,

Thanks you all,

Finally, I have to split the string in different variables, then I have printed tthose variables to my output.

Probably, this was the feseable option, I was left with.

Thanks All.