cancel
Showing results for 
Search instead for 
Did you mean: 

Extended Notifications with Tabular display

10-14-2013 5:36 PM
501 views 3 comments
0 Likes
SAP Managed Tags
Subscribe

Hi,

I've a requirement in which whenever the PR is created, mail should be sent with

  1.     A link to SAP inbox and Workitem &
  2.     The PR item details in a table format in the same mail.

I've achieved the first point by making use of Extended Notification.

For second point, I'm not able to achieve using Extended notifications.

Even if I've maintained all details using SY-Vline and SY-Uline and maintaining specific length for each fields, its not displayed as table format.

It is displayed in correct tabular form in business object Output  value.  But in the extended notification mail,It is displayed as plain text without any specific length for each field.

I've already searched in the forum. Couldn't find any correct answer for the same.

There is a length constraint as well for Work item description's each lines.

Could you please let me know if I can include the attached details in specific tabular format and remove the lenth constraint.

Thanks,

Karthika M R

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Hi,

If you want nice and shiny emails you will have to use your own BSP as a template and your own class for message handling.

For the quick solution I usually create my own table type and use that in reference for a multiline element container. then in the workflow description there are several options for displaying the container contents:

&Multi&

&Multi##&

&Multi[]&

Kind regards, Rob Dielemans

Jocelyn_Dart
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Karthika, Ok a couple of things to look at here.  The body text is retrieved in class CL_SWN_NOTIF_NOTIFICATIONS->IF_SWN_NOTIFY~GET_BODY.  So you can see the options and how it is built from the work item text there.  Secondly the BSP application SWN_MESSAGE1 controls how that text is formatted in the final message.  You might need to create your own copy of SWN_MESSAGE1 and override the default template in SWNCONFIG to get the result you want.  Alternatively you might want to extend or create your own equivalent to CL_SWN_NOTIFICATOIN and use HTML tags to format your table correctly.  SY-VLINE and SY-ULINE probably won't be enough to copy with proportional font issues.

Regards,

Jocelyn

Former Member
0 Likes

Hi Jocelyn,

Thanks for your reply.

I'm filling the item details in a multiline container element of type string.

I've observed that even in workitem details, the item data is not in table format. 

Can you please confirm if we can include tables in the Workitem description, as the same text is sent in mail as well.

Thanks,

karthika M R