Attachments

Vinod Ramchandani vinod.ramchandani at patni.com
Tue May 27 09:01:33 EDT 2003


Thanks Werner,
I have tried with this one.
"swr_object" - is not going to work.
I need in the attachment table with type "SOFM".
1) SAP_WAPI_GET_ATTACHMENTS
2) SWL_WI_ATTACHMENTS_READ
3) SWW_WI_CONTAINER_READ_OBJECTS
 
All the above FMs gives the Error while i m trying to display the
attachment.
See the attached file to look on dump.
 
Thanks,
- Vinod.
 
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]On Behalf Of
Werner K=F6=DFl
Sent: Tuesday, May 27, 2003 5:52 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: AW: Attachments
 
 
Hi Vinod,
 
you can read the attachments of a workflow with FM
"SAP_WAPI_GET_ATTACHMENTS":
 
  Attachments TYPE TABLE OF swr_object.
  CALL FUNCTION 'SAP_WAPI_GET_ATTACHMENTS'
       EXPORTING
            workitem_id =3D Workflow_ID
       IMPORTING
            return_code =3D sy_retcode
       TABLES
            attachments =3D Attachments.
 
Regards,
Werner.
 
 
-----Urspr|ngliche Nachricht-----
Von: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]Im Auftrag von
Vinod Ramchandani
Gesendet: Dienstag, 27. Mai 2003 14:15
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: Re: Attachments
 
 
Hi..
Is there any Function Module, which will reads the attachments of workite=
ms
and returns the table of attachment in the form of SOFM??
 
OR ---->
I have read the attachments using the FM SWL_WI_ATTACHMENTS_READ, and for=
mat
the SOFM type of table using available information (Structures: swotobjid=
 &
swlnotetab).
Attachments have been seen in the Inbox but I am not able to display
it.Display Command gives me the runtime "type" exception (See attached .b=
mp
file).I think that is due to i have missed some information to place in S=
OFM
object.
 
Anybody have any suggestions?
I have filled the following fields of SOFM.
1) sofm-mandt
2) sofm-foltp
3) sofm-folyr
4) sofm-folno
5) sofm-doctp
6) sofm-docyr
7) sofm-docno
8) sofm-fortp
9) sofm-foryr
10) sofm-forno
 
Is there any other field is required to be filled in, to remove the
exception while display command?
Kindly suggest if you have some idea.I really appericiate any kind of inp=
ut.
 
Thanks,
- Vinod.
 
 
 
 
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]On Behalf Of
Kjetil Kilhavn
Sent: Tuesday, May 27, 2003 2:15 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Attachments
 
 
No, I don't know. Trial error is the best recipe I can suggest. (Optional=
ly
you can also learn from those trials that were unsuccessful.)
--
Kjetil Kilhavn
 
 
 
 
 
                    Vinod Ramchandani
                    <vinod.ramchandani at p        To:
SAP-WUG at MITVMA.MIT.EDU
                    atni.com>                   cc:     (bcc: Kjetil
Kilhavn)
                    Sent by: SAP                Subject:     Re: Attachme=
nts
                    Workflow
                    <Owner-SAP-WUG at MITVM
                    A.MIT.EDU>
 
 
                    27.05.2003 08:10
                    Please respond to
                    "SAP Workflow Users'
                    Group"
 
 
 
 
 
 
Thanks Kjetil,
 
Ok ! Now I have only one option to go. That is, Write one method and
execute
it in first step.
Is It?
would you please eloberate difference between _adhoc_objects and
_attach_objects?
The Only difference which i think is the TYPE.
_adhoc_objects  -- No Type, that is abstract type can be used for any kin=
d
of attachments.
_attach_objects -- SOFM type, that is only with Office attachments.
 
Do you know when _adhoc_objects being used in Workflow Circuit?
 
Thanks.
- Vinod.
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]On Behalf Of
Kjetil Kilhavn
Sent: Tuesday, May 27, 2003 11:20 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Attachments
 
 
Ahhhh.. good point. The only event container element I can think of right
here and now is the adhoc objects.
Unless you can pass _adhoc_objects to _attach_objects it is probably bett=
er
to do the copying at the beginning of the flow as you suggest.
 
Modifying SAP standard is never a good idea. It is sometimes necessary, b=
ut
it is never a good idea. I've only encountered SPAU briefly, but it was
enough.
--
Kjetil Kilhavn
 
 
 
 
 
                    Vinod Ramchandani
                    <vinod.ramchandani at p        To:
SAP-WUG at MITVMA.MIT.EDU
                    atni.com>                   cc:     (bcc: Kjetil
Kilhavn)
                    Sent by: SAP                Subject:     Re:
Attachments
                    Workflow
                    <Owner-SAP-WUG at MITVM
                    A.MIT.EDU>
 
 
                    26.05.2003 14:17
                    Please respond to
                    "SAP Workflow Users'
                    Group"
 
 
 
 
 
 
Thanks Kjetil,
 
I have found two FM's which can probalbly make my work easy.
1) SWI_WORKITEMS_OF_OBJTYPE_GET
2) SWL_WI_ATTACHMENTS_READ
 
But How should I encapsulate this functionality in my logic.
I was thinking in the following direction.
- Write one Static(Instance Independent) Method in the according Business
Object,
And call this method in first step of the flow and passing this attachmen=
t
table to the workflow container parameter - _attach_objects.
 
But your suggestion is seems to be quite efficient (using check function
module).
But Check Function has the similar interface like event container.
How can I pass the the value to the _attachment_objects from check funtio=
n
module?
would you have any idea?
Should i modify the event, to change the event container parameters...or
anything else?
 
Thanks once again for your help.
 
- Vinod.
 
 
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]On Behalf Of
Kjetil Kilhavn
Sent: Monday, May 26, 2003 11:19 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Attachments
 
 
Write a check function which finds the previous instance of the same
workflow for the requisition object (SWW_WI_TO_OBJECT_FIND) and copies th=
e
attachment object(s).
--
Kjetil Kilhavn
 
 
 
 
 
                    Vinod Ramchandani
                    <vinod.ramchandani at p        To:
SAP-WUG at MITVMA.MIT.EDU
                    atni.com>                   cc:     (bcc: Kjetil
Kilhavn)
                    Sent by: SAP                Subject:     Attachments
                    Workflow
                    <Owner-SAP-WUG at MITVM
                    A.MIT.EDU>
 
 
                    24.05.2003 10:05
                    Please respond to
                    "SAP Workflow Users'
                    Group"
 
 
 
 
 
 
 Hi Workflowers,
 I want to configure Standard Purchase Requisition Release Workflow.
 I want to carry the attachments on workitem to the next release iteratio=
n.
 - Workflow has simply two step execution.
 - Workflow is triggered on "releasestepcreated" event.
 - At every iteration of the release procedure of the same requisition, I=
n
new Workflow instance, I need the attachments of the previous workflow
instance which is in  "completed" - status.
 can anybody have any suggestion or Idea?
 
Thanks in Advance.
Regards,
Vinod.
 
 
 
 
 
-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of t=
he
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and dele=
te
this message.
Thank you.
 
 
 
 
 
-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of t=
he
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and dele=
te
this message.
Thank you.
 
 
 
 
 
-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of t=
he
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and dele=
te
this message.
Thank you.
 


More information about the SAP-WUG mailing list