creation of attachment in background

Veerle De Smet veerle.desmet at sidmar.arcelor.com
Fri Apr 16 09:20:18 EDT 2004


Hello,
 
we need the following functionality :
 
create in background an attachment on a certain workitemid with a
predefined header and title and with a certain content (coming as text
from an external system).
 
Important Background info :
we suceeded very well in doing this functionality up to version 46B !
Namely, we used the function SWL_WI_NOTE_CREATE_WITH_TABLE. Now we
upgraded to 47 (enterprise 620) and we get problems with this function
(workflow stops after the execution of the background task). We made an
oss message for this issue and the response was that  the function
SWL_WI_NOTE_CREATE_WITH_TABLE is not released by SAP for being
used in customer programs and  is not suitable for being called   within
object methods of background tasks ....
 
Another thing is that you can add the interface type IFATTACH into your
objecttype. In this way, you get the following methods for free into your
objecttype :
SalesItem.AttachmentCreate
SalesItem.AttachmentDisplay
SalesItem.AttachmentDelete
SalesItem.AttachmentEdit
SalesItem.AttachmentList
But these are all dialog methods. We could of course copy the create
method and make it into a background method but a first look at this
method tells us th      at it will not be very easy to adapt this coding.
 
So we hope that someone can give us a better (maybe even standard)
function to create an attachment in background with as variable input just
the text that should be visible in the attachment .
 
 
Kind regards,
 
Veerle De Smet
SIDMAR N.V.
Tel. : +32 9 347 47 60
E-mail : veerle.desmet at sidmar.arcelor.com
 
***********************************************************************************
This message should only be read by those persons to whom it is
addressed, and may contain confidential information, the disclosure
of which is prohibited. This message is not intended to create rights
or obligations without subsequent written confirmation of its contents.
If you have received this message in error, please notify us immediately
***********************************************************************************
 


More information about the SAP-WUG mailing list