MS Word Template in Content Server

Hi, we have this problem.
we have a Z transactions asking the user to give some data and save it in a table with key number, the user can attach several documents (.DOC) from local pc and transaction use content server to store these documents and linked it to the data stored in table via the key document. all of this is working fine. we are using  ARCHIVOBJECT_CREATE_FILE and ARCHIV_CONNECTION_INSERT functions to save this file in content server and link the document to the key number.
now we are trying to make the transaction open a  MS  word template , the user fill the word document and when its done the transaction save it in content server
some can give some help to do this?
we are searching a way to :
1.- store a Ms Word template in SAP
2.- Open this MS Word template with a button in the  Z transaction.
3.- Let the user fill the template .
3.- save the document filled in content server without change the original template and linked to the data with the same key number.
thanks.

All catch is to insert table in the correct level of xml schema.
1. So you first need to insert add elements to the template until you reach the element that you want to use in the table. For example if you want to display items of orders, this level would be Transactionhistoryofheader - Btdocflowall - Item
2. After that you would insert table with 2 rows and as many columns as you need.
3. The first row of the table is used for column headers. You can type in freely any text you want to display in column headers.
4. The second row of the table is for the entries themselves. In the second row you have to add elements from the xml schema that are in the lower part of the element under which you inserted table. For example, under Transactionhistoryofheader - Btdocflowall - Item are then next nodes Btorder - Administrationheaderoneorder - Description. So in this case in first column will be displayed descriptions of all entries.
5. At runtime rows are added dynamicly depending on actual number of entries.
Regards.

Similar Messages

  • Server based Office 2013 - where do I save word templates on the server for all users to access from "New"?

    Wonder if anyone can point me in the right direction. I'm used to working with stand alone desktop MS Office products.
    We have a server connected to six desktop work stations. All stations have access to Microsoft Office 2013 on the server, and the printer is linked through
    the server.
    Users are currently accessing Word doc Documents on the shared (p) drive as templates, and then saving them with relevant file names to their area on the
    (p).
    Surely there is a way to save Word templates to the server, so that when someone clicks on "New" in Word our own templates are also offered automatically?
    Thanks
    Mark

    If
    anyone knows the address
    for where Microsoft stores the main default templates  - then that would
    be really useful? It would also allow us to get rid of the numerous templates that we would never use.
    Thanks :)

  • Updating Word templates in Content Types - changes not appearing automatically

    Hello
    I have a SharePoint site where I have existing content types all with MS Word templates assigned to them.  I wish to change the Word template so it looks different.
    I have saved my Word template as a .dot file and have edited my content type so it points to the updated template in the 'Advanced' area of the content type properties.  When I look at my template via the 'Edit Template' in the 'advanced' area of the
    content type it is fine (as it is when I look at the template file via explorer view) but when I create a new document based on the content type it is referring to the old template.  Furthermore, I have renamed some of the content type names but they
    have not updated either.
    Any ideas?  Is there a background process that runs to help with this?

    Sorry, just re-visited this and i think i might have missed an obvious answer.
    SharePoint tries to protect you from yourself.
    That measn that it will not, in some cases, push changes down to lists. For example if you were to delete a column at the site level which is also in place on lists SharePoint won't delete it from the lists.
    I'll bet that If you look at the content type at the library level it's showing the old details still.

  • Pcs:if tag error in Content Server presentation template

    This probably isn't the right discussion group, but I couldn't find a group to which this inquiry applies.
    Anyway, I'm working on Content Server (5.0.2) presentation template code, using a pcs:if tag, that looks something like this:
    <pcs:foreach var=&#034;item&#034; expr=&#034;itemList&#034;>
         <pcs:if expr='item == &#034;Cats & Dogs&#034;'>
              Print something
         </pcs:if>
    </pcs:foreach>
    After clicking &#034;Save&#034; or &#034;Validate&#034; (to validate my code), I receive the following error message:
    Error: Expected to find an apostrophe (') ending the attribute value, and did not.
    <pcs:if expr='item == &#034;Cats & Dogs&#034;'>     // <--- the ampersand is highlighted
    In other words, the validator doesn't know how to escape the ampersand (&) inside my string (&#034;Cats & Dogs&#034;).  I've tried numerous ways to escape it, but, so far, nothing has worked.  Replacing the ampersand with &#034;&&#034; effectively changes the string, so that doesn't work either.
    Please let me know if you have a solution to this.
    Thanks,
    -Jose

    Hi,
    I am new to this field.
    Kindly bear with me & guide me how to verify the password in SM59.
    I went there,but not sure of it.Please let me know.
    Regards,
    john.

  • Content Type Word Templates

    Dear all,
    I have a word template with a header containing the total numbers of pages. It happens that on the first page, the total number of pages would not update. It seams this is a known bug. I found a solution for this which was to use a macro that would force
    the update.
    It worked fine in my server. The problem was when I deployed to another server (another farm), the header in the first page would again not update.
    I have one of two questions: How do you solve the fact that the total number of pages is not updating in the first page without macros, and/or in case of using a macro, how will you make them work as a template in a content type.
    Thanks in advance.
    Best regards,
    GS
    Gonçalo

    In principle, writing macro's is not related to sharepoint, although I have seen situations where macro's weren't able to cope with web scenarios, causing problems once published in sharepoint. I would advise you to ask this question in a Word macro forum
    AND post of the code you're using, it will give you a better chance at finding the solution.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Error Displaying Portlet Preview created from Content Server templates

    I created portlet from content server announcement portlet template.Whet put on the page this portlet shows the following error message:
    Error Displaying Portlet Preview.Error Getting Content from Portlet.
    Same error with portlet created from the news template.

    If the link exists in TOA01, why is the dosumnet not visible ? When i use the Function Module ARCHIVOBJECT_DISPLAY, i get the error -
    Error when opening document with HTML control:DP_ERROR_GENERAL
    Can someone please let me know what are we doing wrong ??

  • Content Server Portlet Template Searching

    I am trying to use the Community Directory Portlet Template. I basically used it as it came (no editting of templates). I created a couple of folders and added & published content items in those folders.
    The problem is that the Search within the portlet is not returning anything (even searching for '*') returns nothing.
    Is there some setting I missed or something? I've tried publishing the whole folder from Content Server Explorer and still no luck. Searching for text in the published items from the Content Server Explorer does work, but searching from the portlet does not.
    Thanks.

    Hi Raj ,
    ORA-01013: user requested cancel of current operation error comes up usually in 2 cases :
    1. When CS is losing DB connection intermittently
    2. DB is timing out with the queries being fired from the UCM
    Add the config variable DatabaseConnectionKeepAliveInterval=300 (for SCS to send Keep Alive Packet to the network so that the connectio drop is avoided)
    The value provided is ins secs.
    Secondly drop / rebuild the indexes for the following tables :
    DOCMETA , COUNTERS, DCOUMENTS , REVISIONS
    Then execute the statistics procedure on the DB so that all the indexes are updated with the latest db stats.
    Test to see if the issue still persists.
    Hope this helps
    Thanks
    Srinath

  • DIR creation using a template, but template file is not in content Server

    HI Sap Gurus,
    We have a scenario where in we are planning to maintain a different template Files /documents in SAP DMS,
    The user will use this templates to update his details and save the filled in details back accordingly.
    so i have uploaded few files / templates in DC30 for a particular Workstation Application to be used as templates,
    but this templates are not stored in the content server for the client wide access, so if i have uploaded the file from my system only i can access or work with the template,
    why is it so, why is the template not stored in a content server so that every user can access this,
    is there any other better way of maintaining the templates in SAP DMS. please let me know.
    Points Awaiting
    Thanks and regards
    Sathish

    Hi
    There are two options to store templates
    1) Source File :- Where you give the File path in ur PC
    2) Source Document :- It takes the template from a DIR stored - the orginal may be stored in the content server
    Now you have used option 1)..
    Go for 2 ) and store the original in the content server. This will help all users to access the template
    Regards
    Aby

  • How can I retrive current user information in Content Server's presetation template?

    We need to determine current user is the item's created user or not, so we want to know how to do this?
    we can use <pcs:if expr="'Luke' == createdBy">....,but the 'Luke' is static string,
    so, how can I retirve current user name in Content Server's presetation tempalte?

    I don't know that this is possible in a direct fashion. (and, btw - thank you for asking this question. I realized we'll eventually need exactly the same thing so looking at this helps me as well :).
    I'm quoting dev support from another posting on making community comparisons dynamic:
    "This won't work because the pcs: tags are evaluated on the Content Server during the publish operation, resulting in a static HTML file that still contains the raw pt: tags. This same HTML file will be displayed in all of your communities. The pt: tags are evaluated on the portal server right before it returns content to the user, this allows the single HTML file to show a different name in each community. "
    So the gist of things is that content server acts dynamic to you and I through the editing UI, but is really publishing static content. The values at run-time are not directly available to the PCS operators because...well...the PCS stuff is already done. It produced the static HTML showing up in the portlet.
    There appear to be two immediate options:
    Use the transformer tags to publish the user's name at run-time. Have the PCS and Transformer tags write their values into javascript strings and then compare this client-side. My response: "meh" Not for the purist, but I'm so far down the non-purist path at this point it just doesn't matter any more to me. Simple and to the point, but has known risks. Probably the easiest way to go.Publish your page as ASPX or JSP and then use the EDK server-side to manage the comparisons. Definitely more server-centric, but does require you do a quick bit of content server configuration. Just set the publishing target for the portlet to a directory on a web server and then set the publishing file extension to .ASPX or .JSP. I've done this with ASP and it works nicely. :)Not entirely the answer you or I were looking for, but I think it makes sense.
    The PT transformer tags you'll want if you go with option (1) are:
    Get the user's full name
    <pt:userinfo xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/" name="FullName" />
    Get a custom user setting "myUserSetting"
    <pt:userSetting name="myUserSetting" xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/" />
    Plumtree - am I off base on this one?
    Thanks,
    Eric

  • MS word templates free text referenced gets cut

    Hello Experts,
    CRM 5.0
    We have a scenario where we have implemented a custom BADI to add attributes in the list of fields that can be pulled into MS word templates from an order object in CRM. Some of the free text areas are also being referenced in the MS word templates. However only the first 128 characters from the free text area get pulled into the MS word template. The BADI does not seem to put this limit as in debugging, we can see all the text being referenced but on the front end only 128 characters flow through. Can someone please suggest a solution around this?
    Thanks & regards
    Ritwik Sharma

    BackInBlack wrote:
    >
    > The problem arises when I try to display the content on
    that field on some
    > display templates. The formatting is lost and there are
    several characters that
    > get replaced by ~ as well as little square boxes that
    are a special character
    > that I can't identify.
    >
    > Is there anything anyone can suggest on how to approach
    this problem? is it a
    > coldfusion administrator issue, a server setup issue,
    does word have to be
    > installed on the server that the applications run? is it
    a setting in SQl
    > server. I was hoping someone has had a similar problem
    and can point me in the
    > right direction.
    It is a character encoding issue. This is a big topic, but
    there is
    plenty written up about it. You probably want to configure
    your
    application use use window-1252 or unicode encoding format.
    You will
    want to make sure the entire system running the application
    is talking
    the same encoding, database web server and ColdFusion.

  • Error on update of document stored in content server

    Error on update of document stored in content server
    On a regular basis (but not reproducible) we find that after updating a document, it is deleted from content server (or at least it cannot be retrieved).  These problems have only been experienced since we switched to using content server as our storage repository, as opposed to R/3.
    We create and maintain documents through a bespoke transaction, which calls standard SAP functions BDS_BUSINESSDOCUMENT_CREA_TAB and cl_bds_document_set=>update_with_table.
    Whilst the errored documents are listed in the BDS via transaction OAOR (business document navigator), an error is received when you try to display it (in our case an MS-Word error indicating file/pathname invalid). 
    We are satisfied that file/pathname are valid and find that this occurs occasionally when a document has been updated.  It appears that the document has been deleted. 
    This bespoke transaction has been running successfully for almost two years, and these problems have only been experienced after switching to content server as a storage repository (as opposed to R3 previously).  Has anyone else experienced these problems? 
    We are running :
    R/3 Enterprise 620,
    SAP HTTP Content Server Version 6.30 Patch 13
    SAPDB version 7.3.0.54

    Hi Sonny,
    To check the connectivity between your content server and Workstation and SAP Server.
    Pls goto the command prompt of your workstation
    give the command like this example.
    C:\>Ping 117.123.45.201
    you will get the reply from the server. here 117.123.45.201 is your content server IP.
    If you are getting the reply then it means that your contentserver and workstation are connected propely.
    Like that pls check the connectivity between your systems.
    Pls check the hosts file of your systems also.
    If the hosts file entry is not maintained, you can check-out file from content server but you cannot check-in the original.
    Pls let me know what kind of error Message you are getting?
    From where you are trying to check-in the Original? From the DIR screen or from CAD Desktop screen?
    Regards,
    MRK
    (reward points if useful)

  • Open/edit documents on SAP Content Server from BW?

    Hi guys
    I have been asked to investigate whether this scenario is possible.
    Today we have a SAP Content Server where we save attachments to different kinds of objects. An example could be that we open appropriation request 'S-00123' from IMA11 and attach two different MS Word documents.
    In BW I have created several reports that contain these appropriation requests and we would like to be able to attach/edit the files on the content server from the BW report.
    Is this somehow possible using RRI or some other functionality?
    Might it even be possible by using GoTo --> Documents with the appropriate setup?
    BR
    Stefan

    Hello Friends,
    Any luck??
    Thank you,
    Nikee

  • Content Server problem after 5.0.2 upgrade

    Hi,
    We've just upgraded our staging environment from 5.0.1 to 5.0.2 and have lost all branding. The diagnostic script reports the following error:
    ==========
    Community Branding Image Publishing Target : FAIL Settings
    Community Branding Image Publish File Location: file://localhost/C:/ProgramFiles/plumtree/ptimages/imageserver/plumtree/portal/templates
    Community Branding Image Publish Browser Location: http://<SERVERNAME>/imageserver/plumtree/portal/templates
    Community Image FTP User Name:
    Community Image FTP Password:
    Possible Resolution
    The file could not be found at the browser locationEnsure the community branding settings in content.properties are correct. The file location and browser location must be valid paths.
    Error Details
    Exception Message: Connect Failed. HTTP response code: 404
    ======================
    I tried resolving both the file location and the http address from within the Content Server box and was able to without problem so I know it's not these it can't see.
    I checked the pcs.log and the following error is reported:
    ======================
    com.plumtree.openfoundation.io.XPFileNotFoundException: jscomponent file for jscontrols not found or failed to load.Exceptions encountered: - com.plumtree.openfoundation.io.XPFileNotFoundException: Failed to receive response from http://<PUBLICURL>/imageserver/plumtree/common/private/js/jscontrols/jscomponent.xmlin the alloted time (10000ms).======================
    It appears that the Content Server is trying to access this xml file via the public url for the image server which, due to firewall configurations in this environment, it won't be able to do. I'd like to be able to change how it looks for this file to be http://<SERVERNAME>/imageserver rather than http://<PUBLICURL>/imageserver
    Where is it getting this from for me to change it?
    Thanks in advance for your advice, hope my problem description makes sense :-)
    Anita

    Hi Diane,
    No, we haven't fully resolved this yet. In addition to the issue listed we've come across a number of others that look like problems from install. We've reached the point where it's looking more effective to try and uninstall Content Server and do a clean install from scratch rather than debug every little thing.
    As part of the new install we're changing the architecture to create an internal ImageServer on the CS server and then use a scheduled task to push everything out to the external ImageServer on the portal box overnight. This should get around a number of the firewall and dns issues currently making communication between the two quite difficult.
    We recently installed another 5.0.2 portal in a different environment and have had none of the same issues with it so we're a little perplexed. When we get this resolved I'll be happy to write a note about what it was. In the meantime if you get anywhere with yours please let us know.
    cheers
    Anita

  • Office 2013 - Unable to open word template

    Hi,
    I have windows service written in VC++ and trying to open a word template xxx.dotx located on the server. however, I am geting below error code while opening the same template. I have written a sample application and it is opening the template.
    my windows service is 32 bit and I have installed office 2013 64bit and OS win 7 64bit.
    <hr=-2147467259>
    working code
    #import "MSO.DLL" rename_namespace("MSOFFICE") rename("RGB", "ofRGB") rename("DocumentProperties", "ofDocumentProperties")
    #import "VBE6EXT.OLB" rename_namespace("MSVBEXT") rename("Application", "ApplicationVBExt") raw_interfaces_only
    #import "msword.olb" rename_namespace("MSWORD") rename("DialogBox", "DialogBoxWRD") rename("RGB", "RGBWRD") rename("DocumentProperties", "DocumentPropertiesWRD") rename("ExitWindows", "ExitWindowsWRD") named_guidsvoid CWordTestDlg::OnButton1()
    // TODO: Add your control notification handler code here
    MSWORD::_ApplicationPtr m_pWordApp;
    HRESULT hr = m_pWordApp.CreateInstance("Word.Application");
    if(FAILED(hr))
    AfxMessageBox("Unable to start MS Word.", hr);
    return;
    AfxMessageBox("Successfully Created");
    m_pWordApp->DisplayAlerts = MSWORD::wdAlertsNone;
    // Make sure the application is not visible.
    m_pWordApp->Visible = VARIANT_FALSE;
    MSWORD::_DocumentPtr m_pWordDoc = NULL;;
    MSWORD::DocumentsPtr pDocs = m_pWordApp->Documents;
    if(pDocs == NULL)
    AfxMessageBox("Unable to retrieve the documents collection from MS Word.", pDocs);
    return;
    // Open the template.
    CComVariant varTemplateName(_T("\\\\xxx.xxx.xxx.xxx\\kx.dotx"));
    m_pWordDoc = pDocs->Open(&varTemplateName);
    if(m_pWordDoc == NULL)
    CString msg;
    msg.Format("Unable to open %s.", _T("\\\\xxx.xxx.xxx.xxx\\kx.dotx"));
    AfxMessageBox(msg);
    return;
    AfxMessageBox("Successfully Opened");
    m_pWordApp.Detach();
    // Reset the MSWord Document ptr.
    m_pWordDoc.Detach();
    thanks,
    Krishna

    Hi,
    Interop is not supported on a Server or with in a services.
    But if you want to this, you have to set up the Environment. I follow this Guideline with my Word and I'm able to start Word on a Server.
    1) Goto Control panel -> Administrative Tools -> Component Services
    2) Expand Tree by clicking on Component Services -> Computers -> My Computer -> DCOM Config
    3) Search CLSId 00020906-0000-0000-C000-000000000046 (which is for Word 97-2003 application)
    4) By selecting 00020906-0000-0000-C000-000000000046 this CLSId now right click on Properties
    5) In the Propeties area, click on Security TAB
    6) Select Customize option from all (Launch and Activations Permissions, Access Pemissions, Configuration Permissions)
    7) Take the User of the Services and Allow all permissions for this user
    8) Go to Identity TAB in the same properties area, select option as a This user and then add username (the user must be administrator of this machine) and password. Click on Apply, Ok
     Locale Profile: True
    9) Refresh Component Services and check your application is working fine or not.
    10) set Folder, if not present:
       C:\Windows\SysWOW64\config\systemprofile\Desktop
    This article gives some insights.
    http://theether.net/download/Microsoft/kb/288367.html
    Hope this helps.
    Kind Regards
    Thomas

  • Creating Activities in CRM using Word Templates and Web Services??

    Hi,
    This functionality can be achieved through Adobe Interactive Forms from what I have learnt through demos etc. We are checking the feasibility of using with Word Templates instead.
    This thread has multiple questions:
    We are trying to set up the activity creation as mentioned in the CRM70 system.
    1) At this point, finished the retrieval of information from the CRM Activity into a Word Template using a READ Web Service. Subsequently synchronized this with outlook and can see the Word document in the outlook item. Not able to open the same in Outlook, since it comes over as a XML document type. "Cannot open as there is a problem with the contents. ">" expected, line so and so...is the message
    2) I created a Web Service that writes as well into CRM and would like to use this from the Word Template to create the activity in CRM
    2a) Can the word template be incorporated with buttons that can trigger creation in CRM, similar to Adobe "Execute" etc
    2b) If yes, and If there are some custom fields that I add to the activity transaction, in the UI, can I populate these with input from the Word Template, as well
    Regards,
    Ashwin

    Hell Wregs,
    You can create the Product in CRM GUI,by using Transaction:COMMPR01,not mandatory to have WebUI..,
    but b4 that you need to set up Product Hierarchy and Product category under which the Products can be created.
    Use Transaction:COMM_HIERARCHY Transaction to do this.
    Hope this helps
    let me know if any further questions
    Thanks & Regards
    Arshad

Maybe you are looking for

  • Asset Settlement : Tax Error

    Hello Friends, We are settling one AUC asset . For that we have followed these steps 1 ) AIAB : AuC Assignment of Dist. Rule       These are ok 2 ) AIBU : Transfer Asset under Const.          It is giving Tax error "Tax code  in procedure  is invalid

  • Documentation in PDF instead of LiveDocs

    I am looking for the document "Adobe AIR 1.1 Language Reference for HTML Developers" in PDF so I can read it on the bus. Is there a copy of this available?

  • Help? ipod update 1.1.2

    hey oes any one out there have ipod update 1.1.2 that can email it to me i had to restore my computer and i lost it now my ipod freezes cuz of 1.2 and i would really like to go back

  • URL link in MSS/ESS

    Hi Everybody, Is it possible to insert  URL link in Area group page in MSS. If possible please guide me how to do it? Thanks in Advance.

  • 9.0.3 fails with -2093 error

    Hate to start a new thread but... the rest don't seem to provide resolution. New Dell with windows 7 after installing 9.0.3 itunes. After install quicktime fails to load with a -2093 code and a message to reinstall. I've tried most of the suggestions