Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ask for help about mail content

hi experts

I am trying to using workflow to send an email by using Send Mail Step.

and I have a variant for mail body, which type is char100, and then bind this variant to Send Mail Step's body.

but I find it can not break line, when the length of body is 100, it can only print out 80 characters, and the last 20 got lost, so I tried to break line in the body, I tried add <br> in the body variant, but it can not work.

can anybody help out?

many thanks

Tags:
replied

Hi,

At this point, I can think of one idea.Check this one.

if it_table1 is teh table with 100 character

and let say it_workflow is table with 80 characters.

Declare a string type variable and do this process.

DATA: it_string typr table of string,

wa_string type string.

loop at it_table into wa_table1.

concatenate wa_string wa_table1 into wa_string

separated by space.

endloop.

" at this point wa_string contains the complete data.

Now break the content of wa_string at 80 characters and append each 80 character record to it_workflow table.

" Now it_workflow table contains the records with 80 characters.

Hope thsi will help.

Regards,

Swarna Munukoti.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question