DMS: Checkin Originals in Background

Hello,
I am using <b>'BAPI_DOCUMENT_CREATE2'</b> to create document and checkin original files. BAPI is working fine via SE37 with the file on my PC (C:\temp\file.doc).  But, when I call call this BAPI from portal, document checkin is not happening, I think this is due to the  file path (C:\temp\file.doc) is not recognized when the BAPI is executed in the backend.  How do I checkin a file in background from portal? Do I need to specify any other parameters to the BAPI? or do I have to do anything on portal? If I call a BAPI from Portal, where this RFC is executed in the background?
Any ideas?
Thank You,
Chandra

Any Suggestions? Pls share with me.
Thank you all,
Chandra

Similar Messages

  • Checkin originals in background

    Hello,
    I am an ABAPer, and I am using 'BAPI_DOCUMENT_CREATE2' to create document and checkin original files. BAPI is working fine in R/3 (via SE37) with the file on my PC (C:\temp\file.doc). But, when I call call this BAPI from portal (frontend), document checkin is not happening, I think this is due to the file path (C:\temp\file.doc) is not recognized when the BAPI is executed in the backend. How do I checkin a file in background from portal? Any configuration in Document Management has to be done to acheive this?  Any ideas?
    Thank You,
    Chandra

    Hi Chandra,
    Unfortunately BAPIs are not so batch-friendy. API functions provide
    more flexibility in special cases concerning the checking in and checki
    out of documents. Therefore better use the functions modules like
    CVAPI_DOC_CREATE of the Function group CVAPI01.
    Please pay attention at the testprograms provided  in the note 504692.
    Pay attention to the fact that in background the originals are
    loaded from an application server, not from the frontend.
    In note 504692 you will find a collection of example programs which
    can be used as a workaround to BAPIs as they are not covering all
    possible scenarios.
    Hope this information is usefull.
    Best regards,
    Christoph

  • Display Originals for Background generated outputs

    Hi,
    can any one tell me how to see the display originals(It will opens a PDF file user saels later on-PDF format-Archiving configuration done) for the background generated output.
    there is no problem with manully entered outputs, problem with background generated outputs.(giving HTTP 404 not found error) in EFT(electronic Funds transfer)  issue
    CMS destination is working fine.
    Select output type in bussiness document>Further Data>Edit-->display originals.
    we can see if archive configuration done for any output type
    Help me here
    Reward for use ful answers.
    Regards
    Raj
    Edited by: raj abap on Jan 10, 2008 9:49 AM

    Its Third party problem

  • PLM WebUI DMS - Checkin Error

    Hi,
            We are trying to check-in the originals ( document) within the PLM WebUI DMS, we get a "Read or write error C:\Users\xxxx\.
    Could someone help us understand what the reason could be? The Whitelist has been prepared and certificate has been installed.
    thanks.

    Hi Subramanian,
    As per screen shot please provide read/write permission to the showing file path .Please check any path defined in Dc 20 and validate it.
    Reg,
    Chandu.

  • BAPI_DOCUMENT_CREATE2 fails in Background

    Hi everyone,
    I wrote an ABAP-report calling BAPI 'BAPI_DOCUMENT_CREATE2'.
    This ABAP has to create a document and upload files per FTP into DMS (Checkin)
    Works Online fine (cause the BAPI avoids FTP as a GUI is online available)  but miserably fails in background:
    Message: RFC callback calls are not allowed in the ABAP...
    This message comes from a failed call of the FM 'SYSTEM_START_REG_SERVER'
    in the FM  'CV120_FTP_START_REG_SERVER' as described in an old thread (Error in Check in of Originals by BAPI In background)
    Sample of the BAPI-call:
      CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
        EXPORTING
          documentdata         = documentdata
          pf_ftp_dest          = 'SAPFTPA'
        IMPORTING
          documenttype         = documenttype
          documentnumber       = documentnumber
          documentpart         = documentpart
          documentversion      = documentversion
          return               = return
        TABLES
          documentdescriptions = documentdescriptions
          objectlinks          = objectlinks
    *      documentstructure    = documentstructure.
    *      documentfiles        = documentfiles
    *      documentstructure    = documentstructure.
          documentfiles        = documentfiles.
    I tried a lot, even in 2 steps (first create the doc per BAPI, second checkin per call of CVAPI_DOC_CHECKIN)
    but in everycase, i always get the same problem...
    Any help will greatly be appreciated : i daily and manually (ok, even if 1 report launch per day is sufficent) have to upload aprox.
    2000 PDFs ...
    Thanks in advance for answering...
    Edited by: Guillaume Delorme on May 5, 2010 11:08 AM

    Hi everyone,
    Due to holidays, i gotta  post under another account...
    There was a logical mistake in my problem:
    -> i thought i had to do the physical checkin of the files while or after the BAPI_DOCUMENT_CREATE2-call.
    In my case, the content-server is reachable from the app-server as it's been defined in the AL11.
    The content-server is directly defined in table TDWD with complete directorypath as a vault-server (NO DVA-VAULT).
    The SAP-FBs do actually handle two cases for file-checkin that can suit my concern::
    -> DVA-Vault?->FTP-Connect for filetransfer
    -> No DVA-Vault? ->Local GUI-Upload  for filetransfer
    For background-processing fails always the GUI-Upload -> normal
    I don't use any DVA-Vault -> i must do something else.
    Solution: Ridiculously easy...
    *-> FIRST :Physical Checkin over a stupid TRANSFER DATASET for the file.
    *If OK:
    *->SECOND: Call of  BAPI_DOCUMENT_CREATE2 with reference to the transferred File
    *      ->Structure BAPI_DOC_DRAW2:
    *          -> Short Dataname in BAPI_DOC_DRAW2-docfile1
    *          -> Datacarrier in BAPI_DOC_DRAW2-datacarrier1 (actually the key for the VAULT-server)
    *          -> App.type in BAPI_DOC_DRAW2-wsapplication1.
    *          -> Description, Documentype, username, laboratory are must-fields with my customizing too.
    *       ->Internal Table BAPI_DOC_FILES2:
    *          -> Short Dataname in BAPI_DOC_FILES2-docfile
    *          -> Datacarrier in  BAPI_DOC_FILES2-storagecategory (actually the key for the VAULT-server)
    *          -> App.type in BAPI_DOC_FILES2-wsapplication.
    *          -> no other fields required for this table
    *       ->(...)
    *endif.
    Now it runs fine every 5 minutes and i handle about 3000 documents a day...
    I give points to Phillip van den Heever who reminded me the AL11-Setting and i mark this topic solved as soon as i can...
    Thanks to everyone and greets,
    Guillaume Delorme

  • SAP external files link with DMS

    Hi
    I have one application (like GED) external SAP.
    My scenario is: I create one doc in this application that contains (for example: doc number and file). This file can be DOC, PDF, DWG.
    When I save this doc, automatically must be create doc in SAP DMS also.
    In SAP t-code CV03N search this document and I have this DIR. Double click in file must open it (storaged external SAP).
    Must I use t-code OACO?
    Help me
    Regards

    Hi,
    regarding your description I can only offer you the following suggestion and hope that it helps. To create a document info record in the SAP DMS system by using an exeternal application, the relevant function module has to be called via an RFC call.
    Please note that in background the calling of DMS transactions are not possible or supported. To create or change a document info record in background I would recommend you to use the BAPIs BAPI_DOCUMENT_CREATE2 or BAPI_DOCUMENT_CHANGE2 to create or change a Document info record. Please see the SAP note  766277, which contains the full documentation of all BAPIs in the DMS area.
    For checking in originals in background, API functions are much more flexible. 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_CHECKOUTVIEW with RFC destinations defined as SAPHTTPA/SAPFTPA could fulfill your requirements.
    Please see also SAP note 504692, which contains sample programs for the checkin in background. Further please see also the other SAP note 796709 which contain also necessary information for this action too.
    Best regards,
    Christoph

  • DMS: Object Links for Work Order

    Hello All,
    I would like to attach and checkin originals to a work order thru CV01N/CV02N transaction. But, there is no specific tab for work oder. How do I acheive this?
    what configuaration and development has to be done?
    Any kind of help is highly appreciated.
    Thanks,
    Chandra

    Hi,
    If you need only a tab to be seen in the CV01N/CV02N Tcodes, then there is a config settings,
    Document Mangement--> Control Data->Define Document Types (under that select your document type to which this attachment is required) > Define object links> select the production order (PORDER---Object & Screen # 0251)
    then you can see the production order tab in the DIR,
    OR
    As per my understanding of your requirement is:
    When you attach a Original in DIR then it should be visible in the Production order also.
    To achieve this you need to build a relation b/w Material Master & DIR (particular document type), so when a order is created then DIR with original will also get attached automatically so that you view, or through EWB also it can viewed & edited.
    Hope i have understand correctly.
    Regards
    Rehman

  • Regarding SAP DB for DMS

    Hi
    Can anybody know why DMS using seperate SAP DB for storing documents.instead of using ERP DB.
    I think content table is available in ERP DB also...
    Pls confirm.
    Regards
    Chandra..

    Hello,
    As you in DMS there are 2 main parts
    1. Document Info Records -
    2. Originals (different format of documents)
    Originals can be stored in R/3 database table (DMS_CONT1_CD1) or File system or Archive server (such as SAP Content server, IXOS, so on...)
    If you chose R/3 database table then keep in mind on size increasing due to storing of various format of files/documents.
    Archive server or File system can be good option to store these orginals and reduce the burden on your database table.
    In market there are few archive server who provide more security and better document/file management.
    2nd question - why DMS need separate SAP DB(MAXDB) for storing?
    DMS (I assume that you are referring DMS for SAP Content Server) is a separate application like other archive server (IXOS, DOCUMNTUM.....)
    Hope this infromation gives you better idea on DMS, DIR, Originals, SAP Content server & other archive servers.
    -Thanks,
    Ajay

  • Re:SAP easy-DMS request for recovery path-location

    Dear All,
    I have a requirement of a recovery for an origin path or a location in easy-DMS for the Document.
    Fact is that Document  was deleted by mistake, then the deletion flag was reseted, and finally path-hierarchy or location has been somehow deleted.
    Is this possible.
    Please advice how to get this done if possible.
    Regards,
    Vivek

    Hi,
    In Easy DMS if a document is marked for deletion, It cannot be recovered. Process is same as SAP DMS.
    For future course, you can have some configuraiton done in Easy DMS like "Originals deleted from EasyDMS can be moved to recycle bin by customizing easyDMS"
    Hope this helps.
    Regards,
    Deepak Kori

  • 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 OF DOCUMENTS USING LSMW

    Hello Experts,
    I am experienced in SAP DMS but not in LSMW.
    I would like to use LSMW for Mass Uplaod of Documents and would like to give the input in the below format.
    I was able to create LSMW for Doc Upload using Recording option but it will not give me the original path location.
    I know there is a BAPI too for Document create which is BAPI_DOCUMENT_CREATE but dont know how to use it in LSMW>
    Which option is best to be used in this case. Below find the input format of the file which am looking
    DIR
      Number
    Doc Type
    Doc Part
    Doc Ver
    Description
    Status
    Original File
      Path.
    Appriciate your answers.
    Regards,
    S.Kulkarni

    Dear Shrikanth,
    please note that batch input in Document Management System is not
    supported for Releases higher than 4.5. The batch input technology
    was designed for the transactions CV01 and not for CV01N/02N etc.
    To create
    or change a document info record in background I would recommend you to
    use the BAPIs BAPI_DOCUMENT_CREATE2 or BAPI_DOCUMENT_CHANGE2 to create
    or change a Document info record. Please see SAP note 766277,
    which contains the full documentation of all BAPIs in the DMS area.
    Normally you can use DMS BAPI or API function modules to checkin
    originals into the content server. I would recommend you to use the
    API modules as they are much more flexible then BAPIs. Please see the
    note 504692 which contains further information and some
    sample programs.
    With transaction SXDA you can also create document info records
    in the background but the filepath should not be shortened anymore.
    For further information please check SAP note 817743.
    I hope that this information could be useful for you to setup a
    working scenario to edit document info records successfully in
    background.
    Best regards,
    Christoph

  • Dynamically importing images

    Hi,
      we need to dynamically import images to use them in smartforms. The images are stored on a file server (DMS) so we tried to use BAPI_DOCUMENT_CHECKOUTVIEWX to get the file from DMS and then use IMPORT_BITMAPS_DBS (to do what SE78 does) but this does not work. We realised that the file was not being transfered by the BAPI and that IMPORT only works with local files, so when we are printing (background), it does not work. Does anyone know of a way to import images as GRAPHICS as SE78 does but from a DMS server and in background mode.
    TIA

    hi,
    can you please elaborate your answer, i could not understand it completely.
    Thanks,
    Hasan

  • DMS - Document checkin in background

    Dear all,
    Is it possible to checking document in background process ?
    I would appreciate if anyone could please guide me on this procedure.
    Thanks in advance .

    Hi Bruno,
    Since u need to upload originals from the background, ur frontend pc is no longer in the scenario. So ur originals must be located where ur Application server can access it.
    So this can be either on a shared  folder or on the Application server hard disk.
    if u r concerned about the security of shared folder, u  can have a secured ftp connection and specify the url of the ftp folder.
    Regards,
    Mahesh

  • Error in Check in of Originals by BAPI In background

    Hi Friends
    We have requirement to check in the documents in DMS in background mode using  BAPI_DOCUMENT_CHECKIN_REPLACE2 . Original files are stored on
    application server in folder G: drive . When I run this BAPI  in foreground mode it runs
    fine. But in background mode it gives error u2018Program no longer
    started via RFCu2019. No return possible.u2019 I debugged the BAPI and found that error occurs at
    function module 'CV120_FTP_START_REG_SERVER in include LCV120F06.
    Error occurs when it calls SYSTEM_START_REG_SERVER.
    When this program runs in background it is unable to find SAPGUI.
    That is why it fails while calling  function module RFC_PING inside function module
    CV120_FTP_START_REG_SERVER at line 28.
    I have referred note 505891 for DMS related issues.
    But when this BAPI runs in background it fails to check in.
    We have also requirement to check in files located at remote FTP location.
    Whether this is possible or not.
    With Regards
    Mangesh Pande

    Hi Mangesh,
    I'm facing the same problem, could you please give us some further explanations?
    ->Files are on the same server
    ->Checkin always fails (RFC-Callback not allowed)
    ->online works always fine (sure: with gui-download instead of FTP->No probs)...
    Does it mean, i need a special Storage category? the one i have has the vault-Indicator...
    Thanks in advance for any information and greetings from France...
    Guillaume Delorme
    Edited by: Guillaume Delorme on May 5, 2010 10:15 AM

  • Need to create the document with originals and checkin that document

    HI Guys,
    My requirement is to write a method to  create the document with originals and checkin that document of DMS.
    Plz suggest the approach to get this requirement solved.
    Regards,
    RSK

    Hi Bala,
    Thanks for the reply.
    Iam writing the code under method like below.
    Importing:
    ls_doc type bapi_doc_draw2.
      APPEND is_files TO it_files.
      CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
        EXPORTING
          documentdata               = ls_doc
       IMPORTING
         documenttype               = iv_doctype
         documentnumber             = iv_docnumber
         documentpart               = iv_docpart
         documentversion            = iv_docvers
         return                     = iv_return
       TABLES
        documentfiles              = it_files.
    Iam checking with document number , document type, document part, document version... it is throwing error message as
    error while checking in and storing: version number(25).
    Please advice whether it is correct approach?
    Regards,
    RSK
    Edited by: shravan kumar ravula on Dec 22, 2011 11:24 AM
    Edited by: shravan kumar ravula on Dec 22, 2011 1:26 PM
    Edited by: shravan kumar ravula on Dec 22, 2011 1:26 PM

Maybe you are looking for

  • Why does iTunes play consecutive songs by the same artist so often?

    Is there a way to stop or greatly reduce the issue in iTunes of playing consecutive songs by the same artist when playing in "shuffle" mode?  There was a slide tool in preferences that allowed you to set that to "less likely" or "more likely" but tha

  • SAP GRC 10.0 on ECC

    Hi Guys, We are planning on implementing SAP GRC 10.0. Our Basis guy has suggested that we can use ECC (EHP 6) box for installing the add on(GRCFND_A) component for it. The reason for this is to avoid adding another system to the landscape and to red

  • Some applications are not opening

    Hi, Many of my applications are not opening. Sometimes when I try to open the application it doesn't even bounce in the dock.  Other times, applications will bounce in the dock and then stop.  These are crucial apps, like Mail, Pages, and iPhoto.  Sa

  • Misplaced mail - how do I put it back where it belongs?

    Today, in order to reduce the size of my In Box, I created a new mailbox named "Old Mail-before 6", then selected the contents of my inbox dated before June 2005, and used the "move to" command to move these items (about half the contents of the inbo

  • I have Acrobat X. Do I have to have Acrobat XI to make full use of FormsCentral?

    I have Acrobat X. Do I have to have Acrobat XI to make full use of FormsCentral?