Attachment in RSWUWFML2

Hi friends,
I have a requirement to attach and send a PR pdf file to outlook by using RSWUWFML2 (I am using this program to send work item to outlook user).
Can you please let me know can I achieve it! I have solution u2013 like customizing the program RSWUWFML2.  Is it possible to do that or let me know if you have any solution.
Thanks in advance.
Ysr.

I believe that it is not possible unless you customize and covert RSWUWFML2 into Z program. I suggest the following:
1. Create one step before your step that you attend to send it as an attachment in RSWUWFML2.
2. In this step, create such a background job to send a PDF attachment by cling FM to convert your smartform or your document into PDF and attach it to the FM "SEND_MAIL" as I think (Search in SE37 for SENDMAIL*).
3. so once the step is executed, you will automtically send a seperate notification to the appropriate agent and at the same time RSWUWFML2 will send the executable workitem attachment.
If you want the PDF to be attached in the Workitem itself, then you may search in SDN "Workitem Attachment". There is a blog that is telling you how to attach PDF into workitem that the user receives.
Check the following :
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60ff6ad3-729b-2b10-6582-fedc82680a29
<Gentle reminder removed by moderator>
Edited by: Julius Bussche on Mar 30, 2010 11:08 AM

Similar Messages

  • RSWUWFML2 - Work item attachment issue

    Dear Friends,
      I have used RSWUWFML2 to send notifications to outlook when a new workitem comes to user's SAP Inbox. The notification is working fine but when the user clicks the attachment in outlook to open the workitem  the SAP GUI is opening in a small window(minimized state). I want that to open in a maximized state. Please let me know if need to do any settings.
    I tried to open the same attachment from SOST but there also it is opening in minimized state.

    I debugged the report RSWUWFML2 and found that  the parameter   i_windowsize passed to the function module swn_create_shortcut is hard coded  "Normal Window". Probably I have to created a custom version of this report to change this parameter to "Maximized".

  • Change subject of mail provided by Report RSWUWFML2

    Hi
    I am using program RSWUWFML2 to generate Notification with executable attachment for workitems that are assigned to a User. The requirement is to change the Subject line or rather increase the number of characters that appear in the subject line. Presently the System Id along with workitem text appears and the the Workitem text is getting truncated.
    Is there any way to change this subject of the mail that is generated from this program? The Workitem text should change accordingly with respect to Workitem Text.
    Thanks
    Arghadip
    Message was edited by:
            Arghadip Kar

    Hi Arghadip,
    This is a tough one but have you lookat at what happens in the form SEND_MESSAGES around the line
        IF l_body IS INITIAL.
    *     If there is no text, we create a default text.
          l_body = 'This work item has no description.'(m06).
        ENDIF.
    Have you tried changing l_body in debug at this point and seeing if the output is what you want.  I have tried in the past but been hit with a 50 character limit around where it is used as a SOLI transfer, but this part is worth a look.
    Good luck
    Gareth

  • Workitem attachment missing in mail Outlook/Lotus

    When an email is generated from a particular workflow. I get the following message in my
    outlook inbox
    Subject :Please release purchase requisition 0013001141
    Body : Work item in R/3 System: DEV
    Please log on to the R/3 System and look in your inbox
    Please execute the work item by opening the attachment
    however the attachment(link) to the workitem is not present.
    Please guide me as I am new to this.

    Am I correct in thinking that your e-mail is the result of a SendMail step in a workflow?
    If so, the standard solution doesn't have any support for attachments as far as I know. Attachments, e.g. to enter SAP Business Workplace or display the work item, is something that the work item notification report adds to the mail messages.
    If your e-mail is the result of work item notification, make sure you have selected the attachment options if you are using RSWUWFML2, or that your customizing specifies inclusion of attachments if you are using the extended work item notification solution in more recent releases.

  • Workitem in attachment of outlook mail sending from mail step in workflow

    Hi  Expert,
    Presently  i am sending  a mail to approver of PO to external ID to inform that he has received a workitem in SAP in Box please login into SAP system and Approve the PO....
    But now requirment has changed .
    They need  this workitem in attachment of the mail i am sending to approver. approver click on that attachment it automaticly direct to sap system to the transaction ME21N to approve PO.
    Please guide to achive the new requirment..
    Deepanker Dwivedi

    There are two ways of doing this stuff...if you are running on WAS 6.4 or above then use second one.
    First method:-
    Schedule the program RSWUWFML2 as per your requirement. This will route the workitem links to the external mail id like outlook from user can log into sap and approve or reject the workitem.The SCOT should be configured to send and recieve external mails.
    Second Method:-
    U can use extended notifications for approving the workiten from the outlook or any other extrenal mail id.
    The basic configuration required is expalined in these two links
    [http://help.sap.com/saphelp_erp2005vp/helpdata/en/d5/581ee8d56f1247bf34cfcd66d16d81/frameset.htm|
    [/people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox ]
    Please revert back if you require further inputs.

  • Problem with SOAP Attachment in MM7

    Hi, I'm developing with Bea Weblogic 7 sp2 a MM7 server. My problem is when I add an attachment to SOAP message, Weblogic can't receive the message and say something as "The ID referenced by .... is unknow" but the href attribute in SOAP Message has the same value as the Content-ID of the attachment.
    The attachment is multipart/mixed. Please, I need help.
    I add here an old post from other user about this problem.
    <i>Hi
    I need some help for a problem I have with bea 7.0 sp1 web services.
    I'm trying to develop a SOAP Message Handler to intercept a SOAP Messages.It seems
    work properly for simple soap requests.
    But I need to send attachements so my request is like:
    POST /mm7/mm7Service HTTP/1.0
    Content-Type: multipart/related; type="text/xml"; start="<2ED4C017A7C250C35409DE82D1A8E6B1>";
    boundary="----=_Part_18_90248.1076664111251"
    Accept: application/soap+xml, application/dime, multipart/related, text/*
    User-Agent: Axis/1.1
    Host: xxx.xxx.xxx.xxx
    Cache-Control: no-cache
    Pragma: no-cache
    SOAPAction: "http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2?operation=Deliver"
    Content-Length: 5177
    ------=_Part_18_90248.1076664111251
    Content-Type: text/xml; charset=UTF-8
    Content-Transfer-Encoding: binary
    Content-Id: <2ED4C017A7C250C35409DE82D1A8E6B1>
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header>
    <ns1:TransactionID soapenv:mustUnderstand="0" xsi:type="xsd:string" xmlns:ns1="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2">E8D97EC0A80A712B5CF3C7E5A56AF121</ns1:TransactionID>
    </soapenv:Header>
    <soapenv:Body>
    <DeliverReq xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2">
    <MM7Version>5.3.0</MM7Version>
    <LinkedID>fa571b8e93C0A809513c33d383069dfb</LinkedID>
    <Sender>
    <RFC2822Address displayOnly="false">[email protected]</RFC2822Address>
    </Sender>
    <Recipients>
    <To>
    <Number displayOnly="false">+123454678</Number>
    </To>
    <Cc>
    <RFC2822Address displayOnly="false">[email protected]</RFC2822Address>
    </Cc>
    <Bcc>
    <RFC2822Address displayOnly="false">[email protected]</RFC2822Address>
    </Bcc>
    </Recipients>
    <Priority>High</Priority>
    <Content href="cid:74935BFBD687B557CE9C25A591FEE0DA" allowAdaptations="true"/>
    </DeliverReq>
    </soapenv:Body>
    </soapenv:Envelope>
    ------=_Part_18_90248.1076664111251
    Content-Type: multipart/mixed;
    boundary="----=_Part_17_2373292.1076664111231"
    Content-Transfer-Encoding: binary
    Content-Id: <74935BFBD687B557CE9C25A591FEE0DA>
    ------=_Part_17_2373292.1076664111231
    I implemented a simple Handler with a system.out in
    public boolean handleRequest(MessageContext mc)
    method
    But weblogic never gets there. It gives me this error instead:
    javax.xml.soap.SOAPException: failed to receive message:
    at weblogic.webservice.core.DefaultWebService.invoke(DefaultWebService.java:227)
    This seems related to this line
    <Content href="cid:74935BFBD687B557CE9C25A591FEE0DA" allowAdaptations="true"/>
    If I remove it, it can reach the handleRequest() method.
    Unfortunately I need the Content parameter....
    Does weblogic support href attributes in soap ?
    many thanks to whatever help
    (I already lost 3 days on that problem.....)
    alan</i>
    Thanks.

    Hello,
    Problem 1)
    In a previous question about this in SDN, someone (sorry, can't remember who) answered:
    "Have you or the user logged into the SAP GUI before? If not, have them login in. Our problems occured
    with new users that never logged into the SAP gui and so the user profile was never loaded with the ini
    file."
    Please try that.
    Problem 2)
    Are you sure it's running with the same variant in the background?
    What if you try every 5 minutes instead - maybe a minute is too short and it gets mixed up.
    You could also try copying RSWUWFML2 to ZRSWUWFML2, inserting an infinite loop and then attaching to it in order to debug it in the background.
    regards
    Rick Bakker
    Hanabi Technology

  • Problem with shortcut attachment in email

    Hi Workflow consultants,
    I have 2 problems using the program RSWUWFML2.
    Iu2019m using RSWUWFML2 program with the following data as input data and scheduled it to run every minute in background to send email for the work items.
    Job suffix: 2
    Task: <our respective task>
    New Work Items Only <checkbox>
    One Message per Work Item
    Work Item Execution <checkbox>
    Message Class for Subject:      SWU_NOTIF     
    Message Number for Subject:      2
    All <Radio button>
    Problem1:
    This is a PR approval scenario. Whenever a PR is released at a particular level, the next level approver will be intimated via email to release from his side. The email contains the attachment u201CExecute Work Item.SAPu201D. When I click the attachment I get the following messages before getting the logon dialog box.
    Screen 1:
    Not all data for SAP GUI shortcut is available.
    System description and GUI start parameter are unknown.
    Enter the missing data.
    After giving OK.
    Screen 2:
    Screen title: SAP shortcut properties
    Title: <blank>
    Type: Transaction
    Transaction: *swnwiex p_action=EXECUTE; p_wi_id=000000660172; DYNP_OKCODE=ONLI
    System description: (Other system)
    System ID: DEV
    Start parameter: <blank>
    Client: <displayed correctly>
    User: <respective approveru2019s user id>
    Password: <disable>
    Language: EN
    When I select the system description manually as my development system and given OK, then the logon dialog box comes as expected.
    Problem2:
    The program RSWUWFML2 which is scheduled to run at background every minute sends the same email every one minute to outlook.
    But when I run the program manually, it sends the email only once. And when I execute it again immediately after receiving the email, it says u201C0 work items were read. None were sentu201D .
    Please help me on what to do to get the logon dialog box once the shortcut is double clicked from email.

    Hello,
    Problem 1)
    In a previous question about this in SDN, someone (sorry, can't remember who) answered:
    "Have you or the user logged into the SAP GUI before? If not, have them login in. Our problems occured
    with new users that never logged into the SAP gui and so the user profile was never loaded with the ini
    file."
    Please try that.
    Problem 2)
    Are you sure it's running with the same variant in the background?
    What if you try every 5 minutes instead - maybe a minute is too short and it gets mixed up.
    You could also try copying RSWUWFML2 to ZRSWUWFML2, inserting an infinite loop and then attaching to it in order to debug it in the background.
    regards
    Rick Bakker
    Hanabi Technology

  • RSWUWFML2 to send out Collective notification

    We implemented a couple of SAP workflow such as Purchase requisition approval and Employee Leave request workflow.
    We are using RSWUWFML2 to send out the Collective notification  to Purchase Requisition Approval users Outlook inbox. In program RSWUWFML2, we specified the Parameter  to send Collective message and with Executable attachment 'Workflow Entry'.
    When the users recieve the notification in Outlook, and double on the attachment shortcut, login to SAP, the SAP Workflow Inbox  is display and users see all workflow workitem inclusive of purchase requisition, HR employee leave request workflow workitem.
    In this way, Is there a way to set (In program RSWUWFML2 or any other setup) to see Purchase Requisition workitem only when users logon via the attachement shortcut to SAP workflow Inbox?
    Best Regards,

    That's another no. I'd say it can not be done - unless your company/customer wants to take on the task of creating their own inbox functionality. Of course, with sufficient funding and time available a lot can be achieved, but I would never recommend anyone to do this.
    Why on earth do they want this functionality at all? It's like saying you should have five mail inboxes, one for each type of message. You can use a view in Lotus Notes to see only certain documents/messages based on content. These views are available as standard in SAP. Still, it's only a view, so the inbox holds all the content.
    Since many people today have not experienced this great software (Lotus Notes) and only know about folders in simple e-mail clients (e.g. Outlook) it can be compared to sorting messages into folders by using a filter - but only compared. Notes can do that too of course, in case anyone was thinking otherwise.

  • Sending notifications with attachments using RSWUWFML2

    Hi,
    I need to send a notification for a Workitem that has been forwarded. The workitem includes an attachment object type SOFM in element attachobjects. The report is creating the Email text but does not include the attachment. Does anybody have any ideas how I can create the Email with the attachment included for forwarded items.
    Regards
    Kevin Peyton

    Hi,
    In this program RSWUWFML2 you have to select the Radio Button ' One Message per Work Item' then select the below Check boxes
    Workflow Entry
    Work Item Display
    Work Item Execution
    Then execute it, then in the email link to workitem object will come as an attachment. Once you click, it will ask for the user name and password, after entering those you can execute the workitem. Check this [link|https://wiki.sdn.sap.com/wiki/x/moH8B].
    Regards,
    Surjith

  • Wrokflow with Tcode as an attachment

    Hi SDNers,
    Kinldy let me know the procedure for the attachement of tcode(e.g.,ZXXX) to the workitem by passing container elements to the selection screen parameters of the report. The report should be an attachment to the user decission step,.
    How could I achieve this.
    Regards,
    Venkat

    Hi,
    please let me know your requirement first, if it is standard screen means you can go with standard business object and method of that, or if that is zprogram means you should create zbusiness object and inside of display method you can write call transaction code and you need to assign that business object to your workflow task.
    then RSWUWFML2 call the report it will sent SAP Screen as attachment of the agent mail address.
    note: the agent should mail address should maintain in SU01.
    Hope this helps,
    Regards,
    Srini.

  • RSWUWFML2 - CONVERSION ERROR sending workitem out via SCOT

    Hi there,
    Please help, I am using report RSWUWFML2 to send workitems to outlook, the email gets to outlook but it seems like there is a CONVERSION error that occurs in SAP that results in no workitem ATTACHMENT being in the email.
    The error in the email is: "Message cannot be processed as it cannot be converted"
    I turned on the trace in SCOT and this is the log....look at the sections in BOLD to see what happened:
    SX_PERFORM_RFCSEND               G  <b>Formats supported: ALI INT OBJ OTF PDF RAW SCR URL     </b>
    SX_OUTGOING_VERSION_BUILD        G  Read contents of document RAW32000000034669            
    SO_OBJECT_DATA_FOR_SEND_GET      G  Object transferred                                     
    SX_OUTGOING_VERSION_BUILD        G  <b>Converting document RAW32000000034669 from TXT to INT  </b> SX_OUTGOING_VERSION_BUILD        G  Read contents of document EXT32000000011065            
    SO_OBJECT_DATA_FOR_SEND_GET      G  Object transferred
    SX_OUTGOING_VERSION_BUILD        G  <b>No suitable conversion found for SAP                   </b> SX_GENERATE_NDR                  G  <b>Message cannot be processed as it cannot be converted  </b>
    My apologies for the bad formatting above, was the best I could do from copy and paste from SCOT....
    I have also looked at the "conversion rules" in SCOT.....could this be the problem? It seems to want to convert type "SAP" to something.....but there is no "SAP type" in the conversion rules?
    PLEASE help, I really need to get over this obstacle
    Thanks
    Lynton

    Not sure if this will confuse matters more but if I look in the LOGS further in transaction SLG1 I see the following:
    Typ Message text                                                                               
    Selection Setting: p_jobsuf = 2                           
        Selection Setting: p_tasks = TS00007986                   
        Selection Setting: x_sc_inb =                             
        Selection Setting: x_sc_dis =                             
        Selection Setting: x_sc_exe = X                           
        Selection Setting: p_s_nac = SWU_NOTIF                    
        Selection Setting: p_s_nan = 002                          
        Selection Setting: p_prol = SWU_NOTIF_PROLOG1             
        Selection Setting: p_epil = SWU_NOTIF_EPILOG2             
        Selection Setting: p_logon =                              
        Selection Setting: p_fromd = 03.12.2007                   
        Selection Setting: p_fromt = 08:00:00                     
        Selection Setting: p_user =                               
        Selection Setting: x_err_tr =                             
        Selection Setting: x_alw_tr = X                           
        Work item 000001389473 being edited                       
        SAPoffice document RAW32000000034669 sent                 
        Work item 000001389473: Send ok                           
        Work item 000001389473 sent to [email protected]     
    So this log looks fine BUT the previous trace from SCOT looks bad.....
    Any ideas?
    Lynton

  • RSWUWFML2 Settings and Single Sign On

    Good day all.
    We're using Lotus Notes as our e-mail client and we're able to send work item to Lotus Notes.
    1.Unfortunately everytime user execute attachment 'Execute Work Item.SAP', system prompt 'Not all data for SAP GUI shortcut is available:...'
    We already created a shortcut in user SAPLogon. I guess some mistake in SAP Gui Parameters and Command.
    What should I type in this SAP GUI Paramaters and Command?
    2. When user execute the attachment, system always asking for user and password. Is it possible to go directly to SAP without type in the user id and password?
    3. After executing the attachment of work item, is it possible to close the SAP session/ go back to Lotus Notes?

    The question is a year old, so I don't know if it is still relevant, but in case it is:
    1 and 2: What single sign-on solution are you using? If you use sap shortcut (sapshcut.exe) I think I can help you if you are willing to modify RSWUWFML2.
    3: I don't think this is possible unless you can use batch input to execute transaction code "/NEX".

  • Remove Workitem Attachment from Outlook Inbox

    Hi, Workflowers,
    I would like to know, if possible can I remove 2 of the attachments. I think normally you have 3 attachments in the user's outlook inbox: for going to the SAP inbox, for displaying the work item, and for executing the work item. I would like to remove the attachment for displaying the work item and the one for the SAP inbox.
    Is it possible to also customise the Missed Deadline mail subject so that it doesn't have the 'Missed Deadline...' part?
    Thanks in advance.
    Darlington

    The text I am talking about is not the text in the Description tab of the PFTC transaction. I am fine with that. What I am concerned about is the standard text that appears in the outlook e-mail after the Description as follows:
    "Open the SAP shortcut attachment in order to process the work item.
    If you have any problems logging on, contact your system administrator."
    And the message subject saying for example "Missed Deadline:...."
    I know that when you run the report RSWUWFML2 under the block "Standard Text for Notification", there is a message class for the mail Subject "SWU_NOTIF" Message Number 2, which has &1: &2 in transaction SE91. How can I determine the text in these variables during runtime (In fact, I would like to Hard-code this text)
    After I select "Collective Message" in the "Send granularity" block I have removed SWU_NOTIF_PROLOG1 for "Before Work Item Description" so that the standard text:
    "Your Workflow inbox in the SAP system DEV, client 100, contains the following work item:"
    does not appear in the outlook mail since I don't need it.
    But I have not removed the SWU_NOTIF_EPILOG1. I would like to know how I can edit the text:
    "Open the SAP shortcut attachment in order to process the work item.
    If you have any problems logging on, contact your system administrator."
    which I believe is the one involved with SWU_NOTIF_EPILOG1.
    Regards,
    Darlington

  • Workflow - Send email with transaction attach or transaction attach link

    Hi,
    I need to send an email from a WF process to an Outlook/LotusNotes account, this email must have a transaction attach or a transaction attach link.
    How I do this?
    Thanks,
    Jhonny

    See the documentation for report program RSWUWFML2. Also search this forum with the program name. This has been discussed a few times before.
    Cheers,
    Ramki Maley.

  • RSWUWFML2 program job variant issue continues.......

    Hi Experts,
    I have scheduled the program for the given detail below current. Problem is when user not executed the workitem, same mail is sent multiple time that user has a new workitem in his inbox. is there any presetting missed?
    Scheduled variant for RSWUWFML2 as given detail:
    Instance data block:
    job suffix 2
    task blank
    language blank
    new workitems only tick
    send granularity block:
    one message per workitem selected.
    There is no attachement to message so no selection in "Add Executable Attachment to Message For block"
    Standard text for notification block: same as Standard
    date: Null
    Time: Null
    Log: Errors Only
    Issue: external mail sends without any issue but repeating for the same worktiem for multiple time.
    SKC, i to have the same problem.... hope experts give solution here you can use this thread.
    thanks in advance,
    Regards,
    Hari.

    Hi,
    Make sure that the user that the job is scheduled for has enough authorisations (SAP_ALL & SAP_NEW). I remember having similar problem some years ago, and while debugging I found out that the user was not allowed to write to the table, in which the job time stamp is stored (=all items are then always "new" for the report).
    Regards,
    Karri

Maybe you are looking for