cancel
Showing results for 
Search instead for 
Did you mean: 

Loop at table in send mail editor

matias_z
Participant
0 Kudos

Hi,

I need to do a Loop to a multiline element inside the mail step editor.

I need the body of the mail to be as follows:

LOOP AT TABLE INTO WA_TABLE

FIELD 1 : &WA_TABLE.FIELD1&

FIELD 2: &WA_TABLE.FIELD2&

FIELD 3: &WA_TABLE.FIELD3&

ENDLOOP.

Is it possible to do this? How can I do it?

Thanks!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

If you use &TABLE##&, it will display the table line-by-line. You want it to display it field-by-field; correct?

If so, then, you either need SAPScript to do that or alternatively, write a simple background task that distributes the table fields into consecutive lines and then use &TABLE##& as suggested above.

Former Member
0 Kudos

You need to use form editor using format options. Try following

on change editor, click on expression and select internal table. You will get pop-up with different options. I think you just need to put &TABLE##&

I didnt tried this, hope it works !!!

Former Member
0 Kudos

You have to do some coding in the Task Decsription of the send mail Task. It will be coding like you do in SAPSCRIPT.

Thanks

Arghadip