DMS Document stored in SAP DB: Not shown in SAP PLM Web UI

Dear Team,
Is it by design that DMS documents which are stored in SAP DB are not shown in WEB UI...
I get and error on the display document that " KPRO unchecked "
how ever in ECC i can see the document with originals and thumbnails and complete DIR..
Thanks for advice...!
Best regards,
Shashikumar BS

Hi,
Please check if a storage category is maintained in your system. You can use the Content Server (KPRO) storage type. Launch transaction DC10 and choose the
relevant document type which you use. Display its details and you will find a flag called ‘Use KPRO’. Flag it to use the KPRO storage type which is recommended by SAP. You can manage your storage categories and KPRO settings by transaction CSADMIN
Best regards
Tamas

Similar Messages

  • Block deleting DMS Document from user that is not initiator

    Hi All
    Hello
    I Want to Block deleting DMS Document ((CV02N)
    form all users that are not the initiators of the Document or
    Bolcking for all user
    for that I created new user authrization for CV01N,CV02N
    without authorization for delete
    I created a DOC in SPS (production) No 3001591
    but I successed to delete the doc through cv02n
    in the buttom icon for delete original
    There is an option to block any user or specific form delete document ?
    If there is no option for that there is an user exit that I can used ?
    Thanks in advanse for your help

    Hello,
    it is possible to extract DMS's file to application server directory:
    FUNCTION Z_DMS_VIEW.
    ""Interfase local
    *"  IMPORTING
    *"     VALUE(DOC_NUMBER) LIKE  BAPI_DOC_DRAW2-DOCUMENTNUMBER OPTIONAL
    *"     VALUE(DOC_PART) LIKE  BAPI_DOC_DRAW2-DOCUMENTPART OPTIONAL
    *"     VALUE(DOC_TYPE) LIKE  BAPI_DOC_DRAW2-DOCUMENTTYPE OPTIONAL
    *"     VALUE(DOC_VERS) LIKE  BAPI_DOC_DRAW2-DOCUMENTVERSION OPTIONAL
    *"     VALUE(ORIGINAL_PATH) LIKE  BAPI_DOC_AUX-FILENAME OPTIONAL
    *"  EXPORTING
    *"     VALUE(P_RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
    *"  TABLES
    *"      DOC_FILES STRUCTURE  BAPI_DOC_FILES2 OPTIONAL
      CLEAR:   doc_files.
      REFRESH: doc_files.
      DATA: i_doc_files like bapi_doc_files2.
    DATA: i  type i.
    i = 2.
    while i = 2.
       i = 2.
    endwhile.
      CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
        EXPORTING
          DOCUMENTTYPE    = DOC_TYPE
          DOCUMENTNUMBER  = DOC_NUMBER
          DOCUMENTPART    = DOC_PART
          DOCUMENTVERSION = DOC_VERS
          DOCUMENTFILE    = i_doc_files
          GETSTRUCTURE    = '0'
          GETCOMPONENTS   = 'X'
          ORIGINALPATH    = ORIGINAL_PATH
          HOSTNAME        = ' '
          GETHEADER       = 'X'
          PF_HTTP_DEST    = 'SAPHTTPA'
          PF_FTP_DEST     = 'SAPFTPA'
        IMPORTING
          RETURN          = P_RETURN
        TABLES
          DOCUMENTFILES   = DOC_FILES.
    ENDFUNCTION.
    ORIGINAL_PATH must be a directory of application server.
    By background is not possible (I don't know how can we do that) download thsi file to PC.
    Then with the file in application server we can :
    - to map application server directory in a drive unit of Pc
    - to transfer with a ftp client from Pc
    - rfcexec
    But always the bapi can not download the file: it must be a process in Pc who transfer the file.

  • Pipeline URL in SLD not shown in SAP PI

    Hello PI-gurus,
    I've got a problem with the SLD PipeLine URL data of a Business System and the SAP PI Integration Engine Configuration Data.
    I've changed in SLD the name of the Pipeline URL in the Integration tab
    of the Business System of SAP PI. Saved the entry and after restarted SLD and SAP PI Istill see in SAP PI the wrong (old) name.
    When I perform in SAP PI (SXMB_ADM) the Global Configuration Data and
    do a System Landscape - Load Configuration the wrong (old) entry is set in
    SAP PI. When I look in SLD the name of the Pipeline URL is correct.
    I've also refreshed all the caches in de exchangeProfile and also in the ID en IR.
    Please advise.
    Best regards,
    Mike Laanen

    The RFC between SAP PI and SLD is working correct, an other strange thing is that the sldcheck provides the same wrong (old) name in the section:
    Calling function LCR_GET_BS_DETAILS
    Retrieving data from the SLD server...
    Function call terminated sucessfully
    Details of own business system TXE100
      caption = TXE100
      product = SAP NETWEAVER
      IS-URL  = http<b>:/</b><host>:<port>/sap/xi/engine?type=entry
    Regards,
    Mike Laanen

  • Reading Characteristics of a DMS Document if the one does not exist yet

    Hi,
    Whenever a document is created with classification from transaction CV01N, an entries is being made into the tables of DB for the entered classification of the document. In this case I can get the characteristic values of document classification from within the BAdI method (for example DOCUMENT_MAIN01~BEFORE_SAVE) by selecting from DB table.
    Is there any way for read the document classification from within method DOCUMENT_MAIN01~BEFORE_SAVE before the actual save of document (corresponding entries does not exist in DB table)?

    Nemesis wrote:
    The original table t_data contains data which is normally deleted after 45 days, but it also stores data which is used for demonstration purposes by consultants, and which should not be deleted with the rest.
    Truncating would delete all the data in the table t_data, but the problem is that a subset of the data must be retained in the table. This means that either I adapt the purge code on this table not to delete the required data, or I displace the data that must be saved until the purge is done and then reinsert it into t_data...Choice 1:
    Use partitioned tables. Store the "temporary" data in partitions that can be deleted and the consultants demo data in another partition that doesn't get truncated.
    Choice 2:
    Have two similarly structured tables that store the two types of data so that one table can be truncated as required and the other maintains the data. Use a view on top of the tables to union the data to appear as one "table" for use in the application.
    As already mentioned by others, creating tables at run time is just wrong. It's poor design, it's not scalable and it leads to dynamically generated queries which can inherently have bugs that will not be apparent until run-time and sometimes only under certain conditions, thus leaving your code very liable to break and very difficult to debug.
    Global Temporary tables are what are generally used for temporary storage of data within a transaction or a session if they suit, but it sounds as if you need the data retention across sessions with truncate option available as required on partial data. That is one of the purposes of partitions on tables... or of course go for the two table and view option if you haven't paid for partitioning in your licence.
    Edited by: BluShadow on Dec 22, 2009 8:33 AM
    LOL! Billy posted whilst I was typing. p.s. Glad to see you got your Ace badge Billy. Well deserved.

  • Documents stored in iCloud will not open on Macbook applications

    None of the iwork apps; Keynote, Pages, or even Preview will open documents that were saved in icloud. They will open on my iPad, but when i try to open them on my mac, it says "the file ' ' .pages cannot be opened."  I have tried closing and reopening the applications on my computer. I have tried opening various documents but none of them will open. Does anyone know why this would be happening?

    Found a solution on another thread from back in 2012.  Wanted to give credit where credit was due, so here you go:

  • SAP GUI not working with SAP* and DDIC default passwords

    Hi SAP Guru's ,
    at last I installed the SAP ECC6.0 on Windows 2003 (stand alone) with Oracle 10G database.
    I installed the SAP GUI , when I am trying to loging from SAP GUI clients 000 and 001 with SAP* and DDIC user accounts I am naot able to login . please give me the how to configure this .
    thanks in advance
    Edited by: srinivas kaveti on Apr 4, 2008 9:16 PM

    Hi Srinivas,
    You should set "login/no_automatic_user_sapstar=0", in the SAP profile. With ECC 6.0, default sapstar user deactivated. You can take a look at OSS note #68048, for detailed information.
    Best regards,
    Orkun Gedik

  • Dynamic Images not shown on report in web farm environment

    I have a custom ASP .NET application running reports on XIR2 platform using the .NET WCA.  This is in a web farm environment.  Reports with images do not reliably work.  It appears that the WCA temp image handler cannot see the files if my session fails from one server in the farm to the next.  I'm looking to move the temp images location to an external file share so that all servers will see it.  Changing the value in web.config for the temp images directory did not work.  Tomorrow I will test changing the registry setting, but I wonder if anyone has any tips?
    Chris

    Hi, Ted,
    I am not the application developer, but rather the server administrator.  I know that the applications are NOT using viewrpt.cwr.  I can not state with confidence that they are using the CR .NET Web Forms viewer.  I know that some of our applications show their reports in the ActiveX Viewer, and some use the DHTML viewer.  The following is the code (in the aspx page) that is used to execute the report (I hope it helps):
              void ViewerSetting()
                        try
                             bool bHasRefreshButton =Request.QueryString["bRefresh"]=="Y"?true:false;
                             bool bHasToggleGroupTreeButton=Request.QueryString["bToggleGroupTree"]=="N"?false:true;
                             bool bHasZoomFactorList=Request.QueryString["bZoomFactor"]=="N"?false:true;
                             bool bDisplayGroupTree=Request.QueryString["bGroupTree"]=="N"?false:true;
                             bool bBestFitPage =true;
                             bool bDisplayBottomToolbar =Request.QueryString["BottomToolbar"]=="N"?false:true;
                             bool bHasCrystalLogo =Request.QueryString["CrystalLogo"]=="N"?false:true;
                             bool bHasExportButton =Request.QueryString["ExportButton"]=="N"?false:true;
                             bool bDisplayToolbar =Request.QueryString["Toolbar"]=="N"?false:true;
                             bool bHasGotoPageButton=Request.QueryString["GotoPageButton"]=="N"?false:true;
                             bool bHasSearchButton =Request.QueryString["SearchButton"]=="N"?false:true;
                             string sPrintMode=Request.QueryString["PrintMode"]==null?ConfigurationSettings.AppSettings["PrintMode"].Trim():Request.QueryString["PrintMode"].ToString();
                             crystalReportViewer.HasRefreshButton=bHasRefreshButton;
                             crystalReportViewer.HasToggleGroupTreeButton=bHasToggleGroupTreeButton;
                             crystalReportViewer.HasZoomFactorList=bHasZoomFactorList;
                             crystalReportViewer.DisplayGroupTree=bDisplayGroupTree;
                             crystalReportViewer.BestFitPage=bBestFitPage;
                             crystalReportViewer.DisplayBottomToolbar=bDisplayBottomToolbar;
                             crystalReportViewer.HasCrystalLogo=bHasCrystalLogo;
                             crystalReportViewer.HasExportButton=bHasExportButton;
                             crystalReportViewer.DisplayToolbar=bDisplayToolbar;
                             crystalReportViewer.HasGotoPageButton=bHasGotoPageButton;
                             crystalReportViewer.HasSearchButton=bHasSearchButton;
                             if (sPrintMode.ToUpper() =="ACTX")
                                  crystalReportViewer.PrintMode=CrystalDecisions.Web.PrintMode.ActiveX;
                             else
                                  crystalReportViewer.PrintMode=CrystalDecisions.Web.PrintMode.Pdf;
                        catch {}
                   void SetParameterandViewReport()
                             try
                                  ViewerSetting();
                            string sServer = ConfigurationManager.AppSettings["APSServer"].Trim();
                            string sUser = ConfigurationManager.AppSettings["APSUser"].Trim();
                            string sPassword = ConfigurationManager.AppSettings["APSPassword"].Trim();
                            string sAuthType = ConfigurationManager.AppSettings["APSAuthType"].Trim();
                                  string sReportName = Request.QueryString["ReportName"];
                                  EnterpriseSession ceSession;
                                  EnterpriseService ceEnterpriseService;
                                  InfoStore ceInfoStore;
                                  InfoObjects ceReportObjects ;
                                  InfoObject ceReportObject ;
                                  CrystalDecisions.Enterprise.Desktop.Report  ceReport;
                                  ParameterFields  ceParameterFields;
                                  ParameterField ceParameterField;
                                  ReportParameters ceParameters ;
                                  ReportParameter ceParameter ;
                                  ParameterDiscreteValue ceParameterDiscreteValue;
                                  SessionMgr ceSessionMgr= new SessionMgr();
                                  if ( Session ["ceSession"] == null)
                                       ceSession = ceSessionMgr.Logon(sUser, sPassword, sServer, sAuthType);
                                       Session ["ceSession"]=ceSession;
                                  else
                                       ceSession = (EnterpriseSession) Session ["ceSession"];
                                  ceEnterpriseService = ceSession.GetService("InfoStore");
                                  ceInfoStore = new  InfoStore(ceEnterpriseService);
                                  string sQuery = "Select * From CI_INFOOBJECTS Where SI_PROGID = 'CrystalEnterprise.Report' AND SI_Name='" + sReportName + "' And SI_INSTANCE=0";
                                  ceReportObjects = ceInfoStore.Query(sQuery);
                                  if (ceReportObjects.Count <1 )
                                       lblMessage.Text="Please check your reportName";
                                       lblMessage.Visible=true;
                                       return ;
                            ceReportObject = ceReportObjects[1];
                            ceReport = (CrystalDecisions.Enterprise.Desktop.Report)ceReportObject;
                            ceParameters = ceReport.ReportParameters;
                            ceParameterFields = new ParameterFields();
                                  if (ceReportObjects.Count > 0)
                                       ceReportObject = ceReportObjects[1];
                                       ceReport  =(CrystalDecisions.Enterprise.Desktop.Report) ceReportObject;
                                       ceParameters = ceReport.ReportParameters;
                                       ceParameterFields = new ParameterFields();
                                       string sParamName="",sParamValue="";
                                       string sPrompt="";
                                       for (int i=1; i <= ceParameters.Count; i++ )
                                            sPrompt="Prompt"+(i-1).ToString().Trim();
                                            ceParameter =ceParameters<i>;
                                            sParamName=     ceParameter.ParameterName.Trim();
                                            sParamValue= Request.QueryString[sPrompt]==null?"": Request.QueryString[sPrompt];     
                                            ceParameterField = new ParameterField();
                                            ceParameterDiscreteValue = new ParameterDiscreteValue();
                                    ceParameterDiscreteValue.Value = sParamValue;
                                    ceParameterField.CurrentValues.Add(ceParameterDiscreteValue);
                                            ceParameterField.Name = ceParameter.ParameterName;
                                            ceParameterField.ParameterValueType = ParameterValueKind.StringParameter;
                                            ceParameterFields.Add(ceParameterField);
                                       crystalReportViewer.ParameterFieldInfo = ceParameterFields;
                                       crystalReportViewer.EnterpriseLogon = ceSession;
                                       crystalReportViewer.ReportSource = ceReportObject;
                                          crystalReportViewer.Visible = true;
                             catch (Exception ex)
                                  lblMessage.Text = ex.Source + ex.Message + ex.StackTrace; 
                                  lblMessage.Visible=true;
    Thanks,
    Chris Peet

  • Documents stored in SAP or third party (open text)

    Hi,
    Please point me to the right forum if this is not the correct place to ask this type of question.  Also, please forgive my ignorance as I am new to BDN.  I have searched the forums and SAP help and cannot find my answers.
    1.  Where are documents stored when using transaction OAER/OAOR?  SAP tables or 3rd party system?
    2.  Where would this be configured?
    Any help will be greatly appreciated.
    Best Regards,
    Rick

    Hi Rick,
    Believe you have posted your thread in the right forum!!
    1. Where are documents stored when using transaction OAER/OAOR? SAP tables or 3rd party system?
    2. Where would this be configured?
    The documents via Business Document Navigator(OAOR) can be stored either in
    SAP database(not recommended though) or
    on a Content Server/3rd party system.
    It all boils down to your expectations/requirements from the solution.
    Further,Archivelink solution needs to be turned on/configured to enable these features.Pls search using Archivelink keyword on this forum for details.
    Regards,
    Pradeepkumar Haragoldavar

  • DMS Document not getting created thru Webdynpro ABAP Strange Problem

    Dear all,
    My requirement is that I have a Webdynpro ABAP application sitting on SAP Server1 and I am having a FileUploadUI Element in there for uploading files and we have SAP Server2 with the DMS configured. So, what we have done is we have an RFC in SAP Server2 and we are calling it from our webdynpro ABAP application sitting on SAP Server1. And we are calling BAPI_Create2 with all the necessary parameters in this RFC to create the DMS document with the file from webdynpro ABAP application. But its not working. I am passing the Presentation Server File Path of the File to the BAPI_create2.Even if I write the file to the application server of SAP Server2 and then pass this file path to the BAPI_Create2 then also it doesn't work but when I execute this RFC locally in the SAP Server2 with the presentation server file path It executes successfully.
    I don't know what I am missing.
    Please help.
    Thanks and regards,
    --Sonal

    Dear Thomas,
    Suppose I have got the file copied to the application server in SAP Server2 using datasets from WDA in SAP server1.
    Now I have an RFC say ZFILE_UPLOAD in SAP Server2 for which we have made an SAP ABAP RFC Connection from SAP Server1. In this RFC I am calling BAPI_create2 using the application server filepath(of SAP Server2) in docfile parameter along with ur suggested destination then also it doesn't work. Gives an error that "error in storing and checking file" i.e. Error 253.
    One more query how to handle the file upload of different file types say I am uploading a pdf file from my webdynpro abap application in SAP server1. Then I get the xstring and pass it to ZFILE_UPLOAD and convert it into binary and write it there in SAP Server2 using datasets. Is it possible to upload any kind of file and then creating the DMS document out of it?
    and how to call this RFC?
    Thanksn and regards,
    --Sonal

  • Moving documents stored in NW04 internal DMS to external content server ...

    Hi all !
    is it possible to move documents, stored in NW04s databse (DMS) to an external content server;
    we want to swap all documents to an content server;
    thanks
    oliver

    Hi,
    We have to do the following post install activities to connect to Content server from DMS.
    On SAP Systems (ECC) using CSADMIN t-code we have done the following post installation steps to check whether  Content Server is reachable from SAP system.
    When use hit CSADMIN option on the screen
    Here we need to uncheck the Check Signature check box as we are not using certificates.
    Here we need to give HTTP server (Content Server ) info like host name and the port number service is(1090) running.
    2.  Using OAC0 t-code create Repository on SAP system (ECC)
    Then from here Hit  CS ADMIN to create rep on Content Server.
    Thnaks,
    Tanuj

  • DMS Document Management - Storing Documents at Unix Level

    Hi all,
    I've created a DMS prototype, SAP 4.6C custom ABAP program which calls BAPI_DOCUMENT_CREATE2, which works great. It stores a link to a networked path + file, i.e. X:\folderA\doc1.dat but not the document itself.
    Now, we wish to do the same but store the documents on the SAP unix server but outside of R3 because the number and size of documents is considerable. We want to link the document, i.e. /sap/dms/doc1.dat but not load the document into R3. It is not working and believe problem is as per below.
    Question #1
    1. What does the data carrier section of config look like for Unix document storage? (IMG/CAC/DMS/General Data/Define Data Carrier)
    2. What does the storage system section of config look like for Unix document storage?(IMG/CAC/DMS/General Data/Settings for Storage System)
    3. General question - How is the storage system related to the data carrier?
    Please feel free to point me to documentation as what I've seen so far is vague or unrelated.
    Thanks in advance,
    Dave
    [email protected]

    HI,
    Please see the below link if give some help.
    http://www.sap-img.com/sap-dms.htm
    http://www.sap.com/solutions/business-suite/plm/pdf/BWP_Document_Management.pdf
    Regards,
    Anil

  • DMS Document is not opening in ITS screen

    Hi All,
    We are on EP 7. 0 SP 17 & ECC 6.0.
    Our HODs are approving PO's and PR's through Portal through UWL. But when they are opening a PR or PO with DMS document
    attachment, the attachment file is not opeing in ITS screen.
    Thanks & Regards,
    Bharat Mistry.

    Hi Bharat,
    Have you tried to execute the same t-code in the WEBGUI directly? The result is the same? You can check SAP note 1058218 (ITS Up/Down: open document with application directly) too (I don't the SAP_BASIS version from your backend system).
    You also need to be sure that the document you are trying to open is in the app server and not in a local PC (via network drive): this will not work.
    Regards,
    Cristiano

  • Not able to upload file in DMS(Document Mang. system) using Web dynpro ABAP

    Hi All,
    I am facing a problem while uploading the file into the DMS ( Document Management System ) from Webdnrpo .
    I am using the BAPI - BAPI_DOCUMENT_CREATE2 to create the document .
    CASE - 1
    when i am providing the storage category mention below and no data carrier1
    ls_documentfiles-storagecategory = 'ZHMEL_CS'.  it is not able to upload the document in the DMS system and when i check
    in the debugg mode it giving error as  ""Error while checking in and storing: C:\TEST.TXT "" .
    CASE - 2
    When i am not using the storage category and providing the the data carrier as default
    ls_documentdata-DATACARRIER1 = 'DEFAULT'. It is able to create the document in the DMS but i am not able to read that document .
    I checked with DMS Consultant that DMS is configured for  ZOL ( documenttype) with a storage category  as 'ZHMEL_CS'.
    The code which i have used is below :
    ls_documentdata-documenttype = 'ZOL'.
    ls_documentdata-documentversion = '00'.
    ls_documentdata-documentpart = '000'.
    ls_documentdata-description = 'Test Document'.
    ls_documentdata-laboratory = '001'.
    ls_documentdata-WSAPPLICATION1 = 'TXT'.
    ls_documentdata-DOCFILE1 = 'C:\TEST.TXT'.
    ls_documentdata-SAVEDOCFILE1 = 'C:\TEST.TXT'.
    *ls_documentdata-FILESIZE1 = 000000000000.
    *ls_documentdata-FILESIZE2 = 000000000000.
    ls_documentdata-WSAPPLICATION1 = 'TXT'.
    ls_documentfiles-DOCUMENTTYPE = 'ZOL'.
    ls_documentfiles-DOCUMENTPART = '000'.
    ls_documentfiles-DOCUMENTVERSION = '00'.
    ls_documentfiles-storagecategory = 'ZHMEL_CS'.
    ls_documentfiles-WSAPPLICATION = 'TXT'.
    ls_documentfiles-DOCPATH = 'C:\'.""lv_filename.
    ls_documentfiles-DOCFILE = 'TEST.TXT'."lv_filename.
    ls_documentfiles-description = 'Test Document'.
    ls_documentfiles-language = 'EN'.
    ls_documentfiles-CHECKEDIN = 'X'.
    APPEND ls_documentfiles to lt_documentfiles .
    *&----Fill Descriptions
    w_descr-language = 'EN'.
    w_descr-language_iso = 'EN'.
    w_descr-description = 'Test'.
    append w_descr to lt_descr.
    clear w_descr.
    **w_hostname = 'HMEL-DV1R3_DR3_00'.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
    EXPORTING
    documentdata = ls_documentdata
    *hostname = 'content-srv'
    *pf_http_dest = 'SAPHTTPA'
    *pf_ftp_dest  = 'SAPFTPA'
    IMPORTING
    DOCUMENTNUMBER = lv_DOCUMENTNUMBER
    return = gv_return
    TABLES
    documentdescriptions       = lt_descr
    documentfiles              = lt_documentfiles.
    Please let me know your valuable inputs on the same ..
    Edited by: Omm Awasthi on Dec 30, 2010 12:22 AM
    Edited by: Omm Awasthi on Dec 30, 2010 12:25 AM

    Hi omm , from functional side your require a document type and content repository
    I have used below code in a function module to create document , we have create object link as PO to the doc.
    FUNCTION ZFM_SR_CREATE_FROM_EXTERNAL .
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(IV_DOCUMENTNUMBER) TYPE  DOKNR OPTIONAL
    *"     VALUE(IV_DOCUMENTTYPE) TYPE  DOKAR OPTIONAL
    *"     VALUE(IV_DOCUMENTVERSION) TYPE  DOKVR OPTIONAL
    *"     VALUE(IV_DOCUMENTPART) TYPE  DOKTL_D OPTIONAL
    *"     VALUE(IV_STORAGE_CAT) TYPE  CV_STORAGE_CAT OPTIONAL
    *"     VALUE(IV_DOKST) TYPE  DOKST OPTIONAL
    *"     VALUE(IT_DM_FILES) TYPE  ZDM_TT_FILES OPTIONAL
    *"     VALUE(IV_EBELN) TYPE  EBELN
    *"  EXPORTING
    *"     VALUE(EV_DOCUMENTNUMBER) TYPE  DOKNR
    *"     VALUE(ES_RETURN) TYPE  BAPIRET2
    V00.00  DD.MM.YYYY                                                   *
    *********************New Method of Uploading File*********************************
      CONSTANTS path_name    TYPE dms_path
               VALUE '/tmp/'.
      CONSTANTS log TYPE dms_path VALUE '/tmp/logFO.txt'.
      DATA: ls_draw TYPE bapi_doc_draw2,
            lt_documentfiles TYPE TABLE OF bapi_doc_files2,
            ls_documentfiles TYPE bapi_doc_files2,
            ls_dm_files TYPE zdm_files,
            lv_filename TYPE string,
            lv_ext TYPE string,
            lv_file_type TYPE draw-dappl,
            lv_file_name TYPE dms_path,
            lv_msg(80) TYPE c,
            lt_objectlinks TYPE TABLE OF bapi_doc_drad,
            ls_objectlinks TYPE bapi_doc_drad,
            lv_ebelp   TYPE ebelp
    Prepare Data
      MOVE iv_documentnumber TO ls_draw-documentnumber.
      MOVE iv_documenttype TO ls_draw-documenttype.
      MOVE iv_documentversion TO ls_draw-documentversion.
      MOVE iv_documentpart TO ls_draw-documentpart.
      ls_draw-statusextern = iv_dokst.
      ls_draw-statusintern = iv_dokst.
      ls_draw-username = sy-uname.
      LOOP AT it_dm_files INTO ls_dm_files.
        SPLIT ls_dm_files-filepath AT '.' INTO lv_filename lv_ext.
        CALL FUNCTION 'CV120_DOC_GET_APPL'
          EXPORTING
            pf_file   = ls_dm_files-filepath
          IMPORTING
            pfx_dappl = lv_file_type.
        TRANSLATE lv_file_type TO UPPER CASE.
        OPEN DATASET log FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
        TRANSFER lv_ext TO log.
        ls_documentfiles-wsapplication = lv_file_type.
        TRANSLATE ls_documentfiles-wsapplication TO UPPER CASE.
        CONCATENATE path_name
                           lv_filename
                            lv_ext
                            INTO lv_file_name.
        CONDENSE lv_file_name  NO-GAPS.
        TRANSFER lv_file_name TO log.
        OPEN DATASET lv_file_name FOR OUTPUT IN BINARY MODE MESSAGE lv_msg.
    *Transfer Attachment Content to Application Server
        TRANSFER ls_dm_files-content TO lv_file_name.
        CLOSE DATASET lv_file_name.
        TRANSFER 'move data to lt_files' TO log.
        ls_documentfiles-storagecategory = iv_storage_cat.
        ls_documentfiles-docfile = lv_file_name.
        ls_documentfiles-DOCUMENTVERSION = IV_DOCUMENTVERSION.
        APPEND ls_documentfiles TO lt_documentfiles.
        CLEAR lv_file_name.
        CLOSE DATASET log.
      ENDLOOP.
      IF iv_ebeln IS NOT INITIAL.
        ls_objectlinks-objecttype = 'EKPO'.
        SELECT SINGLE ebelp INTO lv_ebelp FROM ekpo WHERE
                                          ebeln = iv_ebeln
                                          AND loekz eq space.
        CONCATENATE iv_ebeln lv_ebelp INTO ls_objectlinks-objectkey.
        APPEND ls_objectlinks TO lt_objectlinks.
      ENDIF.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
       EXPORTING
         documentdata   = ls_draw
         pf_ftp_dest    = 'SAPFTPA'
         pf_http_dest   = 'SAPHTTPA'
       IMPORTING
         documentnumber = ev_documentnumber
         return         = es_return
       TABLES
         objectlinks          = lt_objectlinks
         documentfiles  = lt_documentfiles.
    DATA:   ls_doc_data  type bapi_doc_draw2,
       ls_doc_datax type bapi_doc_drawx2,
       ls_return type bapiret2.
    Set value for document data
      ls_doc_data-statusextern  = 'IW'.
      ls_doc_data-statusintern  = 'IW'.
    Set value for document data check
    ls_doc_datax-statusextern = 'X'.
    ls_doc_datax-statusintern = 'X'.
    CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
      EXPORTING
        DOCUMENTTYPE               = 'ROS'
        DOCUMENTNUMBER             = IV_DOCUMENTNUMBER
        DOCUMENTPART               = IV_DOCUMENTPART
        DOCUMENTVERSION            = IV_DOCUMENTVERSION
        DOCUMENTDATA               = ls_doc_data
        DOCUMENTDATAX              = ls_doc_datax
      HOSTNAME                   =
      DOCBOMCHANGENUMBER         =
      DOCBOMVALIDFROM            =
      DOCBOMREVISIONLEVEL        =
      SENDCOMPLETEBOM            = ' '
          pf_ftp_dest    = 'SAPFTPA'
          pf_http_dest   = 'SAPHTTPA'
      CAD_MODE                   = ' '
      ACCEPT_EMPTY_BOM           = ' '
    IMPORTING
       RETURN                     =  ls_return
    TABLES
      CHARACTERISTICVALUES       =
      CLASSALLOCATIONS           =
      DOCUMENTDESCRIPTIONS       =
      OBJECTLINKS                =
      DOCUMENTSTRUCTURE          =
       DOCUMENTFILES              = lt_documentfiles.
      LONGTEXTS                  =
      COMPONENTS                 =
      move es_return to ES_RETURN.
      IF es_return-type CA 'EA' ."NE 'E' AND es_return-type NE 'A'.
        "do nothing
      ELSE.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
      ENDIF.
      LOOP AT lt_documentfiles INTO ls_documentfiles.
        DELETE DATASET ls_documentfiles-docfile.
      ENDLOOP.
    ENDFUNCTION.

  • Setin CS for DMS ( SAP DB) not file system

    Hi Forum..
    I wud like to configure CS to my DMS to chk in /chkout originals which i hav to do it from 3rd party system.For this i'm using a BAPI.
    My clint req is he wanted to save documents in SAP DB( Not file system)
    My questions r:
    1.  wat r the necessary config steps tht i hav to follwo ?
    2. for this,Do i need to create Any Ztable ?
    Thanks In Advance.
    P.S: Use ful answer will be rewarded.
    Rgds,
    VIjay

    Hi Vijay,
    To achieve storage of documents in SAP Database as per your clients requirement you need not use Content Server thru KPro.
    Also, there is no need of adding any Z table or any other configurations,
    *Just goto DC10, Uncheck box indicating Use Kpro and to maintain SAP Database in place of CS, just go below to File Size option and enter the size required in SAP Database (for ex:9999999999 which is max. size you can allot).
    Save your settings and then create/change the DIR, try to check-in the document where instead of showing KPro storage categories (ex: DMS_C1_ST), options related to SAP storage categories are displayed, from storage categories like
    Vault, Archieve n SAP DB* select SAP DB and all the storage takes place in SAP Database.
    When you are using Content Server with KPro, even if you are maintaining file size with some values only KPro will work as storage category
    Thank You,
    Manoj
    Pl. reward if useful.

  • Duet Enterprise 2.0 -  Accessing SAP DMS Documents

    Hi,
    Is there any possibility to access the SAP DMS documents using Duet Enterprise 2.0 from SharePoint 2013?
    If the answer is No, then what is the starter services in DE 1.0 and why the DMS functionality is included in that and not in DE 2.0, which will be the easy way to access SAP documents from the SharePoint. Is there any alternative?
    Please clear my queries, i'm eager to know the reason behind it.
    Thanks,
    Kamal

    Hi Kamal,
    The DE 1.0 Starter Services models are available on the DE 2.0 Software package.  To implement Starter Services for DE 2.0 you should follow all of the steps in the DE 1.0 FP1 documentation with the exception of importing on SharePoint.  I have attached a document with the commands required to import the Starter Services to SharePoint.
    Hope this helps.
    Cheers,
      Helen

Maybe you are looking for

  • FLVPlayback issue loading RTMP stream

    Hi, I'm currently having a problem with FLVPlayback refusing to play a stream from a certain site. The flvplayback was playing streams from a different remote site fine, the stream that it is attempting to play work in other AS2 FLVPlayback component

  • Problem of republishing remote rtmp live stream with AMF

    Hi, Guys I am trying recieving one live stream from a remote rtmp server and republishing this stream in AMF. a remote rtmp (rtmp://192.168.1.100/live/remotestream) AMF instance(codes in application/app/main.asc) recieve and republish to another AMF

  • Change pointers problem

    I have created message type ZMATMAS  and I  want to see an entry in BDCP2 (Change pointers table) when ever any material is created or changed I did following steps until now.   1. Created ZMATMAS   2. Activated change pointers - BD61   3. Activated

  • Toad linked to Oracle 11g dosent show hebrew Characters

    Hi all I tring to connect oracle 11g DB contains hebrew Characters using TOAD but for some reason its deosent show the hebrw Characters (display a question marks) I have been told to check the NLS_LANG varible, but its looks OK Plase help Yaniv

  • Duplicate filenames during built

    Hello, i´m trying to build an exe-file from by project. This is working but after the build i get this error-message: So it reads as if the same filename is duplicate in the "NIReport.llb". But: I don´t have this file in the specified directory and i