cancel
Showing results for 
Search instead for 
Did you mean: 

Text display problem

Former Member
0 Kudos

I am working on a smartform. In this there is a header window which is displaying dynamic text.

Now, the text is getting displayed in wrong way.

Example,

Suppose text is

Payment Terms: CAD

As per offer 1491 and offer 112

SMI is the OEM

SPARE PARTS FOR WRAPPING MACHINE MODEL LSK 30 T SERIAL NUMBER 7634

P.R. 10072170

It is getting correctly populated in internal table using FM Read_Text. But while displaying in print preview it displays as follows

Payment Terms: CAD

As per offer 1491 and offer 112

SMI is the OEM

SERIAL NUMBER 7634 SPARE PARTS FOR WRAPPING MACHINE MODEL LSK 30 T

P.R. 10072170

The part in Bold is comin at the satrting of the line which is not desired output.

Please help me with this issue.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

One more try you can make.

Please put the field in a standard text and then use it in the smartform for display.

e.g inside the standard text the content like &wa-field(<C)&.

Regards,

Ram

Former Member
0 Kudos

Hi,

Please also try to increase the WA length which you might have declared in the smartforms global definitions and check.

Regards,

Ram

Former Member
0 Kudos

Hi,

One idea ....

just try including a space after the bold text ends and check the preview.

Regards,

Ram

Former Member
0 Kudos

Hi Ram,

No change at all. The print preview is same.

Former Member
0 Kudos

Hi,

How you are printing the text, using code with READ_TEXT or using Include Text module?

Regards

Karthik D

Former Member
0 Kudos

I am using read_text for reading text and populating it in internal table. I am looping at that table in a work area and using text element i am displaying the text.

Former Member
0 Kudos

Hi,

Try using Include text, it is the easiest way to print standard texts. Create a text element and change the type as I Include text and give the header required to fetch the text which you are passing to read_text FM.

Check and revert back.

Regards

Karthik D

Former Member
0 Kudos

hi,

Do you think that will solve the problem of text wrapping?

Former Member
0 Kudos

hi Karthik,

We were doing the same thing at first. But i was getting alignment issue because of using include text. So, i am using FM read_text and reading the dynamic data. And then we created text element to display.

If you can help me with the wrapping issue.

Thanks,

Archana

Former Member
0 Kudos

Hi,

Have you tried putting a break-point in the loop that supplies text to the text element, is it coming correct there?

Regards

Karthik D

Former Member
0 Kudos

Yes. I checked it in the internal table as well as in the loop. In the work area it is coming correctly. Only in print preview its coming wrong.

Former Member
0 Kudos

Is it coming for all texts, have you tried with some other document value?

Are you sure that the length of the text element/its container (table/template/window) is enough to accommodate the texts?

Regards

Karthik D

Former Member
0 Kudos

Window size is the maximum. It is 19, 53 cms.

So, it is sufficient to accomodate text entered.

Former Member
0 Kudos

HI,

Did u check the variable decalaration in the required Header window?

For example.

If you pass the text "ABC" to &Variable1& and "DEF " to &Variable2&.

while declaring in the header window, if u write &Variable1& &Variable2& then u will get the o/p as ABCDEF

but if u write &Variable2& &Variable1& u will get it as DEFABC.

Regards,

Sathish Donthula

Former Member
0 Kudos

Hi,

Please check with any other printer if the preview is correct or not.

Regards,

Ram