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

SMARTFORMS - long text display at second line.

Former Member
0 Likes
8,261

Hi Forms experts,

I am developing a form in SMARTFORMS. I managed to print, however I am not getting what is expecting to get.

Expecting result


Item             Description                Code        Quantity
1                ABCDEFGHIJKLMNOPQRSTUVWX   1000001     1320
                 YZ12334567890

Currect result (which is wrong).


Item             Description                 Code       Quantity
1                                            1000001    1320
                 ABCDEFGHIJKLMNOPQRSTUVWX    
                 YZ12334567890

If you see carefully, the Description ABCDE....dropped to second line. Can someone explain to me how to resolve this?

Thanks in advance.

Hi Forms experts,

I am developing a form in SMARTFORMS. I managed to print, however I am not getting what is expecting to get.

Expecting result


Item             Description                Code        Quantity
1                ABCDEFGHIJKLMNOPQRSTUVWX   1000001     1320
                 YZ12334567890

Currect result (which is wrong).


Item             Description                 Code       Quantity
1                                            1000001    1320
                 ABCDEFGHIJKLMNOPQRSTUVWX    
                 YZ12334567890

If you see carefully, the Description ABCDE....dropped to second line. Can someone explain to me how to resolve this?

Thanks in advance.

29 REPLIES 29
Read only

Former Member
0 Likes
5,434

Nothing wrong I guess.Just goto the text editor and delete extra spaces at the begining of the long text variable.

Regards,

Abhi

Read only

Former Member
0 Likes
5,434

Check the positioning of the variable used for fetching description. Morever delete the extra spaces.

Read only

0 Likes
5,434

Hi both,

There is extra no spaces in the text. Even I have trim the text, it still cannot work.

If I reduce the text to ABC, it works perfectly.

Please help.

Read only

0 Likes
5,434

Please check the paragraph format used for this.Are there any tab specifications or indentations in the paragraph format used.

Read only

0 Likes
5,434

I have tried Append, New line, and new paragraph. All are giving me the same result.

Read only

0 Likes
5,434

If ABC works fine then obviously there is some spacing issue. Check the first and third variable spacing. Try increasing and decreasing the spaces after and before the variables. I'm sure you can get along.

Read only

0 Likes
5,434

Hi Mishra,

Thanks for your advice. I have tried to trim all the first 3 variables (fields), with variable1(C), variable2(C) and variable3(C). However, the text is still displaying in the second line.

Read only

0 Likes
5,434

Wong,

The issue is because on spacing of the variables , Nothing else as far as my knowledge is concerned.

Using keywords TRIM won't help either. Do check the cell where you have populated your variable..See if some trailing spaces are there.

Read only

0 Likes
5,434

now I added xx before and after the variable, xx&VARIABLE(C)&xx.

and my result is

xx

ABCDEFGHIJKL....xx

how to resolve this?

Read only

0 Likes
5,434

Why are you using xx. Instead you can adjust the spaces

Read only

0 Likes
5,434

Hi Mishra,

The reason I put xx infront and end of the variable is to see how the variable is displayed.

It should display

xxABCDEFGHIJKL....xx

instead of

xx

ABCDEFGHIJKL....xx

How to adjust the space? how to check the cell trailing spaces?

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
5,434

>

> It should display

> xxABCDEFGHIJKL....xx

>

> instead of

> xx

> ABCDEFGHIJKL....xx

How is this long text defined in SAP?

Can you do one more test, read this long text (with the XX stuff) using READ_TEXT & post the entries in the returning table LINES ? (Post both TDFORMAT & TDLINE)

Read only

0 Likes
5,434

Lets try making the &VARIABLE(C)& left-justified. Go to change editor and delete all spaces in front.

Read only

0 Likes
5,434

Hi Suhas,

Thanks for your reply. I do not understand why READ_TEXT is needed for my case. The data variable is getting from a customized table. The data could be long, and could be short either. Please correct me I have misunderstood your advice.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
5,434

Your post heading is misleading buddy That's why i thought you were dealing with LONG TEXTS !!

No if the text is coming from a custom table you don't need a READ_TEXT

Read only

0 Likes
5,434

Hi Mishra,

Thanks for your suggestion. However there is no space to remove and the text (variable) is already left justified.

Any idea?

Read only

0 Likes
5,434

Okay...

Any idea?

Space is the issue as far as my knowledge...Bcoz if you shorten the text it works perfectly fine. If its long its one line down.

Remove the 3rd field( testing purpose) and see it will work.

Read only

0 Likes
5,434

There is only one text line, but the text is long. When the form prints, it breaks into few lines due to limited cell space.

Read only

0 Likes
5,434

Hi,

can u condense that field with no gap and check.

With Regards,

Sumodh.P

Read only

0 Likes
5,434

Hi Sumodh,

If you read my replies, I have mentioned many times I have condensed the &variable (C)&. But the result is the same.

If I shorted the text (variable) it displays perfectly, but if the text is long, then it will display from the second line onward.

Read only

0 Likes
5,434

Wong,

When the form prints, it breaks into few lines due to limited cell space

Have you tried increasing the cell space for description?

Read only

0 Likes
5,434

Hi,

Try to use template for this and make all 'Text' as left alligned ... and use this under Flow Logic --> Loop.

hope ur problem get resolved.

Regards

Neha

Read only

0 Likes
5,434

Hi,

In the driver program loop that internal table in to a work area and then condense that particular field.

variable(c) means it will the compress the space right.

i think its causing the probs for u ..

With Regards,

Sumodh.P

Read only

0 Likes
5,434

Resolved the problem myself.

Thanks to all.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
5,434

Curious to know the solution, mate !!

Read only

0 Likes
5,434

The solution is simple. As I was doing testing for the form, I had hardcoded the variable into "ABCDFGHIJKL....".

Now, if I break it to "ABC DFGHIJK LMN...." with spaces in between, then it will work perfectly.

In fact there is no problem with the code and setting. It is just the data caused it.

Read only

0 Likes
5,434

Thank you for conveying thanks for those who helped you.

Special Thanks for appreciating our efforts

Read only

Former Member
0 Likes
5,434

Hey Myahsam

If this is a table that you have used in Smartforms then increase the width of this column

else if it is a variable that you are passing the value in, increase the length of this variable node.

Hope it solves your problem.

Sameer

Read only

Former Member
0 Likes
5,434

1. Are you printing the long text through a variable or using INCLUDE TEXT? If it's through variable try with CONDENSE.

eg. &FIELD(C)&

2. Try changing the START options in general attributes of the text.

3. Check the indent and spacing of the paragraph format used.