RSWUWFML2 includes original message text after change

Cooper, John M John.Cooper at kcc.com
Mon Jun 13 05:50:52 EDT 2005


I had the same result when I tried to maintain the original text.  I
resolved it by creating a new dialog text rather than maintaining the
old one.
 
John

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Kjetil Kilhavn
Sent: Monday, June 13, 2005 8:57 AM
To: SAP Workflow User's Group
Subject: FW: RSWUWFML2 includes original message text after change


I just checked a little further (and re-read my message). Obviously
making 'Never Display' equal to 'True' shouldn't solve my problem. They
should be different to solve my problem. Since the two are strings, and
they _are_ already different I can't figure out why this doesn't work.
 
GET_DOCUMENT uses function CONVERT_ITF_TO_STREAM_TEXT to get a plain
text from the SAP Script. I found a function called HTML_FROM_SAPSCRIPT
(which calls function CONVERT_ITF_TO_HTML), and in contrast it only
returns my new text - plus HTML formatting. There appears to be a bug
somewhere, and my guess is that it is in CONVERT_ITF_TO_STREAM_TEXT or
somewhere below it.
 
So this isn't really appropriate for the workflow group. I have sent an
OSS message (0020079747 0000651224 2005).
-- 
Kjetil Kilhavn, Statoil KTJ IT BKS
 


________________________________

From: Kjetil Kilhavn 
Sent: 10. juni 2005 17:33
To: 'SAP Workflow User's Group'
Subject: RSWUWFML2 includes original message text after change


We are about to start using SAP's standard program for workflow
notifications. Hooray! Well, we have made some minor modifications, but
nothing that touches the problem that I have come across.
 
Since no regular users here in Statoil are familiar with the term
"system administrator" the message sent to the recipients had to be
changed to refer to "IT Support". This is fairly straightforward I
thought, so I used SE61 to maintain the Dialog Text SWU_NOTIF_INBOX2. To
change the text I had to give the modification a name, and so I did -
ZSWU_NOTIF_INBOX2. When I preview the text it looks just as it should.
 
However, when the e-mail arrives the body contains both the new text and
the original text of SWU_NOTIF_INBOX2. Beats me, and I haven't found
anything in OSS. I have looked for both SE61 notes and RSWUWFML2 notes.
We are on support pack SAPKB46C48, so OSS note 720290 is not relevant
any longer even if I was hoping so at first (checked the code too, just
to be sure).
 
Have anyone successfully changed any of the messages that are used to
send the notifications?
The question is, is this a program error in RSWUWFML2 or is it me that
does something wrong when I modify the texts?
 
 
Some more information for those that want to know the ugly details.
 
The text is fetched in form GET_DOCUMENT, which calls function DOCU_GET.
When I make a call to DOCU_GET for SWU_NOTIF_INBOX2 the following text
is returned (SAP Script)
 
/* Generated include for enhancement - KJETILK - 2005-06-08

/: INCLUDE ZSWU_NOTIF_INBOX2 OBJECT DOKU ID TX LANGUAGE E

/: IF 'Never Display' = 'True'

*  There are new work items in your Workflow inbox in the SAP system

   &SYST-SYSID&. Open the SAP Shortcut attachment in order to access
your 
   Workflow inbox and then process your work items.

*

*  If you have any problems logging on, contact your system
administrator.
*

/: ENDIF

 
Apparently I can fix the problem if I can make 'Never Display' be equal
to 'True' - but I don't have a clue about doing that.
 
 
The form GET_DOCUMENT continues to call function TEXT_INCLUDE_REPLACE
which inserts my modified text.
/* Generated include for enhancement - KJETILK - 2005-06-08

/: STYLE S_DOCUS1

*  There are new work items in your Workflow inbox in the SAP system

   &SYST-SYSID&. Open the SAP Shortcut attachment in order to access
your   
   Workflow inbox and then process your work items.

*

*  If you have any problems logging on, start SAP R3 from the Start menu

   and try again. If that does not help, please contact IT Support.

*

/: STYLE *

/: IF 'Never Display' = 'True'

*  There are new work items in your Workflow inbox in the SAP system

   &SYST-SYSID&. Open the SAP Shortcut attachment in order to access
your   
   Workflow inbox and then process your work items.

*

*  If you have any problems logging on, contact your system
administrator   
*

/: ENDIF


 
For your information; ZSWU_NOTIF_INBOX2 does not exist as a separate
document, so I can't refer to that in the program selection screen.
Calling DOCU_GET for ZSWU_NOTIF_INBOX2 does not return any text. Instead
it returns an exception.
-- 
Kjetil Kilhavn, Statoil KTJ IT BKS
 

-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of
the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and
delete
this message.
Thank you. 


------------------------------------------------------------------------------
This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law.  If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy.   Thank you.
==============================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20050613/bcee468e/attachment.htm


More information about the SAP-WUG mailing list