Merge Fields with Content Controls

Hello everybody,
we are using word templates to generate quotations in print form. This process worked fine using the old Technology (custom XML).
Because a newer Version of Microsoft Office is now being used, the technology has been updated to the new one (content controls).
Now we are facing one Problem. With the old Technology we used merge fields for formatting fields, e.g. to get rid of leading zeros. But it seems that the function of merge fields cannot be combined with a dynamic field which has been added to the document out of the SAP Data Panel.
Has anybody an idea how we can use merge fields with this new technology?
Best regards,
Patrick Müller

Hi Albert,
The Demo program SAPRDEMO_MAILMERGE_INTERFACE you have found is correct for the issue you are facing. If you still have trouble with your program do let me know and i will write down the steps for you here.
However, for the issue I have posted here, program does not work. I have tried writing a IF condition in the Mail Merge Template and to execute it but to my surprise it does not work. Neither SAP has provided any specific information related to Formula and calculations to be done in Mail Merge Template.
Cheers,
Kunjal

Similar Messages

  • Possible to include merge fields with exported PDF?

    Hello,
    I have only a simple question - is it possible to include data merge fields when exporting to pdf?
    Using InDesign CS2, we are doing a direct mailing campaign and having the printing outsourced. It is a 4 page document with only page 1 personalised - sending to over 1,500 recipients.
    The printer says he doesn't want our indesign file, he just wants us to create the 4 page indesign document, prepare the data merge fields, export to pdf and then send it to him.
    He says he'll then import it back into his own indesign one he gets this pdf and do the merge himself with the excel .csv file we provide.
    Does this sound about right? If so, how can I ensure the pdf is correct to send over?
    I have managed to get the data merge fields to be clickable like links in the exported PDF by including 'hyperlinks' and 'interactive elements' when exporting - but is this correct?
    Thank you in advance for all your help...

    The printer is right that he can use your pdf.  It is ok to place a pdf into InDesign. It might fit into his workflows and experience to do this work so.
    I would recommend to use a PDF/X4 with bleed as the printer requieres to place into an INDD file. But you should communicate with your printer how he wants it.

  • Linking Data Merge Field with JavaScript for PDF link

    Hello everyone,
    I am using the data merge in InDesign to generate a PDF with data from a data source file. The data merge will populate a Product Number field. I want to write a script that will modify the Product Number field to contain a JavaScript Link in the resulting PDF.
    For example, the product number [1234-567] will launch: app.launchURL("plsddr://localhost/1234-567|*", true); when the Product Number link is clicked on in the resulting PDF.
    Can anyone provide an example on how this could be done, or point me in the right direction? If there is a better way to go about this, please let me know.
    Thanks!

    What findText returns is a list of Text, but that's totally interchangeable with Word. It appears InDesign can switch at will between Characters, Words, Lines, Paragraphs, and Stories.
    Text can consist of one single SpecialCharacter (a column break, or a hard return, or any of the SpecialCharacters enumeration), or of a standard JavaScript "String" object -- a simple Unicode string.
    The property that 'holds' the text is "contents" -- so, adding all of this up, to 'get' the text that has been found, you'd typically use
    next = list.pop();
    alert ("The text contents of this one is '"+next.contents+"'");
    and you can build further on that -- using it as a HyperlinkDestination URL, or something like that. The Text item -- 'next' -- still points to the 'live' text it was found at, so be careful not to modify it. Doing something like
    next.contents = 'hey what happened';
    will change the actual text in your document. But it's also useful to add, for example, a hyperlink to the actual position this text was found on.
    (A tip regarding changes: if you are to change your document, the original items findText pointed to will be messed up after you changed the first one! To prevent that, work backwards from the last item found to the first. findText(true) will reverse the order of found items, from last to first -- see the JS Help on that.)
    As for
    (Also, how do you print the contents of a Word object?)
    that depends on what you mean with 'print' . To a printer?

  • Add field with 1

    maybe someone now about elgant way to add field with content '1' to my internal table for all the data i have in table
    ex.
    score***ggg
    1*********23
    1*********32
    1*********25
    1*********23
    regards

    Hi anotonio,
    Here is solution you are for.........
              LOOP AT internal_table INTO work_area.
                 CONCATENATE '1'  work_area-fieldname1 INTO work_area-fieldname1.
                 CONCATENATE '1'  work_area-fieldname2 INTO work_area-fieldname2.
                 CONCATENATE '1'  work_area-fieldname3 INTO work_area-fieldname3.
                MODIFY internal_table  FROM work_area.
            ENDLOOP.
    In this way you acheive, your desired output.
    Reward,if helps.
    Regards,
    V.Raghavender.

  • Identifying a content control in a Word 2013 document and accessing the current "text" value of the control.

    I'm new to VBA and need to better understand the syntax for identifying, accessing control "value" and setting the value from a user form.
    My task is this, I have a word document containing the new Content Controls. I need to be able to access each individual control to initialize a UserForm control. I then need to update the "values of the controls on exiting the UserForm. Can someone
    proved some simple sample code showing this functionality? I have surmised that the "range" attribute holds the value of the control but I need the textual or logical value of the control.
    Thanks.

    Hi Gunteacher,
    My task is this, I have a word document containing the new Content Controls. I need to be able to access each individual control to initialize a UserForm control. I then need to update the "values of the controls on exiting the UserForm.
    What's content control you are using? Based on my understanding, we can indentify the content control by its tag and get the value of content control and initialize the control on the userform in the initialize event of userform. For example,
    code below is that get the text of rich text content control:
    ActiveDocument.ContentControls(1).Range.Text
    And here are some helpful links about content control for your reference:
    ContentControl Object (Word)
    Working with Content Controls
    What did you mean "I then need to update the "values of the controls on exiting the UserForm."? Did you mean that when the values of content control is changed, it should update the control on the user form which was open before?
    As far as I know, there is no such event suitable for this secnario. If you want content control to support this event, I suggest that you submit the feedback from the "Smile Face" at the top right corner of Word.
    Regards & Fei
    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.

  • How to set a string field with people picker control group

    Hi Guys
    I have a problem with a form list, when I need to set a string field with de content of people picker control that have more than one "user".
    Is there any way to put in string a list of user like the people picker control shows in a form?
    The really problem is I don't know how to read an array of user in a formula rule.
    any example or idea should be appreciated.
    tnks.

    Hi ,
    Please try out in following way :
            /// <summary>
            /// Set value to people picket control
            /// </summary>
            /// <param name="key"></param>
            /// <param name="ppl"></param>
            /// <param name="item"></param>
            private void SetDatatoPeopleEditor(string key, PeopleEditor ppl, SPListItem item)
                try
                    if (item[key] != null)
                        string users = string.Empty;
                        SPFieldUserValueCollection userCol = new SPFieldUserValueCollection(web, item[item.Fields.GetField(key).Id].ToString());
                        foreach (SPFieldUserValue usrItm in userCol)
                            users += usrItm.User.ToString() + ",";
                        ppl.CommaSeparatedAccounts = users.Remove(users.LastIndexOf(","), 1);
                catch (Exception ex)
                    lblErrorMessage.Text = ex.Message;
    private SPUser GetAccountName(PeopleEditor accountPE)
                SPUser user = null;
                string strAccountName = String.Empty;
                try
                    for (int i = 0; i < accountPE.ResolvedEntities.Count; i++)
                        PickerEntity objEntity = (PickerEntity)accountPE.ResolvedEntities[i];
                        user = web.AllUsers[objEntity.Key];
                    return user;
                catch (Exception ex)
                return user;
    It works for me .

  • Issue with Duplicate Merge Fields in PDFs

    I have been utilizing merge fields from our Salesforce instance into our Forms and Contracts for a couple of years now and have never come across this issue.  Since we utilize Salesforce, we will have certain merge fields duplicated on multiple pages.  For instance, the Record Owner's Name and Firm from their User records will be on different pages, but will be coming from the same source and need to show the same information.  Everything seems to be fine once the documents have been merged, it is printing that is causing the issue.
    If I place "Master.Owner_Name" into the PDFs on multiple pages, it will change the name to "Master.Owner_Name#1" and "Master.Owner_Name#0".  So now when our users are printing the documentation, the fields are printing out vertically.
    Has anyone seen this issue before and how were you able to resolve?
    Thank you for any assistance you can provide!

    PDF forms are not Salesforce forms and do not work in the same way.
    Within a PDF form any field with same type of field and same name will share the same value.
    All fields should be uniquely named.
    LiveCycle form behave differently and do support same field names with different values unless a field is configured as a global field.
    The usual way to have multiple copies of a from within a single PDF is to use a template to make the multiple copies and uniquely name the fields on the copy of the form.

  • HR Master Record Replication to FI with Dual Control for Sensitive Fields

    Dear Experts,
    We have an issue on our project whereby employee records are maintained in HR, but replicated to FI on a regular basis via tcode PRAA, creating employee vendors.
    We wish to activate the "Dual Control for Sensitive Fields" for the vendor master, however all employee vendors created via PRAA are also blocked and require confirmation.
    Have any of you encountered a similar issue, and how do you resolve it?
    Many thanks,
    Mark

    Hi,
    Please go through the following path for configuration :
    Point No. 1
    1> Customer
    IMG --> Financial Accounting (New) --> Accounts Receivable and Accounts Payable --> Customer Accounts --> Master Data --> Preparations for Creating Customer Master Data --> Define Sensitive Fields for Dual Control (Customers)
    2> Vendor
    IMG --> Financial Accounting (New) --> Accounts Receivable and Accounts Payable --> Vendor Accounts --> Master Data --> Preparations for Creating Vendor Master Data --> Define Sensitive Fields for Dual Control (Vendors)
    Point No. 2
    You can execute transaction code FD08 in background with a periodic job for each User ID who has authorization and tick on Accounts to be confirmed by me and send the output via mail through distribution list or each user can view output by viewing spool by going to transaction code SP01.
    Point No. 3
    Same as point 2 only need to select option Accounts refused.
    Point No. 4
    Yes
    Point No. 5
    Same as point 1
    Hope your issue gets resolved.
    Regards,
    Tejas

  • Mail Merge script to replace any blank fields with specific text

    In InDesign Mail Merge I would like to replace any blank fields with specific text. For example if we have four fields (A, B, C & D) to merge, and field A is blank, it would insert field C.
    In essence leaving no blank fields but replacing a blank field with another specific field.
    I have read that inDesign does have Mail Merge limitations but if there is a script that we could run that would solve our problem.
    Please let me know if you can help?

    I take from the lack of response it is not possible to do this in InDesign.

  • I want to create a mail merge for address labels into a table, but when I fill a table with merge fields, it ends up creating multiple entries for the same address, rather than one table full of each address.

    ...but when I fill a table with merge fields, it ends up creating multiple entries for the same address, rather than one table full of each address. Please help.
    Thanks!

    That is a quirk of Pagesthat  it applies only one record per page.
    There is a way around this:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=245&highlight=labels &mforum=iworktipsntrick
    Peter

  • How can I merge folder with the same name so that the content does not replace the other

    How can I merge folder with the same name so that the content does not replace the other?

    >
    That's only a good idea if the semantics of sayHello
    as defined in MyInterface suggest that a
    RemoteException could occur. If not, then you're
    designing the interface to suit the way the
    implementing classes will be written, which smells.
    :-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
    Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.

  • Replace the empty field with below data content field in xml pub report

    Hi Gurus,
    Please give me the solution for the Replacement of empty field with below data content field in XML PUBLISHER REPORT.
    ex:
    Name:Philips.M
    Address 1:XP APPTS,
    Address 2:S:R ROAD
    Address 3:
    COUNTRY:INDIA
    Here i have to get only address 1,address 2 and the COUNTRY data.I dont want to display Address 3 field here.
    Thanks,
    David

    I'm not sure if this answers your question but you could try putting out the address all in one item in the SQL eg somthing like:
    address1 || DECODE(address1, NULL, NULL, 'newline character') ||
    address2 || DECODE(address2, NULL, NULL, 'newline character') ||
    address3 || DECODE(address3, NULL, NULL, 'newline character')
    where 'newline character' is somthing like CHR(12)
    Dave

  • Conditional fields with Data Merge

    I have, what I believe, would be a common question for people using Data Merge in InDesign for business cards.
    I have multiple phone fields, with a small-caps letter to indicate what type (mobile, direct, fax, etc.), i.e.:
    M <<Phone Mobile>>
    D <<Phone Direct>>
    If an employee has only one phone line, how can I make it so that the entire line will be omitted from the final merged doc?
    In the past, I've just gone through the final set and quickly removed extra lines/characters, but I know there's a way!
    Thanks.

    You could also do a find/replace (or, rather two of them if needed) to remove the leading character.
    So for your "D" phone number example, you would do a F/R after the merge like so:
    D <FEFF>\r
    If I remembered the syntax correctly, anyway. It finds the literal 'D' followed by a space, followed by an empty merge field marker, followed by a return. Replace would be with nothing.
    Else consider using a merge product that has the conditional capabilities. Em Software makes one such plug-in. I use Xdata for QuarkXpress a good bit, their InDesign counterpart is called InData.
    Mike

  • How can I have two fields with the same name if it makes sense?

    Hello, folks :)
    I have a pretty hard time figuring out how I can have two text fields with the same binding name.
    The whole problem is that when I need two fields with the same binding name they are still differnent coz they have the same name but differnt indices.
    I should make a form filled at runtime by merging a pdf form file and an fdf file data file. And I have no choice to do it differently. And my form file needs some data like customerName, companyName twice in one form. But there's only one possible buinding name indexed zero.
    How can I create a field with absolutely the same name or is it just impossible due to possible name conflicts? And is there a workaround to this problem? I just need one piece of data repeated in different places.
    Thanks for your replies :)
    P.S. if u think that the problem is not clear enough let me know. I'll supply you with more details. But the general process can not be changed.
    One pdf should be mergred with an fdf with as the result of their merge a new filled and flattened form. I have no control over fdfs their are generated by Oracle and I can not fill the form using XML files coz this process should be integrated in a working application.

    I just thought about a really ugly workaround with a server-side script adding values to fdf files but it's a bit of work and tests and personally i think it's a bad idea :-(

  • Create data merged document with data on every second page?

    Is it possible to create a data merged document with the variable data only on every second page?
    I have set up the pages with the variable data as a master page (on every odd page) with the text box and paragraph style all set up, and I have set 'override master page items' so the data can be placed, but InDesign seems to freeze up when I try to create the merged document?

    There should be no problem doing the merge with a two-page master and a two-page template document with fields only on one page (and off the top of my head there's no reason to move them off the master page if that's where you put them). I think the problem here is that rachrachm already has a file of 500 pages (based on another thread asking how to apply masters to every other page).
    It's potentially possible to simply place the data file (without the header row) as a text file and auto-flow through the master page frames (can't say for sure without seeing the files), or if the pages without the merge fields are the same just, remove all but the first two pages from the template and do the merge.
    As I metioned earlier, though, this is a very inefficient method of producing that sort of document. A true variable data print flow would be better (you'd need to find a commercial printer who can do it with your data file), or the home version would be to make one single page file for the static content, print 250 copies (plus a few extras, just in case), then make a single page merge template, do the merge, and print that on the back of the already printed pages, or as a separate page. It is immeasurably faster to print multiple copies of a document than it is to print a document that has multiple identical pages.

Maybe you are looking for