cancel
Showing results for 
Search instead for 
Did you mean: 

To print text in alligned form in smartforms in one of the cloumn .....

Former Member
0 Kudos

Hi ,

i am not able to allign the text in the column that i pick up from the item details in text tab in VA23 for the particular material .

Since the text maintained is more than 500 char and can be even more ..i used a table to print it .

i have used the FUNCTION 'READ_TEXT' to read the text into a table .

Now the text in the text tab maintained is in this way

KLINIDRAPE Universeel set

4 cellduk 20x27 cm

2 zelfklevende laterale velden 75x90

1 OP-tape 9x49 cm

1 zelfklevend operatieveld 175x175

3 lfklevend operatieveld 150x240

But what happens when i print the same in my smartform it comes in

KLINIDRAPE Universeel set 4 cellduk

20x27 cm 2 zelfklevende laterale

2velden 75x90 1 OP-tape 9x49 cm

1 zelfklevend operatieveld 175x175

3 lfklevend operatieveld 150x240

so does any one has a suggestion to how i print it as i want it .

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

Instead of using the READ_TEXT, you can use the include text option of the smartform

give the details as below:

Text Name &G_TEXT_KEY&

Text Object EKPO

Text ID F01

Language &SY-LANGU&

Std paragraph T2

First paragraph

This will solve your problem. SAP will call a new paragraph after each line and the data will be displayed as the per T code text

If you want to use FM, then set the TDLINE value to default paragraph, SAP will use continous printing instead of Line Editor option.

Regards

Shiva

Former Member
0 Kudos

Hi,

Are you making any change by comparing the TDFORMATS of the text after using the FM READ_TEXT?

Check your internal table how it is.

If you want to print as like in TEXT tab,dont compare the TDFORMAT.

Just loop ur internal table after reading from the FM to the work area and assign it to the text node.

Jshree

Former Member
0 Kudos

Use a loop to read the output table of READ_TEXT FM to in to work area and print the work area content in the text box.Each iteration of the loop will take each line of the internal table to WA.