Upload document from Portal to SAP R.3 DMS

Hi Experts,
We are trying to get the attachemnts from enterpriseportal to SAP R/3 DMS Server using <B>BAPI_Document_Create2.</B>
1)We use the method upload file to application sever from portal it is working but by attaching to DMS Server it not attaching.
2) BAPI export params we are passing pf_http_dest = 'SAPHTTPA'.
Developing in Webdynpro java application by using the above RFC function module and when I try to run the application it will show the size sent to R/3 system but it is not uploaded to R/3.
Can any one suggest in this we are struckup to do this.
Waiting your replies.
Thanks & Regards,
Lohitha.

Hi,
The documents are uploaded from WDJ to Portal Server  / Portal Content Directory / Some Shared Drive .
So that they can also be programmed such a way that they can be fetched whenever needed .
The requirement is interesting but before you take step think how far it is feasible .
Regards,
Srini

Similar Messages

  • Upload data from Excel to Sap-Crm

    Hi All,
    I need to upload data from EXCEL to SAP-CRM system.The problem is in crm there is no ALSM_EXCEL_INTO_INTERNAL_TABLE or corresponding function modules exist.Using GUI_UPLOAD I can upload data from excel to CRM but the main problem with this is it supports only 255 chars for entire line, in my excel file it contains more than 255 chars.Please help me out.

    Try the following :
    Class: CL_GUI_FRONTEND_SERVICES
    Method: GUI_UPLOAD
    Thanks
    <b>Allot points if this helps!</b>

  • How to upload data from excel to SAP and options to be used

    How to upload data from excel to SAP and options to be used
    thank you,
    Regards,
    Jagrut Bharatkumar shukla

    Hi Jagrut,
        You can use gui_upload.
    chk the sample program mentioned below.
    REPORT ZFTP .
    DATA: BEGIN OF I_FILE OCCURS 0,
    DATA(2000) TYPE C,
    END OF I_FILE.
    DATA: BEGIN OF I_FILE2 OCCURS 0,
    DATA(2000) TYPE C,
    END OF I_FILE2.
    DATA: W_COUNT TYPE I.
    PARAMETERS: P_FILEN TYPE STRING,
    P_FILE2 TYPE STRING,
    P_NUM(4) TYPE N..
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILEN.
    PERFORM F_FILE_GET USING P_FILEN TEXT-G01.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE2.
    PERFORM F_FILE_GET USING P_FILE2 TEXT-G01.
    START-OF-SELECTION.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = P_FILEN
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    VIRUS_SCAN_PROFILE =
    NO_AUTH_CHECK = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    tables
    data_tab = I_FILE
    IF SY-SUBRC <> 0.
    MESSAGE E024(Z1).
    ENDIF.
    LOOP AT I_FILE.
    W_COUNT = W_COUNT + 1.
    IF NOT W_COUNT > P_NUM.
    MOVE I_FILE TO I_FILE2.
    APPEND I_FILE2.
    ENDIF.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    filename = P_FILE2
    FILETYPE = 'ASC'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = 'X'
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = I_FILE2
    FIELDNAMES =
    *& Form F_FILE_GET
    text
    -->P_P_FILEN text
    -->P_TEXT_G01 text
    FORM F_FILE_GET USING L_FILENA L_TEXT.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    DEF_FILENAME = ' '
    DEF_PATH = ' '
    MASK = ',.,*.TXT.'
    MODE = 'O'
    TITLE = L_TEXT
    IMPORTING
    FILENAME = L_FILENA
    rc =
    EXCEPTIONS
    INV_WINSYS = 1
    NO_BATCH = 2
    SELECTION_CANCEL = 3
    SELECTION_ERROR = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Reward if helpful.
    Regards,
    Harini.S

  • 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

  • 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

  • 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.

  • How to pass thr document from Webdynpro into SAP R/3?

    HI Gurus,
    I have a requirement to offer a Document uploading option through Java webdynpro screen.
    I have referred the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    which has the steps till uploading the document into Webdynpro
    Now my requirement is to pass the document into SAP R/3? is there any RFC for that?
    Please ad

    Refer Oliveri's solution in [this|Re: How to upload file from Web Dynpro into R/3 (BAPI_DOCUMENT_CREATE2); thread.

  • How to upload data from excel to SAP using VB script or Macros

    Hi Guys,
    I want to make a macro enabled Excel sheet which  i can use to upload huge data on SAP . I read some discussion but didnt get anything. Please help me with a step by step document.

    Hi,
    Please refer below link.
    Need help from Excel and SAP expert! [SOLVED]
    http://visualbasic.ittoolbox.com/groups/technical-functional/vb-vba-l/call-transaction-in-sap-from-excel-vba-macro-and-download-alv-list-object-results-to-spreadsheet-3335996
    Regards,
    Rafi

  • 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

  • Upload Documents for Portal

    I have a request from the business area here to add a portlet that allows users to upload documents. then those documents could be retrieved by someone in management.
    I have read a ton of documentation on adding/modifying dads etc.
    does someone have somewhat simple instructions on how to do this?
    thanks
    jason

    i have created the table, the package, etc
    something appears to be wrong in my HTML trying to access to download procedure
    <html>
    <head>
    <title>test upload</title>
    </head>
    <body>
    <form enctype="multipart/form-data" action="http://MYSITE:7777/portal/pls/portal/document_api.download" method="post">
    File to upload: <input type="file" name="file"><br>
    <input type="submit" value="Upload">
    </form>
    </body>

  • Upload data from Excel into SAP CRM using webservices

    Hi,
               I want to upload the data from EXCEL into SAP CRM using a web  service, can anyone say me the process and also how to map the excel and the source code structures.
    Thanks,
    Sanju.

    Try the following :
    Class: CL_GUI_FRONTEND_SERVICES
    Method: GUI_UPLOAD
    Thanks
    <b>Allot points if this helps!</b>

  • Is it Possible to Exclude Documents from Portal Export ?

    Hello,
    In preparation for upgrading from Portal 9.0.4.3 (Release 1) to the latest portal version, we need to Export from a PROD Portal instance and import into a TEST portal instance. I plan to use separate transport sets for a Pagegroup and Providers. The Pagegroup has ~50 GB of documents in it.
    The problem is that I don't have the Disk space on the PROD machine to export to the transport tables or on the TEST machine for the import or the merge. Is there some way to exclude the Documents (BLOBS in WWDOC_DOCUMENT$) from an export? I do want export/import all of the pages in the pagegroup.
    Thanks,
    Trenton

    Did you ever get an answer to this, or how did you resolve it?
    Thanks,
    Jeff

  • Open a QueryView from Portal in SAP Analyzer

    Hey guys,
    I have a Query Q1 and a view V_Q1 which was created in SAP Analyzer 7.0.  I know how to publish V_Q1 to Portal, see
    http://help.sap.com/saphelp_nw70/helpdata/en/33/39fa40ee14f26fe10000000a1550b0/content.htm
    But using the tecnique above, V_Q1 always opens in Web Analyzer, but I want to get V_Q1 to be opened in SAP Analyzer.
    I already achieved to publish Q1 to Portal and to be opened in SAP Analyser (using codelink com.sap.portal.appintegrator.sap.Transaction with Parameter QUERY=Q1 and Parameter SAP-GUI-Type = SAP Gui for Windows).
    But how to publish V_Q1 to Portal and to be opened in SAP Analyzer.
    All hints are helpful....
    Cheers,
    Christian

    Hi Krishnan,
    thank you for your response.
    I created the View in BEx. I still can open the query view from BEx. I am able to open the query from Portal. From that config; i tried to change the iView in Portal, so that it opens the query view. But it isn't working. BEx is just opening blank.
    I recognized, that there is also a parameter "Dynamic parameters" which seems to be important. Nevertheless, I didn't managed to open the query from from portal.
    Do you have a working config?
    Rgds,
    Christian

  • Picking files from portal to sap & placing the files to portal back

    hi SDN,
    we have a requirement to read a file from the portal to SAP R/3, do some process on the file and place it back to the portal again.
    can you please let us know how to achieve it.
    Thanks,
    Suman.

    Hi,
    i am not sure if this link helps.
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d920a34b8a11d1894c0000e8323c4f/frameset.htm
    ideally if you are able establish http connection to portal then you can down load /uplaod files otherwise look at options in PI if available.
    Suresh

Maybe you are looking for