cancel
Showing results for 
Search instead for 
Did you mean: 

How to display change header long text in workflow email task

davide_delmonte
Participant
0 Kudos

Hi,

I've create a workflow that starts when object ECM (Change Master) is created.

When users create the engineering change master from transaction CC01, they set a long text (from icon in top menu).

I want to display the header long text in email task, but I cannot find it in workflow content elements..

Some suggestions?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos


In Addition to what Murali said: Use FM READ_TEXT to fetch the text into internal table in a method in Business object. Export that text internal table from method and bind it in worrkflow.

BR,

Prakash

davide_delmonte
Participant
0 Kudos

Could you please explain a little bit further.. How can I use READ_TEXT? Should I add a new method to business object from transaction SWO1?

Former Member
0 Kudos


Yes you can add a new method or you can use already exiting custom method where you will have  required data to call the FM READ_TEXT. This FM will return multi line text in internal table.

You have to create a multiline exporting parameter in your method and map that text table to the exporting parameter.

BR,

Prakash

davide_delmonte
Participant
0 Kudos

Thank you Prakash,

I just need some more info, about your instructions: "You have to create a multiline exporting parameter in your method and map that text table to the exporting parameter."

I've created the method in SWO1, and I set up the parameter as shown below.

Is this what you mean?

I pass it at the end of the method with this code:

swc_set_element container 'TLINES' lt_lines.

Where lt_lines is my local table.. but I cannot obtain all the lines yet, only the first one.

In workflow I pass it to "LONGTEXT" element (multiline element) of container, and I use it in email text writing &LONGTEXT&.

Did I miss something?

Than you very much.

Former Member
0 Kudos


Hi Davide,

  The FM READ_TEXT returns a internal table. You have to loop into that internal table and append lines into lt_lines (Your local table). Also your code have one error you have to use micro as

swc_set_table container 'TLINES' lt_lines.

Please check once.

BR,

Prakash

davide_delmonte
Participant
0 Kudos

Thank you very much.. I finally get what I need!

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Davide,

The attribute Description of BO ECM contains the long text of that , create a workflow container element like 'description' attribute ( of ABAP dictionary type) AENR-AETXT, do binding in the start events.

Enter the element in the email text of the task.

Regards,

Murali Krishna.

davide_delmonte
Participant
0 Kudos

Thanks Murali.. but I insert the description in email message, using &EC_MASTER.DESCRIPTION&, I can see only the first line of that text.. I need to write all the long text in mail text.

I'm not so skilled with workflow, so maybe I miss something.

Thank you

Former Member
0 Kudos

Hi,

Clarify,

&EC_MASTER.DESCRIPTION&--> is getting the full text or not ?

Where you are inserting this element? in the subject of the mail or in the content of the mail, because I think Subject of the mail will accept for only 50 characters.

Regards,

Murali Krishna.