Attachment on SWU_START_WORKFLOW

Sandy maorriyan.santoso at gmail.com
Thu Apr 3 23:02:08 EDT 2008


Hi Jocelyn.
Thanks for giving me a fish rod:-)
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.
System having different error messages 'Work item 000000431095: Object
000000431095 method SENDTASKDESCRIPTION cannot be executed'. This error
disappear every time I removed the attachment.

I though this is error due to document id that created by
SWL_SOFM_CREATE_WITH_TABLE is not correct.
Even when I use document id that created in foreground still causing an
error.

Does attachment that we do in background have different format/ approach
than we do in foreground e.g. via UWL/ Business Workplace?

Can you give me fish this time?

Any body out there have similar experience?

Many thanks

2008/4/3 Dart, Jocelyn <jocelyn.dart at sap.com>:

> Sandy,
> 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.
> Regards,
> Jocelyn
>
> ________________________________
>
> From: sap-wug-bounces at mit.edu on behalf of Sandy
> Sent: Thu 3/04/2008 2:57 PM
> To: SAP Workflow Users' Group
> Subject: Re: Attachment on SWU_START_WORKFLOW
>
>
> Thanks Jocelyn.
> I solved binding issue with our Security user id.
> OK.
> Today I continue my investigation.
> FM SWU_START_WORKFLOW truncated _Attach_Objects content.
> Original attachment/ document id that I passed in table ATTACHMENT_LIST
> was in FOL31000000000004RAW33000000000521 then truncated into
> RAW33000000000521
> I can see SWU_START_WORKFLOW calling SO_CONVERT_API1_SOFM. This function
> module is the one who truncated the original document id format.
> I suspect this is the reason user could not see the attachment in their
> SAP Business Workplace or UWL
>
> What done is I created ABAP program similar to SWU_START_WORKFLOW but
> without SO_CONVERT_API1_SOFM.
> For unit test purposes I hardcoded document id
> 'FOL31000000000004RAW33000000000521' that I created from
> SWL_SOFM_CREATE_WITH_TABLE.
> 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.
> 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
> Executed action:EXECUTE_METHOD_BOR  have error message 'Object with
> runtime number'              2' not defined
> I check every container element that I am concern about including
> _Attach_Objects is in correct format 'FOL...RAW....'
>
> Apparently I did something wrong.
> Will you be able to help me again?
> Any input welcomed
>
> Many thanks
>
>
> 2008/4/3 Dart, Jocelyn <jocelyn.dart at sap.com>:
>
>
>        Hi Sandy,
>        Yes definitely - perhaps you need to press enter or something
> before you save.
>
>        Regards,
>        Jocelyn
>
>        ________________________________
>
>        From: sap-wug-bounces at mit.edu on behalf of Sandy
>
>        Sent: Wed 2/04/2008 6:11 PM
>
>        To: SAP Workflow Users' Group
>        Subject: Re: Attachment on SWU_START_WORKFLOW
>
>
>        Jocelyn,
>        Yes, I did it.
>        But somehow binding between task and method (&_ATTACH_OBJECTS& ->
> &ATTACHMENTS&, &ADDRESSSTRINGS& -> &ADDRESSSTRINGS&, etc. ) always disappear
> upon save button.
>        Definitely this is not authorisation issue since I got successful
> message from SU53.
>        Do you think this is the root cause?
>
>
>
>
>        2008/4/2 Dart, Jocelyn <jocelyn.dart at sap.com>:
>
>
>               Sandy,
>               You need to ***explicity*** bind _ATTACH_OBJECTS to the
> ATTACHMENTS parameter of your SELFITEM.SENDTASKDESCRIPTION work item.
>               Regards,
>               Jocelyn
>
>               ________________________________
>
>               From: sap-wug-bounces at mit.edu on behalf of Sandy
>               Sent: Tue 1/04/2008 5:35 PM
>               To: SAP Workflow Users' Group
>               Subject: Re: Attachment on SWU_START_WORKFLOW
>
>
>
>               Hi Jocelyn, Ramki and others.
>               I just want to follow up this attachment issue.
>
>               As per my investigation below my steps to create ABAP report
> layout/internal table as a work item attachment
>               1. Convert ABAP internal table/ report with FM
> SWL_SOFM_CREATE_WITH_TABLE. The result is in SOFM format
>
>               2. Issue that I found with SWU_START_WORKFLOW is, user could
> not see attachment in SAP Business Workplace neither in UWL.
>               When I check the workflow log, I can see _ATTACH_OBJECT
> contain value in SOFM format.
>
>               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
>               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
>
>               Will you be able to let me know what is the missing step in
> this issue?
>
>               Many thanks
>
>               Fyi. we're in SAP ECC 6.0 with EP 7
>
>               On Fri, Mar 28, 2008 at 4:11 PM, Sandy <
> maorriyan.santoso at gmail.com> wrote:
>
>
>                      Hi Jocelyn & Ramki.
>                      Glad finally there's an answer for my question even
> not tested yet :p
>                      I've been searching detail solution for attachment in
> the internet. Unfortunately can't get the exact answer.
>
>                      I downloaded that OSS and search SO*API* that can
> translate my ABAP report result or internal table into SOFM format.
>                      I will have have a look and investigate it.
>
>                      Have a good week end
>
>
>
>
>                      2008/3/27 Dart, Jocelyn <jocelyn.dart at sap.com>:
>
>
>                              Sandy,
>                              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*
>                              You might find it easier to create a import
> container element for your workflow in the appropriate table format.
>
>
>                              Regards,
>                              Jocelyn Dart
>                              Senior Consultant
>                              SAP Australia Pty Ltd.
>                              Level 1/168 Walker St.
>                              North Sydney
>                              NSW, 2060
>                              Australia
>                              T   +61 412 390 267
>                              M   + 61 412 390 267
>                              E   jocelyn.dart at sap.com
>
>
>                               http://www.sap.com <http://www.sap.com/>  <
> http://www.sap.com/>  <http://www.sap.com/>
>
>
>
>                              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.
>
>                              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.
>
>                              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.
>
>
>
>               ________________________________
>
>                              From: sap-wug-bounces at mit.edu [mailto:
> sap-wug-bounces at mit.edu] On Behalf Of Sandy
>                              Sent: Thursday, 27 March 2008 1:30 PM
>                              To: SAP Workflow - MIT
>                              Subject: Attachment on SWU_START_WORKFLOW
>
>
>                              Hi all.
>                              I've been searching in this forum and SDN as
> well. Unfortunately I can't get answer for my question below.
>
>                              Our ABAP program need to send the result of
> ABAP report or their internal table format to user.
>                              Their approach is want to utilise workflow
> task.
>
>                              By executing function module
> SWU_START_WORKFLOW and put my single task in TASK parameter.
>                              There is parameter name ATTACHMENT_LIST in
> this function module. I believe this is for attachment purposes.
>                              Task that I created is single background task
> that based on SELFITEM.SENDTASKDESCRIPTION.
>
>                              Will someone give me an answer how to pass
> ABAP internal table/ ABAP report into this container element?
>
>                              Many thanks in advance
>
>
>
>  _______________________________________________
>                              SAP-WUG mailing list
>                              SAP-WUG at mit.edu
>
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
>
>
>
>
>
>               _______________________________________________
>               SAP-WUG mailing list
>               SAP-WUG at mit.edu
>               http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
>
>
>
>
>        _______________________________________________
>        SAP-WUG mailing list
>        SAP-WUG at mit.edu
>        http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
>
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20080404/4a628cb8/attachment.htm


More information about the SAP-WUG mailing list