Email Order attachment or document URL link

Hello,
I have a requirement to fetch order attachment and email it on save event. Also if possible a URL to an attachment in the same email. I am trying to use CL_CRM_DOCUMENTS class & method SEND_DOCUMENTS but it is popping the standard send email screen and then we need to click on send button to process it. As my code needs to be run in the background how to handle this situation.
Or is there any other way to send existing attachment as email.
Rgds,
Shobhit

Thanks a lot Andrei, that was very useful.

Similar Messages

  • Purchase Order: Attaching a document and checking in

    Hi All,
    We are having an issue with regards to attaching a document to a PO.  We are able to get the document attached to the PO, but can't get it checked in to the server so others can look at the file.  It gives us an error of "C:\somefile cannot be found."  Thought's anyone.  Thanks.
    Regards,
    Victor

    HI Victor,
    Are you trying to attach to the services of the object? (using DMS)
    Please let me know the exact error offered by SAP.
    Cheers
    Arun.

  • Document url link on webdynpro iview

    Dear All
    We have developed  custom webdynpro ivew.
    Assigned that ivew to page and can display in ESS submenu.
    and one more km doc iview is there for document disply.
    But requirement is when enduser access webdynpro ivew  , in the same page there should be one link
    If enduser wants to download that document he has to use that link. becuse that doc is relavant to that iview.
    How can we do or organize this page.
    Please help .
    Thanks and regards
    kumar.

    Dear Raghu,
    Thanks for your response.
    How can I display link in webdynpro iview with the name of document.
    Ex : Please click here to download the form as mentioned below.
    file :  link : formdownload.pdf.
    If I click on this link it has to down load to enduser's local system.
    Please suggest.
    Regards
    Kumar.

  • How can I attach a document to an email as an attachment that doesn't appear in the body of the text

    When I send an email and attach a document it pastes it into the text.  How do I send it as a separate attachment?

    Control+Click or Right Click on the attachment within the body of the email and select 'view as icon'. Also make sure 'Send Windows-friendly attachments' is selected in Mail>Edit>Attachments menu.
    There is a (paid for) plug in available called Attachment Tamer that will make this the default behaviour and generally help Mail to make attachments more compatible across computer platforms.
    http://lokiware.info/Attachment-Tamer (disclaimer: no connection with the company just happy with their product - it works well).

  • Attaching a document to an email

    How can I attach a document or a photo to an email I am sending?
    Message was edited by: jfioramo

    On the iPad, it's the exact opposite of how you do it on your laptop. Instead of starting an email and attaching a document to it, you start with the document (or photo) in an app like DocumentsToGo and select the doc you want to send, then you click in the email icon and construct/send your email. Not all apps have this functionality, so you have to select apps which have the email feature built in.
    Logical? No, but go with it.

  • How to create an URL link for product cancellation using an FM

    Hi,
    I have tried creating an external attachment i.e URL link for a workorder by triggering a custom FM by exporting business object type , order id ,realtion type , title and link with return parameter as a message .
    But i'm not being able to create URL link for workorder using the custom FM.
    Kindly please suggest some solutions regarding how the URL link can be created using an FM instead of manual creation.

    given that there can be a variety of reasons for something to crash, you can sometimes initialize a buffer by wiring a non-null data structure to the left terminal of the call library function node. for example, if the output is to be a string no more than 100 characters long, create a string that long of nulls, blanks or anything and attach that to the left terminal for that output. no guarantees, but i have seen that work.
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Services for Object - Create external document (url) 132 characters limit

    Hello,
    I have this requirement:
    Maintenance people would like to relate a document on our portal on a work order to be able to print it with the work order.
    My suggestion was to use Services for Object in the Order -> Create external document (url).
    But the adress field cannot contain more than 132 characters.
    I have URL longer than 132 chars:
    eg: http://server.domain:port/irj/go/km/docs/documents/AAI/Gestion%20documentaire/Public/Entretien/Instructions%20de%20travail/EU-IT-01-02.pdf
    What do you suggest me?
    Thanks,
    François

    Thank you Pete but we are release 700 and this note applies to release 620 and older. I will try to find another note or another way.
    In the meantime we use the short-ID of SAP Portal Documents which are long to retrieve but always under 132 char.
    François

  • How to add external URL link to SAP object (Purchase Order, Invoice, etc)

    Hello,
    Is there any function module /BAPI that allows me to add an external URL link to a existing Purchase Order
    or Invoice document in R3 system?
    I tried to debug the system but have not found no suitable function module for it.
    I also analyzed the ABAP code of the small GUI window that allows to add a external URL link to
    a Purchase Order, and found the function module SO_OBJECT_INSERT. However I could not debug
    it (seems to be created with BOR objects) so I've no example for it.
    Please help!
    Regards,
    Manuel Dias

    CONSTANTS:
        c_http(36)    TYPE c VALUE '/BpHttpApis/slaphapi?ibmperson/(uid=',
        c_listxml(12) TYPE c VALUE ').list/byxml',
        c_value(5)    TYPE c VALUE 'value',
        c_cn(2)       TYPE c VALUE 'cn',
        c_mail(4)     TYPE c VALUE 'mail',
        c_em_num(19)  TYPE c VALUE 'managerserialnumber',
        c_em_cou(18)  TYPE c VALUE 'managercountrycode'.
      DATA  client          TYPE REF TO if_http_client.
      DATA  url             TYPE string.
      DATA  xbuffer         TYPE xstring.
      DATA  l_value         TYPE zchar2000.
      DATA  l_value_string  TYPE string.
      DATA  content         TYPE string .
      DATA  rows            TYPE STANDARD TABLE OF string.
      DATA  wa_rows         TYPE string .
      DATA  conv            TYPE REF TO cl_abap_conv_in_ce.
      DATA  ixml            TYPE REF TO if_ixml.
      DATA  streamfactory   TYPE REF TO if_ixml_stream_factory.
      DATA  parser          TYPE REF TO if_ixml_parser.
      DATA  istream         TYPE REF TO if_ixml_istream.
      DATA  document        TYPE REF TO if_ixml_document.
      DATA  node            TYPE REF TO if_ixml_node.
      DATA  xmldata         TYPE string.
      DATA  iterator        TYPE REF TO if_ixml_node_iterator.
      DATA  nodemap         TYPE REF TO if_ixml_named_node_map.
      DATA  attr            TYPE REF TO if_ixml_node.
      DATA  name            TYPE string.
      DATA  prefix          TYPE string.
      DATA  value           TYPE string.
      DATA  indent          TYPE i.
      DATA  count           TYPE i.
      DATA  index           TYPE i.
      url = 'http://bluepages.ibm.com'.
      CLEAR: l_value_string, l_value.
    ***Create the HTTP client
      CALL METHOD cl_http_client=>create_by_url
        EXPORTING
          url    = url
        IMPORTING
          client = client
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc <> 0.
    Create the HTTP client failure, sy-subrc =
        MESSAGE i005(zm) WITH text-026 sy-subrc.
        EXIT.
      ENDIF.
      CONCATENATE c_http
                  p_accnt
                  p_couty
                  c_listxml
                  INTO l_value.
      l_value_string = l_value.
    ***Get employee information
      CALL METHOD client->request->set_header_field
        EXPORTING
          name  = '~request_uri'
          value = l_value_string.
      client->send( ).
      client->receive( ).
    ***Load to xstring
      CLEAR xbuffer .
      xbuffer = client->response->get_data( ).
      conv = cl_abap_conv_in_ce=>create( input = xbuffer ).
      conv->read( IMPORTING data = content ).
    create the ixml main factory
      ixml = cl_ixml=>create( ).
    create a stream factory
      streamfactory = ixml->create_stream_factory( ).
      xmldata = content.
    create a input stream
      istream  = streamfactory->create_istream_string( string = xmldata )
    create a ixml document
      document = ixml->create_document( ).
    create a xml parser
      parser  = ixml->create_parser( document       = document
                                     stream_factory = streamfactory
                                     istream        = istream ).
    parse the xml document into DOM tree
      IF parser->parse( ) <> 0.
    parse the xml document into DOM tree failure
        MESSAGE i005(zm) WITH text-027.
        EXIT.
      ELSE.
        node ?= document.
        IF node IS INITIAL.
    To be done
        ENDIF.
    create a node iterator
        iterator  = node->create_iterator( ).
    get current node
        node = iterator->get_next( ).
    loop over all nodes
        WHILE NOT node IS INITIAL.
          indent = node->get_height( ) * 2.
          indent = indent + 20.
          CASE node->get_type( ).
            WHEN if_ixml_node=>co_node_element.
          element node
              name    = node->get_name( ).
              nodemap = node->get_attributes( ).
              IF NOT nodemap IS INITIAL.
            attributes
                count = nodemap->get_length( ).
                DO count TIMES.
                  index  = sy-index - 1.
                  attr   = nodemap->get_item( index ).
                  name   = attr->get_name( ).
                  prefix = attr->get_namespace_prefix( ).
                  value  = attr->get_value( ).
                ENDDO.
              ENDIF.
            WHEN if_ixml_node=>co_node_text.
    User name
              IF name  = c_value AND
                 value = c_cn.
          text node
                value  = node->get_value( ).
                p_name = value.
              ENDIF.
    User email
              IF name  = c_value AND
                 value = c_mail.
          text node
                value  = node->get_value( ).
                p_email = value.
              ENDIF.
    Employ serial number
              IF name  = c_value AND
                 value = c_em_num.
          text node
                value  = node->get_value( ).
                p_em_num = value.
              ENDIF.
    Employ country code
              IF name = c_value AND
                 value = c_em_cou.
          text node
                value  = node->get_value( ).
                p_em_cou = value.
              ENDIF.
          ENDCASE.
      advance to next node
          node = iterator->get_next( ).
        ENDWHILE.
      ENDIF.

  • Object Services Attachements for URL Links

    Hi Guru,
      I have to create interface for Object Services Attachments for URL links.
    Scenario is
    Drad Table:
    DOKOB = PTRV_HEAD
    DOKNR = 0000000000000001000000000098
    objky = 0050000088\
    Draw Table:
    doknr = 0000000000000001000000000098
    filep: rgenbust:/DCTM370097578000AD0C
    Create object service url attachment with:
    http://rdgvmws10:8080/WebAccess/TEServlet.ser?docbase=rgenbust&sapLinkId=
    appended to FILEP after the /
    to make a link of:
    http://rdgvmws10:8080/WebAccess/TEServlet.ser?docbase=rgenbust&sapLinkId= DCTM370097578000AD0C
    I unable solve this issue can any help with the source code.
    I need to create program with scratch. Can any body tell me how to start the program. First which table i need to read. How to retrieve URL append to FILEP field. I would appreciate if any body help.
    Thanks
    Ashraf

    Hello,
    See hyper-links below:
    [How-To: Offline approval - Logon link does not work|http://wiki.sdn.sap.com/wiki/display/SRM/Offlineapproval-Logonlinkdoesnot+work]
    [KBA 1511180 - The hyperlink in the offline approval email is incorrect|https://service.sap.com/sap/support/notes/1511180]
    Regards.
    Laurent.

  • How to attach a document to a purchase order !

    Hi !
    For once in this forum, I don't come with a question, but to show some piece of code.
    It is about a remote BAPI which can be call (with PHP for instance) in order to attach a document's URL to a purchase order.
    (This URL is available then through ME23N transaction for users)
    FUNCTION ZBAPI_PO_ATTACH_URL.
    *"*"Interface locale :
    *"  IMPORTING
    *"     VALUE(W_URL) TYPE  SOLISTI1-LINE
    *"     VALUE(W_TITLE) TYPE  SODOCCHGI1-OBJ_DESCR
    *"     VALUE(W_PO_ORDER) TYPE  SRGBTBREL-INSTID_A
    DATA: w_object type table of SOLISTI1,
          wa_object type SOLISTI1,
          w_doc_data type SODOCCHGI1,
          w_doc_info type SOFOLENTI1.
    concatenate '&KEY&' w_url into wa_object-line.
    append wa_object to w_object.
    w_doc_data-obj_name = 'INFORMATION'. "par défaut
    w_doc_data-obj_descr = w_title.
    w_doc_data-obj_langu = 'FR'.
    CALL FUNCTION 'SO_DOCUMENT_INSERT_API1'
      EXPORTING
        FOLDER_ID = 'FOL32000000000004' "Default directory
        DOCUMENT_DATA = w_doc_data
        DOCUMENT_TYPE = 'URL'
      IMPORTING
        DOCUMENT_INFO = w_doc_info
      TABLES
        OBJECT_CONTENT = w_object
    data : obj_role_1 like borident,
           obj_role_2 like borident,
           w_id type string.
    obj_role_1-objkey = W_PO_ORDER.
    obj_role_1-objtype = 'BUS2012'. " BUS 2012 for PO
    concatenate 'FOL32000000000004' w_doc_info-object_id into w_id.
    obj_role_2-objkey = w_id.
    obj_role_2-objtype = 'MESSAGE'.
    CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
      EXPORTING
        OBJ_ROLEA = obj_role_1
        OBJ_ROLEB = obj_role_2
        RELATIONTYPE = 'URL'
    ENDFUNCTION.
    Thanks for reading !

    In the ME23N transaction you can access to attach document here :
    [http://img25.imageshack.us/f/poattachlist.png/|http://img25.imageshack.us/f/poattachlist.png/]
    And if you dble click on the attach document, it will be open through a browser !

  • Attaching a document to production order.

    Hi.
    how can i attach a documet to the production order.
    generally we can attach a .txt to our production order. but i want  to attach a document  to the production order.
    how do i do that.
    need reps fast.

    Hi,
    For linking a document to production order, The prerequisite is do some customizing in SPRO.
    SPRO-->cross-application components>Document management>control data--> document types
    in the document type you have to establish a object link to the document type and production orders.
    So select a document type and Define object link ---define a object --PORDER with screen 251 and save.
    Then goto production---Shop floor control --- master data --production schedul.profile
    and enable - document links material or Bom on release or creation.
    Then create a document using CVo1n.
    Provide the document type and name then enter
    In the next screen give the document description and below the originals sub header click on the OPEN Originals.
    Here you select your document and attach then save the document.
    Now got to Co02 and select the Document overview icon(Next to component overview icon) and provide the details of the operation to which the document to be attached and save.
    then the Document is attached to the Production order.
    Hope this helps,
    Regards
    CSM Reddy

  • URL link Attachment Limitation in Foreground

    Hi Experts,
    When i am attaching a URL link through Services of Object for a invoice document.
    The Complete URL link is not copied to the Address field. Only it is accepting 1000 character.
    My question is how to increase the URL length. Since my requirement is the URL link are having more that 1000 characters.
    Example :
    Tcode : MIR4 --- Invoice Document , year
    when i goto the services of Object ---> Create the Attachment
    It popup a dialog box which contain the Title and Address.
    In the Address we will copy the URL Link ,
    URL :  documentum\Docbases\dmbsip_prd_docbase\Hydrocarbon Supply Chain 
              Management\Integration\Application Documentation\WORKFLOW\SCC- 
              HSM-07-00011 (T & I Automation Workflow)\Misc. DPSR Documents
    when i try to copy this URL link in the Address Field , it is not taking the Full URL link.
    Venkat

    Hi,
    I think that you need to do the possible development in the ECC backend system - not in Portal/UWL - since as far as I understood from your message, your workflow is in ECC.
    You could take a look into this recent thread:
    Empty URL Link with SAP_WAPI_ATTACHMENT_ADD
    I don't know if it will work in UWL. You could easily test it by adding and URL attachment to a work item in backend (in business workplace) and then see how it looks in UWL and does it work. If it works, you can find a solution in the above mentioned thread or perhaps you can ask further questions from the author of the thread.
    Regards,
    Karri

  • How to change URL/link in cFolders email notification

    Hi Folks,
    We are on cFolders 4.5 accessed via Enterprise Portal. When a notification is generated (either manually or via a status transition), the email contains a URL link related to the cfolder object the notification pertains to. This URL points to the cFolders BSP application. How do we point this to the portal? We want all user to access cFolders via the portal and not BSP. Any way to achieve this?
    Thanks,
    Lashan

    Hello Lashan,
    could you please tell me the note number?
    Here we also would like to implement the same.
    Thanks in advance,
    Boldi

  • How can I attach a document from Dropbox to an email?

    I am having trouble with attaching a document from Dropbox to an email. The only choice it is giving me is picture or video. Please help, thank you.

    Attach document from Dropbox to email (tap to enlarge image)

  • I don't feel like buying any more printers. I told my daughter to attach the document she wanted to print to an email to me and I would see if I could print it. No problem. Will this always be true?

    Sorry. That should have been a heading and not the whole question. I am trying to figure out the question of iPad printing. If there was such a thing as a great little portable iPad printer maybe I would give my daughter one some day. But the printer I am using is working for me because I installed it as a network printer on my  wired network. It does have WiFi capabilities but it does not have the 'Air' thing.  It's an HP Officejet 4500 etc etc...My question is: will printing anything from her iPad always be as easy as she attaching a document to an email and mailing to herself on Yahoo which she can retrieve on any of 3 PCs in this house? I hope so - my computer budget is blown...

    iOS AirPrint Printers  http://support.apple.com/kb/HT4356http://support.apple.com/kb/HT4356
    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-optionshttp://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    How to Print from Your iPad
    http://www.dummies.com/how-to/content/how-to-print-from-your-ipad.htmlhttp://www.dummies.com/how-to/content/how-to-print-from-your-ipad.html
    How do you print directly from the iPad
    http://www.everymac.com/systems/apple/ipad/ipad-faq/how-to-print-documents-direc tly-from-ipad.htmlhttp://www.everymac.com/systems/apple/ipad/ipad-faq/how-to-print-documents-direc tly-from-ipad.html
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
    iPad Power: How to Print
    http://www.macworld.com/article/1160312/ipad_printing.htmlhttp://www.macworld.com/article/1160312/ipad_printing.html
    Check out these print apps for the iPad.
    Print Utility for iPad  ($3.99) http://itunes.apple.com/us/app/print-utility-for-ipad/id422858586?mt=8http://itunes.apple.com/us/app/print-utility-for-ipad/id422858586?mt=8
    Print Agent Pro for iPad ($5.99) http://itunes.apple.com/us/app/print-agent-pro-for-ipad/id421782942?mt=8http://itunes.apple.com/us/app/print-agent-pro-for-ipad/id421782942?mt=8   Print Agent Pro can print to many non-AirPrint and non-wireless printers on your network, even if they are only connected to a Mac or PC via USB.
    FingerPrint turns any printer into an AirPrint printer
    http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/
    Print (Print to ALL Printers) ($1.99)
    https://itunes.apple.com/us/app/print-print-to-all-printers/id299423224?mt=8https://itunes.apple.com/us/app/print-print-to-all-printers/id299423224?mt=8
     Cheers, Tom

Maybe you are looking for