Problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2

Hi experts,
I'm getting problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2.
I have a scenario where is defined the document type ZC1, document part 200, authorization group 0002 and for all of these  documents the storage category "Cofre DMS1". And the status which demands the storage category is 'FR'.
I've been fullfiling the BAPI_DOCUMENT_CREATE2 in this way:
"Tables
data: it_doc like bapi_doc_draw2,
      it_return like bapiret2,
      it_files like bapi_doc_files2 occurs 0 with header line,
      it_objs like bapi_doc_drad occurs 0 with header line.
"Variables
data: wl_doctype like bapi_doc_draw2-documenttype,
      wl_docnumber like bapi_doc_draw2-documentnumber,
      wl_docpart like bapi_doc_draw2-documentpart,
      wl_docversion like bapi_doc_draw2-documentversion.
it_doc-documenttype = 'ZC1'.
it_doc-documentpart = '200'.
it_doc-documentversion = '00'.
it_doc-description = 'Test of documents creation via BAPI'.
it_doc-username = sy-uname.
it_doc-statusextern = 'FR'.
it_doc-authoritygroup = '0002'.
refresh it_files[].
clear it_files.
it_files-originaltype = '1'.
it_files-storagecategory = 'Cofre DMS1'.
it_files-wsapplication = 'PDF'.
it_files-docfile = 'c:\110307.pdf'.
it_files-description = 'Test file'.
append it_files.
refresh it_objs[].
clear it_objs.
it_objs-objecttype = 'EKPO'.
it_objs-objectkey = '47000497600010'.
append it_objs.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
  EXPORTING
    documentdata = it_doc
  IMPORTING
    documenttype = wl_doctype
    documentnumber = wl_docnumber
    documentpart = wl_docpart
    documentversion = wl_docversion
    return = it_return
  TABLES
    objectlinks = it_objs
    documentfiles = it_files.
After execute the BAPI process I got the following error:
E26 087 - Data carrier COFRE DMS1 not defined
Does anybody have a sugestion to help me, please?
Thks
David
Edited by: David Tsutsui on Mar 18, 2010 10:52 AM

Please refer to this thread, it tells why you need a data carrier you can also configure the same in DC20.
Data Carriers for Storage the Originals of DMS

Similar Messages

  • VBA: problems in creating and storing objects in array with loop

    I created a Class named Issue. Then I created a function that creates Issue objects, set their properties with data from a worksheet and store them into a variant array through a loop. the problem is that everytime that the loops runs it overwrites the properties
    of the same object instead of creating a new object, setting its properties. Would anyone know how to solve that? The loop code goes below:
     'Stores all the Issues objects in an Array
    Function StoreAllIssues() As Variant
    Dim IssuesSheet As Worksheet
    Set IssuesSheet = Sheet1
    Dim intLastRow As Integer
    intLastRow = Uteis_Jorge.LastRowFunc(IssuesSheet, 1)
    Dim IssuesArray() As New Issue: ReDim IssuesArray(0)
    For i = 2 To intLastRow
        Dim MyIssue As New Issue
        MyIssue.IssueName = IssuesSheet.Cells(i, 1)
        MyIssue.Suggestion = IssuesSheet.Cells(i, 2)
        MyIssue.Priority = IssuesSheet.Cells(i, 3)
        MyIssue.Resolution = IssuesSheet.Cells(i, 4)
        MyIssue.JobStatus = IssuesSheet.Cells(i, 5)
        MyIssue.AssignedTo = IssuesSheet.Cells(i, 6)
        Set IssuesArray(i - 2) = MyIssue
        ReDim Preserve IssuesArray(i - 1)
    Next i
    ReDim Preserve IssuesArray(i - 3)
    StoreAllIssues = IssuesArray
    End Function
    Jorge Barbi Martins ([email protected])

    Hi Jorge,
    You can set the MyIssue to Nothing every time you don't use the MyIssue object, in this way, the array will properly store the new MyIssue object:
    For i = 2 To intLastRow
    Dim MyIssue As New Issue
    MyIssue.IssueName=IssuesSheet.Cells(i,1)
    Set IssuesArray(i - 2) = MyIssue
    ReDim Preserve IssuesArray(i - 1)
    Set MyIssue = Nothing
    Next i
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Creating a new document using XQuery

    Hello everyone,
    I wondered if there was a way to create a new document using XQuery. What I am trying to do is to run a query on XML file and try to print the results in HTML for viewing purpose.
    The HTML is spitted out on DOS prompt. Instead I wanted to write that HTML to a file on disk. Is this possible with the XQuery tools provided by Oracle?
    Thanks in advance for all the help
    K

    Folks,
    Kinda answering to my question. Just send the DOS output to some file. Pretty Simple huh!
    Thankyou anyways
    K

  • Problem creating documents using BAPI_DOCUMENT_CREATE2

    Dear all,
    I am using
    BAPI_DOCUMENT_CREATE2
    to create a quality document attachment ( PDF file)  for one of our dynpro screen..
    then  I retrive the document information using  'BAPI_DOCUMENT_CHECKOUTVIEW2
    and show the document using function module
    CV120_START_APPLICATION
    1) it works fine only for the person who is creating the document as the bapi is creating a reference to his directory path.
    2) it  doesnt work if the user is moving the file into another directory on his local computer as the directory reference path is gone..
    3) if a different user is trying to acess file it doesnt even show up as   he will never have the direcory path created by some body else.
    how to over come this situation.
    I have done lot of investigation and I found that 'BAPI_DOCUMENT_CHECKOUTVIEW2 has some paraneters
    pf_http_dest = 'SAPHTTPA'
    pf_ftp_dest = 'SAPFTPA'
    but could not able to understand it properly. Please kindly help..
    Thank you very much in Advance.
    Regards
    syam.
    Edited by: syambabu g on Oct 22, 2008 1:39 PM
    Edited by: syambabu g on Oct 22, 2008 1:47 PM
    Edited by: syambabu g on Oct 22, 2008 1:50 PM

    Please refer to this thread, it tells why you need a data carrier you can also configure the same in DC20.
    Data Carriers for Storage the Originals of DMS

  • Photoshop cc can't open and make new documents.

    I'm using adobe creative cloud and photoshop cc.
    When I run the Photoshop cc, it can't open and create new documents.
    Open and make new documents Photoshop don't work so i terminate a photoshop cc use windows task manager.
    I use windows7 ultimate k on lenovo x220t.
    I uninstall the Photoshop cc and install again but symptoms refeat.
    Please give me good opinion.

    You have permissions issues with your user folder and the location where the PS swap files are stored. You need to fix that part...
    File Permissions Stuff
    Mylenium

  • Error while checking in and storing: C:\Documents and Settings\user\Desktop

    Hi all,
    I'm getting  the following Error while checking in original to Content Server
    "Error while checking in and storing: C:\Documents and Settings\user\Desktop" Message 26253
    OAC0, OACT, CSADMIN settings seems to be Ok .
    Settings in DMS SPRO - in dc10, dc20(data carrier used PC)- everything fine
    -Authorization issues are not there
    Earlier checking in was possible with same settings, but now we are getting this error.
    From my end i had test the RFC Connection (SAPFTP, SAPFTPA, SAPHTTP, SAPHTTPA) through SM59 and its test run was successful. So the possibilty of RFC Failure was ruled out.
    I knew this problem was arised as there is some issue in Content Repository, but not able to trace it out.
    If any one knew what to do in this case, then let me know.
    Secondly, what are the things need to be checked to identify the content repository Checking in Issue.
    Regards,
    S Anand

    Error Resolved.
    I had only executed the below command
    ./dbmcli on SDB>db_execute SET LOG AUTO OVERWRITE ON
    OK
    seems like Log file was full. but now its working.
    Thanks for your suggestion.
    Regards
    S Anand

  • Error while checking in and storing: C:\Documents and Settings

    Hi,
    i have some problem in DMS , while doing Check in process after attaching documents in CV01n.
    geeting error like "Error while checking in and storing: C:\Document and Settings.."
    please suggest me how to solve this problem.
    thx in advance...
    Karthik.

    Hi Karthik,
    There may be several factors contributing to this error.Some of these maybe:
    -Storage category defined improperly/missing
    -HTTP/FTP destination missing
    -Incomplete Workstation application definition
    -Incomplete Authorization
    Please run through/search for each of these issues (discussed several times in the forum) and adopt corrective action wherever necessary.
    Regards,
    Pradeepkumar Haragoldavar

  • Error while checking in and storing: C:\Documents and Settings\Administr

    Dear
    Whille saving then document in dms , i am getting this error.....
    Error message is : "Error while checking in and storing: C:\Documents and Settings\Administrator\My Documen...."
    Message Number is 26253
    R Karthikeyan

    Hi all,
    Similar kind of issue occurred in one of our webdynpro applications of SAP NetWeaver Portal-
    The error message "Error while checking in and storing" was returned by the BAPI while trying to replace documents in the DMS Server via portal.
    But the documents were getting stored in the back end by the use of standard T-Codes.
    Later it was found that ABAP tables COMPONENTS & COMPONENT_DATA are inconsistent by looking into the HTTP trace file.
    The HTTP patch "http.c#21" was being used in our server.
    SAP suggested the below mentioned steps-
    -->Download the most recent SAPHTTP version & install it.
    -->Then delete the RFC connections SAPHTTP & SAPHTTPA through T-Code SM59
    -->Regenerate them again with report RSHTTP05
    They were carried out in our ECC server & the issue was resolved.
    Please try them out if applicable in your case & let us know.
    Thanks & Regards,
    Shreyashri Kar

  • How to prevent public users from creating and saving Word Documents

    I have two public computers available for the public to view legal case documents.  The program used uses the Word shell to save, view and print documents within the program.  The clerk has stated that she does not want attorneys or others to
    be able to create and save word documents on these computers.  Is there a way to prevent a user on the public computers from opening word, creating a document and saving it?

    Instead of installing Word on the public computer (or at least instead of making it available on the public account), you could install the free Word Viewer:
    https://www.microsoft.com/en-us/download/details.aspx?id=4 and make that available for the public account. Alternatively, if you want to ensure the document retains its originally
    formatting regardless of what printer may or may not be attached to the public computer, you could keep only PDF copies of the file where the public can access them and install the free Adobe Acrobat Reader for viewing:
    https://get.adobe.com/reader/.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • How to create and read text file using LabVIEW 7.1 PDA module?

    How to create and read text file using LabVIEW 7.1 PDA module? I can not create a text file and read it.
    I attach my code here.
    Attachments:
    File_IO.vi ‏82 KB

    Well my acquisition code runs perfect. The problem is reading it. I can't seem to read my data no matter what I do. My data gets saved as a string using the array to string vi but I've read that the string to array vi (which I need to convert back to array to read my data) does not work on the pda. I'm using version 8.0. So I was trying to modify the program posted in this discussion so that it would save data from my DAQ. I did that but I still can't read the data after its saved. I really don't know what else to do. All I need to do is read the data on the pda itself. I can't understand why I'm having such a hard time doing that. I found a possible solution on another discussion that talks about parsing the strings because of the bug in the "string to array" vi. However, that lead me to another problem because for some reason, the array indicators or graphs don't function on the pda. When i build the program to the pda or emulator, the array indicators are faded out on the front panel as if the function is not valid. Does this kind of help give a better picture of what I'm trying to do. Simply read data back. Thanks.

  • How does APEX create and save new files. What extension does it save in?

    Hi can someone help me with this question?
    How does APEX create and save new files. What extension does it save in?
    Cheers!
    VJ

    It's really too bad we can't see VJ's face when the concept sinks in. This is one of my favorite moments when teaching APEX classes. Most people love it, some people don't. If nothing else it really proves the power and performance of the Oracle database. Each page view can generate 40+ queries, yet on the average system this takes less than .04 seconds.
    Keep in mind there are no undocumented features or "Oracle Internals" that the APEX team uses to achieve this performance, just sound database design. With every feature they add they evaluate how it will be used and design the tables and indexes to most efficiently answer the query. Sometimes this means going against "purist" normalized principals.

  • Can I create bookmarks on PDF document using stadard acrobat writer? or only using professional acrobat writer?

    can I create bookmarks on PDF document using stadard acrobat writer? or only using professional acrobat writer?

    Hi hagitl14083762,
    Bookmarking in available in both Acrobat Pro and Standard. You'll find instructions here: Adobe Acrobat X Standard * Create a bookmark (while written for Acrobat X, these instructions apply to Acrobat XI as well).
    Please let us know if you have additional questions.
    Best,
    Sara

  • I have a G5 mac using ver 10.4.11 and a newer mac using ver 10.8.4 these are networked. using the new mac i looked up my my photo on the old mac. It then said you need to upgrade your library which it did. Now the old mac can not open the photos

    I have a G5 mac using ver 10.4.11 and a newer mac using ver 10.8.4 these are networked. using the new mac i looked up my my photo on the old mac. It then said you need to upgrade your library which it did. Now the old mac can not open the photos and say that I need to upgrade my I photo to a newer version. The old mac has no more support from apple in software update so I am not sure where I should go from here. can I use new soft ware with the old mac

    The other part of the upgrade message was a warning that once you upgraded you would no longer be able to open the library with the old version which is exaclty what you did and what happened when you choose to continue
    The iphoto library needs to be upgraded to work with this version of iPhoto. Your photo library will not be readable by previous versions of iphoto after the upgrade. The upgrade process may take several minutes depending on the number of photos in the library. Cancel or upgrade.
    So now your choices are to not use iPhoto with the previous version using it onky with the newer version, restore your backup from before you did this upgrade or purchase iPhoto Library Manager and use it to rebuild the library using the older version of iPhoto (instructions are on their web site) thereby downgrading it (without projects)
    LN

  • Error while checking in and storing: C:\Documents and setting*

    hI,
    I hace install the content server and i made content repository also.
    everything I made on development server, and the original application file is getting check in also.
    now when I tried to check in it in test sever, it giving me error like  Error while checking in and storing: C:\Documents and setting
    I transported all request like content repository and all to  test server from development server.
    regards,
    nitin

    Hi, Nithin,
    Check this also in development
    In your local machine Goto
    C:\windows\system32\drivers\etc
    There will be file called "hosts"
    in that file plz specify the IP of the content server.
    Eg;
    <IP address> <Content server name>
    102.210.23.186 My Content server
    Save the file.
    Restart the machine and then try check-in the file in content server.
    Regards,
    Ben

  • Steps to create and assign new cost centers?

    Dear all,
    Pls share with me the steps to create and assign new cost centers.
    TIA
    kogi

    Refer to the following link, will help you with the cost Center creation.
    http://help.sap.com/saphelp_470/helpdata/en/08/5145cc43b511d182b30000e829fbfe/frameset.htm
    It is actually the job of Fi consultants.
    Post your e-mail ID I will send some documentation.
    Regards
    AK
    Reward points if helpful

Maybe you are looking for