Skip to Content
0
Sep 25, 2018 at 05:39 PM

Change Long-text in Tasklist for Header and Operations/Tasks

2309 Views Last edit Sep 25, 2018 at 05:42 PM 3 rev

Tasklists/groups have already been loaded, but there's been some mess-up regarding long-texts whereby they appear as number of blank rows ending in a fullstop,

I am attempting to update all the long-texts for Tasklist Headers and Operations using the FM EAM_TASKLIST_CHANGE. As you may know, there's seems to be zero examples to use this FM, and the help is very sparse, when viewed in English.

When using this FM, I am attempting to delete the existing Long-text entries using the table IT_TEXT_DEL. I'm reading the details for this using the FM EAM_TASKLIST_GET_DETAIL, which lets me retrieve the existing longtext details at TEXT level, rather than TEXT_LINE level, so it just tells me the values for PLNTY,PLNNR, PLNAL and VORNR as well as the start and end lines for long text.

Next I populate the TEXT and TEXT_LINES itabs that are provided to the FM tables IT_TEXT_INS and IT_TEXT_LINES_INS (Insert) which should insert the long text. What I can't determine is whether I need to accumulate the Start and end records across the Tasklist headers for TEXT itab. So, should the start and end fields look something like this:

PLNTY = A, PLNNR = TESTA, PLNAL = 01, VORNR=0, Start = 1, End = 10 (Header)

PLNTY = A, PLNNR = TESTA, PLNAL = 01, VORNR=10, Start =11, End = 18 (Opertn)

PLNTY = A, PLNNR = TESTA, PLNAL = 02, VORNR = 0, Start = 19, End = 25 (Header)

PLNTY = A, PLNNR = TESTA, PLNAL = 02, VORNR = 10, Start = 26, End =30 (Opertn)

Or do the start and end values need to start again from 0 when we change to a new tasklist line/header (PLNAL)?.

At present I'm receiving an error (CM_EAM_TL_API) No. 092 which basically says:

Inconsistent long-text field ZAEHL at line 2 of import parameter TEXT_DEL

My TEXT_DEL itab has two lines like the above example, for Tasklist '01', and both records (Header and Operation entry) have the field ZAEHL set to '00000001', which I believe to be correct.