cancel
Showing results for 
Search instead for 
Did you mean: 

pass internal table into body of mail in task sendmail

Former Member
0 Kudos

Hi everyone, i use task sendmail, I want pass the contents of internal table MB_ITAB into body of message. In the property of task Mail, I wrote &MB_ITAB& but in output I have only the first line of internal table; naturally if write

&mb_itab[1]&,

&mb_itab[2]&,

&mb_itab[3]&,

&mb_itab[4]&,

&mb_itab[5]&,

&mb_itab[6]&,

in output I have the contents of internal table.

How can bind the complete contents ?

Thanks a lot,

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Check the properties container element ' MB_ITAB ' as Multiline or not

and also refere container element like &mb_itab[]& check.

Former Member
0 Kudos

Hi

Check the property as the cotainer element is a mulitiline container or not.

As mentioned in the above mail you need not type anything while binding, please drag and drop the container elements.

Regards,

Vijay.

Former Member
0 Kudos

Perfect, &mb_itab##& in body of task message; or I can press the button "Insert expression" and choose the internal table and so the options "Display the content pf internal table and tabulation".

Thank you so much.

Former Member
0 Kudos

Hello Barry,

To display the contents of the internal table MB_ITAB in the mail, create a multiline container element same as that in the workflow container in the sendmail step. As you must be familiar, a task is created in the template when you insert a sendmail step. Open the task in tcode PFTC or PFTC_CHG, create a multiline container which is of type MB_ITAB in the task container and save it. Then open the template and bind the table elements of workflow container and task container of the sendmail step.

Once everything is fine, insert the table in the body of the mail. While inserting a multiline container element, the system will ask to as to how do you want to display the contents. Select the option of displaying all the entries with a line separator. This will display the contents of MB_ITAB line by line.

Hope this will help.

Thanks,

Samson

Former Member
0 Kudos

Hi

try using &mb_itab[]& .

Whn u try to edit any task description, you wil get 3 options for dispalying the table content .So try this.

Hope it works

Former Member
0 Kudos

I hope the container element in the task container that yo have binded from workflow to Task container is multiline. Please check that and test after refreshing the buffer from SWU_OBUF.

Thanks

Arghadip