Updating CustromXML part in documents on request

Hello,
I have a document library, which contains .docx files with content controls, bound to custom XML. I need to update those custom XML parts with the new values when user requests file open operation. I can do it by writting my own HTTPHandler for GET, but
it only works if the user downloads a file. If users access it via Word, it communicates with the service via CellStorage.svc.
I cannot use VSTO plug-ins in my environment. So, no web-service option or anything like that. I tried to cheat with "External" package relationship for my custom xml part, but it's not supported by the MS Word. Is there any seam in the system
where I can intercept all document open requests and replace required custom XML part on the fly? If not, what would be a preferred solution? 
Thanks for you help in advance.

Hi,
According to your description, my understanding is that want to intercept open document request to update custom xml part of word file in a SharePoint document library.
I suggest you can track the open document request using Fiddler, in my environment, the open document request can be tracked, then you can do your custom code in the httpmodule.
Here are some similar thread for your reference:
http://sharepoint.stackexchange.com/questions/76515/intercept-file-open-event-and-execute-custom-code
http://sharepoint.stackexchange.com/questions/54046/intercepting-sharepoint-open-document-request
Thanks
Best Regards
Forum Support
Jerry Guo
TechNet Community Support

Similar Messages

  • We use a doc template to create a purchased part spec document and then save them as pdf formatted files.  These part spec documents are also appended with the datasheets for these purchased parts.  When we want to update/revise the document, is there a m

    We use a doc template to create a purchased part spec document and then save them as pdf formatted files.  These part spec documents are also appended with the datasheets for these purchased parts.  When we want to update/revise the document, is there a method, using Acrobat, to make those updates to the pdf, or must we go back to the doc template and basically generate a new document?
    Also, our resulting pdf documents aren't searchable.  How can we generate pdf documents that are searchable?  I may want to search for a part value or name within the body of these pdf documents, but currently can't do that...very inconvenient.
    Can you assist?

    Not totally sure about the search issue. A lot depends on how you created the PDF and what is in the datasheets you attached (like are they graphics?). The doc portion should be searchable as long as you used print to the Adobe PDF printer or PDF Maker. For your use, it may be that the print is adequate. However, the result should be searchable (unless maybe you had a form with filled in fields and created the PDF with PDF Maker. I think the form data may be retained in form fields and the fields are not searchable. In that case, a print might be a better procedure. (it would help to know the versions of WORD and Acrobat as well as the exact process you used to create the PDF.)
    If the appended data sheets do not change, then you might try opening the original PDF and then using Replace Pages to replace the file created from the DOC file.

  • How to update characteristics of DMS document

    Hello, I have a requirement to update characteristics right after document creation.
    I use BAPI_DOCUMENT_CREATE2 to create the document:
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
         EXPORTING
           documentdata    = ls_doc
         IMPORTING
           documenttype    = lv_document_type
           documentnumber  = lv_document_number
           documentpart    = lv_document_part
           documentversion = lv_document_version
           return          = ls_return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
             EXPORTING
    wait = abap_true.
    And then when I try to change it:
    CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
         EXPORTING
           documenttype         = iv_document_type
           documentnumber       = cv_document_number
           documentpart         = iv_document_part
           documentversion      = iv_document_version
           documentdata         = ls_document_data
           documentdatax        = ls_document_data_x
         IMPORTING
           return               = ls_return
         TABLES
           classallocations     = lt_cl_alloc
           characteristicvalues = lt_char.
    The following error is raised: Object TYPE/NUMBER/PART/VERSION does not exist.
    I pass the type, number, part and version right from BAPI_DOCUMENT_CREATE into corresponding arguments for the second call, and into documentdata fields as well. ClassAllocations table contains a single row with class type and name for characteristics in CharacteristicValues table.
    Could you suggest me, what can be wrong here?

    I found a solution for my problem. In a short, everything is OK except one thing:
    Field STATUS=1 should be also filled in CLASSALLOCATIONS table in addition to CLASSTYPE and CLASSNAME.
    In total I had to make my call conform to the following points:
    Document type, number, version and part must be filled into DOCUMENTDATA structure and not only in direct parameters of the BAPI
    CHARACTERISTICSVALUES must include class name and class type, these can be found from tcode CL03
    CLASSALLOCATIONS must include the same CLASSNAME and CLASSTYPE as from previous point, plus STATUS field set to «1»

  • Multiple document for request correspondence FB12

    Hello all,
    currently i'm using version 4.7.
    as known in std t-code FB12, we need to request which documents to generate correspondence.
    steps are:-
    1. enter company code
    2. choose correspondence type
    3. key in document number & fiscal year
    as for item 3; is there a method that we can key in multiple document numbers & year in one shot?
    currently doc number and year enter one by one.
    pls give ideas anyone...really appreciate it.

    Hi,
    i got what u meant. for my case, i want to print customer invoices (includes with or without tax).
    is there any other std t-code to do it for multiple selection documents?
    update:
    i tested use t-code F.62 (internal doc) using my correspondence type. here i select multiple documents to request as you mentioned earlier.
    but error msg prompted as 'Correspondence type ZAPS1 requires an individual text'.
    then i check the setting for ZAPS1 (tcode OB77) and indicator 'indiv. text' maintained. for what purpose this is ticked?
    further to that i check the program attached to ZAPS1 (t-code OB78), 'Text' field is maintained. what purpose this is maintain?
    kindly help to explain to me as i'm in doubt of the setting. Thanks.
    Edited by: IM_SM on Nov 12, 2008 3:55 AM

  • Update copied to multiple documents

    Hi
    We have a requirement to update a property or value within a document such as expiry date and for this update to automatically copied to multiple documents on different sites and libraries.
    We need to edit a 'master copy' and have this change copied to all other documents based on the 'master copy'. We would appreciate any suggestions. We are thinking of using workflow rules and the update list item action but are unsure if there is better
    options.
    Would we possibly be able to use the document information panel and have the update copied to other documents based on a template?
    Thanks very much
    Tony

    Hi
    Just to let you know, I am considering using a Slist and a custom document information panel.
    The data will be changed in the list and then using a data connection within the document information panel, be copied to the quick parts within the word document.
    The word document will reside on a different site and library and when opened will receive data from the list (master copy), the data will then be copied to the quick parts within the document.
    Does anyone foresee any issues with this approach?
    I would like to refresh the document automatically without reopening the document. Any other ideas would be greatly appreciated.
    Thanks very much
    Tony

  • Excise Invoice (J1IIN) Cancelltion did not update RG23A Part-II

    Hi, Dear's
    I have cancelled Excise Invoice (T.Code J1IIN), system shows reversal accounting entry generated thru J1IH
    BUT did not update RG23A Part-II register
    Thanks
    SR

    Hi,
    1)Have U created Master Data in J1ID,If U are allready Created Master Data pls Check Mtrl Type(It should not Non Cenvatable)
    2)If you are following TAXINN,Then u should maintain Tax code to Company code.
    If u are Using TAXINJ,U should maintain Excise Defaults.
    3)In Excise Group,U should Activate MIGO transactions.
    4)Check ur TAX code,Tax code is Deductable or non dedctable.
    Raghu

  • Excise Invoice Cancellation did not update RG23A Part-II Register ?

    Hi, Dear's
    I have cancelled Excise Invoice (T.Code J1IIN), system shows reversal accounting entry generated thru J1IH
    BUT did not update RG23A Part-II register
    Thanks
    SR

    HI
    As far as i know there is no part 1 or part 2 for RG1 register.
    regards
    Prashanth

  • Referance material document of 103 is not updating in 105 material document

    Dear All,
    I have created a Good Receipt through MIGO using 103 movement. Later I have created 105 movement with respect to 103 movement reference through release blocked stock.
    After creation of documents, when checked the document created through 105 movement there is no reference number of 103 document number found in the document number of 105 movement.
    In the table MSEG field LFBNR is supposed to get updated with the reference number of the document created through 103 movement.
    In this case, this reference number is not updated in the table MSEG-LFBNR.
    What is the reason for Referance material document of 103 is not updating in 105 material document at item level in Purchase order Tab.
    Regards,
    Vinay

    Hi,
      I was faced this issue yesterday and finally find it caused by the check box ' Based-GR IV' in the PO.
    Twig Chan

  • I have Adobe Reader XI and I tried to open a document download and a box appeared stating it was a password protected document ant requested a password. Were and how do I one?

    I have Adobe Reader XI and I tried to open a document download and a box appeared stating it was a password protected document ant requested a password. Were and how do I one?

    Hi noswam123,
    If a PDF file is password protected, the only way to open that document is with the password. You will have to get that password from the person who created the PDF.
    Best,
    Sara

  • Problem in updating the notes for the service request

    Hi All,
    I am passing the following parameters to update the notes to the service request but not successful.
    Can anyone let me know the workable solution.
    set text
        ls_text-ref_handle  = 1.
        ls_text-ref_kind   = 'A'.
        ls_text-tdid       = 'S001'.
        ls_text-text_object = 'CRM_ORDERH'.
        ls_text-tdstyle    = 'SYSTEM'.
        ls_text-tdform     = 'SYSTEM'.
        ls_text-tdspras    = 'E'.
        ls_text-mode       = 'I'.
        lv_txt = 'Centre Update request for:'.
        ls_lines-tdformat = '*'.
        ls_lines-tdline = lv_txt.
        append ls_lines to lt_lines.
        ls_text-lines   = lt_lines.
        append ls_text to lt_text.
      clear ls_input_field.
      ls_input_field-ref_handle = 1.
      ls_input_field-ref_kind = 'A'.
      ls_input_field-objectname = 'TEXTS'.
      CLEAR ls_fieldname.
      ls_fieldname-fieldname = 'LINES'.
      CLEAR ls_fieldname-changeable.
      lv_logical_key = '1'.
      concatenate 'CRM_ORDERH' lv_logical_key into lv_logical_key.
      ls_input_field-logical_key = lv_logical_key.
      INSERT ls_fieldname INTO TABLE ls_input_field-field_names.
      INSERT ls_input_field INTO TABLE lt_input_field.

    Hi Surya
    Please, use this FM:
    DATA: lv_textobject TYPE thead.
      lv_textobject-tdid         = <TEXT ID>.
      lv_textobject-tdname   = <GUID OF SERVICE REQUEST>.
      lv_textobject-tdobject   = 'CRM_ORDERH'.
      lv_textobject-tdspras   = sy-langu.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          header          = lv_textobject
          savemode_direct = 'X'
    "      insert          = 'X'
        TABLES
          lines           = lt_text.
    Hope this helpful!

  • No updates allowed for the document "......."  IDOC "........"

    When trying to access a sales order in change mode... I receive the following error message:
    No updates allowed for the document "......."  IDOC "........"
    I checked IDOC status in WE02 and found that the Application Document was not posted and status is 51.  Next to the status of the IDOC "purchase requisition does not exist"
    Please Advise..
    Thanks
    Nick

    double click the message and tell the message number

  • Business document execution request interface

    Hi experts,
                      business document execution request interface is a predeined interface in XI. Can anybody explain how can we make use of it or in which scenarios we can use it.
    Reyaz Hussain.G

    Hello,
    For those still looking, you should ask on the
    SharePoint forums.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?&lt;=\G.{2})'|%{if($_){[char][int]&quot;0x$_&quot;}})

  • Document info fields in Word won't update when placed in document header-section

    Dear all,
    I have a document library using 3 Content Types with metadata columns and a Word-template.
    The values of these metadata columns should be displayed within the Word-documents created from content type.
    So I've inserted document info fields into the Word-template to display them.
    But unfortunately the placeholders are not updated when opening the document again, after metadata values had been changed e.g. by using the edit-form within the list.
    From what I have seen so far, this only refers to document info fields resident in header or footer sections. 
    But this is where I need to place them.
    Does anybody know this issue and has an idea of how to fix it?
    Could VBA be of use here?
    Best regards,
    Ben

    Hi,
    Based on your description, document info fields in Word won't update when placed in document header-section.
    Per my test, document info fields in Word will update when placed in document header-section.
    Refer to the following article about Add SharePoint Metadata to Word Documents:
    http://whitepages.unlimitedviz.com/2011/02/using-document-templates-with-lists-and-content-types-in-sharepoint/
    https://www.premierpointsolutions.com/training/help-and-how-to-articles/add-sharepoint-metadata-to-word-documents/
    If I misunderstanding the issue, Please offer a screenshot about your issue.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Error: 'document.wwv_flow.request' is null or not an object.

    I've problems with the buttons in my Application.
    When I create one and click I after, I've allways the Error Message: Error: 'document.wwv_flow.request' is null or not an object.
    But if I create the same butten on my test application, I don't have this error message.
    Whats wrong?
    Thanks
    Dean

    Dean,
    Can you be a bit more specific? What it the difference between "my Application" and "my test application"? What are you doing differently when you are creating these buttons?

  • Part appraisal document for self and subordinates

    Hi All
    I have created a part appraisal document , for self and sub ordinates. When I logged in to portal , the subordinates are able to view the document whereas document created for self are unable to. For self as well as for subordinates , we have configured the document in ESS only. It may be due to some powl query issue but am unable to identify if its powl issue or some authorization issue,In either case , how to identify the same. Please suggest.
    Thanks
    Smriti

    Hello Smriti,
    Can you clarify the issue for me - you have created one appraisal document and in the header data have defined the part appraisers as the employee and subordinates, and only the employee is unable to access the part appraisal document?
    When you created the appraisal template, on the 'Roles' tab, is the role for 'Self' ticked?
    Can the employee access any of his other appraisal documents from the portal?
    Is IT0105 data maintained for the employee's SY-UNAME?
    Regards,
    Kendall

Maybe you are looking for

  • White lines when zooming picture

    How i can remove this lines? Because when im zooming in picture very closly they appear and i cant see pixels and its just confuse me.

  • APEX 4.0.2 Images not displaying correctly

    I have read many posts on this problem and have attempted several of the suggestions but none have worked. As I am very green, this may appear very simplistic. 1. I successfully installed Oracle 11g on a Windows XP machine 2. I downloaded and install

  • My region doesn't appear as an option.

    I am trying to set up an apple account but my billing address does not match my region. The problem is an allocated uk postcode that is not recognised by the apple system. Any ideas? Cheers.

  • Opening an old FCp project in new Final cut?

    I was working on a previous version and recently got the new Final Cut X but now my project won't open? Any ideas?

  • Please resove the issues?

    1.how  to test (SMS,EMAIL)Alerts? 2.in  file content conversion i have 3 files and 3 difert drives fro ex:  C:/ramu/text.html, d:/anji/des.csv ,e:/reddy/kit.xml files  how  to itake in Sender CC (sender COmmunication Channel) File system access param