Workflow for Notification long text.
Schumacher, Margaret
margaret.schumacher at teleflex.com
Thu Oct 27 14:20:38 EDT 2011
I've created my own long text id's for Quality Notifications and when the values are changed I set a flag in the Main program that long text has changed.
You can read that value and if set then use function READ_TEXT to get the new long text. Don't know how you can get the old long text.
field-symbols: <lfs_upd> type char1.
* set the flag so if user backs out will get prompted to save text change
assign ('(SAPLIQS0)WVIQMEL-INDTXTUPD') to <lfs_upd>.
if <lfs_upd> = 'X'.
header-tdname = cs_viqmel-qmnum.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'Z003'
LANGUAGE = sy-langu
NAME = header-TDNAME
OBJECT = 'QMEL'
IMPORTING
HEADER = header
TABLES
LINES = lines
EXCEPTIONS
NOT_FOUND = 1.
Endif.
These might help you to figure out how to code in BADI NOTIF_EVENT_SAVE method CHANGE_DATA_AT_SAVE a wf trigger.
Function PM_PARTNER_RESPONSIBLE_CHANGED showsn example on how to trigger an event.
Regards
Margaret Schumacher
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of siva krishna
Sent: Thursday, October 20, 2011 4:43 AM
To: sap-wug at mit.edu
Subject: Workflow for Notification long text.
Hello,
I have a requirement, where I need to trigger a workflow mail, when ever there is a change in Notification long text(IW52). Also i have to include the text in the mail.
Kindly let me know how this can be done.
Thanks in advance for any updates.
SIVA KRISHNA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20111027/584f9ed8/attachment.htm
More information about the SAP-WUG
mailing list