cancel
Showing results for 
Search instead for 
Did you mean: 

FM - Task list long text upload

YBS
Participant
0 Kudos
1,106

Hi Experts,

I'm using the FM "EAM_TASK_LIST_CREATE" to create task lists, in the task list operations I have Long text so I'm using also "IT_TEXT" and "IT_TEXT_LINES" to add long text linked to the operation. Please could anyone explain to me how it works?

I tried to put the long text in "IT_TEXT_LINES-TDLINE" it works but the operation description is deleted and it's replaced by the first 40 CHAR of the long text but the long text it loaded,

Thank you in advance,

Regards,

Accepted Solutions (0)

Answers (3)

Answers (3)

peter_atkin
Active Contributor
0 Kudos

The long-text line will cut off at the text line limit and automatically flow onto the next line.

Your program needs to determine how the text should be formatted. You can use the TDFORMAT values to help you with this formatting, but it wont help with words that span two lines.

Its a real pain to get right..

I've seen a few posts where people load the data in two stages, for example:

  1. Load the task list data
  2. Load the task list long-texts

.

PeteA

YBS
Participant
0 Kudos

Hi Peter,

Please another question for long text we need to specify "START" and "END" in order to know the number of lines we put at the operation long text, how can I have this info before the program execution ?

peter_atkin
Active Contributor
0 Kudos

That will depend on where the text is coming from..

If you can pre-format it before you load the text, then it will make things much easier. Otherwise you need to write loads of code to do the formatting for you..

Do you have an example of the text?

PeteA

YBS
Participant
0 Kudos

It's long text big paragraph ! more than 200 CHAR

peter_atkin
Active Contributor
0 Kudos

So there's a way in MS Word to set the character length: https://www.myofficetricks.com/how-to-limit-the-characters-per-line-in-microsoft-word/#:~:text=A%20P....

You can use this to format your text, then upload the formatted text into SAP.

Otherwise you'll need to it programmatically.

PeteA

YBS
Participant
0 Kudos

Big thanks Peter yes I will do it programmatically ! thanks for your help

peter_atkin
Active Contributor
0 Kudos

Mika,

The limit for task list long-text line is 72 characters from memory..

You can also try using the TDFORMAT field to create a line-feed via the "/" or "blank" value.

PeteA

YBS
Participant
0 Kudos

There is no limit in the long text you can put all what you want, that's why I'm confused about how can I do that with this FM,

peter_atkin
Active Contributor
0 Kudos

Mika,

Try leaving the first line blank in IT_TEXT_LINES

If that doesnt work, then add the operation description as the firs line.

PeteA

YBS
Participant
0 Kudos

Peter,

I tried to keep the first line empty it does not work I think the only solution is to add the ops description,

Please I have another question, the field used for long text is limited when I have long text more than 92 CHAR I need to add another line to insert the rest of the text but how the program will do that? How can I check that the word is not cut ?

Thanks,

Regards,