cancel
Showing results for 
Search instead for 
Did you mean: 

Probelm with step type send mail

Former Member
0 Kudos

Hi,

i am using sendmail option to send the mail to external email -id.

in the subject line i am able to display the parameter id's ( ex key id of the bor ).but the i want to display some fields in the body of the email.

Please can any one explain me how to display the parameters in the body of the email.

advance thanks.

regards

pavee..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You just create a method or attribute that will concatenate the fields in DocumentContent of send mail task.

Thanks

Arghadip

Former Member
0 Kudos

Hi Arghadip Kat,

You mean to say instead of using the standard sendmail i need to create a custom method and attach it to the step type activity.

regards

pavee..

martin_nooteboom
Active Contributor
0 Kudos

Hi Pavee,

When you create the send mail step, a new task is created. In this task you can add container elements which you can use in the mail text. So no need to build anything custom.

Regards,

Martin

Former Member
0 Kudos

Hi Martin ,

thanks for your answer .

i am the following procedure as you told but still i am getting that field as blank.

1. i have created a container element in wokflow template with respect to table payrq .then i made that element as import and then i have added the currency field in the mail text as & CURRENCY& but i am not getting the field value in the body of the mail.

Please can you guide me ......its urgent ....

advance thanks

regards

pavee..

Former Member
0 Kudos

Well I think the value is not being populated in container. Have a look at the log .. is the value there??

regards

anuj sethi

Message was edited by:

Anuj Sethi

martin_nooteboom
Active Contributor
0 Kudos

Hi Pavee,

You created a container element in the workflow not task? You need to create it in the task and then with binding fill it from your workflow container. Also, as Anuj suggests check your workflow log to see if the container element is filled at the step.

How did you set the variable in the text, by hand, so just typed it, or did you insert it via insert-> expression? You can change the text in the task.

Regards,

Martin

Former Member
0 Kudos

Hi martin/anju,

I got the solutions as per your suggestion .

I am facing one more problem in displaying the some fields.

i am displaying 7 fields in the body of the email. the fields with date and bank account number is not displaying it is displaying as &bus2021.accountno& and &bus2021.postin date& .except these two fields all the fields are displaying correctly.

i am able to see the all values in the workflow log. but while displaying i am facing this problem.

can u please guide me why i am getting this problem.

advance thanks

regards

pavee..

martin_nooteboom
Active Contributor
0 Kudos

Hi Pavee,

Unfortunately these types of fields are displayed in the SAP format, so if you want them more readable you need to convert to format you want yourself. So create a method to convert the fields and put this step before the send mail step and pass the converted fields to the mail step.

Regards,

Martin

Message was edited by:

Martin Nooteboom

Hmmmm. Reading in the early of the mornig still a problem. I see I answered a different question then asked.

Former Member
0 Kudos

If it is coming as &BUS2021.acc& then the WF is not recognising as it as a container element. try putting it from the expression button as told by Martin..

Answers (1)

Answers (1)

former_member184495
Active Contributor
0 Kudos

Hi PG,

before your SendMail Step, use an Activity step, where you call your BOR method,

which transfers the data as follows

BOR method parameters => task containers

task containers => wf containers.

use this WF container in your next step (ie Send Mail Step)

Hope it helps.

Aditya