Bapi_document_load?

Dear all,
Hope this is a function module for bulk-uploading of Documents into SAP - content server and the Document Info Record to SAP - DB table named DRAW.Am i right?
Could you kindly help me out in <b>writing a abap program</b> for the function module BAPI_DOCUMENT_LOAD and to execute it in a loop.since i have huge documents.
Regards,
John.

Hi Franz,
I use the same BAPI BAPI_DOCUMENT_CREATE2 for checking documents from a network drive, without any problems.
Could you post the coding for filling all the parameters of the BAPI?
Regards,
John.

Similar Messages

  • DMS - Errror BAPI_DOCUMENT_LOAD and BAPI_DOCUMENT_CREATE2

    Hi Experts!
    During inserting a new document with BAPI_DOCUMENT_LOAD or BAPI_DOCUMENT_CREATE2 I get always the error 'ERROR WHILE CHECKING IN AND STORING: G:\mynewdoc.txt' .
    G: is my external hard disk connected to my laptop on which I am working in SAP.
    mynewdoc.txt is the new text-document that I want to insert.
    Does anybody knows something about this error?
    Do I need a special communication between the SAP-System and a external device like my hard disc?
    Thanks in advance for your support!!
    Regards
    Franz

    Hi Franz,
    I use the same BAPI BAPI_DOCUMENT_CREATE2 for checking documents from a network drive, without any problems.
    Could you post the coding for filling all the parameters of the BAPI?
    Regards,
    John.

  • Error While "Check in" of a orignal in DIR

    Hi All,
    I am trying to attach the orignals to DIR's in SAP. These orignals are PDF files and they are located on a external shared network drive. I need to run this process in background as i  need to upload around 60000 orignals. I am able to upload the orignal successfully with FM "BAPI_DOCUMENT_LOAD" in background mode. But now when i try to checkin the uploaded orignals with FM "CVAPI_DOC_CHECKIN", it gives me an error saying "Error While checking in and storing XXXX". Any clues in this would be very helpful.
    Regards
    Charitha

    Dear Charitha,
    You have placed the file on the application server and trying to access via front end.The presence of file on the application server could be seen via AL11 however you cannot access the file directly from windows. This is the reason you get an error.
    For checking in originals in background, API functions are much more flexible. Therefore please see also SAP note 504692, which includes several sample programs which could be helpful by checking in original files in background.
    The document BAPIs always require a SAPGUI or an open RFC connection, because this channel is required to start the program SAPHTTP (or SAPFTP) on the client for the check-in. When the BAPI is used in background, the system doesn't know where to get the original files from.
    Please note that the functionality you would like to realize is a very special one for which no standard solution exists. However, API-s are more flexible in some cases, i.e. CVAPI_DOC_CHECKIN with RFC destinations defined as SAPHTTPA/SAPFTPA could fulfill your requirements.
    Further please see also the SAP note 796709 which contain also necessary information for this action too. In note 766277 you will find also a complete documentation of all available DMS BAPIs in the attachment. Unfortunately there is not standard solution for such scenarios like explained by you. Because a lot of environment variables could influence the BAPI behavior.
    As additional information source kindly go through the note 729800. This will be of use for the current issue. If one uses BAPI's in via RFC-Lib, the ABAP-System makes a callback and starts the saphttp, sapftp via the open RFC channel. Therefore the RFC-Client has to allow this by calling RfcAllowStartProgram("sapftp;saphttp"). SAP note 144256 clearly describes the process.
    Best regards,
    Christoph

  • Mass upload into DMS

    Hi all,
            using tcode cv01n we can upload a file to a document. But the requirement is to load multiple files at a time that is mass upload.
    pls help
    regards
    kshitij

    Hi Kshitij,
    for uploading more than one original I would recommend you to use one of the
    DMS BAPIs
    - 'BAPI_DOCUMENT_CREATE2'
    - 'BAPI_DOCUMENT_CHANGE2' or
    - 'BAPI_DOCUMENT_LOAD'
    Please see the SAP Note 766277 which contains a complete documentation on all existing DMS BAPIs. In the documentation you will also find sample coding for each BAPI.
    If you try to do this in the background API function modules would be more flexible. Therefore please see SAP note 504692. This note includes some samples for special checkin cases.
    I hope this information is usefull for you.
    Best regards,
    Christoph

Maybe you are looking for

  • Startup Error.

    A new update for my system had come up to install. I click install 1 item, and it said there was an error in installing the update because it was in the trash. I pushed exit, and moved the file from the trash to the desktop and tried the update again

  • Raw files WITH audio appear in timeline WITHOUT audio

    I have many files that absolutely HAVE audio appear with none in the timeline. The track itself is there, but the waveform is flat, no sound, and nothing in the source monitor. However, when you "reveal in finder" that particular clip, and play it th

  • Can  I create a data set from Excel spreadsheet?

    I have been looking for help with Spry data sets. I want to know if I can create a data set directly from an spreadsheet or do I have to save it to a CSV  file first. I will be upgrading to DW CS4 shortly & trying to do my homework now. Can someone p

  • Original System of a specific transaction

    Hi guys, I would like to change the original system of a transaction because I want to insert it in a request and the original system is not still present. So the system print that "Repaired object cannot be inserted in [Request] . How can I do so ?

  • How to drop those CDC entries where CAPTURED_VALUES='UNKNOWN'

    Hello, I am using change data capture, when I query : select subscription_handle, subscription_status from procede_etl.HIG_CDC_VW where CAPTURED_VALUES='UNKNOWN'; SUBSCRIPTION_HANDLE SUBSCRIPTION_STATUS 22 ACTIVE 23 ACTIVE 24 ACTIVE 43 ACTIVE 42 ACTI