Add attachment to workflow

Hi all,
I am triggering a SAP workflow by calling calling an event through function module . I want to pass a PDF file to this event to further pass it to the workflow container. The purpose is that user wants to add a PDF file from computer and wants to see it in Workitem as a link.
Can u give me any idea.
Thanks

Hi Pavan,
Thanks for the reply.
I had already read that attachment u suggested. In that attachment, the process of adding a script form to a workitem is shown. Anyway we can do the same for a PDF file. We can read any file from GUI_UPLOAD and convert it into binary format.
But problem is that the function module SAP_WAPI_ATTACHMENT_ADD does not exist or have become obsolete in SAP version 5.0...thats why this method can not used.
I am still doing research on this...as i get something, i will update sdn.
Ur inputs are always welcome and appriciated.'
Thanks

Similar Messages

  • Forcing a user to add attachement in wf ?

    hi,
    i have a workflow in which a user MUST attach a scanned document. well, how can i force a user to add this attachement. that means "no attachement = no continuing of workflow" !
    my workflow starts with a form where i can enter the form, but there it is not a "must".
    best reg, Martin

    hi martin,
    thank you as always ! you are doing great work in this forum !
    well, what i have thought of: an also 'clean' way is to force the user on the starting form ! the starting form generates a dynpro with the form-fields of the structure AND (on 3 further tabs) you can enter a note and attachements !
    isn't it possible to change that ? if there is NO attachement the workflow even can't start. i don't know where to do this ?
    b. reg, Martin

  • Add attachment to...

    When I use the mail action "Add attachment to..." it gives me the "An error (There is no outgoing message. (-2700)) occured in Add Attachments to Front Message.
    The error doesn't occur if I use the "New Mail Message" command. In fact the Add attachment command works on emails created with the New Mail command, but not if I create my own email!
    What I want to do is create a workflow that downloads a specific file off the web and adds that file to my email. While it would be simple enough to drag it, I really don't feel like looking up the site every day to get the new data. The workflow I made works great up until the moment it goes to Add the attachment, then it fails.
    Any help would be appreciated

    Sorry to "steal" the thread, but..
    Is there any way to ad music files and other things as attachment's or is it just possible with photos?

  • Attachment in Workflow approval

    Hi,
    We are using SAP standard workflow for approving Appropriation Request
    through object BUS2104.
    Applicant gets mail after request is approved or rejected.
    In this process, Approver adds his remarks as attachment in workflow.
    We want to send these attachments to Applicant alongwith approved/rejection mail.
    Can you help in getting these attachments ?
    Regards,
    SATYAJIT

    Hi Viji,
    Thanks for quick reply.
    I am added some more information here... so that you can help me ...
    1. The mail is going to SAP id's inbox. And it is going through activity ( task TS00300053 ) .
    There is no container item "attachement", only AttachObjects is there.
    I tried to link AttachObjects with AttachObjects.
    But it did not work.
    2. I added a new mail step with task as TS00300053.
    In binding i linked AttachObjects with Attachment.
    Recipient type = U
    Address = (hardcoded as my external address).
    Still the mails are not going.
    It is giving following error.
    The work item "Appropriation request HYD-0076 was approved!" (ID
    000000905122) of type B has the status ERROR.
    Initiate a correction measure so that the respective workflow (ID
    000000905116) can be continued.
    Can you help ?
    Regards,
    SATYAJIT

  • User add attachment from notification

    Hi
    I am using EBS R12, i need to allow user to add attachment from notification.
    This is the scenario:
    HR will submit workflow to user, this user will open the notification and the user must add attachment and then return it to HR. So can we do that?
    Thanks

    please see
    http://oracle-latest-technology.blogspot.com/2010/04/sending-attachment-using-oracle.html
    ApPsMaStI
    sharing is Caring

  • Sending attachement in workflow to outlook or lotus notes ?

    hi,
    i have a workflow where a user attaches a document. i want to sent this document to another user -> well, HOW should i add the attachement (a PDF-file) ???????
    when i do the binding for attachement in my step (_Attach_object) and then add AttachObject to the taskdespritption, the mail looks like this:
    BO SOFM
    BO SOFM FOL25000000000004RAW33000000033867
    best regards, Martin

    hi,
    i can't tell you HOW the attachement is created ! it is the sap-standard-add-attachment when you start a workflow with a form ! there you can add the attachement in dialog -> and then it is available in the workflow, but NOT for the mail !
    i am not sure if the sap-notes mentioned by you will solve my problem as my emails don't have an ERROR -> they get trough, but with that strange coding instead of the real attachement
    b. regards, Martin

  • Add Attachment link doesn't open attachment window

    I'm trying to debug a custom page, written by someone else. It's in the recruitment module, and delivered subpages HRS_CE_A_RES_SBP and are included to allow attach/view/delete of attachments.
    When the Add Attachment link is clicked, it should open a window that lets the user enter a filename or browse, but on this custom page, nothing happens.
    Because the delivered code is unmodified, I suspect that there is some setup that hasn't been done. The component does contain table HRS_APP_ATTACH, which includes subrecord FILE_ATTACH_SBR. The component also contains record FILE_ATTACH_WRK.
    Can someone suggest my next step? Thanks.
    Mike
    HCM 9.0, PTools 8.49.20

    Generally Add attachment issues are enountered while setting up new regions for the reason URL not updated while setting up new region.
    In this table PSFILE_ATTDET a row is inserted temporarily with Oprid and deleted once the specified file is trasferred mentioned url successfully.
    Example: AddAttachment(&URL_ID, &ATTACHSYSFILENAME, &FILEEXTENSION, &ATTACHUSERFILE, &FILESIZE)
    works when &ATTACHUSERFILE =file-name and &URL_ID=gerurl(url.urlname) are given properly.Please check these parameters.

  • My gmail crashes when I add attachment same with facebook, what can I do to fix this?

    my gmail crashes when I add attachment same with facebook, what can I do to fix this?

    That is not an Apple or OS X issue, I'd suggest contacting the modem manufacturer to see what the issue might be.

  • Unable to Check ADD Attachment Check Box. Thereby getting only email and not the attachment (which will contain the output of BO report , in Excel Format)

    Post Author: hteoh
    CA Forum: Publishing
    I have an BO related issue. I tried to schedule a smtp event in BO to email the report output as Excel. Since this report will go to different users, I unchecked the Use the Job Server's defaults (CHECK BOX). For some reason, I can't check the Add Attachment(CHECK BOX). I received the email but without attachement. Do you know why I can't use attachment. The SMTP event works perfectly if I check Use the Job Server's defaults.

    Hi!
    Use the below code to populate the Sender and receiver mail ids:
    DATA GV_SENDER    TYPE SWC_OBJECT.    
    DATA GV_SENDER_ID LIKE SWOTOBJID.      
    SWC_CONTAINER LT_CONTAINER.
    reset data for CTCV
    CALL FUNCTION 'CTCV_INIT_USER_DATA'.
      Create sender using sender mail address from new table
        SWC_CLEAR_CONTAINER LT_CONTAINER.
        SWC_CREATE_OBJECT GV_SENDER    'RECIPIENT' SPACE.
        SWC_SET_ELEMENT LT_CONTAINER 'AddressString'
                                         ZMAIL-SENDER.
        SWC_SET_ELEMENT LT_CONTAINER 'TypeID' 'B'.
        SWC_CALL_METHOD GV_SENDER    'CreateAddress' LT_CONTAINER.
        IF SY-SUBRC NE 0.
             MESSAGE ID SY-MSGID TYPE 'E' NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
                     RAISING SENDER_CREATION_FAILED.
        ENDIF.
        SWC_OBJECT_TO_PERSISTENT GV_SENDER GV_SENDER_ID.
    Similarly you can create the recipient mail id. Pass the GV_SENDER_ID to OPEN_FORM.
    Cheers!

  • How to add attachment in me21n ?

    Hi,
    i would like to add attachment (doc , excel...) while creating a manual PO ?
    I have seen the SAp icon but as far as i did understood the functionnality, you can just retrieve an already created document...
    How to add a new one directly in ME21N ?
    Kind regards,
    Yann

    You can attach manually any document to PO without using Document Management System ( DMS ) in SAP 4.6C.
    But you cannot attach document while you create PO in T/Code ME21N 
    Save you PO ( ME21N ) and again open with change ( ME22N ) then you can attach document through Service for Object button. Service for Object button available down side of Command screen ( in your PO screen ME22N ) 
    Click your Service Object button -> Create -> Create attachment 
    then select your window directory ( which file you need to attach) select your file Now your system shows message  Service "Create attachment" is started. 
    Save again your PO. You can see (open) your attachment in same field ( Service for Object ) select and Create and check attachment list. You can attach as many document in your PO.

  • Add attachment to services for object

    Hi All,
    What is the meaning of Add Attachment to services for object, is it the only providing the services like
    Private note,
    send object with note,
    Display relation ship,
    work flow,
    My objects etc.
    can any one suggest me on this.
    Thanks&regds,
    Srinivas.

    Hi Srinivas,
    I have seen you asking a lot of questions all about the same scenario in my understanding. It seems you like to send a picture or an attachment from/to the mobile device, is this correct? I get this impression because your questions are mostly around the MAM30_080 syncbo.
    Could you specify the exact problem you have a little more in detail?
    Sending notes,..... either you enhance a SyncBO. This is not to difficult and you do not have to do the complete basic ABAP development for your own. You still have to do some coding on the R3 side, but the SBUILDER stuff in the middleware is not necessary.
    On the other hand, you can easily develop your own SyncBO. This is perhaps the best solution in your case.
    Relation ships in SyncBOs are done with the cascading. See in SBUILDER for MAM30_001 - it has a relationship to MAM30_010 fo example. This is a process you do at design time. Here the MDK helps with some instructions about it. If you have an oject with a short text, just fill in the short t.ext, the long text is a splittedt structure inside the BO. If you want to see that, it is really simple:
    Create a notification on the device. Enter a long text with more then 500chars. Then save.
    You need to check the data structure on the device then. When yu open MAM from the MI home screen, the URL usually ends with /start. Change this to /start,jsp - in MAM30 this name has changed to /start_.....jsp,have a look into the project, you will find it - and you select the syncBO MAM30_010 on thqt screen. Then you see the complete data structure on your device. Search for your new created entry. Then you see that the long text is saved as a child structure and it has an index so ther backend can put it back to one long text in the correct order.
    The same way you have to go if you want to send some data that is longer then 250 Byte.
    Hope this helps to switch on some lights.
    Regards,
    Oliver

  • ADD ATTACHMENT TO AUTO MAIL SENT DURING BIDDER CREATION

    HOW TO ADD ATTACHMENT TO AUTO MAIL SENT DURING BIDDER CREATION (CREATE CONTACT PERSON) IN SRM PORTAL..

    HOW TO ADD ATTACHMENT TO AUTO MAIL SENT DURING BIDDER CREATION (CREATE CONTACT PERSON) IN SRM PORTAL..

  • Attachment in workflow user decision

    Hi All,
    Can anybody let me know how to use attachment in workflow user decision box? My requirement is I have one internal table and I want to display the data of the internal table as an attachment.
    Thanks,
    Salil.

    HI,
    Go thru thi link
    http://help.sap.com/saphelp_nw04s/helpdata/en/8d/25f131454311d189430000e829fbbd/content.htm
    Thanks
    Sunil

  • How to Send mail woth pdf attachment through workflow

    Hi SDNer's,
           I have a problem with pdf attachment through workflow. Please anybody help me to get solve my issue.

    Hi Suresh,
    I just tried this thing in my systtem and it is working... BADI is trigerred everytime there is a change in the PO... even when you release there is a change in the PO so this BADI will be triggerred....
    I suggest you should implement BADI in your dev system and place a break point in the POST method...
    After that create a PO and release it using ME29N... thereafter when you save the PO... this method will trigger and you will have access to PO details...
    PS: Remember this BADI wont work for transaction ME29...
    Regards
    Gautam

  • Add attachment to Opportunity using Enterprise Services

    Hi All,
    Is there a way I can add attachments (doc,txt) to a opportunity through the services exposed by Enterprise Services in CRM 7.0. Because the stubs generated for "Create Opportunity" does not have option to add attachments.
    If I browse to the ES Workplace and check the "Create Opportunity", I do not see any method that would allow me to add attachment to the Opportunity (OpportunityCRMCreateRequest_sync).
    Please let me know what am I missing.
    Regards,
    Naveen

    Hi Naveen,
    I have done one requirement attach a document from for already created business partners from external file. In that file I have Business partner number, file path and description.   so, My code is like this. I think it will help ful for you. I dont no wether your requirement will full fill but the coding may help ful for your requirement. try it.. gud luck.. any doubts please ask me i will help u...
    types: begin of ty_upload,
             bp_no type but000-partner,
              path  type sdok_chtrd,
       ls_description type sdok_titel,
            end of  ty_upload.
    data: it_upload type standard table of ty_upload. "Internal table for upload
    data: wa_upload type ty_upload.
      data:
      lv_file_save_as      type c length 255,
      lv_nombre_fichero    type sdok_filnm,
      lv_directory         type sdok_chtrd,
      ls_loio              type skwf_io,
      ls_phio              type skwf_io,
      ls_error             type skwf_error,
      ls_business_object   type sibflporb.
      data: ls_guid type ty_upload.
      data: lt_guid type standard table of ty_upload.
      data: ls_path type ty_upload.
      data: lt_path type standard table of ty_upload.
      data: wa_properties type sdokpropty.
      data: lt_properties like wa_properties occurs 0.
      data ls_but000 type but000.
      select single *
        from but000
       into ls_but000
        where partner = wa_upload-bp_no.
    ls_business_object-instid = wa_but000-partner_guid.
      ls_business_object-typeid =  'BUS1006'. "for bp
      ls_business_object-catid = 'BO'.
      wa_properties-name = 'DESCRIPTION'.
      wa_properties-value = wa_upload-ls_description.
      append wa_properties to lt_properties.
      wa_properties-name = 'LANGUAGE'.
      wa_properties-value = 'EN'.
      append wa_properties to lt_properties.
      clear ls_guid.
      types: begin of ty_path,
              ls_path type sdok_chtrd,
              ls_name type skwf_descr,
               end of  ty_path.
      data: wa_path type ty_path.
      data: it_path type standard table of ty_path.   "Internal table for path split
      call function '/SAPDMC/LSM_PATH_FILE_SPLIT'    "FM for splitting the file path (split file name and directory)
        exporting
          pathfile = wa_upload-path
        importing
          pathname = wa_path-ls_path
          filename = wa_path-ls_name.
      append wa_path to it_path.
      lv_nombre_fichero = wa_path-ls_name.
      lv_directory = wa_path-ls_path.
      call method cl_crm_documents=>create_with_file
        exporting
          file_name       =  lv_nombre_fichero
          directory       =  lv_directory
          properties      =  lt_properties
         properties_attr =  lv_description
          business_object =  ls_business_object
         parent_folder   =
         package_id      =
        importing
          loio            =  ls_loio
          phio            =  ls_phio
          error           =  ls_error.
      call method cl_crm_documents=>rename_object
        exporting
          is_io   = ls_loio
          iv_name = wa_path-ls_name.
    if sy-subrc = 0.
      message 'Attachment has been finished successfully' type 'S'.
    endif.
    Regards,
    Ramz...

Maybe you are looking for