Automatic filling of form table-fields in the document

Hi Gurus,
We are working with sap RM on WAS640.
In our Record Model we need to include a Word document that is to be used as a template. Inside the template we defined a table which has a fixed number of columns and one line which will be contains one position of a SAP document (for example an order).
We want to fill the lines of the table at run time. We need that the system add a new line to the table inside of  the document/template, if necessary (SAP document has more than one position), dynamically.
Is it possible by means of de connection parameter <b>FUNCTION_GET_FORM_DATA</b>?. if no, does exist another ‘exit’ to fill this kind of ‘table’ form fields dynamically?
Thanks in advance,
   Cima.

"path" is a keyword within a PDF you should not use keywords as a name for any other object as a general rule.
Have you checked the PDF Reference to see how to create a file path name within a PDF,  3.10.1 File Specification Strings page 118?
Did you carefully read the Acrobat JavaScript Reference for the saveAs method?
The notes following the description:
Note: This method can only be executed during a batch or console event. See Privileged versus non-privileged context for details. The event object contains a discussion of JavaScript events.
(Adobe Reader S): This method is available in Adobe Reader for documents that have Save usage rights.
How to Save a PDF with Acrobat JavaScript

Similar Messages

  • [solved] ADF BC - Automatically fill in form fields

    Hi all,
    I think i just need pointing in the right direction. I am using ADF 11g BC.
    Here is the case in EMP/DEPT terms. I click a row on the DEPT table, and click add employee button. A popup launches with a form. I want to have the DEPTNO and DEPTNAME filled in already based on the row that was clicked on. I currently am using createWithParameters when the button is pressed and am able to send in the deptname and deptno as parameters, i am just unsure of how to actually fill in those 2 fields of the form.
    Any pointers/suggestions?
    ~Dan
    Edited by: Dan Surkan on 25-Mar-2009 9:37 AM

    I had that problem too recently. It seems the parameters table is disabled wrongly. I worked around that be manually editing the XML via the Source tab. Here's an example of a "Create with parameters" action with two parameters:
        <action IterBinding="XyzIterator"
                id="CreateWithParams" RequiresUpdateModel="true"
                Action="createWithParams">
          <NamedData NDName="XyzId"
                     NDValue="#{someBean.someValue}"
                     NDType="java.lang.String"/>
          <NamedData NDName="Year" NDValue="#{someBean.someOtherValue}"
                     NDType="oracle.jbo.domain.Number"/>
        </action>Bart

  • How to bind JtextFields in Swing to Table fields in the database

    Can some one give the code of how to bind JtextFields in Swing to Table fields in the database
    Am really new to java programming and have interest in learning

    The standard JDK doesn't do this for you. If you search on Google, you may find some 3rd party packages that will do this.
    You need to create your own form add execute the appropriate SQL yourself. Read the tutorial on [url http://java.sun.com/docs/books/tutorial/]JDBC Database Access to get started.

  • Table fields for the text editors

    Hi,
    How to find the table fields of the text editors in the functional screens like MM03 --> MRP4 View --> Material Memo. Or how to upload text in the editors using ABAP program.
    Thanks,
    K R Vishnu Kumar

    Hi,
    Any long text will consists of the TEXT_NAME, TEXT_ID, TEXT_OBJECT and the LANGUAGE.
    To find out these details you basically have to open the text in the text editor by double clicking on it.
    And then go to the Header details in the Menu.
    Here you will find all the relevant information.
    You pass these details to FM SAVE_TEXT to save this text to database and you make use of FM READ_TEXT to read these texts.
    The texts are basically stored in STXH and STXL tables.
    Regards,
    Ankur Parab

  • Which table field stored the exchange rate for controlling documents?

    Hi,
    May i know which table field stores the exchange rate used for a controlling document?

    Hi,
    The exchange rate is not specifically stored in CO. In table COEP, the data in transaction currency, object currency and controlling Area currency is stored. You can derive the exchange rate from here.
    Rgds
    Shivram.

  • Field functional area does not appear as an entry field into the document..

    Hi,
    We are using the functional area field in our system. In order to access this field, we proceeded
    to customize the system as follows:
    -  We already activate Cost of Sales Accounting for our Company Code.
    -  The field functional area was set optional through transaction OB41, for the posting keys required.
    -  The field functional area was set optional using transaction OB14, for the field status group assigned to the GL accounts.
    However, we cannot enter the area functional when we are posting documents related to customers and vendors. 
    Although the field functional area was set optional, it does not appear as an entry field into the document screen for the
    different transactions: fb70, fb60, f-02,fb01.  It is only happening when we areentering the document position for the vendor/customer.
    Regards,
    Efrain

    Hi,
    In FB70 or FB60 change the layout ........ select the line item layout configuration, you get a separate Table Settings screen pop up where in you need to select "Administrator"  button the system displays another pop up window where in you can check whether the Functional Area field is checked as invisible if so remove the check mark and active the settings.
    Kind Regards

  • CRM Table to see the Document Flow

    HI,
        Is their a Table to find the Document flow in CRM.
    With regards,
    Selvam T

    CDBD_DOC_FLOW
    Contains the Header Information for a Business Transaction.
    Note:
    1. It doesnu2019t store the Business Partner responsible for the transaction. So, to get the Partner No, link it with CRM_ORDER_INDEX.
    2. This table can be used for search based on the Object Id (Business
    Transaction No).

  • Search Help on Table Control - Fill more than one field in the table?

    Hey everyone,
    I have built a screen with a Table Control on it... the fields of the table control are linked to an internal table...  The internal table has the line type of a structure I've defined in the data dictionary.  Within that structure in the data dictionary, I've linked some fields to search helps (For example, a MATNR and CUSTOMER search help)...  I've defined in the structure definition which fields from the search help are to be returned to which fields in the structure.
    The problem is, even though I have the search help set to export both the customer number and location when using the search help on the customer field, it still does not fill the location field within the table.  Is this a limitation of using search helps within table controls?
    I'm also finding that by defining the search help through the structure, instead of directly within the screen, the search help round button does not show up on the field, yet I can still press F4 to bring up the search help.  Is there a reason why it's not showing the search help clickable button even though it works fine using F4?
    For doing search helps in Table Controls, is it better to just build the search help, attach it directly to the field in the table, and then after the user picks the single field, use the PAI to run a select and fill the rest of the fields required?
    Thanks,
    Dallas

    Hi Dallas,
    (1)
    What  i understood is that you added a search help by defining it in the internal table type for a field customer number..in the search help you have 2 fields customer number and location...user press the search help ..then you need to fill 2 different fields or 1 field?
    if you need to fill the customer location or location (only one) then you need to set the "import" in the search help for whichever is required.....
    if you need to fill 2 or more different fields..then you can use the technique you have mentioned last , to do a select in PAI and fill the fields....but this you can use if the combination for the fields is unique...eg: u have customer number and location..if customer X can be mapped to location X and location Y..when a select statement is done there are 2 options..so in such cases it is better to leave the option to the user otherwise if there is a clear mapping like customer X can be mapped only to location X then you can use the select..
    (2)
    usually when you define it as a type in the internal table the icon doesn't show up..but you can do alternative like mentioned..go to the table,find the search help for the required field if present or create a new one if required and place the search help mentioned in the screen itself..so as to see the icon...sometimes users are adamant that they need the search help icon to be seen..so it depends on if your user
    (3)
    as in the example of customer number and location mentioned we can provide them different search helps and do the needful processing in PAI to fill the fields
    Table controls may be used for different purposes and requirements....even a checkbox,push button can be placed as a field in table control and used,but yes most of the time requirements are like what is mentioned in your case...
    Regards
    Byju

  • Using javascript to save a pdf to a different directory and generating a new filename based on form fields in the document.

    I have built the following script in an attempt to create a submit button that will automatically save the document in a different directory on my computer. It will also use the form field data "customer" and "date" to generate the filename. I printed out the variable myPath and it looks like it printed the correct string. I keep getting the following error:
    TypeError: redeclaration of const path
    any help would be much appreciated.
    var customer = this.getField("Customer").value;
    var date = this.getField("Date").value;
    var path = "C:/Users/awilliams/My Documents/Test/"
      var reg = date.match(/(\d+)\/(\d+)\/(\d+)/);
    var myPath= "C:/Users/awilliams/My Documents/Test/" + customer + "_" + reg[1] + "." + reg[2] + "." +
    reg[3] + ".pdf";
    this.saveAs(myPath);

    "path" is a keyword within a PDF you should not use keywords as a name for any other object as a general rule.
    Have you checked the PDF Reference to see how to create a file path name within a PDF,  3.10.1 File Specification Strings page 118?
    Did you carefully read the Acrobat JavaScript Reference for the saveAs method?
    The notes following the description:
    Note: This method can only be executed during a batch or console event. See Privileged versus non-privileged context for details. The event object contains a discussion of JavaScript events.
    (Adobe Reader S): This method is available in Adobe Reader for documents that have Save usage rights.
    How to Save a PDF with Acrobat JavaScript

  • Can't get a delimiter between Reapting Table Fields using the Double Eval formula.

    I have a problem in setting up the "Double Eval" formula, for a repeating table field.
    Background:
    I have a multiple-selection list box in an InforPath (2010) form. I want to concat all selected values in the list box and display them in a textbox with ";" as delimiter. I've gotten so far that with rules running when the list box is updated, the
    textbox content is updated listing the IDs of the selected items (I'm not sure yet if I want to display the IDs or make a lookup for the true text values, but that's another issue for later...).
    Problem:
    My problem is that I can't get the delimiter between the values. They are all listed in sequence with the ";" delimiter only at the end.
    I use the following formula ("Required" is the repeating field)
    eval(eval(Required; 'concat(., ";")'); "..")
    and get the following result:
    What I want to get into the comments text box is the string "684;239;91;".
    Any ideas what's wrong with my formula?
    (Using InforPath 2010 on a list published to SharePoint 2010.)

    Additional info that maybe is important to know:
    The multiple-selection list box is getting its values from a secondary data connection using a web service call:
    http://MySite/_vti_bin/ListData.svc/MyList?$filter=((CT%20eq%20'Product')%20and%20(CompGroup%20ne%20'OS'))&$orderby=Title
    The selections in my list box is yet stored in the field "Required" in a different SharePoint list, we can call it "BaseList", at the same site ("MySite").
    So to summerize:
    List 1: MySite/MyList
    Fields: CT, CompGroup, Title
    List 2: MySite/BaseList
    Fields: Required
    The different lists have more fields of course, but no need to list them all.

  • Displaying Description for SAP Table Field in the View

    Hi
    We are working on a HANA implementation Project Where we have a requirement to build View on HR tables.
    Issue: When i join HR infotypes (tables ) in the view it is getting only Technical names and not descriptions. i have used Semantics option which is available and still it doesn't bring description in to the View.
    Please let me know if any one has solution or work around for this.
    We have more than 100 fields in the View so maintaining Descriptions manully will take lot of time.
    Regards
    Venkat

    Hi Chandra
    Yes, We have Description available in the sourece tables.
    We are connected to HANA Suite and tables in ECC having Descriptions.
    Regards
    Venkat

  • Does "Automatically fill free space with songs" refill the iPhone regularly

    I have a bit of music I'd like to have it shuffle, and having it essentially use the autofill command every time I sync my iPhone would be a bonus.
    So when you choose "Automatically fill free space with songs" in Sync Music, does it refill the iPhone's music regularly, or do you need to uncheck, sync, and check again in order to keep the autofilled music from stagnating on the phone?

    Also, how does it decide what to add to the iPhone?

  • Tables fields where the system status is getting stored

    I need to find out the Quotes which have open and completed system status.
    Once I find these orders I need the check the validity dates of the Quotes.
    Can experts please let me know the tables where the system status and the validity dates are stored?

    Try TJ02
    It contains the System status ISTAT.
    Kindly execute the report CRM_ORDER_READ.
    This is a report for executing the FM CRM_ORDER_READ.
    provide the transaction ID or guid as teh input.
    Check the ET_STATUS and ET_APPOINTMENT tables which contain the details required.
    In the table ET_STATUS search with the header GUID.
    The values with I are the system status and the value with E is the user status.
    Explore the result of this report to get more detail.
    Regards,
    Taher

  • Combining 2 fill in form pdf's into one document

    I have created several fill in forms for my quality system in my business.
    I open an empty form as a template, fill it in with data, then save it under a unique file name. For example, form1.pdf would be filled in and then saved as completedform1.pdf, then refilled in with different data and saved as completedform2.pdf.  Each form contains the same fields but different, unique, data.
    I would like to take completedform1 and completedform2 and merge them together into one master file.  This file would be named, for example, as masterform1.pdf
    When I insert completedform1.pdf into masterform.pdf, everything works fine.  However, the problem occurs when I insert completedform2.pdf.  As soon as the second form inserts, all of the data in the fields of completedform2 switches to match that of completedform1.  I believe this is because the fields have the same names (obviously) and so Adobe thinks the data should match.  However, I do not want it to change, each form (once filled out) becomes it;s own unique document.  I would have thought doing a save as and giving it a unique name would take care of this, but apparently not.
    What do I have to do to "cement" the data on each form so that I can combine them yet maintain their individual data integrity?

    The 'flattening' `graffiti is refering to is the Acrobat JavaScirpt action and not the prepress flatten. This JavaScript method was added with version 7 of Acrobat and it will not work with any version of Reader.
    Converts all annotations in a page range to page contents. If a page range is not specified, all annotations in the document are converted.Note: 
    Great care must be used when using this method. All annotations—including form fields, comments, and links—on the specified range of pages are flattened. They may have appearances, but they will no longer be annotations.
    You can download a 'Flatten Pages' automation tool from Free Acrobat Automation Tools. You will have to read the included text file and JS file to learn about installing this code..
    You can add the following code to the downloaded code to add a new menu item under the 'Document' option:
    //</JSCodeSnippet>
    //<JSCodeSnippet name="AddMenuItem">
    // add menu item to docuemnt option gtk
    try{ app.addMenuItem({ cName: '*Flatten Pages',
    cUser: 'FlattenPages',
    cParent: 'Document',
    cExec: 'PDFScript_DoFlatten()',
    cEnable: 'event.rc = (event.target != null);',
    cMarked: 'event.rc = false'});
    //</JSCodeSnippet>
    } catch(e) {}
    //</JSCodeSnippet>

  • AWKEY field of the Document Header of BAPI_ACC_DOCUMENT_POST

    HI Experts,
    I am using BAPI_ACC_DOCUMENT_POST to create Finance Postings and have a requirement to populate the Reference key field externally while using this BAPI.
    I am aware of the fact that if I leave the fields OBJ_TYP(Reference Transaction), OBJ_KEY(Reference Key) and OBJ_SYS(current system name) of the DOCUMENTHEADER segment of the BAPI as blank while executing the BAPI, these fields will be automatically populated with values as under:
    OBJ_TYP = 'BKPFF'
    OBJ_KEY = '0100000021BE102011' (BELNRBUKRSGJAHR)
    OBJ_SYS = System name
    But the Reference transaction (OBJ_TYP) which we need to use is 'HRPAY' and the OBJ_KEY should have the value of BELNR (only), OBJ_SYS should be populated as usual.
    I tried get the next BELNR available, using the FM 'NUMBER_GET_NEXT' and then tried assigning it to the BAPI in the BELNR field of the DOCUMENTHEADER segment of the BAPI, but as we know that the BAPI_ACC_DOCUMENT_POST also determines the next BELNR internally, the number returned by the FM NUMBER_GET_NEXT becomes redundant and the BAPI_ACC_DOCUMENT_POST uses the number next to it.
    To understand it in detail consider the below example:
    Suppose the number BELNR available (number returned by NUMBER_GET_NEXT) is 0100000021 and I pass it to the BAPI, since I have already used this number (by executing NUMBER_GET_NEXT) the BAPI_ACC_DOCUMENT_POST will create a Posting with 0100000022 as the BELNR.
    I am looking for a way to reserve the BELNR, so that the resultant BELNR should be the same as the one which I pass to the BAPI_ACC_DOCUMENT_POST.
    I would avoid trying to get the previous BELNR used (NUMBER_GET_INFO), increment it by 1, and then pass it to the BAPI_ACC_DOCUMENT_POST.
    Please suggest.

    Hi Amit,
    To swap the OBJ_TYP of the AWKEY from BKPFF to HRPAY sounds strange to me and I am unclear about the purpose. There are many other fields available to indicate the source of the document. (BKPF-XBLNR).
    Another approach would be to check if any exit exists for this BAPI thru which you can manipulate the OBJ_TYP:
    [User exit for BAPI_ACC_DOCUMENT_POST..? |User exit for BAPI_ACC_DOCUMENT_POST..?;
    Regards,
    Robert

Maybe you are looking for