<div>Hi Kris,</div>
<div> </div>
<div>Delegate your BOR: SOFM and create a method to force attachment create.</div>
<div> </div>
<div>Enter this bit of code to check that the attachment was created:</div>
<div> <br> do. <br> swc_call_method self 'Create' container. <br> swc_get_element container '_Result' self. <br> if sy-subrc = 0.
<br> exit. <br> else. <br> message s007(zwf). "raise this exception until attachment saved </div>
<div> endif. <br> enddo. <br><br>This will check the result of the 'Create' method in SOFM. As long as your attachment was created and saved, the subrc returned will be 0.
</div>
<div> </div>
<div>Cheers,</div>
<div>Tom<br> </div>
<div><span class="gmail_quote">On 12/07/07, <b class="gmail_sendername"><a href="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</a></b> <<a href="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</a>> wrote:
</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="DIRECTION: ltr"><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
Kris Verschueren <br><b><span style="FONT-WEIGHT: bold">Sent:</span></b> woensdag 11 juli 2007 15:36<br><b><span style="FONT-WEIGHT: bold">To:</span></b> '<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sap-wug@mit.edu" target="_blank">
sap-wug@mit.edu</a>'<br><b><span style="FONT-WEIGHT: bold">Subject:</span></b> Possibility to obligate user to create attachment</span></font></div>
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi all,</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">We are implementing a workflow to approve invoices. One of the possible <span>scenario's</span> is that the invoice is rejected by the approver. In that case we want to obligate the user to create an attachment within the workflow task. This is becuse the businness wants an explanation why the invoice was rejected.
</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Is there a possibility within standard SAP to do this? Does anybody has experience with this?</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks in advance.</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Kind regards,</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Kris Verschueren. </span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">SAP consultant, Ctac Netherlands.</span></font></p></div></div><br><br></blockquote></div>