Binding question

Claude Bourque claude.bourque at rcmp-grc.gc.ca
Fri Oct 31 08:12:23 EDT 2014


John,
 
I had to take comments entered via a Webdynpro into attachments and I
used:  SAP_WAPI_ATTACHMENT_ADD 
 
Here's part of my code
 
   DATA lv_comments      TYPE string. 
 
  ls_header-file_type      = 'T'.
  ls_header-file_name      = 'Rejection_Reason'.
  ls_header-file_extension = 'TXT'.
  ls_header-language       = sy-langu.

  CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
    EXPORTING
      workitem_id          = wd_this->mv_wi_id
      att_header           = ls_header
      att_txt              = lv_comments
*      att_bin              =
*    DOCUMENT_OWNER       = SY-UNAME
*    LANGUAGE             = SY-LANGU
     do_commit            = 'X'
   IMPORTING
      return_code          = rc
      att_id               = ls_att_id
   TABLES
*    MESSAGE_LINES        =
    message_struct       = lt_messages. 
 
Hope that helps.
 
Claude

>>> "Schumacher, Margaret" <margaret.schumacher at teleflex.com>
2014/10/31 7:51 AM >>>

John,
 
I’ve used these functions to compose attachments and relate them to the
workitem.
 
SWW_WI_OBJECTHANDLES_READ
SWL_WI_NOTE_CHANGE_WITH_TABLE
SWL_WI_NOTE_CREATE_WITH_TABLE
SWL_WI_NOTE_DELETE_NO_DIALOG
 
 
Margaret Schumacher
 
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On
Behalf Of John Haworth
Sent: Friday, October 31, 2014 6:46 AM
To: SAP Workflow Users' Group
Subject: Binding question
 
Hi All 

I have an ECC 6 Non PO  approval workflow that when a rejection is
chosen (its not a decision step) a pop up is presented to the user and
rejection text is added, this is then 'Binded' into the container and is
embedded in text that is eventually emailed. Works fine. 

What i need to do though, is also bind this piece of text back into the
container, so that its seen as an attachment. Anyone please advise how
to, the text type is just 'Char' but i need to append it to the existing
attachment list, how do I change its type so that it will bind
correctly? 

Any help would be welcome. 

Kind Regards

John Haworth
SAP Workflow
CSC

Euxton House, Euxton Lane, Chorley, PR7 6FE.
|Office: +44(0)1257 23 6474|Mobile: +44(0)7921069650| email:
jhaworth at csc.com|www.csc.com

=============================================
Advanced Holiday Notice:

20th October - 24th October

=============================================

CSC • This is a PRIVATE message. If you are not the intended recipient,
please delete without copying and kindly advise us by e-mail of the
mistake in delivery.  NOTE: Regardless of content, this e-mail shall not
operate to bind CSC to any order or other contract unless pursuant to
explicit written agreement or government initiative expressly permitting
the use of e-mail for such purpose • CSC Computer Sciences Limited •
Registered Office: Royal Pavilion, Wellesley Road, Aldershot, Hampshire,
GU11 1PZ, UK • Registered in England No: 0963578
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20141031/6a2cf790/attachment.htm


More information about the SAP-WUG mailing list