<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Courier New, monospace" size="2">
<div>Workflow experts,</div>
<div>&nbsp;</div>
<div>I am executing a SAP function module called <b>SO_OBJECT_SEND </b>to generate an email notification. I created a Method that attaches an Employee Work Event Profile Report to the email notification, using FM <b>SO_OBJECT_SEND</b>. When I test the Method,
using transaction <b>SWO1</b>, the report is attached to the notification, no problem and no issues. In other words, when I'm executing the Method in Foreground no problems.</div>
<div>&nbsp;</div>
<div>In the workflow template the Standard Task for the Method is set to <i>Background processing</i>. When the method is trigger from the workflow template, in <i>Background</i>, the email is generated successfully. The problem I'm having there's no report
attached to the email. The issue only happens when the Method is executed from the workflow job while running in the Background. Can anybody provide some input to this issue?</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>&nbsp;</div>
<div>Luke</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Listed below is the FM I'm using to create the email:</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp; <font color="#0000FF">call function 'SO_OBJECT_SEND'</font></div>
<div><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPORTING</font></div>
<div><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; object_hd_change = w_object_hd_change</font></div>
<div><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; object_type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 'RAW'</font></div>
<div><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; outbox_flag&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 'X'</font></div>
<div><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; owner&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 'WF-BATCH'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;sy-uname</font></div>
<div><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TABLES</font></div>
<div><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objcont&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = message_content</font></div>
<div><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objhead&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = objhead</font></div>
<div><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; receivers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = receiver_list</font></div>
<div><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; packing_list&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = pack_list</font></div>
<div><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ATT_CONT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = objbin.<font color="#000000">&nbsp; </font></font></div>
<div>&nbsp;</div>
</font>
</body>
</html>