Skip to Content
0

LSMW Direct Input Long text truncated at 132, how load text longer than 132 without return

Oct 27, 2016 at 10:00 AM

436

avatar image
<br>

Hi,

I use an LSMW Direct input Object 0001, Method 0001, Program name

/SAPDMC/SAP_LSMW_IMPORT_TEXTS.

The number of characters TEXTLINE in my source fields is defined as 132 Characters, which is the same as /SAPDMC/LTXTL-TEXTLINE the definition of the structure field. We have to load a lot of materials (> 1000) with sales text which have about 50% more then 132 characters.

I couldn't find a solution to my problem yet. I want to copy paste the text as it is stored in the text file, e.g. a text with more then 132 characters and the words are wrapped, should be stored in the sales text on the same way.

Currently I am able to load the text <= 132 perfect, the text > 132 I offer them as multiple lines and truncated to whole words (<=132), are stored as well, but the second line starts with a new line (carriage return) and that is repeated every next line.

Example of text to be stored in the material sales text:

"This text is just an example of how this text will be treated by SAP as I deliver this text line per line. As you can see there is no carriage return (hard return) in this text."

The length is 177, I will now store the field TEXT-LINE with 2 lines (records) in the text file as follows

Line 1

"This text is just an example of how this text will be treated by SAP as I deliver this text line per line. As you can see there is"

Line 2

" no carriage return (hard return) in this text."

The result in SAP is:

"This text is just an example of how this text will be treated by SAP as I deliver this text line per line. As you can see there is"

" no carriage return (hard return) in this text."

Of course this isn't acceptable, the question now is, is this a known problem and if can it be solved somehow and are there any other options?

Further info:

I used the tutorial of Jurgen about loading long text, to check whether the material exists and if not print the missing objects. This is a very useful Tutorial to be used as a reference.

Regard Kees

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Rakshith Gore
Mar 25, 2017 at 06:05 AM
1

Hi Van,

Did you try by providing the text formats (/SAPDMC/LTXTL-TEXTFORMAT) for the lines??

Where TDFORMAT = Space means continuous text.

Thanks & Regards,

Rakshith Gore

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Comment of Tuncay Karaca moved here as comment on Rakshith answer:

"

Rakshith is right, you need to define TEXTFORMAT as well. Check: Objects for Long Texts

And you can find more info about TEXTFORMAT (TDFORMAT) here: Structure TLINE of the Lines Table

I think "=" will provide you long line...

"
0
Tuncay Karaca Mar 25, 2017 at 06:32 AM
-1

Hi K. Van,

Rakshith is right, you need to define TEXTFORMAT as well. Check: Objects for Long Texts

And you can find more info about TEXTFORMAT (TDFORMAT) here: Structure TLINE of the Lines Table

I think "=" will provide you long line...

Share
10 |10000 characters needed characters left characters exceeded
Ajit Kumar Nov 03, 2016 at 07:55 AM
0

in SE75 you can change the text length. See whether it works for you

Share
10 |10000 characters needed characters left characters exceeded
K. Van Harselaar Mar 24, 2017 at 11:53 AM
0

Hi Ajit Kumar

Thanks for the answer, we did not change the length because it is standard SAP Object. We used a Z program instead of LSMW.

I think this is a exceptional requirement, the customer wants to load the sales text up to 1000 characters.

Regards Kees

Share
10 |10000 characters needed characters left characters exceeded
K. Van Harselaar Apr 06, 2017 at 08:32 AM
0

This problem wasn't answered, the TDFORMAT option space was used. I know about the special output formats. As mentioned this was an exceptional requirement and solved with a Z program.

Thanks for the input.

Regards

.

Share
10 |10000 characters needed characters left characters exceeded