<html 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" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:11.0pt;
        font-family:"Calibri","sans-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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:609242189;
        mso-list-type:hybrid;
        mso-list-template-ids:1259101078 201916433 201916441 201916443 201916431 201916441 201916443 201916431 201916441 201916443;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">David,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I was able to accomplish forcing a reject reason doing the following:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><img width="273" height="342" id="Picture_x0020_1" src="cid:image002.png@01CE1010.D4008C90"></span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">My Get Rejection Reason method contained the following:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">DATA:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lt_rejreason TYPE TABLE OF txw_note,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lv_entered&nbsp;&nbsp; TYPE char1,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;lv_cnt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE i.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">FIELD-SYMBOLS: &lt;lfs_rejreason&gt; TYPE txw_note<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">CONSTANTS: gc_no&nbsp; TYPE char1 VALUE 'N',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gc_yes TYPE char1 VALUE 'Y'.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">CLEAR: lt_rejreason,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lv_entered,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lv_cnt.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">CALL FUNCTION 'TXW_TEXTNOTE_EDIT'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; EXPORTING<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp; edit_mode = 'X'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; TABLES<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp; t_txwnote = lt_rejreason.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">DESCRIBE TABLE lt_rejreason LINES lv_cnt.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">IF lv_cnt = 0.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; lv_entered = gc_no.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ELSE.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">LOOP AT lt_rejreason ASSIGNING &lt;lfs_rejreason&gt;.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp; IF &lt;lfs_rejreason&gt;-line CN space.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lv_entered = gc_yes.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXIT.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp; ENDIF.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ENDLOOP.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;IF lv_entered IS INITIAL.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lv_entered = gc_no.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;ENDIF.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ENDIF.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; swc_set_element container 'ReasonEntered' lv_entered.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; swc_set_table&nbsp;&nbsp; container 'RejectReason'&nbsp; lt_rejreason.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; end_method.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1F497D">Marcia Neumann</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#1F497D">
<br>
</span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">I</span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">T Claims</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#1F497D">
<br>
</span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">Ext 4461</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#1F497D">
<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">Confidentiality notice:</span></b><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray"> The information included in this e-mail,<i> including
 any attachments,</i> is for the sole use of the intended recipient and may contain information that is confidential and protected. Any unauthorized review, use, disclosure, distribution or similar action is prohibited. If you are not the intended recipient,
 please contact the sender and delete all copies of the original message immediately.</span><span style="color:#1F497D"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu]
<b>On Behalf Of </b>David G Cooper<br>
<b>Sent:</b> Tuesday, February 05, 2013 12:15 AM<br>
<b>To:</b> sap-wug@mit.edu<br>
<b>Subject:</b> How to control return to workflow from Custom Form?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Hi Fellow Workflow Developers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">I have a requirement to present the decision maker with a Accept/Reject decision, and on reject force a mandatory input for the reason.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><span style="mso-list:Ignore">1)<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;
</span></span></span><![endif]><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">I noticed on SAPtechnical a tutorial which would suit.&nbsp; But this functionality is not available in the ECC6 system I have available.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:1.0in"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Tutorial
<a href="http://www.saptechnical.com/Tutorials/Workflow/UD/index.htm">www.saptechnical.com/Tutorials/Workflow/UD/index.htm</a><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:1.0in"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">System Component Information<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:1.0in"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">SAPKA70017 &#8211; Cross Application Component<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:1.0in"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">SAPKB70017 &#8211; SAP Basis Component<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:1.0in"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">SAPKIPYJ7H &#8211; PI_BASIS 2005_1_700<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;mso-list:l0 level2 lfo2">
<![if !supportLists]><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><span style="mso-list:Ignore">a.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;
</span></span></span><![endif]><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Question: In what release for ECC6 is this functionality available?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.75in"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><span style="mso-list:Ignore">2)<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;
</span></span></span><![endif]><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">In the mean time I am trying to develop a Custom Form with a single Input being a text field.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:1.0in;text-indent:-.25in;mso-list:l0 level2 lfo2">
<![if !supportLists]><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><span style="mso-list:Ignore">a.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;
</span></span></span><![endif]><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">How to force the screen presented to not return control to the workflow if the reject button is pressed and no reason is provided?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Thanks for taking the time to read and answer.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Kind Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:14.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">David Cooper<o:p></o:p></span></p>
</div>
</body>
</html>