Attaching a pc file to workflow

i want to attach a microsoft doc (excel, word) to a work item in workflow. How to do that? How to use SOFM object type for this or some other method.
Thanks in Advance,
Yoga

Hi,
Create a custom event which triggers your workflow.
Have export parameters for the event, add an attribute of type SOFM object type.
fill the contents of this with the attachment of yours.
Make sure that you have set the attach_objects in the workflow container as import.
Do the binding in the triggering of the workflow.
there  you go with the solution.
regards,
Sandeep Josyula

Similar Messages

  • How to get the Attachment of a pdf file throug workflow,...

    Hi,
              I have attached pdf the file to the ESS and written the code in webdynrpo. How can I get the file attachment in MSS through Workflow? This attachment should be displayed in the User Decision Activity. Could any one Help me on this issue....?
    Thanks & Regards
    Kannan

    Hi,
      1. From WebDynpro  applicaiton once you create a PDF  in the application you can get back the Xstring of PDF  into the context of the workflow,
    2. Now pass this xstring to workflow container. I assume you might be starting the workflow from Webdynpro application.
    4. Create class method or a BOR and include a method. From that method do the respective coding that is mentioned in the document.
    3. Once you have the PDF  xstring in the workflow container you can attach the PDF  document to user decision step as mentioned in the [document|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60ff6ad3-729b-2b10-6582-fedc82680a29]
    Regards
    Pavan

  • How to send attachment as html file in mail in workflow

    Hi Experts,
    I want to know how i can send an attachment as .html file by mail in sap workflow.
    By default it is being sent as .txt file.
    Thanks & Regards,
    Kapil Kumar

    Hello,
    In your decision step you can put this binding (if you haven't already):
    Workflow                  Step
    &DECISIONCOMMENTS&   <-   &_ATTACH_OBJECTS&
    where DECISIONCOMMENTS is a BOR of type SOFM.
    In the next step you can use fm SO_DOCUMENT_READ_API1
    to get the actual text lines.
    Once you have that you can convert it to HTML (not
    sure how) or you could use fm SO_NEW_DOCUMENT_ATT_SEND_API1
    to send it as a HTML attachment.
    regards
    Rick

  • Can any one tell me how to attach a pdf file to the mail through workflow

    I have a smart which i am able  to convert it to a pdf file...now.. can any one tell me how to attach a pdf file to the mail through workflow

    Hi,
    To create the task for attachment
    Use the BOR SELFITEM and method NOTES_APPEND.
    The out come of this task contain a link called attachment with a clip attached. Clisk on that icon and choose the type of attachment u want . RAW , EXCEL , TXT , PDF... Then using the import icon u can attach the document u like.
    But the TYPE : OBJ.
    Similarly using NOTE_DISPLAY method u can display the documents u like.
    In any work item u have the facility to attach any atttchment for further circulation .
    Attchment @ WORKITEM
    1.Click the workitem for which you want to create the attchment
    2.Press create attachment
    3. Add the attachment u like (PDF)
    Reward points for useful answer.
    Richard A

  • Files and Workflow, How to Use it ?

    Hi, I'm running OCS 9.0.3.1 single box under windows.
    I have already integrated workflow an files, and everything is running fine.
    But now, if I want to try the demo process for document management that is shipped with WF, how do I attach an Oracle Files document directly to the process (in the html form to launch the process there is a link to attach de document, but doesn't work) ? there's any configuration.
    I know that there's integration developing some code under iFS, but I heard that Oracle Files it's a closed version of iFS, so there's no code dev there. Anyone has tried to use it yet ?
    An example or configuration guide would be great.
    Thanks a lot in advance.
    Esteban Eid

    It has recently emerged that Apple will provide "support for 11 other RAW formats from different cameras, including the Nikon D40, Leica Digilux 3, Panasonic Lumix DMC-L1, Samsung GX-1L, and seven of the Leaf Aptus and Valeo models."
    This is from the mouth (or, actually, pen) of Joe Schorr who's heading the Aperture team. Look up his posts on this forum.
    I presume that the additional support will be part of the pending System update (10.4.9) that everybody's waiting for. Dare we hope for a release tonight? After all, it's Tuesday - and usually Apple Software updates happen on a Tuesday.
    Cheers,
    k.

  • How to attach document from webdynpro TO workflow

    Dear friend,
    For one requirement i want to attach documents(.doc or .pdf)
    from webdynpro form.
    I want to display it with user decision step along with description.
    I am confused that which container element would contain it?
    and how can i display it along with description?
    How can i attach document to the workflow?
    Please guide me stepwise.
    Thanx in advance!
    Regards,
    Purvesh.

    hi,
    Please Refer to the thread.
    How to Attach a pdf file which is created in EP while sending the mail
    Regards
    Sumit Agarwal

  • Attach of doc file to website

    Is there anyway to attach my doc file eg: for those job search website need to attach my cv.

    Hi Arghadip,
    Thanks for the reply, but as I said I am new to workflows, please provide me with solution in detail.
    It would be helpful if you can provide me with the code.
    Regards,
    Piyush.

  • Attach a doc file to work item

    Hi,
    We have scenario in which we have to attach a document file to a work item of a workflow. The workflow is triggered by a Function Module (FM). The document file to be attached is place in the file system of the R/3 system. The FM provides the file name to the workflow. Please tell us how to attach a file to a work item?
    Also we are triggering the FM from an Enterprised Portal screen, so we cant use any transaction (T codes).
    We are trying to implement this using an SOFM object but no success. Please give the solution in detail as Im new to workflows.
    Regards,
    Piyush.

    Hi,
    We are triggering the FM from EP screen so no transaction screen would be available.
    Alternatively we have done the following:
    First we have placed the document file in a folder of the application server. Then an FM reads the file using OPEN DATASET and stores it in an internal table of type binary. Now using SWL__SOFM_CREATE_WITH_TABLE we are generating a key and this key is passed to the SOFM object, which is used to generate container element for attachment. The attachment is visible in the work item but when we try to open the attachment, microsoft word giving the following error:
    "the document may be corrupt or damaged. Use either the Recover Text converter or the Open and Repair feature. Both are available from the Open dialog. The Recover Text converter is in the Files of type: drop down and the Open and Repair feature is available from the Open button (select the down arrow and not the button itself)."
    We assume that  there is some problem while reading and converting the document file to binary and vise a versa. Is there any other way to keep it consistent and it works fine.
    Regards,
    Piyush.
    ps: the document files are the candidate's resume.

  • Send pdf file to workflow through web dynpro.

    Hi All,
    I have a web dynpro component, with this component i am raising a request, which will go to multiple level of approvals(for this triggering workflow from web dynpro).
    Now i want to send a pdf file as an attachment to approvers work items.
    For this i have used File Upload UI element, and i have binded data property of this upload UI element with an attribute of type Xstring.
    Now can you please help me to send this file to workflow.
    I am able to send a pdf file as an attachment through executable report (SE38), but same functionality is not working from web dynpro.
    Code used in executable report is as below:
    DATA: t_data_tab TYPE TABLE OF x255,
    bin_size TYPE i,
    buffer_x TYPE xstring,
    buffer_zip TYPE xstring,
    filename TYPE string VALUE 'C:\Documents and Settings\My Documents\Downloads\IT.pdf'.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename                      = filename
    filetype                      = 'BIN'
    IMPORTING
    filelength                    = bin_size
      HEADER                        =
    TABLES
    data_tab                      = t_data_tab.
    **get xstring
    CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
      EXPORTING
        input_length = bin_size
      IMPORTING
        buffer       = buffer_x
      TABLES
        binary_tab   = t_data_tab.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ZSWR_ATT_HEADER-FILE_TYPE = 'B'.
    ZSWR_ATT_HEADER-FILE_NAME = 'FORM-407'.
    ZSWR_ATT_HEADER-FILE_EXTENSION = 'PDF'.
    ZSWR_ATT_HEADER-LANGUAGE = 'EN'.
    WORKITEMID = '000000401208'.
    CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
      EXPORTING
        WORKITEM_ID          = WORKITEMID
        ATT_HEADER           = ZSWR_ATT_HEADER
      ATT_TXT              =
        ATT_BIN              = buffer_x
       DOCUMENT_OWNER       = SY-UNAME
       LANGUAGE             = SY-LANGU
       DO_COMMIT            = 'X'
    IMPORTING
      RETURN_CODE          =
       ATT_ID               = ZSWR_ATT_ID
    TABLES
      MESSAGE_LINES        = SWR_MESSAG
    *MESSAGE_STRUCT       =
    if sy-subrc = 0.
    else.
    endif.
    But function "GUI_UPLOAD" is not working in web dynpro.
    Regards,
    Amar

    HI,
    Try out this code :
    FileInputStream is = new FileInputStream(file);
          long length = file.length();
          byte[] bytes = new byte[(int)length];
          long bytesRead = is.read(bytes);
          if (bytesRead < length)
           throw new IOException("Could not completely read file "+file.getName());
          is.close();
    element.setDocumentContent(bytes);
    Create a context attribute of binary type and assign the read data to it and bind the dataSource property of your File Upload and Download properties to this context Attribute.
    Regards
    Sid

  • SO_NEW_DOCUMENT_ATT_SEND_API1:How to correctly attach a PDF file

    I have an ABAP report that will send an email and attach the PDF file.
    - convery spool to PDF     : CONVERT_ABAPSPOOLJOB_2_PDF
    - to send email          : SO_NEW_DOCUMENT_ATT_SEND_API1
    How I execute SM36:
    1. SM36
    2. Job Name
    3. Spool List Recipient : select my own address as internal user (I didn't tick any of the check box for the general attributes)
    When I go to TCODE SO01(SAP Inbox)
    The attachment I see is just a link to the output of my classic ABAP view report, it's not a PDF File.
    But I in SO01, I create a mail and attach PDF file, receive it my SAP inbox and can also open the attached PDF directly by just double clicking it.
    Thanks.

    Hi  Jaime Cabanban,
    Please find the Below Sample Program,
    BCS_EXAMPLE_8
    Thanks
    Surendra

  • How can I attach a PDF file to an email I am replying to?

    Hi!
    How can I attach a PDF file already saved on my iPad to an existing email I am replying to from my inbox??

    If you have the PDF stored on the iPhone as a separate file you obviously also have a third party app for reading it, so you should be able to e-mail it from there.
    If it's on an existing e-mail, forward the e-mail and just change the contents but include the pdf

  • How can I attach a PDF file to an email?

    I would like to attach a PDF file to an email, how can I?

    If you have the PDF stored on the iPhone as a separate file you obviously also have a third party app for reading it, so you should be able to e-mail it from there.
    If it's on an existing e-mail, forward the e-mail and just change the contents but include the pdf

  • How to attach a single file in e-mail (Yosemite)?

    When i am writing a new mail and i try to attach a single file that i have saved a minute ago from certain folder i cannot do that. When i click on the folder to open it and select the specific file to attach, the mail does not open the folder but automatically attach the whole folder to e-mail.
    Any help?
    Thanks.

    Hello dejanfromzagreb,
    That is interesting that it is grabbing the entire folder. Have you tried switching the view within the Finder window to Column View to select the right file to attach? Another alternative is to locate the file in Finder and drag it op top of the Email that you are preparing to attach it. Take a look at the article below. 
    Mail (Yosemite): Add attachments
    https://support.apple.com/kb/PH19142
    Regards,
    -Norm G. 

  • Problem in attaching a xml file in Email Notification

    Hi,
    I am new to BPEL. I am using 10.1.3.4 Jdev. Facing a problem in attaching a xml file in Email Notification process. I do not get any email when ever the attachment is a xml. Whereas when the attachment is a pdf, i get the pdf in the mail. I have put the mime type as text/xml. Used ora:doc() to read the xml. Dont know what i am missing. Please help me out. Thanks.
    Edited by: friendsforever on Oct 6, 2010 1:05 AM

    actually i want that when a user open my website register form then he must attached their resume in it
    so i want to know how can i make a field of attaching.
    please reply
    I am waiting for your reply

  • I am unable to attach a PDF file from Documents

    I am unable to access and attach a PDF file from Documents

    I assume you are trying to attach a PDF to an email. I can perform this task several ways.
    With a Finder window open and the PDF showing in that window, drag the PDF to the Mail app icon on the dock. This creates a new email and attaches the PDF to it. (PDFs tend to attach in inline view mode, that is you can see the entire document. To see it as a file icon right click on the PDF text and select View as Icon.)
    I can drag the PDF directly into an open new email message if both the email message and the PDF file can be seen.
    There's an icon on the Mail toolbar that looks like a paper clip. Click on it to get a file selector and drill down until you see the PDF. Select it and click OK.
    Select Attachments from the Edit menu and choose Attach file to end of message

Maybe you are looking for

  • Can't add folder to library

    i had to replace the hard drive, songs were saved on external and replaced on new c drive. itunes won't allow the folder to be added, it just keeps showing all the songs in the folder instead of adding the folder, whats wrong?

  • How to use another panels in status line

    Hi Everyone: Can anybody tell me how can i use another panels in the Console's status line, I'm using the message line but i need to show the user's name and Date-Tiem in another section of the status line and not in display controls as i'm already d

  • Working with previous version of FCP

    Please excuse me if this has been recently answered, as my computer has been stalling a lot as I search for an answer (that twirling thing going around and around) and I need some feedback as soon as I can. I have to make a trailer within the next mo

  • X11 on Intel background windows

    Does anyone using X11 on Intel have problems with windows in X11 not coming to the foreground when you switch back into X11 from another application, from either the Dock or Command-Tab? I remember this as being an early problem with X11 and Tiger th

  • 9iAS: JSP: contentType BUG

    this is a very simple JSP page, it cant run correctly on 9iAS 1.0.2.1 running on Windows NT or 2000. If you try to pass any parameter with caracterset except the default you will get rubbish. I tried to upgrade OracleJSP to the latest version from OT