Send upload document from BSP to EP6-KM

Hi everybody,
i upload document from a BSP and i want send this document to KM-CM. I don't want use Web folder to do this, i can't create a java code with Javadocs, I want (i must) use WebDAV protocol.
I find documents for Content Server (transaction, customizing ... ContentServer.dll and it's works) but nothing about KM Content Manager and i must use KM not CS.
Can somebody help me ?
Best regards.
Daniel

I found a solution using Webdav in ABAP code.

Similar Messages

  • Sending An email from BSP

    Hi All
    i need to send an email  from BSP application when check box is clicked .
    I have the details such as pernr of an employeee by using this i need to retrieve email id of that employee and have to send an email to that employee with some text
    1. How  to retireve email id of an employee using pernr 
    2.How to send email from bsp application
    Thanks

    Hi ,
    <b>To get the Email for the given PERNR:</b>
    * Get the Communication detail from Infotype 0105
          SELECT
           USRID_LONG
           FROM PA0105 INTO
             RECEIVER_EMAIL
           WHERE PERNR = PERNR AND
                 BEGDA <= SY-DATLO     AND
                 ENDDA >= SY-DATLO     AND
                 SUBTY = '0010'
    <b>Look at this code which will send a email from BSP..</b>
    DATA:
       SEND_REQUEST       TYPE REF TO CL_BCS,
       DOCUMENT           TYPE REF TO CL_DOCUMENT_BCS,
       SENDER             TYPE REF TO CL_SAPUSER_BCS,
       RECIPIENT          TYPE REF TO IF_RECIPIENT_BCS,
       EXCEPTION_INFO     TYPE REF TO IF_OS_EXCEPTION_INFO,
       BCS_EXCEPTION      TYPE REF TO CX_BCS,
       WA_MESSAGE TYPE BAPIRET2.
      DATA:
       LEN   TYPE I,
       TEXTLENGTH TYPE SO_OBJ_LEN,
       ITAB_MESSAGE TYPE SOLI_TAB,
       WA_SOLI TYPE SOLI.
    *Load class defnitions
      CLASS CL_CAM_ADDRESS_BCS DEFINITION LOAD.
      CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.
    * Create persistent send request
      TRY.
          SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
    * Format the message content to be sent into internal table
          IF NOT MESSAGE IS INITIAL.
            WA_SOLI-LINE = MESSAGE.
            APPEND WA_SOLI TO ITAB_MESSAGE.
          ELSE.
            WA_MESSAGE-MESSAGE = `Enter some Message and then Click "Send Your Message" button.`.
            APPEND WA_MESSAGE TO RETURN.
            ERROR = 'X'.
            RETURN.
          ENDIF.
          LEN = STRLEN( MESSAGE ).
          TEXTLENGTH = LEN.
    * Create document
          CALL METHOD CL_DOCUMENT_BCS=>CREATE_DOCUMENT
            EXPORTING
              I_TYPE    = 'RAW'
              I_SUBJECT = SUBJECT
              I_LENGTH  = TEXTLENGTH
              I_TEXT    = ITAB_MESSAGE
            RECEIVING
              RESULT    = DOCUMENT.
    * Add document to send request
          CALL METHOD SEND_REQUEST->SET_DOCUMENT
            EXPORTING
              I_DOCUMENT = DOCUMENT.
    * Get sender object
          CALL METHOD CL_SAPUSER_BCS=>CREATE
            EXPORTING
              I_USER = SY-UNAME
            RECEIVING
              RESULT = SENDER.
    * Add sender
          CALL METHOD SEND_REQUEST->SET_SENDER
            EXPORTING
              I_SENDER = SENDER.
    * Create recipient
          CALL METHOD CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS
            EXPORTING
              I_ADDRESS_STRING = RECEIVER
            RECEIVING
              RESULT           = RECIPIENT.
    * Add recipient with its respective attributes to send request
          CALL METHOD SEND_REQUEST->ADD_RECIPIENT
            EXPORTING
              I_RECIPIENT  = RECIPIENT
              I_EXPRESS    = ' '
              I_COPY       = ' '
              I_BLIND_COPY = ' '.
          SEND_REQUEST->SET_SEND_IMMEDIATELY( 'X' ).
    * Send document
          CALL METHOD SEND_REQUEST->SEND
            RECEIVING
              RESULT = SENT.
          IF SENT IS NOT INITIAL.
            COMMIT WORK.
            WA_MESSAGE-MESSAGE = 'Your Message sent Successfully!!!'.
            APPEND WA_MESSAGE TO RETURN.
          ELSE.
            ERROR = 'X'.
            WA_MESSAGE-MESSAGE = 'Your Message could not be sent. Please try again later'.
            APPEND WA_MESSAGE TO RETURN.
          ENDIF.
        CATCH CX_ADDRESS_BCS .
        CATCH CX_SEND_REQ_BCS.
        CATCH CX_DOCUMENT_BCS.
          WA_MESSAGE-MESSAGE = 'Your Message could not be sent. Please try again later'.
          APPEND WA_MESSAGE TO RETURN.
          ERROR = 'X'.
      ENDTRY.
    Raja T

  • Sending a document from a 2010 site to a 2013 site using send to connection

    Here's my issue: I work for a large organisation with lots of different teams. Each time is live with a SharePoint 2010 team site, where they keep all of their working documents.
    Now, we want to set up records sites for the teams and, as we have it available, we were considering using 2013 to create the records sites. So I have farm (a): 2010 team sites and farm (b): 2013 records centres.
    I set up a send to connection from central admin in farm (a) to send records to farm (b). When I tested the link I got the "verification successful". But, when I went into my site on farm (a), uploaded a document, clicked send to then farm
    (b) and I got this error:
    Out of interest, I tried doing the same with two 2010 farms and I was successfully able to send a document from farm (a) to farm (b) when both farms were 2010 farms.
    So am I to conclude that it's not possible to send a document from a 2010 site to a 2013 site?

    I have tried that in past and it did not work for me. Our users use old 2010 record center but we migrated the site and wanted all the document to route to 2013. we couldnt remove 2010 record center till we migrate all sites. 
    Let me know if you have any workflow or solution to this issue.

  • Upload documents from transactional screen - Sale & Purchase Order

    hi All,
    I am trying to have DMS attachment from trx - VA02 directly. I have come across few links which say - this is possible.
    upload documents from user transactional screen to content storage area | LinkedIn
    I am able to get the functionality for CJ20N - 'WBS Element' Object (Screenshot attached). Can someone pl suggest if I am missing something to get the same functionality for Sale Order / PR & PO.
    For Sale Order - I believe the 'Create' icon shall be 'Enabled' once I navigate - Extras -> Documents.
    -thanks

    Hi
    This button is only displayed if you use the new screen logic (see note 1066915) and when you have maintained the necessary customizing for the required document types and objects in transaction DC10.
    So I would kindly ask you to go to transaction DC10 and mark a document type where the necessary object is linked under 'Define object links'. Choose the right object and display its details by double-click. Then you will see the field 'Create document' where you have to enter a value '1' (using transaction) or '2' (simple creation). Please enter a value and flag the 'Additional function' checkbox too.
    /Tilak

  • How to send a document from pages in email

    Can u send a document from pages in email that can be opened by a PC.

    Ourdream wrote:
    even if I dont have word it can be sent as word?
    Yes, try Share > Send Via Mail

  • I want to upload documents from my pc (windows vista) to the cloud so I can see and edit them on my iPad 3. How do I do this?

    I want to upload documents from my pc (windows vista) to the cloud so I can see and edit them on my iPad 3. How do I do this?
    I have the cloud on my pc and I've moved documents to it, but they don't update when I update the one on my pc.
    And I don't know how to get them on my iPad. I have the new ios7, btw. Just got it but couldn't find my documents with ios6
    Thanks

    You can upload files to Dropbox and edit them with Quickoffice Pro HD.
    http://i1224.photobucket.com/albums/ee374/Diavonex/aed9d078ffa732f02b48eebd3b723 95d_zpsa0036f7b.jpg

  • How can I send PDF document from adobe

    How can I send PDF document from adobe

    If you mean, "How can I send a PDF document from Adobe Reader?" then answer is: Click on the Share button (arrow out of box icon), and choose E-mail document.

  • How to send delivery document from external system to ECC

    i have a business requirement to send a delivery and billing documents from external system ( MS access )  to ECC
    could any one light me how to do this ???
    Thank you in advance

    Hi Ahmed,
    Talk to your middleware team, They will upload the data through RFC.
    Basiclly RFC(Remote function call) works like it will call the function module and then upload the data.
    For more information, check the link given below.
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5b6a85b11d6b28500508b5d5211/content.htm
    Hope this helps,
    Regards,
    MT

  • Open document from bsp

    I created sample document under the
    content management->documents. ( for example word.xls )
    I want to link this document to my BSP and want to
    open this document from my bsp report application.
    How can i do this.
    Thank for your help.

    here is a sample code also...
    READ TABLE application->doc-t_attachments
                        INTO l_attachment
                        INDEX l_index.
             CALL METHOD application->document_display_attachment
               EXPORTING
                 attachment       = l_attachment
               IMPORTING
                 s_return         = ls_return
                 file_content     = l_file_content
                 file_content_hex = l_file_content_hex
                 mime_file_type   = l_file_mime_type.
             IF NOT ls_return IS INITIAL.
               APPEND ls_return TO application->t_return.
             ELSE.
               CREATE OBJECT cached_response TYPE cl_http_response
                     EXPORTING add_c_msg = 1.
               IF NOT l_file_content IS INITIAL.
                 cached_response->set_cdata( l_file_content ).
               ELSE.
                 cached_response->set_data( l_file_content_hex ).
               ENDIF.
               IF l_event_tableview->itemclick = 'ClickName'.
                 cached_response->set_header_field(
                     name  = if_http_header_fields=>content_type
                     value = l_file_mime_type ).
                 cached_response->set_header_field(
                     name  = 'Content-Disposition'
                     value = 'inline' ).
               ELSE.
                 cached_response->set_header_field(
                     name  = if_http_header_fields=>content_type
                     value = 'application/x-download' ).
                 CONCATENATE l_attachment-name '.' l_attachment-type
                         INTO l_filename.
                 CONCATENATE 'attachment; filename=' l_filename
                         INTO l_value.
                 cached_response->set_header_field(
                     name  = 'Content-Disposition'
                     value = l_value ).
               ENDIF.
               cached_response->set_status( code = 200 reason = 'OK' ).
               cached_response->server_cache_expire_rel( expires_rel = 180
               CALL FUNCTION 'GUID_CREATE'
                 IMPORTING
                   ev_guid_32 = guid.
               CONCATENATE runtime->application_url '/' guid INTO l_url.
               cl_http_server=>server_cache_upload(
                     url      = l_url
                     response = cached_response ).
               RETURN.
             ENDIF.
    the method document_display_attachment is in the class
    CL_BSP_HAP_DOCUMENT_IF.
    Message was edited by: manasa

  • How to send/set parameter from BSP page to iview

    Dear Expert,
    Can advise me how to send or set parameter from BSP page to iview ?
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/bsppage.htm?lv_param=xxx
    I want to view my bsp page in portal but with parameter value.
    I can open my bsp page without parameter value like link below :
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/
    Thnx & Regards,
    Pieter

    Hi,
    your BSP page get's integrated via an iFrame. So, simply speaking, it's not possible to pass an parameter back.
    But what you can try is to use the Portal DataBag component. In the BSP page, store the information you want to pass in the browser. The iView/Portal than has to check if there is a new parameter / value stored.
    SAP Help: http://help.sap.com/saphelp_nw70/helpdata/en/68/322a9261c54e51b7965f86aac3dae2/frameset.htm
    br,
    Tobias

  • Upload documents from webdynpro to R/3

    Hi All,
    I have referred to the below thread and created a RFC which gets the binary content and uploads it to DMS.
    How to upload file from Web Dynpro into R/3 (BAPI_DOCUMENT_CREATE2)
    The file is getting created without any problems. But i am unable to open this file directly from DMS using the transaction CV03N. For example when i upload a PDF and when i try to open the document in CV03N it launches the application with an error message
    <i>"Acrobat Reader could not open '_DEVCC10.PDF' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasnt correctly decoded)."</i>
    When i upload a text file it opens some junk data and not the original content that was uploaded from portal.
    <b>Can someone help me out in finding out the problem?
    Also can someone help me in understanding what is the exact data that needs to be passed to <i>BIN_CONTENT</i> as mentioned in the above thread.</b>
    Thanks,
    Prasath N<i></i>

    Can anyone help me on this?
    Thanks,
    Prasath N

  • Upload documents from ESS Web Dynpro through Archivelink

    Hi Guys
    I am aware that ESS Whos Who has a functionality where the user can upload his own Photo and this makes use of the SAP Archivelink Architecture.
    We wish to make an iView that enables users to upload documents (other than photos) using Archivelink. This should be possible since it can be done for photos anyway.
    Does anyone know how to go about it? What are the configuration steps / coding required. Any help will be appreciated.
    Thanks and Regards
    Joy Kaushish

    Hi Joy!
    I haven't implemented from java, but from ABAP.
    You have to call the FM "ARCHIV_CREATE_TABLE".
    e.g.
      constants: c_sap_object like toaom-sap_object value 'PREL'.
      data: l_ar_object like toaom-ar_object.
      data: object_id like toa_dara-object_id.
      data: flength like sapb-length.
    call function 'ARCHIV_CREATE_TABLE'
          exporting
            ar_object                = l_ar_object
            object_id                = object_id
            sap_object               = c_sap_object
            flength                  = flength
          tables
            binarchivobject          = curr_dat
          exceptions
            error_archiv             = 1
            error_communicationtable = 2
            error_connectiontable    = 3
            error_kernel             = 4
            error_parameter          = 5
            others                   = 6.
    I hope, this hint helps!
    Thanks in advance for rewarding points!
    Peter

  • How do you send a document from ibooks to mail?

    Could I find out how to send/attach a document from ibooks to mail?

    Wow. You got me there.  All of the pdfs that i have, when i tap that icon, open a drop down window with the choices of e mail or print.  I wonder if the particular pdf you are working on is somehow protected?  Try a different pdf and see if the box recats the same way.   You might also do a full shut down and just try again.  Make sure there is not an old instance of i books, or some other pdf editor sitting in the task bar, by doblue clicking the home button, and shutting down any open apps.

  • How do I send a document from cloud by email for signature?

    How do I send a file from cloud by email to get electronic signature

    I believe you want Echo Sign here Electronic Signature Software, Digital Signatures | Adobe EchoSign.

  • Uploading documents from Cloud

    I'm still pretty new to IPad and have just uploaded my resume onto it from my computer.  I am wanting to apply for jobs online and most sites have a button to allow you to upload your resume.  I saved my resume inCloudReader...not sure if this was the right thing to do?  Unfortunately, on the job sites, I can't seem to access this resume from anywhere.  Is there somewhere or some other way I shou,d be saving this or any other document ?
    I get a bit confused with ICloud and what I can save and how to access and edit/forward documents etc.  Any help would be greatly appreciated!!

    The problem is that to send a file on an iDevice, you need to be in an app that has a copy of the document and then send it via whatever means that app provides, like email.  However, what you're trying to do is initiate a send from the browser, and it can't grab a file stored in some other app (safari can't store files in itself).  I fear you'll have to use a computer for this.

Maybe you are looking for