cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform a character protect when using include text in Script form?

former_member200271
Participant
0 Kudos

In my main window I have code as below:

INCLUDE &GS_EKKO-EBELN& OBJECT EKKO ID F19 LANGUAGE EN

INCLUDE &GS_EKKO-EBELN& OBJECT EKKO ID F19 LANGUAGE ZH

There is nothing wrong with language zh but...

For English,Every word at the end of line was splited

EG:In text,It should be "I hate Sap script"

But it is "I hate sap scr

ipt"

I noticed that there is a protect in character which is used to prevent this,But text included is a command so I can't give them a character format.In default paragraph format there is only "para protect" which can't protect word but paragraph...

I don't want to code in abap because I have static text and included long text appear alternatively,if coding,I will use so many text element one by one to loop the tdlines...

So,If anyone can help me?

Thanks~

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

use READ_TEXT function module and append the tdlines...

Answers (2)

Answers (2)

former_member200271
Participant
0 Kudos

Finally, I found the reason for the problem - Communication language in header data of purchase order which is derived from communication language of vendor master data.

We set ZH - Chinese in the vendor master data, when printing purchase order in English, the problem will occur. But if the language is EN - English, the problem will not happen.

Andy

former_member200271
Participant
0 Kudos

Thanks but

If append tdlines...It would be

/e Text element1

xxxxxxxxxx

/e tdlines1

loop tdlines

/e text element2

xxxxxxx

/e tdlines2

loop tdlines

/e text element3

xxxxxx

/e tdlines3

loop tdlines

..........................................

Too many text element....

Is there any other solution...?