How to control return to workflow from Custom Form?
Neumann, Marcia
Marcia_Neumann at cinfin.com
Thu Feb 21 08:52:50 EST 2013
David,
I was able to accomplish forcing a reject reason doing the following:
[cid:image002.png at 01CE1010.D4008C90]
My Get Rejection Reason method contained the following:
DATA:
lt_rejreason TYPE TABLE OF txw_note,
lv_entered TYPE char1,
lv_cnt TYPE i.
FIELD-SYMBOLS: <lfs_rejreason> TYPE txw_note
CONSTANTS: gc_no TYPE char1 VALUE 'N',
gc_yes TYPE char1 VALUE 'Y'.
CLEAR: lt_rejreason,
lv_entered,
lv_cnt.
CALL FUNCTION 'TXW_TEXTNOTE_EDIT'
EXPORTING
edit_mode = 'X'
TABLES
t_txwnote = lt_rejreason.
DESCRIBE TABLE lt_rejreason LINES lv_cnt.
IF lv_cnt = 0.
lv_entered = gc_no.
ELSE.
LOOP AT lt_rejreason ASSIGNING <lfs_rejreason>.
IF <lfs_rejreason>-line CN space.
lv_entered = gc_yes.
EXIT.
ENDIF.
ENDLOOP.
IF lv_entered IS INITIAL.
lv_entered = gc_no.
ENDIF.
ENDIF.
swc_set_element container 'ReasonEntered' lv_entered.
swc_set_table container 'RejectReason' lt_rejreason.
end_method.
Marcia Neumann
IT Claims
Ext 4461
Confidentiality notice: The information included in this e-mail, including any attachments, 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.
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of David G Cooper
Sent: Tuesday, February 05, 2013 12:15 AM
To: sap-wug at mit.edu
Subject: How to control return to workflow from Custom Form?
Hi Fellow Workflow Developers,
I have a requirement to present the decision maker with a Accept/Reject decision, and on reject force a mandatory input for the reason.
1) I noticed on SAPtechnical a tutorial which would suit. But this functionality is not available in the ECC6 system I have available.
Tutorial www.saptechnical.com/Tutorials/Workflow/UD/index.htm<http://www.saptechnical.com/Tutorials/Workflow/UD/index.htm>
System Component Information
SAPKA70017 - Cross Application Component
SAPKB70017 - SAP Basis Component
SAPKIPYJ7H - PI_BASIS 2005_1_700
a. Question: In what release for ECC6 is this functionality available?
2) In the mean time I am trying to develop a Custom Form with a single Input being a text field.
a. How to force the screen presented to not return control to the workflow if the reject button is pressed and no reason is provided?
Thanks for taking the time to read and answer.
Kind Regards
David Cooper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20130221/f84fc799/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 26060 bytes
Desc: image002.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20130221/f84fc799/attachment-0001.png
More information about the SAP-WUG
mailing list