<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word" xmlns:m = "http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 10.00.9200.17116">
<STYLE><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.l0s311
        {mso-style-name:l0s311;
        font-family:"Courier New";
        color:gray;
        background:white;
        font-style:italic;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></STYLE>
</HEAD>
<BODY lang=EN-US style="FONT: 10pt Segoe UI; MARGIN: 4px 4px 1px" link=blue vLink=purple>
<DIV>John,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I had to take comments entered via a Webdynpro into attachments and I used:&nbsp;<!--StartFragment --> 
<STYLE type=text/css>
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
</STYLE>
<SPAN>SAP_WAPI_ATTACHMENT_ADD</SPAN> </DIV>
<DIV>&nbsp;</DIV>
<DIV>Here's part of my code</DIV>
<DIV>&nbsp;</DIV>
<DIV><!--StartFragment -->&nbsp;
<STYLE type=text/css>
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S52 {
color: #0000FF;
}
.L0S55 {
color: #800080;
}
</STYLE>
<SPAN>&nbsp;&nbsp;<SPAN class=L0S52>DATA&nbsp;</SPAN>lv_comments&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L0S52>TYPE&nbsp;</SPAN>string<SPAN class=L0S55>.</SPAN></SPAN> </DIV>
<DIV>&nbsp;</DIV>
<DIV><!--StartFragment -->&nbsp;<SPAN>&nbsp;ls_header<SPAN class=L0S70>-</SPAN>file_type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L0S55>=&nbsp;</SPAN><SPAN class=L0S33>'T'</SPAN><SPAN class=L0S55>.</SPAN><BR>&nbsp;&nbsp;ls_header<SPAN class=L0S70>-</SPAN>file_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L0S55>=&nbsp;</SPAN><SPAN class=L0S33>'Rejection_Reason'</SPAN><SPAN class=L0S55>.</SPAN><BR>&nbsp;&nbsp;ls_header<SPAN class=L0S70>-</SPAN>file_extension&nbsp;<SPAN class=L0S55>=&nbsp;</SPAN><SPAN class=L0S33>'TXT'</SPAN><SPAN class=L0S55>.</SPAN><BR>&nbsp;&nbsp;ls_header<SPAN class=L0S70>-</SPAN><SPAN class=L0S52>language&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN class=L0S55>=&nbsp;</SPAN>sy<SPAN class=L0S70>-</SPAN>langu<SPAN class=L0S55>.</SPAN><BR><BR>&nbsp;&nbsp;<SPAN class=L0S52>CALL&nbsp;</SPAN><SPAN class=L0S52>FUNCTION&nbsp;</SPAN><SPAN class=L0S33>'SAP_WAPI_ATTACHMENT_ADD'</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L0S52>EXPORTING</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;workitem_id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L0S55>=&nbsp;</SPAN>wd_this<SPAN class=L0S70>-&gt;</SPAN>mv_wi_id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;att_header&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L0S55>=&nbsp;</SPAN>ls_header<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;att_txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L0S55>=&nbsp;</SPAN>lv_comments<BR><SPAN class=L0S31>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;att_bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=</SPAN><BR><SPAN class=L0S31>*&nbsp;&nbsp;&nbsp;&nbsp;DOCUMENT_OWNER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;SY-UNAME</SPAN><BR><SPAN class=L0S31>*&nbsp;&nbsp;&nbsp;&nbsp;LANGUAGE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;SY-LANGU</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do_commit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L0S55>=&nbsp;</SPAN><SPAN class=L0S33>'X'</SPAN><BR>&nbsp;&nbsp;&nbsp;<SPAN class=L0S52>IMPORTING</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return_code&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L0S55>=&nbsp;</SPAN>rc<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;att_id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L0S55>=&nbsp;</SPAN>ls_att_id<BR>&nbsp;&nbsp;&nbsp;<SPAN class=L0S52>TABLES</SPAN><BR><SPAN class=L0S31>*&nbsp;&nbsp;&nbsp;&nbsp;MESSAGE_LINES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;message_struct&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=L0S55>=&nbsp;</SPAN>lt_messages<SPAN class=L0S55>.</SPAN></SPAN> <BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>Hope that helps.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Claude</DIV>
<DIV><BR>&gt;&gt;&gt; "Schumacher, Margaret" &lt;margaret.schumacher@teleflex.com&gt; 2014/10/31 7:51 AM &gt;&gt;&gt;<BR></DIV>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d">John,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d">I’ve used these functions to compose attachments and relate them to the workitem.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; BACKGROUND: white; COLOR: black"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; BACKGROUND: white; COLOR: black">SWW_WI_OBJECTHANDLES_READ</SPAN><SPAN class=l0s311><SPAN style="FONT-SIZE: 10pt"><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; BACKGROUND: white; COLOR: black">SWL_WI_NOTE_CHANGE_WITH_TABLE<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; BACKGROUND: white; COLOR: black">SWL_WI_NOTE_CREATE_WITH_TABLE<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; BACKGROUND: white; COLOR: black">SWL_WI_NOTE_DELETE_NO_DIALOG<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; BACKGROUND: white; COLOR: black"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'; COLOR: #1f497d">Margaret Schumacher<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>John Haworth<BR><B>Sent:</B> Friday, October 31, 2014 6:46 AM<BR><B>To:</B> SAP Workflow Users' Group<BR><B>Subject:</B> Binding question<o:p></o:p></SPAN></P>
<P class=MsoNormal><o:p>&nbsp;</o:p></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Hi All</SPAN> <BR><BR><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">I have an ECC 6 Non PO &nbsp;approval workflow that when a rejection is chosen (its not a decision step) a pop up is presented to the user and rejection text is added, this is then 'Binded' into the container and is embedded in text that is eventually emailed. Works fine.</SPAN> <BR><BR><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">What i need to do though, is also bind this piece of text back into the container, so that its seen as an attachment. Anyone please advise how to, the text type is just 'Char' but i need to append it to the existing attachment list, how do I change its type so that it will bind correctly?</SPAN> <BR><BR><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Any help would be welcome.</SPAN> <BR><BR><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Kind Regards<BR><BR>John Haworth<BR>SAP Workflow<BR>CSC<BR><BR>Euxton House, Euxton Lane, Chorley, PR7 6FE.<BR>|Office: +44(0)1257 23 6474|Mobile: +44(0)7921069650| email: <A href="mailto:jhaworth@csc.com|www.csc.com">jhaworth@csc.com|www.csc.com</A><BR><BR>=============================================<BR>Advanced Holiday Notice:<BR><BR>20th October - 24th October<BR><BR>=============================================<BR><BR>CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. &nbsp;NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose • CSC Computer Sciences Limited • Registered Office: Royal Pavilion, Wellesley Road, Aldershot, Hampshire, GU11 1PZ, UK • Registered in England No: 0963578</SPAN><o:p></o:p></P></DIV></BODY></HTML>