Create a Document in DMS and attach a file coming in binary format

Hi to all,
I have to create a new document in DMS (trx: CV01N) with an attachment but this attachment is a pdf file in binary format. Can I use bapi "BAPI_DOCUMENT_CREATE2"? It support binary files in input or I have to convert files in someway? Or I have to use another BAPI?
I'm using an r/3 4.6c and I know that it is a big limit.
Please, I need help.
Thank you very much in advance,
Enrico

That assumes two things:
1. That Apple would have let Microsoft have access to its file format.
2. That Microsoft would want to spend the time and trouble to write filters for file formats that Apple can't be bothered doing for its own software.
Peter

Similar Messages

  • 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

  • Can you copy/paste files from the Finder to Mail in Lion, or drag them onto the Mail icon in the Dock to create a new message and attach the files to it?

    Message title says it: Can you copy/paste files from the Finder to Mail in Lion, or drag them onto the Mail icon in the Dock to create a new message and attach the files to it?
    I can't find anything in the Knowledge Base that says these two options no longer work or still do.
    I do not have a system capable of running Lion, but I need to know the answer nonetheless.

    Gee, I don't know: "paste attachments mail Lion"? ;-)
    One further question, if I may: in Panther (which is where I've aggregated nearly 7 years of mail), if you copy more than one file in the Finder, switch to Mail, and paste the files into a new message, only the file names paste in. If you copy one file and paste it into a Mail message, you get the file, not just the name. Is that still true, or has that (IMHO) bug been fixed since 10.3.9?

  • How can you create a new category list and attach it to a new incident template

    We intend to create helpdesks for various teams e.g. Facilities, IT, HR etc and allow staff to email separate email addresses via the exchange connector.  So incidents get assigned to separate queues categorised via the support group set in the
    assigned template used by the connector.  I want separate category lists for each template so IT staff don't see Facilities categories etc. This all works apart from having separate Incident classification lists attached to the appropriate template. 
    Thanks
    David

    So I suppose I have to do something similar to the blog post below.  I assume that if I create a new 'facilities incident' class I can create a distinct category list and attach that to a template without showing the default category list?
    Thanks
    David
    http://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-6241-00-00-03-47-72-46/SCSM-Creating-a-user-classification-field-using-the-Authoring-Tool.docx

  • How do I upload and attach the file to Service Request

    [This thread was migrated from the On Demand Developer Forum in the old Siebel Community]
    drangineni
    New Contributor
    Hi,
    I am trying to upload a file and add it to a Service object as an
    attachement. I greatly appreciate if you could provide any code or
    sample...
    Thanks.
    Daya
    Product: CRM OnDemand
    10-21-2006 10:58 AM
    Re: How do I upload and attach the file to Service Request...
    BigSlick
    Valued Contributor
    On Demand doesn't support adding attachments via web services. One
    solution I've seen is depending on the scenario is to create a web link
    field on an object that's based on a custom text field. Your web service
    can populate that custom field and the web link can generate a dynamic
    link to the file in On Demand's UI. However, this depends on where the
    attachment is located and if the user needs some sort of firewall access.
    Hope this helps
    -BigSlick
    10-23-2006 11:43 AM
    ==============================================================================
    Click on the board or message subject at the top to return.

    Yes this still holds ture.
    Bardo

  • If I want to reply to an email and attach a file-how do I do it?

    If I want to reply to an email and attach a file how do i do it?

    It depends what file you want to attach. For photo's, tap and hold any photo on the web, tap copy, then hold a blank space on an email, and tap paste.
    For other documents, you may need an app. For example, in the Pages application, there is a feature to email a document. Search the App Store.
    Hope this helps,
    Regards,
    Nathan
    <Edited by Host>

  • How can i reply to an email and attach a file to it?

    How can i reply to an email and attach a file to it?

    http://www.apple.com/feedback/
    Tell Apple. We're just fellow users here and can't control a thing. The sandboxed nature of the iPad, which also means a lack of an overall file manager is what keeps viruses from spreading and improves the stability of the system as a whole. And it's that lack of a file manager system that means you can't just attach something to an e-mail.
    What I'd do, reply to the person, i'm sending the attachment next, do that and you're done. 2 e-mails sure but you've accomplished what you need to do.

  • What is causing this?  The file "iTunes Library.itl" does not appear to be a valid iTunes library file. iTunes has created a new iTunes library and renamed this file to "iTunes Library (Damaged) 4".  This happens everytime I start iTunes lateley.  Help!!!

    Everytime I open iTunes lately...I get all my music thrown out of the library and this annoying message come up...The file “iTunes Library.itl” does not appear to be a valid iTunes library file. iTunes has created a new iTunes library and renamed this file to “iTunes Library (Damaged) 4”.  Is this how an apple works?  It doesn't?  Why all of a sudden is it doing this?  Please help.  Thank you.
    David

    Did you happen to bring this iTunes library over from a windows machine? You might read this kb article to see if it helps http://support.apple.com/kb/HT1451

  • Why has this occurred The file "iTunes Library.itl" does not appear to be a valid iTunes library file. iTunes has created a new iTunes library and renamed this file to "iTunes Library (Damaged)".

    My itunes library suddenly that the file “iTunes Library.itl” does not appear to be a valid iTunes library file. iTunes has created a new iTunes library and renamed this file to “iTunes Library (Damaged)”. I use an external hard drive for my Itunes.

    The library file appears to have been corrupted.  You say you use your external drive but is the whole library on it or only your media?  No matter, you will have to rebuild the library file:
    iTunes: How to re-create your iTunes library and playlists - http://support.apple.com/kb/ht1451

  • Excel cannot open the file beacuse the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file [help]

    Hi,
    I have a excel file that I have been using since beginning of year.
    Yesterday, I tried to open it but a message comes out "
    Excel cannot open the file beacuse the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file"
    After I click yes, the page is blank. The file is about 400kb in size.
    I have try open and repair and third party repair program and not working also.
    I would appreciate a lot if you can help me.
    Thank you very much.

    Per your post, this problem might be caused by malware on the affected machine.
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2013/09/07/quot-cannot-open-the-file-because-the-file-format-or-extension-is-invalid-quot-opening-office-files.aspx
    In order to clean your machine, run Microsoft Safety Scanner (http://www.microsoft.com/security/scanner/en-us/default.aspx) to kill the malware, and then repair Excel file itself.
    If this is not the case, feel free to post back and let me know. Thanks.
    Tony Chen
    TechNet Community Support
    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.

  • Unable to create Instance with Object Editor and Attachment Pattern

    Hi Experts,
    I created a simple entity service with some attributes and a document reference.
    I also configured an object editor pattern and assigned a attachment pattern. The created object editor works as long as I don't attach a file. But if I attach a file and want to save it I get an error message "cannot create"
    In the default log.trc I have some entries
    Cannot read associated instance with MOF ID 105D8E0C4F02D45AFFD5B9D6A09EFB7A of MOF Layer 2 for (6DC24B80F6004CDBF4FA6C560AEDD33C,<null>)
    and
    refPackageM1(com.sap.ip.bi.sdk.dac.olap.query) failed RepositoryDBMemory. Using generic one.
    I configured the j2ee engine according the tutorial "Integrating KM with CAF UI Patterns"
    So what is wrong?
    Best regards Manuel

    Hi,
    From the stacktrace I assume that the following happens (please correct me, if I'm wrong):
    <b>*</b> Some time based event mechanism sends an event to your custom event handler code. That code is execute in some system context.
    <b>*</b> Your handler uses the RF API to create a collection. All this is perfectly OK. Here my assumptions end, the next steps are solid facts.
    <b>*</b> Within the RF all property filters are informed that a resource is about to be created. One of the filters is trying to obtain a lock from a system provided Locking Service.
    <b>*</b> That service refuses to grant the lock, telling that system users are not allowed to do so.
    Most proably you cannot do anything to solve this problem by yourself. When I ran into the same Exception once, I could avoid to have my code run in a system thread. Well you might try to do the same.
    Otherwise please open a customer message and complain about the restiction in the locking behaviour.
    Best regards,
    Michael

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

    I am using this 2 bapi for creating DMS ,
    BAPI_DOCUMENT_CREATE2
    BAPI_TRANSACTION_COMMIT
    BAPI_DOCUMENT_CHECKIN2
    BAPI_TRANSACTION_COMMIT
    at last we want to c in DRAO table the created doc no should be updated here.
    But it not updating.how can i update in the table..
    Please tell via code..

    How do you call BAPI_DOCUMENT_CREATE2?
    I just tried with the example given in the documentation and with a little adjustment I created a document with an original which appears in the DMS_DOC_FILES table.
      DATA: ls_doc    LIKE bapi_doc_draw2,
            ls_return LIKE bapiret2.
      DATA: lf_doctype    LIKE bapi_doc_draw2-documenttype,
            lf_docnumber  LIKE bapi_doc_draw2-documentnumber,
            lf_docpart    LIKE bapi_doc_draw2-documentpart,
            lf_docversion LIKE bapi_doc_draw2-documentversion.
      DATA: lt_files LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE,
            lt_drat  LIKE bapi_doc_drat OCCURS 0 WITH HEADER LINE.
      ls_doc-documenttype    = 'Z01'.
      ls_doc-documentversion = '01'.
      ls_doc-documentpart    = '000'.
      ls_doc-statusextern   = 'DR'.
      ls_doc-laboratory     = '001'.
      REFRESH lt_files.
      CLEAR lt_files.
      lt_files-docfile      = 'c:\BP\test.docx'.
      APPEND lt_files.
      CLEAR lt_drat.
      REFRESH lt_drat.
      lt_drat-language    = 'EN'.
      lt_drat-description = 'Info Rec Description'.
      APPEND lt_drat.
      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
                   documentfiles        = lt_files.
      IF ls_return-type CA 'EA'.
        ROLLBACK WORK.
        MESSAGE ID '26' TYPE 'I' NUMBER '000'
                WITH ls_return-message.
      ELSE.
        COMMIT WORK.
      ENDIF.
    Best Regards,
    Martin

  • I created a document in pages and had it saved and then exported to send to someone to edit in in Word and ow it is in Word format.. i need to revert it back to my Pages format. help??

    I created a document in a template on pages.. and i saved it.. then I exported it to a Word document to send to someone to edit for me.. i have never done that before i usually use a PDF..and it changed it and won't go back! HELP!

    Again: What version of Pages are you talking about?
    Menu > Pages > About Pages
    Again: Have you tried to open the Word .docx in Pages?
    Pages doesn't save to Word it Exports to Word .doc so there should be a .pages copy on your Mac.
    Peter

  • I create a document in pages and then export it as doc or docx file. I then email or place the file in a drop box. When another computer opens the doc or docx the photos in the document are randomly scattered. What is the solution?

    I create a document in pages with photos. I then save it and I also export it as a doc or docx file. I then email or place in a drop box the doc or docx file. The other computer opens the file in Microsoft word and the text remains in place but the photos are randomly scattered throughout the document. What is going wrong? How do I correct this problem? I really don't want to go back to a Microsoft machine.

    That assumes two things:
    1. That Apple would have let Microsoft have access to its file format.
    2. That Microsoft would want to spend the time and trouble to write filters for file formats that Apple can't be bothered doing for its own software.
    Peter

  • Can you recommend an app to run excel documents off line and let the files be saved to the ipad not over a network connection

    Can anyone recommend and app for ipad mini to run excel documents offline and let the files be saved ot the ipad hard drive. I am frequently out of network range and need to be able to run the sheets.

    All of the "Office" document editing applications on the iPad have limitations.  Best try them out to see if they meet your needs.
    iWork by Apple
    Keynote
    Numbers
    Pages
    DocsToGo
    • VIEW/EDIT/CREATE Word & Excel files(Office 2007/2008/2010)
    • VIEW PowerPoint, PDF, iWork, Text, .RTF, and more!
    • Send & receive attached supported documents using the built-in Mail app
    • FREE desktop application with your purchase! Compatible on Win & Mac allows you 2-way file sync with a WIFI connection.
    • Open & Edit files within DocsToGo from any 3rd party app that supports the “Open In” feature
    • Supports iTunes File Sharing via USB cable for manually moving files
    https://itunes.apple.com/us/app/documents-to-go-office-suite/id317117961?mt=8
    Office² HD
    "Office² HD, the most intuitive and straightforward office document editor available on the iPad, makes it easy to open, view, create and edit Word (DOC & DOCX), Excel (XLS & XLSX), and PowerPoint (PPT & PPTX) files right from your iPad!"
    https://itunes.apple.com/us/app/office2-hd/id364361728?mt=8
    Quickoffice Pro HD
    Create and edit ALL Microsoft® Office -- document, spreadsheet, and presentation formats, as well as view PDF files, on the go. Our advanced file manager lets you manage local files, access Google Drive or other cloud accounts, and works with your iPad email attachments so you can work anywhere, anytime - online and offline.
    https://itunes.apple.com/us/app/quickoffice-pro-hd-edit-office/id376212724?mt=8
    nsdjoey presents ways to edit office documents in this web page:
    https://discussions.apple.com/message/21953221#21953221

Maybe you are looking for

  • HP Envy 4500 Won't Scan

    My HP Envy 4500 won't scan. The information window shows "Now scanning..." and then just sits. I have run the HP Print and Scan Doctor. It goes to "Finding and fixing scanning problems" and the status bar just freezes. The Envy information window als

  • Mid 2012 Macbook air battery charging erratically

    A few days ago, I noticed that my macbook air was not charging even though it was plugged to the power adapter. After some time, it showed that it was charging, but infinitely slowly. I did SMC reset and after a while, it was charging normally. But t

  • Black screen after 10.51 update, please help!

    Installed Leopard on external F/W drive , although could not repair permissions on drive.I installed 10.51 then, display went black,and would not come on. Forced the machine to turn off. Disconnected external drive, pulled all the A/C cords,etc. Fina

  • Reinstall Elements after HDD died

    I purchased Elements 7 some time ago, to go with my XP setup, but did not register it with Adobe; thinking that I would soon move to Windows 7 so would upgrade to the latest Elements which would probably not work on Xp. However I have decided to stay

  • MacBook Waking From Sleep Inside Case

    Hello all, Three times now my wife has opened her notebook case to find her new MacBook running with the lid closed, incredibly hot, fans blowing. I have read various reasons on the discussions, from System Preferences to faulty logic boards, with no