<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=459131504-10042008><FONT face=Arial
color=#0000ff size=2>Sandy, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=459131504-10042008><FONT face=Arial
color=#0000ff size=2>Check the SOFM key format again in SWO1 - you should have a
year e.g. 2008 in their somewhere as that is part of the key.
</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Arial size=1>Regards,</FONT></SPAN> <BR><SPAN
lang=en-us><B><FONT face=Arial color=#000080 size=1>Jocelyn
Dart</FONT></B></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080
size=1>Senior Consultant</FONT></SPAN> <BR><SPAN lang=en-us><B><FONT face=Arial
color=#808080 size=1>SAP Australia Pty Ltd.</FONT></B></SPAN> <BR><SPAN
lang=en-us><FONT face=Arial color=#808080 size=1>Level 1/168 Walker
St.</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080
size=1>North Sydney </FONT></SPAN><BR><SPAN lang=en-us><FONT face=Arial
color=#808080 size=1>NSW, 2060</FONT></SPAN> <BR><SPAN lang=en-us><FONT
face=Arial color=#808080 size=1>Australia</FONT></SPAN> <BR><SPAN
lang=en-us><FONT face=Arial color=#808080 size=1>T +61 412 390
267</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080
size=1>M + 61 412 390 267</FONT></SPAN> <BR><SPAN lang=en-us><FONT
face=Arial color=#808080 size=1>E jocelyn.dart@sap.com</FONT></SPAN>
<BR><SPAN lang=en-us><FONT face=Arial color=#808080 size=1><A
href="http://www.sap.com/">http://www.sap.com</A></FONT></SPAN> </P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>The
information contained in or attached to this electronic transmission is
confidential and may be legally privileged. It is intended only for the person
or entity to which it is addressed. If you are not the intended recipient, you
are hereby notified that any distribution, copying, review, retransmission,
dissemination or other use of this electronic transmission or the information
contained in it is strictly prohibited. If you have received this electronic
transmission in error, please immediately contact the sender to arrange for the
return of the original documents. </FONT></SPAN></P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>Electronic
transmission cannot be guaranteed to be secure and accordingly, the sender does
not accept liability for any such data corruption, interception, unauthorized
amendment, viruses, delays or the consequences thereof.</FONT></SPAN></P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>Any views
expressed in this electronic transmission are those of the individual sender,
except where the message states otherwise and the sender is authorized to state
them to be the views of SAP AG or any of its subsidiaries. SAP AG, its
subsidiaries, and their directors, officers and employees make no representation
nor accept any liability for the accuracy or completeness of the views or
information contained herein. Please be aware that the furnishing of any pricing
information/ business proposal herein is indicative only, is subject to change
and shall not be construed as an offer or as constituting a binding agreement on
the part of SAP AG or any of its subsidiaries to enter into any relationship,
unless otherwise expressly stated. </FONT></SPAN></P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Sandy<BR><B>Sent:</B>
Friday, 04 April 2008 8:55 PM<BR><B>To:</B> SAP Workflow Users'
Group<BR><B>Subject:</B> Re: Attachment on
SWU_START_WORKFLOW<BR></FONT><BR></DIV>
<DIV></DIV>Hi all.<BR>To day I try to make simulation from workflow point of
view. I leave it my programming skill for a while.<BR>Workflow that I created
contains single Send Mail step. <BR>My binding from my workflow to Send Mail
step are:<BR>X--> &EXPRESS&<BR>G -->
&TYPEID&<BR>&WF_INITIATOR& -->
&ADDRESSSTRINGS&<BR>&SELFITEM& -->
&WI_OBJECT_ID&<BR>&TESTATTACHMENT& -->
&ATTACH_OBJECTS&<BR><BR>and binding from task to method are as
follows:<BR>&ADDRESSSTRINGS&-->
&ADDRESSSTRINGS&<BR>&TYPEID&-->
&TYPEID&<BR>&EXPRESS& -->
&EXPRESS&<BR>&ATTACH_OBJECTS&-->&ATTACHMENTS&<BR><BR>I
test this workflow via SWUS and it's working without value in
&TESTATTACHMENT&/ without attachment.<BR>It's having an error message
'Object with runtime number' 2'
not defined<BR>Document id that I used for testing is document id that copied
from attachment generated by 'AddMemo' in UWL. I just copy and paste.<BR>The
format of document id (SOFM object key) that I can see from the workflow log is
'FOL31000000000004RAW33000000000521'<BR>So I believe the format should be
fine.<BR><BR>I am really appreciate if someone could give me some
enlightenment.<BR><BR><BR> <BR><BR>
<DIV class=gmail_quote>On Fri, Apr 4, 2008 at 11:02 AM, Sandy <<A
href="mailto:maorriyan.santoso@gmail.com">maorriyan.santoso@gmail.com</A>>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Jocelyn.<BR>Thanks for giving me a fish rod:-)<BR>I changed my hardcoded data
into 'FOL31000000000004RAW33000000000521U_SANDY' and this format exactly the
same for attachment that I created via "AddMemo" button from UWL or "Manage
Attachment" from Business Workplace.<BR>System having different error messages
'Work item 000000431095: Object 000000431095 method SENDTASKDESCRIPTION cannot
be executed'. This error disappear every time I removed the
attachment.<BR><BR>I though this is error due to document id that created by
SWL_SOFM_CREATE_WITH_TABLE is not correct.<BR>Even when I use document id that
created in foreground still causing an error.<BR><BR>Does attachment that we
do in background have different format/ approach than we do in foreground e.g.
via UWL/ Business Workplace?<BR><BR>Can you give me fish this time?<BR><BR>Any
body out there have similar experience?
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c><BR><BR>Many thanks<BR><BR>
<DIV class=gmail_quote>2008/4/3 Dart, Jocelyn <<A
href="mailto:jocelyn.dart@sap.com"
target=_blank>jocelyn.dart@sap.com</A>>:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Sandy,<BR>A
SOFM object needs to have the key specified in business objec type SOFM in
transaction SWO1. Take a look - you are missing some fields.<BR>
<DIV>Regards,<BR>Jocelyn<BR><BR>________________________________<BR><BR>From:
<A href="mailto:sap-wug-bounces@mit.edu"
target=_blank>sap-wug-bounces@mit.edu</A> on behalf of Sandy<BR></DIV>Sent:
Thu 3/04/2008 2:57 PM<BR>
<DIV>
<DIV></DIV>
<DIV>To: SAP Workflow Users' Group<BR>Subject: Re: Attachment on
SWU_START_WORKFLOW<BR><BR><BR>Thanks Jocelyn.<BR>I solved binding issue with
our Security user id.<BR>OK.<BR>Today I continue my investigation.<BR>FM
SWU_START_WORKFLOW truncated _Attach_Objects content.<BR>Original
attachment/ document id that I passed in table ATTACHMENT_LIST was in
FOL31000000000004RAW33000000000521 then truncated into
RAW33000000000521<BR>I can see SWU_START_WORKFLOW calling
SO_CONVERT_API1_SOFM. This function module is the one who truncated the
original document id format.<BR>I suspect this is the reason user could not
see the attachment in their SAP Business Workplace or UWL<BR><BR>What done
is I created ABAP program similar to SWU_START_WORKFLOW but without
SO_CONVERT_API1_SOFM.<BR>For unit test purposes I hardcoded document id
'FOL31000000000004RAW33000000000521' that I created from
SWL_SOFM_CREATE_WITH_TABLE.<BR>In my code I am using SWW_WI_START to start
SENDTASKDESCRIPTION task and I put recipient type, recipient adressstrings,
etc. into WI_CONTAINER in tables section.<BR>This work item is in error.
Error message that I can see from workflow log 'Object SELFITEM method
SENDTASKDESCRIPTION cannot be executed. Executed
action:EXECUTE_METHOD_OBJECT_SYNC have error message 'Object with
runtime number' 2' not
defined<BR>Executed action:EXECUTE_METHOD_BOR have error message
'Object with runtime number'
2' not defined<BR>I check every container element that I am concern
about including _Attach_Objects is in correct format
'FOL...RAW....'<BR><BR>Apparently I did something wrong.<BR>Will you be able
to help me again?<BR>Any input welcomed<BR><BR>Many
thanks<BR><BR><BR>2008/4/3 Dart, Jocelyn <<A
href="mailto:jocelyn.dart@sap.com"
target=_blank>jocelyn.dart@sap.com</A>>:<BR><BR><BR>
Hi Sandy,<BR> Yes definitely - perhaps you
need to press enter or something before you save.<BR><BR>
Regards,<BR> Jocelyn<BR><BR>
________________________________<BR><BR>
From: <A href="mailto:sap-wug-bounces@mit.edu"
target=_blank>sap-wug-bounces@mit.edu</A> on behalf of Sandy<BR><BR>
Sent: Wed 2/04/2008 6:11 PM<BR><BR>
To: SAP Workflow Users' Group<BR> Subject:
Re: Attachment on SWU_START_WORKFLOW<BR><BR><BR>
Jocelyn,<BR> Yes, I did it.<BR>
But somehow binding between task and method
(&_ATTACH_OBJECTS& -> &ATTACHMENTS&,
&ADDRESSSTRINGS& -> &ADDRESSSTRINGS&, etc. ) always
disappear upon save button.<BR> Definitely this is
not authorisation issue since I got successful message from SU53.<BR>
Do you think this is the root
cause?<BR><BR><BR><BR><BR> 2008/4/2 Dart, Jocelyn
<<A href="mailto:jocelyn.dart@sap.com"
target=_blank>jocelyn.dart@sap.com</A>>:<BR><BR><BR>
Sandy,<BR>
You need to ***explicity*** bind _ATTACH_OBJECTS to the
ATTACHMENTS parameter of your SELFITEM.SENDTASKDESCRIPTION work
item.<BR> Regards,<BR>
Jocelyn<BR><BR>
________________________________<BR><BR>
From: <A href="mailto:sap-wug-bounces@mit.edu"
target=_blank>sap-wug-bounces@mit.edu</A> on behalf of Sandy<BR>
Sent: Tue 1/04/2008 5:35
PM<BR> To: SAP Workflow
Users' Group<BR> Subject:
Re: Attachment on SWU_START_WORKFLOW<BR><BR><BR><BR>
Hi Jocelyn, Ramki and others.<BR>
I just want to follow up this attachment
issue.<BR><BR> As per my
investigation below my steps to create ABAP report layout/internal table as
a work item attachment<BR>
1. Convert ABAP internal table/ report with FM SWL_SOFM_CREATE_WITH_TABLE.
The result is in SOFM format<BR><BR>
2. Issue that I found with SWU_START_WORKFLOW is, user could
not see attachment in SAP Business Workplace neither in UWL.<BR>
When I check the workflow log, I
can see _ATTACH_OBJECT contain value in SOFM format.<BR><BR>
3. Then I decided to replace
SWU_START_WORKFLOW with SWW_WI_CREATE and use SWL_WI_NOTE_CREATE to make
sure attachment is created. Then execute the work item with
SWW_WI_WITHOUT_WLC_EXECUTE<BR>
Unfortunatelly I am facing exactly same issue where attachment could
not be found from user point of view (SAP Business Workplace and UWL).
_ATTACH_OBJECT has no issue<BR><BR>
Will you be able to let me know what is the missing step in this
issue?<BR><BR> Many
thanks<BR><BR> Fyi. we're in
SAP ECC 6.0 with EP 7<BR><BR>
On Fri, Mar 28, 2008 at 4:11 PM, Sandy <<A
href="mailto:maorriyan.santoso@gmail.com"
target=_blank>maorriyan.santoso@gmail.com</A>> wrote:<BR><BR><BR>
Hi
Jocelyn & Ramki.<BR>
Glad finally there's an answer for my question
even not tested yet :p<BR>
I've been searching detail solution for
attachment in the internet. Unfortunately can't get the exact
answer.<BR><BR>
I downloaded that OSS and search SO*API* that can
translate my ABAP report result or internal table into SOFM
format.<BR>
I will have have a look and investigate it.<BR><BR>
Have a
good week end<BR><BR><BR><BR><BR>
2008/3/27 Dart, Jocelyn <<A
href="mailto:jocelyn.dart@sap.com"
target=_blank>jocelyn.dart@sap.com</A>>:<BR><BR><BR>
Sandy,<BR>
You'd need to put your
attachment in Business Object SOFM format. You'll need to use some of
the SAP Office APIs for this - search for function modules with the pattern
SO*API*<BR>
You might find it easier to create
a import container element for your workflow in the appropriate table
format.<BR><BR><BR>
Regards,<BR>
Jocelyn Dart<BR>
Senior
Consultant<BR>
SAP Australia Pty Ltd.<BR>
Level 1/168 Walker St.<BR>
North Sydney<BR>
NSW, 2060<BR>
Australia<BR>
T +61
412 390 267<BR>
M + 61 412 390
267<BR>
E <A
href="mailto:jocelyn.dart@sap.com"
target=_blank>jocelyn.dart@sap.com</A><BR><BR><BR></DIV></DIV>
<A href="http://www.sap.com"
target=_blank>http://www.sap.com</A> <<A href="http://www.sap.com/"
target=_blank>http://www.sap.com/</A>> <<A
href="http://www.sap.com/" target=_blank>http://www.sap.com/</A>>
<<A href="http://www.sap.com/"
target=_blank>http://www.sap.com/</A>><BR>
<DIV>
<DIV></DIV>
<DIV><BR><BR><BR>
The information contained in
or attached to this electronic transmission is confidential and may be
legally privileged. It is intended only for the person or entity to which it
is addressed. If you are not the intended recipient, you are hereby notified
that any distribution, copying, review, retransmission, dissemination or
other use of this electronic transmission or the information contained in it
is strictly prohibited. If you have received this electronic transmission in
error, please immediately contact the sender to arrange for the return of
the original documents.<BR><BR>
Electronic
transmission cannot be guaranteed to be secure and accordingly, the sender
does not accept liability for any such data corruption, interception,
unauthorized amendment, viruses, delays or the consequences
thereof.<BR><BR>
Any views expressed in this
electronic transmission are those of the individual sender, except where the
message states otherwise and the sender is authorized to state them to be
the views of SAP AG or any of its subsidiaries. SAP AG, its subsidiaries,
and their directors, officers and employees make no representation nor
accept any liability for the accuracy or completeness of the views or
information contained herein. Please be aware that the furnishing of any
pricing information/ business proposal herein is indicative only, is subject
to change and shall not be construed as an offer or as constituting a
binding agreement on the part of SAP AG or any of its subsidiaries to enter
into any relationship, unless otherwise expressly
stated.<BR><BR><BR><BR>
________________________________<BR><BR>
From:
<A href="mailto:sap-wug-bounces@mit.edu"
target=_blank>sap-wug-bounces@mit.edu</A> [mailto:<A
href="mailto:sap-wug-bounces@mit.edu"
target=_blank>sap-wug-bounces@mit.edu</A>] On Behalf Of Sandy<BR>
Sent: Thursday, 27 March 2008 1:30 PM<BR>
To: SAP Workflow - MIT<BR>
Subject: Attachment on SWU_START_WORKFLOW<BR><BR><BR>
Hi all.<BR>
I've been searching
in this forum and SDN as well. Unfortunately I can't get answer for my
question below.<BR><BR>
Our ABAP program need
to send the result of ABAP report or their internal table format to
user.<BR>
Their approach is want to utilise
workflow task.<BR><BR>
By executing function
module SWU_START_WORKFLOW and put my single task in TASK
parameter.<BR>
There is parameter name
ATTACHMENT_LIST in this function module. I believe this is for attachment
purposes.<BR>
Task that I created is single
background task that based on SELFITEM.SENDTASKDESCRIPTION.<BR><BR>
Will someone give me an answer how to pass ABAP internal
table/ ABAP report into this container element?<BR><BR>
Many thanks in advance<BR><BR><BR>
_______________________________________________<BR>
SAP-WUG mailing list<BR>
<A
href="mailto:SAP-WUG@mit.edu" target=_blank>SAP-WUG@mit.edu</A><BR>
<A
href="http://mailman.mit.edu/mailman/listinfo/sap-wug"
target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR><BR><BR><BR><BR><BR><BR>
_______________________________________________<BR>
SAP-WUG mailing list<BR>
<A href="mailto:SAP-WUG@mit.edu"
target=_blank>SAP-WUG@mit.edu</A><BR>
<A href="http://mailman.mit.edu/mailman/listinfo/sap-wug"
target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR><BR><BR><BR><BR><BR>
_______________________________________________<BR>
SAP-WUG mailing list<BR> <A
href="mailto:SAP-WUG@mit.edu" target=_blank>SAP-WUG@mit.edu</A><BR>
<A
href="http://mailman.mit.edu/mailman/listinfo/sap-wug"
target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR><BR><BR><BR></DIV></DIV><BR>_______________________________________________<BR>SAP-WUG
mailing list<BR><A href="mailto:SAP-WUG@mit.edu"
target=_blank>SAP-WUG@mit.edu</A><BR><A
href="http://mailman.mit.edu/mailman/listinfo/sap-wug"
target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></BODY></HTML>