How to creat a document with a file

i'm coding a texteditor-like programme.
I did use a Jtable instead of a JtextComponent's subclass to display & edit text.
however, i want to realize some function just like a texteditor such as undo & redo.
Shoud i must creat a document to realize function i mentioned above?
if yes, i searched in the google to find that always use method jtextComponent.setDocument () to automatically creat a document by files loaded in the jtextComponent.
if i just creat a jtextarea for creating document & did not make it visible, whether it will waste too much resouces
or i should make a subclass of AbstractDocument to transformer file to document?

Hi Gilo,
   Check these docs...
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb">How to… Download a Hierarchy to a Flat File</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm">Uploading Hierarchies from Flat Files</a>
<a href="http://sapbwneelam.blogspot.com">More Docs...</a>
Hope it Helps
Srini

Similar Messages

  • How to create shipment document with out inbound delivery document

    Dear Friends
    How to create shipment document with out outbound/inbound delivery document.
    In my client scenario, there is no inbound delivery for normal purchases.
    Just there are raising the PO to vendor, then they are doing MIGO for goods receipt.
    Can we do shipment creation with reference to PO?
    If it is possible, how it will be?
    Please let it solve
    With regards
    Lakshmikanth

    Dear Sameer,
    Please go to transaction VT01N here you enter Transportation planning point and shipment type then press enter.
    Now system will take you to the shipment document creation screen here you click on Select deliveries or press F6 now system will take you to the select outbound deliveries screen in this screen you enter selection data then execute, now deliveries will get assigned to that shipment.
    After assigning the deliveries enter the remaining data then complete the shipment finally save the shipment document.
    For more information please go through this SAP help link
    Note:- Shipment process need to be carry out for the deliveries before PGI.
    http://help.sap.com/saphelp_47x200/helpdata/en/f5/04898047bd11d2bf750000e8a7386f/frameset.htm
    I hope this will help you,
    Regards,
    Murali.

  • 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

  • How to create a mapping with text file as my target

    I need to create a mapping with source as a table and target as a text file.
    I am using OWB 10g R2. with database Oracle10g.
    Any one can help me to create a mapping with a text file as target.

    Hi,
    just create a File-Location and File-definition and use this file-operator as target object inside your mapping.
    Regards jwehner

  • How to creat pdf documents with printing restrictions in Aperture

    Hi,
    I wondered if it is possible to create a pdf document made up of 9-12 image per page contact sheets, to send to clients that restricts the client to open and view only i.e no printing allowed.
    Photoshop allows this, however i would like to create /correct versions in aperture and then create a pdf [with the above printing restrictions applied, simply to save time.
    the way i work in photoshop is to export approx a 500 to 1000 jpegs [ per client] in aperture to a folder which I then open with Bridge- create the contact sheets and then create the pdf document with printing restrictions applied.
    is there any way for me to make this simpler, especially just using Aperture?

    just been reading about terminal on another thread.... Spinning beach ball,,[page 2 of Aperture discussions].Apparently there is a command line explained there that can help speed up Aperture. I tried it but Had a problem when trying to type in my Password... It would not let me type anything....So I canceled the proceedure. [ knowing my luck I would cause some irrepairable damage to the machine].
    Think I need to do a lot of reading up to get up to scratch with folk using this discussion Board!!!
    With regards to the pdfauxinfo- is it complicated to get running, or does it run straiaght away in automator?

  • How to create a form with sequential file numbers everytime it is saved?

    I created a pdf form in LiveCycle and my plan is to have people to fill in the form, then print it. Each time the person fills in the form, it should have a new file number. Like the old carbon copy receipts. I believe that either it counts and verifies if it exists or it uses an xml file. How can i make this happen, i am very new to this so any help will be truly appreciated. Thank you.

    Hi sebvoid,
    Did you ever get an answer to this? I am wanting to do the same thing.

  • How to create a document with SRM BAPIS

    Dear colleagues,
    I have a problem with SRM BAPIs. I need to insert a pdf document into a record using SAP BAPIs, This document is already in a table in a binary format
    I am trying with these BAPIs:
        1.
              CALL FUNCTION 'BAPI_SRM_DOC_CREATE'
                  EXPORTING
                    rms_id                  = rms_id
                    sps_id                  = sps_id
                    documentid              = documentid
                    description             = 'DESCRIPTION'
                    do_commit               = 'X'
                    documentid_check_unique = 'X'
                  IMPORTING
                    return                  = return
                    objectid                = objectid
                    documentclass           = documentclass
                  TABLES
                    required_properties     = required_properties.
              This BAPI is working as expected. It returns objectid for the new document.
         2. Now I'm using BAPI_RECORD_ADDELEMENT:
                 ls_doc_id-objectid = objectid.
                CLEAR: ls_sp_poid. " clear weg und ls_sp_poid clearen
                ls_sp_poid-name  = 'DOC_ID'.
                ls_sp_poid-value = ls_doc_id.
                APPEND ls_sp_poid TO lt_sp_poid.
                CLEAR: ls_doc_id.
                ls_sp_poid-name  = 'VARIANT'.
                ls_sp_poid-value = '0'.
                APPEND ls_sp_poid TO lt_sp_poid.
                CLEAR: ls_doc_id.
                ls_sp_poid-name  = 'VERSION'.
                ls_sp_poid-value = '0'.
                APPEND ls_sp_poid TO lt_sp_poid.
                ls_insertion_by_anchor-anchor = 'DECRET'.
                ls_insertion_by_anchor-parent_node_id = '5'.
                ls_insertion_by_anchor-parent_node_attr_name = 'DECRETAT'.
                ls_insertion_by_anchor-parent_node_attr_value = '40'.
              CALL FUNCTION 'BAPI_RECORD_ADDELEMENT'
                  EXPORTING
                    objectid                    = zrm_attcab_scr-phio_id
                    documentclass               = documentclass
                    sps_id                      = 'ZRM_SPS_DOCVAR'
                    anchor                      = 'DECRETS'
                    description                 = 'Descripcion'
                    store_as_new_version        = 'X' "Si X se crea vacio
    *               STACKED                     = ''
    *               DOC_CONTEXT                 =
                    element_type                = 'I'
    *                 insertion_by_anchor         = ls_insertion_by_anchor
    *                insertion_by_modelid        = insertion_by_modelid
    *               INSERTION_BY_REFERENCE_NODE =
    *              ALL_SAME_NAME_ANCHOR        = 'X'
    *               SET_ELEM_DESCR_HARD         = ' '
    *                omit_authority_check        = 'X'
                  IMPORTING
                    return                      = ls_return
                  TABLES
                    element_sp_poid             = lt_sp_poid.
    *             ELEMENT_PROPERTIES                =
    *             ELEMENT_VISIBILITY                =
             This BAPI returns an internal error
    Am I following the correct steps or am I skipping anything?
    Could anyone help me?
    Thanks in advance!!

    I have the same problem!!!
    Anyone knows?
    Thanks!

  • How to create a document with sections that differ in margin and layout

    I'm trying to add a pages document 'B' into my new pages document 'A'.
    A and B have two entirely different layouts and different document margins. So whenever i copy B into A, B's margins become A's margins and thus B's layout turns into a mess.
    I tried adding a section break, column break, layout break.. None resolves the issues.
    All ideas on this are appreciated.
    Thank you.

    A document has the same size, orientation and margins throughout.
    You can however set the minimum margins and use Layout breaks to position text and images within that.
    In practice it is best to keep the two separate and combine the finished sets as .pdfs.
    Peter

  • Help! How do I create a document with an imported PDF in 300dpi using a FOGRA27 colour profile?

    I am a new Indesign user and I have been working with GIMP for the last year creating single colour print-ready PDFs. But now I need to create a document with a FOGRA27 CMYK colour profile and a resolution of at least
    How do I create a document with an imported PDF in 300dpi using a FOGRA27 colour profile?
    I can import the PDF by creating a new document and finding the PDF in places, but it's bad quality.
    The only colour profile I can find under View - Proof Setup is FOGRA39, but I need FOGRA27!
    Help help help, I need to get these files printed in two days!
    Thanks so much..
    xx

    Proof Colors doesn't change the file's color management, it just lets you see what the color values would look like if they are printed unchanged on different output devices. If you want to actually convert the color from one CMYK space to another, it's probably better to do that in Acrobat—Tools>Print Production>Convert Colors.
    There's very little difference between Fogra27 and Fogra39—Fogra27 allows more total ink 350 vs. 330.
    There's nothing you can do to improve the quality of low res images

  • How to create a complaint with pre-decessor document Inovice?

    Hello experts,
    I need create a complaint with reference to a pre-decessor document type Invoice (apart from other types such as sales order and service order). Can someone enlighten me
    1) how to create an invoice in IC Web Client and backend?
    2) how to create a complaint with reference to this created invoice in IC Web client and backend?
    Thanks a lot!!!

    Hi Easwar
    Thanks  a lot for answering the question.
    Yes I do have CRM Billing documents. But the problem is
    a) either the billing document doesn't have Transfer to Accounting status Transferred or
    b) a transferred billing document, but all items have error "Unable to offset billing item 90003458 0000000060" etc.
    Do you know
    1) how I can make a billing document have "Transferred" status? Pressing "Transfer to Accounting" button in the billing document overview page will only set the status to "Being transferred". And it's always being tranfered.
    2) What does the error "Unable to offset billing item ... "mean? How to get rid of them?
    Thanks a lot!

  • How to create a table with datatype blob and insert a pdf file (ravi)

    how to create a table with datatype blob and insert a pdf file,
    give me the explain asap
    1.create the table?
    2.insert the pdffiles into tables?
    3.how to view the files?
    Thanks & Regards
    ravikumar.k
    Edited by: 895044 on Dec 5, 2011 2:55 AM

    895044 wrote:
    how to create a table with datatype blob and insert a pdf file,
    give me the explain asapPerhaps you should read...
    {message:id=9360002}
    especially point 2.
    We're not just sitting here waiting to answer your question as quickly as possible for you.

  • Merging word document with pdf file how do you renumber pages?

    After merging a word document with pdf file, how do you renumber pages?  The pdf has more pages than the word document.  I first converted the word document to a pdf, using Acrobat Standard 9.

    Hi Petek ,
    After you merge the files or combine files ,click on the Page Thumbnails panel on the left hand side.
    In the Page Thumbnail panel ,right click and you will get a drop down list .Select the option "Number Pages".
    You will see a dialog box with several options .You can renumber the pages from there as per your requirement.
    Regards
    Sukrit Dhingra

  • How create 1 dvd with 2 file

    how create 1 dvd with 2 file

    As you probably know,  DVD creation in Compressor and FCPX is very limited – and it only accommodates single tracks.
    But there is no reason why you can't put multiple movies on a single timeline in FCP. Separate them with inserted gaps and add chapter markers to provide some level of navigation among them.
    Good luck.
    Russ

  • How to create a table in the file using java code.?

    HI,
    I should export the data from the view objects to a word document. I have done that but I should
    display the data in the form of a table.
    Kindly come up with the necessary information on how to create a table in the file using java.
    Thanks,
    Phani

    Hi, Thank you for responding to my query.
    The below are the details of my code.
    DCBindingContainer dcBindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding StudentDetailsContent =
    (DCIteratorBinding)dcBindings.get("StudentView1Iterator");
    OutputStreamWriter w = new OutputStreamWriter(outputStream, "UTF-8");
    Row currentRow =
    StudentDetailsContent.getRowSetIterator().first();
    Object a[]= currentRow.getAttributeValues();
    int i;
    for(i=0 ;i<=a.length;i++){
    w.write(a.toString());
    w.write(" ");
    w.flush();
    I am usning this coding to achieve the task of exporting data to file.
    I need to display this information in the table that is where I need help from you people.
    Thanks,

  • How to create a document folder using ListData.svc

    Hi All,
    I've recently been put on a project where I need to use the REST services (ListData.svc) to retrieve and add documents to the document library. It all has been smooth sailing until I hit the point where I want to save a document in a path that doesn't exist.
    I get an error if I try to save a file where the folder structure doesn't exist. I then went about it a different way trying to create the folder structure first. This also didn't work and I get an error message saying that the entity type is marked with the
    MediaEntry attribute but no save stream was set for the entity. Not too sure what set for the save stream if I'm just adding a folder.
    So my question is can a file be added to a folder structure that doesn't exist where it automatically creates the folders. If not can the service create folders?
    Some sample code I've been using:
    var folder = new SampleDocumentLibraryItem();
    folder.Name = "Sample";
    folder.Title = "Sample";
    folder.ContentType = "Folder";
    folder.Path = "/sample/folder1/folder2";
    spContext.AddToSampleDocumentLibrary(folder);
    spContext.SaveChanges();
    Thanks in advance,
    Damo

    Hi All,
    Finally managed to figure this one out. For anyone who needs source on how to create a document folder. Some sample source is below...
    var folder = new DocumentLibraryItem();
    folder.Name = "Folder Name";
    folder.Title = "Folder Name";
    folder.ContentType = "Folder";
    folder.Path = path;
    spContext.AddtoDocumentLibrary(folder);
    spContext.SetSaveStream(folder, stream, false, folder.ContentType, folder.Path + folder.Name + "|0x0120009BCC19899CEBC6468FF4EEAC7B8CF4F5"
    spContext.SaveChanges();
    So the important differences in the code above. The content type of the object and stream MUST be set to "Folder". I'm not sure why but you still need to set the save stream to be a valid stream even though you're only adding a folder. So just keep the stream
    open and then pass "true" to close it when you actually save the file. The other important element as noted from the URL's in the previous comments is you need to add a "|" + Content Type ID of a folder. You'll be able to get this ID by visiting the rest service
    for an existing document library and view source to see the actual content type id for a folder.
    Thanks everyone for your help,
    Damo

Maybe you are looking for

  • Showing dates in Projects view like iPhoto does in Events view

    Hello, I recently imported my iPhoto library into Aperture and am overall pleased with all that Aperture has to offer. However, there are a couple things that are really frustrating to me that I miss in iPhoto. For instance, in iPhoto when I scroll t

  • Easy way to create a list of strings in an object?

    I'm trying to create a HashSet of Strings but I don't want to have to add each string to the HashSet. There is a constructor for HashSet that allows you to give it a Collection. But how can I create a Collection of String other than having to add eac

  • My ichat no longer appears on my dashboard.

    I went to click my iChat and it came up as a question mark. I dont remember doing anything to it and now it doesnt even appear on my desktop anymore. Any resolutions?

  • IMac is completly messed up

    Hey everyone. I have no idea what happened, but I just moved, and when I set up my iMac, it started to work very VERY slowly, when opening programs, files, or even just turning on. After some Google research I opened Disc Utility and clicked Verify D

  • JFrame maximizing - non deterministic behaviour

    Hi there, I wonder why in the following code the componentResized Method gets a JFrame instance wthich's extended state is MAX_BOTH and the componentMoved Method NORMAL. Does someone have an explanation or an work around for storing the last position