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.

Similar Messages

  • BAPI_DOCUMENT_CHANGE2 and BAPI_DOCUMENT_CREATE2 in background

    Hi,
    Can anyone please tell me whether the BAPIS   'BAPI_DOCUMENT_CHANGE2 ' and 'BAPI_DOCUMENT_CREATE2  can be executed in background?.
    In foreground mode I can able to create and change the document successfully.
    but in background mode I am getting an error from the BAPI saying that document can not be checked in.
    Can anyone help me?
    Regards,
    Deepu

    Hi,
    maybe the problem are not the BAPI but the selection of the file. You can't use the GUI Frontend Services for selection in Batch-Mode..
    Please use   FUNCTION 'EPS_GET_DIRECTORY_LISTING' .
    program-code example for background:
    FORM pd_batch .
      DATA: lv_def(5) TYPE c,
      lv_hp1 TYPE string,
      lv_hp2 TYPE string,
      lv_hp3 TYPE string,
      lv_sep3(1),
      lv_vg(20) TYPE c,
      lt_epsfili TYPE STANDARD TABLE OF epsfili,
      ls_epsfili TYPE epsfili.
      DATA: lv_start     TYPE string.
      DATA: lv_dir       TYPE epsf-epsdirnam.
      DATA: lv_filter    TYPE string.
      DATA: gt_filetable TYPE filetable.
      DATA: wa_filetable LIKE LINE OF gt_filetable.
      DATA: return       TYPE i.
      DATA: lv_objnr     TYPE cobrb-objnr.
      DATA: lt_jstat     LIKE STANDARD TABLE OF jstat WITH HEADER LINE.
      DATA: lv_epsfilnam TYPE epsf-epsfilnam.
      REFRESH: lt_files,lt_drat,lt_drad.
      SELECT * FROM  zqm_pd_custom INTO wa_pd_custom WHERE manuell = ''.
        APPEND wa_pd_custom TO gt_pd_custom.
      ENDSELECT.
    Dokumentendaten zuweisen
      break de00009.
      LOOP AT gt_pd_custom INTO wa_pd_custom.
    Liste mit allen Einlesedaten aus dem Verzeichnis
        REFRESH: gt_filetable, lt_files.
        CLEAR:  wa_filetable.
        CLEAR:  ls_doc,ls_return,ls_return2, lf_docnumber,
                lf_docpart,lv_01,lv_02,lv_03,lv_path,lv_file,
                lv_file2,lv_fauf, lv_rest,lv_help,lv_help2,lv_sep,wa_aufk.
        ls_doc-documenttype    = '044'.
        ls_doc-documentversion = '00'.
        ls_doc-documentpart    = '000'.
        ls_doc-statusextern    = 'FR'.
        lv_sep3 = '-'.
        lv_start = wa_pd_custom-path.
        CONCATENATE '.' wa_pd_custom-ufext INTO lv_filter.
    GUI-Frontend-Services läuft nicht im Batch
        IF sy-batch = 'X'.
          lv_dir = lv_start.
          CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
            EXPORTING
              dir_name               = lv_dir
              file_mask              = '.'
            TABLES
              dir_list               = lt_epsfili
            EXCEPTIONS
              invalid_eps_subdir     = 1
              sapgparam_failed       = 2
              build_directory_failed = 3
              no_authorization       = 4
              read_directory_failed  = 5
              too_many_read_errors   = 6
              empty_directory_list   = 7
              OTHERS                 = 8.
          LOOP AT lt_epsfili INTO ls_epsfili.
            wa_filetable-filename = ls_epsfili-name.
            APPEND wa_filetable TO gt_filetable.
          ENDLOOP.
        ELSE.
          CALL METHOD cl_gui_frontend_services=>directory_list_files
            EXPORTING
              directory                   = lv_start
              filter                      = lv_filter
              files_only                  = 'X'
            CHANGING
              file_table                  = gt_filetable
              count                       = return
            EXCEPTIONS
              cntl_error                  = 1
              directory_list_files_failed = 2
              wrong_parameter             = 3
              error_no_gui                = 4
              not_supported_by_gui        = 5
              OTHERS                      = 6.
        ENDIF.
        IF sy-subrc = 0 AND gt_filetable IS NOT INITIAL..
          LOOP AT gt_filetable INTO wa_filetable.
            REFRESH lt_files.
            lv_path = wa_pd_custom-path.
            lv_file = wa_filetable-filename.
            SPLIT lv_file AT lv_sep3  INTO: lv_hp1 lv_hp2.
            lv_fauf = lv_hp1.
            CONCATENATE '00000' lv_fauf INTO lv_fauf.
            REPLACE ALL OCCURRENCES OF '.csv' IN  lv_hp2 WITH ''.
            CONCATENATE 'O0000000000' lv_hp2 INTO lv_vg.
    Testen, ob FAUF vorhanden
            SELECT SINGLE  * FROM  aufk INTO wa_aufk
                   WHERE  aufnr  = lv_fauf.
            IF sy-subrc <> 0.
    *Datei einfach stehen lassen
            ELSE.
    Nur Status "TABG" behandeln
              CONCATENATE 'OR' lv_fauf INTO lv_objnr.
              CALL FUNCTION 'STATUS_READ'
                EXPORTING
                  objnr            = lv_objnr
                  only_active      = 'X'
                TABLES
                  status           = lt_jstat
                EXCEPTIONS
                  object_not_found = 1.
              READ TABLE lt_jstat WITH KEY stat = 'I0045'.       " TABG
              IF sy-subrc = 0.
                CONCATENATE lv_path '' lv_file INTO lt_files-docfile.
    *zum löschen vormerken
                CONCATENATE lv_path '' lv_file INTO lv_file2.
                lt_files-wsapplication   = wa_pd_custom-wsapp.
                lt_files-statusintern    = 'FR'.
                lt_files-storagecategory = 'Z0001'.
                APPEND lt_files.
    Kurztexte
                CLEAR lt_drat.
                REFRESH lt_drat.
                lt_drat-language    = 'DE'.
                lt_drat-description = wa_pd_custom-ktext.
                APPEND lt_drat.
    Objektverknüpfung zum Fertigungsauftrag
                CLEAR lt_drad.
                REFRESH lt_drad.
                lt_drad-objecttype = 'PORDER'.
                CONCATENATE lv_fauf lv_vg INTO lt_drad-objectkey.
                APPEND lt_drad.
    Dokument anlegen
                CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
                      EXPORTING: documentdata         = ls_doc
                      IMPORTING: documenttype         = lf_doctype
                                 documentnumber       = lf_docnumber
                                 documentpart         = lf_docpart
                                 documentversion      = lf_docversion
                                 return               = ls_return
                     TABLES: documentdescriptions = lt_drat
                             objectlinks          = lt_drad
                             documentfiles        = lt_files.
                SHIFT lf_docnumber LEFT  DELETING LEADING space.
    FAUF-Nr.
                lv_01 = lt_drad-objectkey.
    Dokumentenart
                lv_02 = ls_doc-documenttype.
    DIS Nummer
                lv_03 = lf_docnumber.
    Fehler aufgetreten ??
                IF ls_return-type CA 'EA'.
                  ROLLBACK WORK.
                  MESSAGE ID '26' TYPE 'I' NUMBER '000'
                          WITH ls_return-message.
                ELSE.
                  COMMIT WORK.
    Wenn einchecken ok, Datei löschen
                  IF ls_return IS INITIAL.
                    IF sy-batch = 'X'.
                      lv_epsfilnam = lv_file.
                      CALL FUNCTION 'EPS_DELETE_FILE'
                        EXPORTING
                          file_name              = lv_epsfilnam
                          dir_name               = lv_dir
                        EXCEPTIONS
                          invalid_eps_subdir     = 1
                          sapgparam_failed       = 2
                          build_directory_failed = 3
                          no_authorization       = 4
                          build_path_failed      = 5
                          delete_failed          = 6
                          OTHERS                 = 7.
                      IF sy-subrc <> 0.
                      ENDIF.
                    ELSE.
                      CALL FUNCTION 'WS_FILE_DELETE'
                        EXPORTING
                          file   = lv_file2
                        IMPORTING
                          return = sy-subrc.
                      IF sy-subrc <> 0.
                      ENDIF.
                    ENDIF.
                  ENDIF.
    *Satz in ZPROZDATEN einfügen
                  wa_prozdaten-aufnr = lv_01.
                  wa_prozdaten-arbpl = wa_pd_custom-arbpl.
                  wa_prozdaten-werks = wa_pd_custom-werks.
                  wa_prozdaten-dokar = ls_doc-documenttype.
                  wa_prozdaten-doknr = lv_03.
                  wa_prozdaten-dokvr = ls_doc-documentversion.
                  CONCATENATE lv_path '' lv_file INTO wa_prozdaten-filep.
                  wa_prozdaten-datum = sy-datum.
                  wa_prozdaten-name  = sy-uname.
                  wa_prozdaten-uzeit  = sy-uzeit.
                  INSERT INTO zqm_prozdaten VALUES wa_prozdaten.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
    regard Joerg

  • Does any one know what the matrix.dms is? And why it is in my picture folder? When I open this file the unarchiver takes over and I see my entire hard drive when I scroll down I see the matrix.dms file with in the unarchiver.

    Hello everyone. Does anyone know that the matrix.dms file is? And why it may have came to be in my picture folder? When I opened the file the unarchiver took over, then I saw my files in the unarchiver window. I then scrolled down and I saw the same matrix.dms file within the unarchiver window. I made a video of what saw when I tried to open the file, so as to aide in your understanding of reason for my perplexion at this file. Thank you for your help. https://www.youtube.com/watch?v=2QeWH9hRnro&feature=youtu.be

    Hi EMT-B,
    It sounds like you have done all the troubleshooting needed to narrow down your issue with the iPhone camera to hardware. Based on the information you have provided, it appears your iPhone needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    Apple - Support - Service Answer Center
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne
    You may need to change the country when you get to the page.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • DMS - file name and extension

    Hi everybody,
    I will appreciate if somebody could tell me how to read the file name and extension of already uploaded to DMS document (a function module will be best but name of db table is ok too). Is this information stored in SAP DB at all?
    Thanks
    Ogniana

    Check
    http://help.sap.com/saphelp_erp2004/helpdata/en/c6/893d55449311d1893e0000e8323c4f/content.htm
    Regards,
    Santosh

  • DMS  for FI and CO

    Hi Sapians
    In which case Document Management System (DMS) is useful for FI and CO module, please write in detail.

    na

  • Clarification of background processing and BAPI_DOCUMENT_CREATE2

    Hello,
    i am sorry to mention this long discussed topic,
    but i would very appreciate to clarify how can i checkin new originals for a new document using background processing.
    we are trying to use BAPI_DOCUMENT_CREATE2 to create a document and checkin original from a network path +
    server\file.pdf+ .
    i have read that i should add the path in AL11 - did it, how should i use it?
    i have read that i should use the SAPFTPA & SAPHTTPA parameters when calling the function - i have these in SM59 and the connection test is successful - but what should i do with them?
    will be very thankful for your help.
    here's an example from our code:
      call function 'BAPI_DOCUMENT_CREATE2'
        exporting
          documentdata         = ls_doc
         pf_ftp_dest          = 'SAPFTPA'
         pf_http_dest         = 'SAPHTTPA'
        importing
          documenttype         = lf_doctype
          documentnumber       = lf_docnumber
          documentpart         = lf_docpart
          documentversion      = lf_docversion
          return               = ls_return
        tables
          documentdescriptions = lt_drat
          objectlinks          = lt_drad
          documentfiles        = lt_files.

    Hi,
    Populate the document original information according as per below guideline.
    The tables 'DOCUMENTFILES' contain the entries about originals that you you want to allocate to the document. The meanings of the structure fields are:
    'SOURCEDATACARRIER': Data carrier name (optional) of a server on which
                         an original is stored
    'STORAGECATEGORY':   Name of the data carrier that you want to check
                         original into. The function module determines the
                         storage type, SAP Database, vault, or archive
                         using the name  of the data carrier.
    'DOCFILE':           File name of the original
    'WSAPPLICATION':     Name of the workstation application. This entry is
                         necessary when no workstation application has been
                         assigned to the document info record or the new
                         original is of another type.
    Regards
    Keerthi

  • DMM/DMS Ldap integration and filters

    We have our DMM 5.2.1 integrated into a Microsoft Ldap environment.  It makes the connection to ldap,  but I can't seem to get any users imported.  Do I need a filter?  If so,  can I get an example different from the one in the manual?  my setup looks like this:
    Base DN:   CN=dms users,OU=applications,OU=security,DC=site,DC=lcl
    filter:  CN=*
    all of my users are in the dms users CN,  but none show up even though the filter is validated.
    Any suggestions would be appreciaited.
    Thanks,
    Ben

    Please ignore.  An appliance reboot of the SNS and DMM servers resolved this issue....

  • Link between DMS DIR's and Storage Category

    Hello Experts,
    How can i link DMS Document type to Storage category?
    I have a requirement of storing different DIR document type in different storage category so can you please inform me in which transaction i need to assign Document types with content category.
    -Thanks,
    Ajay

    Hi Christoph,
    To understand more on the Storage category configuration -
    At present there are 10 Document type which is having common Storage category and it will be selected as default when user create DIR's and attach documents to it.
    My question is - Is it  hardcoded in program of use common storage category? OR is there any place for configuration (Transaction code)?
    -Thanks,
    Ajay

  • SAP DMS - Content Server and Unicode - What is effect on size?

    We know that unicode conversion will cause the database to grow in size. I understand that this will apply to the SAP tables with data and metadata etc. The question is whether the actual content (drawings, Word, Excel and PDF documents etc) that are stored in the Content Server will also cause database growth when Unicode conversion is done. We have customers who have large Content Servers in their DMS landscape, and the actual documents are by far the largest part of the size.
    Kind Regards - Frank

    Hi,
    although this thread is very old, there might be still people reading it ...
    The Unicode conversion actually converts character like data only. And documents are usually stored as binary data ... hence the size of those objects does not change.
    Best regards,
    Nils Buerckel

  • Dms for PM and QM

    dear all
    i want the t-codes and locations where documents can be attached to PM and QM module.........
    Regards
    surya

    Hi Surya
    Following are the standard Object available for linking it to SAP DMS. for SAP PM and SAP QM.
    ANLA Asset Master
    CMQMEL Claim
    CRVS_B Prod.Resource/Tool
    EQUI Equipment Master
    ESTLP Report Variant
    IFLOT Functional Location
    IMPTT Measuring Points
    IRLOT Reference Location
    MARC Plant Material
    QINF QM Info Record
    QMQMEL Quality Notification
    QMTBDOC Inspection Methods
    QVDM QM Info Record: SD
    Apart From these standard Object if you want any other SAP Standard Object please check this link which gives idea about the developeemnt needed
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/b2/c043a66fab11d1949500a0c92f024a/content.htm
    Need any more help,please let me know.
    With Regards
    Mangesh Pande
    Edited by: MANGESH PANDE on May 25, 2009 12:02 PM

  • DMS-KM connector and active version in DMS

    I was wondering if it possible to bring back only the active version of a document using the DMS connector?? We created a varient but do not see anywhere to specify that we only want to Active version to be returned... so for each document we get every version...
    Cheers,
    Derek

    Hi Derek,
    if this is not a configuration option in the DMS repository manager, does it at least return a KM property for "active=yes/no" or similar?
    If it does that, you could implement your own repository filter on that basis or access the DMS resources via query-based taxonomies that either do or do not allow certain values for that property.
    Regards,
    Karsten

  • DMS Object Link at Maintenence Order and Service order level

    Hi SAP Gurus,
    We had a requirement for maintaining DMS Object at Service order and maintenence order level, as Standard DMS does not provide any Standard Object link at Order level, we went for development and following the Standard procedure i could bring the Order Tab in CV01N Object Links, and also i could search the relavent maintenence order and maintain documents relevant to it,
    But the biggest problem now is i could not create DIR from the Maintenence or service order screen IW31, and the document i have placed at the order is not visible in the order screen at all,
    i know it is some sort of enhancement in the Order screen to allow DMS Documents to appear in the Order screen to provide this funtionality.
    let me pls know what exactly has to be done, as there is no config at the order level to get the DMS Screen, as DMS is not a standard object at the order level.
    one approch as suggested is modifiying the Order screen or using Screen Exit Enhancement for Order but not sure which one to use or how to move ahead,
    Thanks n Regards
    Priya S

    Dear Christoph Hopf
    Many Thanks for your answer,
    i went through the said SAP Note, but it only speaks about the notifications level, where SAP itself has provided the standard DMS Object links, and iam in latest ECC-6 version where this note  is taken care of i think,
    iam looking for creating DMS Document (DIR) from the maintenence Order IW31 transaction screen, and have developed new Object link for Maintenence order,
    but the main problem is, iam not able to create DIR from the IW31 Screen directly as Maintennce order is not a standard SAP Object,
    please let me know how to get the list of documents that i have attached to a maintenence order to appear in the IW32 maintenence order screen, and also we need to create the documents (DIR) directly from IW31 / 32 screens.
    Thanks and Regards,
    PriyaS
    Edited by: Priya S on Aug 19, 2009 1:50 AM
    Edited by: Priya S on Aug 20, 2009 1:54 AM
    Edited by: Priya S on Aug 24, 2009 6:24 PM

  • DMS and Filenet

    Hi! All,
    We have a requirement at work which is to create PO attachments at the PO Item level.  I'm new to DMS and I've read that DMS can be integrated with Filenet via SAP Archivelink and we already made several config changes in Archivelink and DMS.  Here are my questions:
    1) I noticed that business documents can be attached via "Services for Object" in the DMS txn (CV01N and CV02N).  Id this the proper way?  Also, the document is always in ALF format.  How can this be changed to DOC or XLS?
    2) Any ideas on how to attach a document to PO item level using DMS and Filenet?
    Thank you all for your help.
    TM

    Hai,
    Acsap is used to connect the filnet, this is the filenet component for SAP - you have to pay it extra.
    Regards,
    Keerthika

  • DMS storage and structure

    Hi
    1) How to attach the GOS PC attachment with PO document using DMS
    2)Where and how the attachment is stored in DMS?
    Can I assume DMS is nothing but like SAP server where u store the attachments in DMS format.
    Pls suggest me
    Regards
    Ckumar

    Hi Christoph
    Thanks for your reply.
    I want to store GOS attachment at header level for SAP document(PR) in DMS scenario.
    Can you elaborate me bit more about Archive link. How its stored in DMS scenario
    pls correct my understanding if wrong.
    Using GOS scenario/attachment in header level
    1) I believe if i am attaching some file(pdf or doc)  to PR/PO document using GOS, the file is stored in
    SAP db table(table SRGBTBREL & SOOD) by default
    2) In case of DMS scenario, what happens with respect to attachment file and storing part.
    I observed only original files(min 2) attached in item level can only be managed or stored in DMS scenario(in sap file server/Content sever). To do this we need to configure DMS setting(DC10,20,30) in ERP system.
    I want to know how GOS attachment is stored physically and managed by archivelink.
    pls shed light on this.
    Regards
    ckumar
    Edited by: princeck on Nov 14, 2010 1:10 PM
    Edited by: princeck on Nov 14, 2010 1:21 PM

  • DMS Connector and DMS Search Problem

    Hi all,
            We have a requirement of connectiing DMS with KM.I have installed DMS Business Package and Configured Repository Manager.Here are the Details
    Description: DMS Repository Manager
    Prefix (must start with /):/dmsrm
    Repository Services:comment,discussion,feedback,layout,personalnote,properties,rating,statemngt
    Property Search Manager:< If i set this too CM Search Manager,in Document Explorer it is throwing an error "Uable to find the Repository Manager"
    Versioning Manager:Blank
    Security Manager:    Not Set
    ACL Manager Cache:   Not Set
    Windows Landscape System:   Blank
    Lock Manager:   com.sap.pct.plm.dmsrmconnectorforkm.DMSRMMutableLockManager
    ReadOnly:   No
    ShowClassification:   Yes
    ShowObjectsLinks:   Yes
    ResourceValidity:   30000
    StorageCategory:   ZHTTPPRD
    SystemAlias:   SAP_DMS
    VariantPrefix:   KM
    Now if i dont set the Property search Manager,i can bring all the documents from DMS system.But iam not able to search the document,while indexing it is throwing an error (Retrieval Error).
    If i set the Property search manager,In document Explorer it is throwing an error ( Unable to find the repository Manager).
    Anybody having any clue on this,Plz do give me a solution for this.
    Will reward with the Points.
    Regards
    Santosh Saraf

    Hi John,
    the performance issue is not the TREX search. In most cases it takes long time to check if the user have at least read permissions to the document listed in the search result list. That's why it takes more time to display 20 hits than 5 hits.
    Using more or less repository services doesn't change ther performance for the search result.
    Using a user with Content Administrator permission must have the best performance because in this case ther document permissions are not checked.
    To improve the performance you can try to use a ACL cache or increase the size of the ACL cache.
    Best Regards
    Frank

Maybe you are looking for

  • How do i connect 7.1 speakers to my macbook pro

    Hi, so i have some 7.1 creative gigaworks s750 speakers http://uk.creative.com/corporate/pressroom/releases/detail.asp?ref=11537 I used to have them connected to a soundcard which slotted into my old laptop about 2 years ago but havent used them sinc

  • Installing OWB 10.2.0.1 Unable to start Repository Assistant  in XP

    I've just installed OWB 10.2.0.1 on am XP machine with Oracle 10G running. I've used a different home as recommended. The application will not respond at all. I can't get the Repository Assistant to work among other issues. I just finished the instal

  • TimeSync Not working - Second post - eager for help..

    Configured the "Use a Network Time Server" in the Date & Time of the Control Panel. In the "Server Options" we have specified the iBook to use the Novell server's ip address for the timeserver. If you click "Set Time Now" it correctly gets and sets t

  • Get redo sequence number against SCN

    hi all, environment is oracle 10gr2(10.2.0.5.0)... 1 PROD Server 1 DR Server (Dataguard Configuration) 1 Reporting Server (replication is configured via oracle streams on some large tables....) Due to shortage of disk space i need to remove archivelo

  • Diagnostic Reporter Output Format?

    Hello; I've just begun working with the Diagnostic Reporter piece that comes with the StorEdge 3x00 software, and I've generated reports and notifications in both XML and non-XML format. I have no XML experience; when I receive the report in XML form