Add fields automatically

I thought I read somewhere that Livecycle version 8 could automatically add fields to your form by trying to guess where they would go. Is this possible?

You could create a batch process that executes javascript code. You would set up the batch process once and could run it on many documents. One example of how to do this using code modified from a thread on the Adobe Scripting Forum (http://forums.adobe.com/message/1994082#1994082):
Create a batch process:
Advanced >> Document Processing >> Batch Processing >> New Sequence (give a name here) >> Select Commands >> Execute Javascript >> Add  (double click)
Code:
/* Add three signature fields */
var f = this.addField("Prepared Signature", "signature", 0,
[320, 660, 450, 640]);
f.setAction("OnFocus", "var f = this.getField('TodayDate1'); f.value = util.printd('d/mm/yyyy', new Date());");
var g = this.addField("Reviewed Signature", "signature", 0,
[320, 630, 450, 610]);
g.setAction("OnFocus", "var g = this.getField('TodayDate2'); g.value = util.printd('d/mm/yyyy', new Date());");
var h = this.addField("Approved Signature", "signature", 0,
[320, 600, 450, 580]);
h.setAction("OnFocus", "var h = this.getField('TodayDate3'); h.value = util.printd('d/mm/yyyy', new Date());");Create

Similar Messages

  • Add Date automatically when Signature Field is signed

    I was looking for a way to use Java Script in my Adobe Designer form. I want it to complete the Date field automatically with the current date when the signature field is signed. I was thinking something like, when if SignatureBox = True, then DateField...
    Am I even close? I'm a bit rusty on my Java Script.
    Any suggestions?
    Thank you,
    Chris

    And that is why many responders use only the custom JavaScript calculation option.
    The UI for the select fields and simplified field nations are only a way to pass field names to a JavaScript function that performs the actual calculation. Sometimes these functions call other functions and pass the parameters can lead to errors in the attempted code.
    I would start to learn code JavaScript for Acrobat.
    The pick field dialog is for performing calculations involving sums, products, averages, minimum, and maximum. I am not sure how that would work with a digital signature. Once a signature is applied the form fields could be locked.

  • Add Fields from table ADRC (Fields Name 1 to 4) for Open Item Processing

    Hi SAP Expert:
    Our client requires vendor/customer name to be displayed in the open item processing line layout for transaction code f-58, so they can double check if the vendor name is complete as intended. 
    We intend to add fields from table ADRC instead of REGUH since the characters in maintaining vendor/customer name is 40 characters and REGUH - ZNME1s are only 35 characters. 
    We have managed to add fields from ADRC and change the SAPDF05X program and were able to display the names in open item layout, except that the program seems to "automatically" create a generic table which only carries 30 characters of the vendor/customer name.  The source table should be RFOPS_DK but the program automatically looks up from table RFOPS_GEN for the particular fields - Name 1 to 4.  Is there a way to "instruct" the program to use RFOPS_DK instead of RFOPS_GEN?
    Hope this will merit somebody's attention... Thanks !!!

    Thanks,  i have assigned the layout via o7v3,  it is the program that i have a problem with,  actually another program that we change is the program MF05BFPO where it generates data to be displayed in the FBZ4 screen,  though we add a field with 40 characters (ADRC Name 1 to 4)  what the program dispalys is a 30 character Name1 to 4 from structure RFOPS_GEN. 
    My question is can i extend/change the structure RFOP_GEN to 40 characters,  is there any SAP standard program that will aftected if i do so?  thank very much...
    Lorena

  • How  to add field( VBAK-SUBMI) as a Selection Criteria - VL10

    Hi friends,
    Could u please help in sort out the below issues,
    1. Add field VBAK-SUBMI as a Selection Criteria to the Selection Screen for the VL10 - Program V50RINCL, user exit V50R_SELECT_OPTION_ADD
    2.Transfer the VBAK-SUBMI field to the report created during the VL10 transaction. – Program V50RINCL, user exit V50R_USEREXIT_TRANSF.
    I am bit new to enahancements, please provide some information to achieve the above objects.
    Poits will be rewarded.
    Thanks.
    Regards. VKRAO.

    Hi,
    <b>Plz find the explanation abt user-exit below</b>
    User exits :
    1. Introduction
    2. How to find user exits
    3. Using Project management of SAP Enhancements
    1. Introduction:
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    Example:
    The program for transaction VA01 Create salesorder is SAPMV45A
    If you search for CALL CUSTOMER-FUNCTION i program
    SAPMV45A you will find ( Among other user exits):
    CALL CUSTOMER-FUNCTION '003'
    exporting
    xvbak = vbak
    xvbuk = vbuk
    xkomk = tkomk
    importing
    lvf_subrc = lvf_subrc
    tables
    xvbfa = xvbfa
    xvbap = xvbap
    xvbup = xvbup.
    The exit calls function module EXIT_SAPMV45A_003
    2. How to find user exits?
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
    If you know the Exit name, go to transaction CMOD.
    Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
    You will now come to a screen that shows the function module exits for the exit.
    3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction VA01 .
    - Go to transaction CMOD
    - Create a project called ZVA01
    - Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document.
    Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
    Press Save
    Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'.
    Activate the include program. Go back to CMOD and activate the project.
    Goto transaction VA01 and craete a salesorder.
    Note that Sold-to-party now automatically is "2155"
    <b>
    Reward points if it solves ur query or answer is helpful</b>
    Thanks
    Chinmay

  • Add fields LGORT and WERKS in table KOMBE1

    In case of inbound deliveries, I want to add fields LGORT and WERKS to structure KOMBE1.I want to create an (Header)access sequence that checks on this 2 fields in order to generate an output type.
    So I will add this two fields in structure KOMBE1. Do you know if there is another structure In which I have to add this two fields and what is the user exit to use in order to populate this 2 fields.
    PS: In case of outbound deliveries, in order to add fields in catalogue (Catalogue of fields to access conditions of output), we have to add the fields to structure KOMKBV2 and to structure KOMB.

    Dear Omar
      This is what the documentation says:
    New Fields For Output Control
    Basics of modification in output control
    The following communication structures are relevant for output control:
    KOMKBK1  (Output Determination Communication Area CAS Appl. K1)
    KOMKBV1  (Output Determination Communication Area Header Appl. V1)
    KOMKBV2  (Output Determination Communication Area Header Appl. V2)
    KOMKBV3  (Output Determination Communication Area Header Appl. V3)
    KOMKBV5  (Communication Structure for Output Control Groups Appl. V5)
    KOMKBV7  (Output Determination Communication Area Shipment Appl. V7)
    KOMPBV1  (Output Determination Communication Area Item Appl. V1)
    KOMPBV2  (Output Determination Communication Area Item Appl. V2)
    KOMPBV3  (Output Determination Communication Area Item Appl. V3)
    KOMB     (Field Catalog for Condition Keys: Output Control)
    New fields for output control are entered in the following INCLUDEs:
    Sales activities: KOMKBZ1 (in KOMKBK1)
    Sales document header: KOMKBZ3 (in KOMKBV1)
    Delivery header: KOMKBZ4 (in KOMKBV2)
    Groups header: KOMKBZF (in KOMKBV5)
    Billing document header: KOMKBZ5 (in KOMKBV3)
    Sales document item: KOMPBZ1 (in KOMPBV1)
    Delivery item: KOMPBZ3 (in KOMPBV2)
    Billing document item: KOMKBZ5 (in KOMPBV3)
    Shipment: KOMKBZH (in KOMKBV7)
    If you also want to use a new field for the setup of condition tables (key field) it must also be included in the structure KOMBZ (contained in KOMB).
    The routines and user exits for assigning values to the new fields are found in the programs RVCOMFZZ, RVCOMFZ1, RVCOMFZ4, and LVCOMFZ1. It is also possible to copy partners here.
    The following user exits exist in member RVCOMFZ1:
    USEREXIT_KOMPBV2_FILL (item fields in delivery)
    USEREXIT_KOMPBV2_PARTNER (item fields for partners in delivery)
    USEREXIT_KOMPBV3_FILL (item fields in billing document)
    USEREXIT_KOMPBV3_PARTNER (item fields for partners in billing document)
    The following user exits exist in member RVCOMFZZ:
    USEREXIT_KOMKBK1_FILL (header fields in sales activities)
    USEREXIT_KOMKBK1_PARTNER (header fields for partners in sales activ.)
    USEREXIT_KOMKBV1_FILL (header fields for sales documents)
    USEREXIT_KOMKBV1_PARTNER (header fields for partners in sales documents)
    USEREXIT_KOMKBV2_FILL (header fields in delivery)
    USEREXIT_KOMKBV2_PARTNER (header fields for partners in delivery)
    USEREXIT_KOMKBV3_FILL (header fields in billing document)
    USEREXIT_KOMKBV3_PARTNER (header fields for partners in billing doc.)
    The following user exit exists in member RVCOMFZ4:
    USEREXIT_KOMKBV5_FILL (header field for groups)
    The following user exits exist in member LVCOMFZ1:
    USEREXIT_KOMPBV7_FILL (Shipment fields for header and stage)
    USEREXIT_KOMPBV7_PARTNER (Shipment fields for partners)
    In output determination, communication table KOMB contains all key fields that can be used for conditions for output determination.
    When you create new fields for output determination, you can distinguish between two types of fields:
    Fields that are used in condition tables
    Fields that are only used to query conditions.
    Both types of field have to be included in KOMKBV1. Fields which are only used to query conditions do not have to be included in KOMB and T681F or in the field catalog.
    Note concerning name assignment
    There are two possibilities for naming the field:
    If the field is identical to the field in the communication table (e.g. VBAK), a value is assigned to it automatically by MOVE-CORRESPONDING. If SAP delivers the field in a subsequent system version, no generation errors will be caused.
    If the field is not identical with the field in the communication table,you have to assign a value to it using the MOVE command. Begin the field name with the letters ZZ. This will avoid generation errors if the field is later delivered by SAP in a subsequent system version.
    Example 1: Creating a new key field in output control
    If, for example, you want to use the field ERNAM (name of sales employee) from the sales order (table VBAK) for output determination, proceed as follows:
    1. Enter the field ZZERNAM in communication structure KOMKBV1 in INCLUDE KOMKBZ3 in the Data Dictionary.
    By entering the field in KOMKBZ3, you automatically include it in communication table KOMKBV1.
    2. Enter ZZERNAM in the communication table KOMB (in KOMBZ).
    3. Assign values to the fields
    Values are  assigned to the fields in function module KOMKBV1_FILL. You have to enter the field and assign value to it manually in user exit USEREXIT_KOMKBV1_FILL. You will find the statements that you can use as a reference in the user exits.
    Copying partner numbers is a special case and will be explained in Example 3.
    4. Include ZZERNAM in the field catalog for the condition table for sales documents. The field catalogs must contain all the fields which you want to use to structure condition tables.
    Example 2: Entering a condition field in the communication block
    If you want to use condition field VBAK-AUDAT for output determination, proceed as described in Example 1. Remember that it is not necessary to include the new field in KOMBZ (KOMB) or to maintain table T681F or the field catalog.
    Example 3: Entering a partner number in the communication block
    Example 3 presupposes that there is a new partner function for buyer ZY in the sales document and that the number of this partner is to be copied.
    When entering partner numbers in the communication block, proceed as described in the examples above. Partner function ZY is assigned to partner type AP in this example.
    Remember to use a different routine to assign values to the new fields. If, for example, you want to copy the partner function ZY into the new field ZZEINKA, for example, the statement is:
    USEREXIT_KOMKBV1_PARTNER
    WHEN 'ZY'.COM_KBV1-ZZEINKA = COM_VBPA-PARNR.
    The VBPA field used to assign a value to the new field depends on the partner function determined in the sales order. Each partner function is assigned to a partner type (e.g. partner function LF - partner type LI), which controls the assignment. Other source fields should be used for other partner types: COM_VBPA-KUNNR, COM_VBPA-LIFNR, COM_VBPA-PERNR and COM_VBPA-PARNR.
    The following assignments exist:
    KU => COM_VBPA-KUNNR
    LI => COM_VBPA-LIFNR
    PE => COM_VBPA-PERNR
    AG => COM_VBPA-PARNR
    <b>   Although i couldnt find any info related to Inbound deliveries.
       Am not really sure, but maybe you can give a try doing the following:
       1. Add fields to KOMKBE1.
       2. Add fields to KOMKBME.
       3. Try populating through user-exit:
    USEREXIT_KOMKBME_FILL of include RVCOMFZZ.</b>
    Kind Regards
    Eswar

  • Add field dynamically in ABAP Query Report.

    Hi All,
    Can we add fields dynamically in the ABAP Query Report?
    There is a field in my report which should occupy the line only if it has value. But if we drag-drop the filed in the report it automatically occupy the line though it doesn't have value.
    Thanks in Advance!!!

    hi rohini,
    we can add fields dynamically in the ABAP Query Report,in this way we can to,
    first of all u create ur selection-screen with all the fields and make the field invisible i.e the one which u want to add dynamically. and based on ur requirement change that invisible to visible and use modify screen.
    in this way we can solve.
    search for invisible and modify screen in sdn u can get better information and u can understand what i am saying.

  • How to copy sap standatd report to add fields and to make it work

    Hi experts,
        Can you tell me how to copy the sap standard report to add fields.
    I copied regular way including all includes also, but the porgram not activated and also every field started with %
    exp : data %dtab type standard table of /1BCDWB/IQ000000008078 with header line.
    Thanks

    Local object yes.
    I realise you're not an abaper, but if you got one in, he could simply create a subclass of /SAPPSSRM/CL_FY_NUMBER  (assuming it's not been made final) and override only the method that needs changing.  ( if it is final, then you have to use composition, but again, that's pretty straight forward ).  The point is, that copy a class rarely, if ever, needs to be done.  That's one of the major points about using classes.  If you use subclassing or composition, only small amounts of code need to be copied - which means if SAP change other bits in a new release, you automatically get them, thereby reducing the risk of an upgrade mucking up your cloned class.
    I'd be extremely nervous about having any code that had been implemented by a non-developer, being put into productive use.
    matt

  • Hide 'Add Fields' in af:query

    Hi guys,
    I just want to hide 'Add Fields' alone in advanced section of af:query.
    Is it possible?
    Thanks in advance
    Dev

    There are two possible solutions:
    1. you can add a skin selector and hide hte footer component, which holds the button to add fields.
    in your skin.css file add
    .AFMyQuery af|query::footer-facet-content-style
      display: none;
    }and put this as AFMyQuery as styleClass onto the af:query
    ... styleClass="AFMyQuery"...2. you add a af:spacer into the footer facet of the af:query and set it's height and width to 1px. This will hide the button too. From the doc
    . If a footer is not specified then an 'Add Fields' dropdown is automatically added to the facet. If a footer facet is specified, (that includes custom buttons for example) the default 'Add Fields' dropdown will not appear and users are required to specify it explicitly in the footer facet along with the other content if this functionality is desired.add this to the af:query
                                           <f:facet name="footer">
                                                <af:spacer width="1" height="1" id="s1"/>
                                            </f:facet>
                                        </af:query>Timo

  • How to add fields to already loaded cube or dso and how to fill records in

    how to add fields to already loaded cube or dso and how to fill  it.can any one tell me the critical issues in data loading process..?

    This is sensitive task with regards to large volumes of data in infoproviders.
    The issue is to reload of data in case of adjusted structures of infoproviders.
    Indeed there are some tricks. See following:
    http://weblogs.sdn.sap.com/cs/blank/view/wlg/19300
    https://service.sap.com/sap/support/notes/1287382

  • How to ADD field in iview ?

    hi,
    in portal-iview i want to add a field.
    when i go to 'portal-content -> open the iview with right click -> preview' and then
    do ctrl-alt-right-mouse click i got to the customizing of the fields.
    i know how to HIDE fields there, but i don't know how to add fields ? in the list
    of the fields the necessary fields are available, BUT i only have to options:
    hide -> YES or NOT PERSONALIZED
    any ideas ?
    reg, Martin

    Gopal,
    the root element of this fields does NOT have the option 'decorate'.
    it is the quoata overview of ESS : sap.com/ess~quotas
    the top of the tree has option 'decorate', but this is above the necessary table where
    i select the data.
    my adrl is 
    martin.svik(at)denzel.at
    maybe we can 'change' some screenshots where you can send me yours and i can
    send you mine to explain it in a better way
    reg, Martin

  • How to add fields to Structure in Report Painter

    Hi All,
    We have a requiremnt where we need to add 2 fields ( profit center-PRCTR & description-CEPCT-LTEXT ) to structure CCSS. This structure is attached to library 1VK.
    Is it possible to add fields directly to a structure or do I need to create a new structure and attach it to a new library.
    If any one of this is possible, how can I do this ?

    Hi ,
    u can do it in both the ways , but i am not much sure abt second option.
    Useful Tcodes are GR21.
    Regards
    Prabhu

  • How to add fields in a z table

    hi experts !
    i have to add a new fields to an already existing Z table. how can i add field? do i have to delete all other entries and create new ones so that the entry in the new field also gets created.?
    akanksha

    Hi,
    You have two options to enter data type while creating new field in table.
    1. User standard data types i.e. mandt, kunnr etc..to use it u need to press  "Predefined type" button present on top of table fields.
    2. User custom data elements...this data elements you creates when you want to have data field specified to your required length.
    Hope this will help.
    Sumit

  • Add fields to Existing DSO and DS in R/3

    Hi Friends,
    I have got to change my LO datasource which is running on production, 2lis_va_vatim, i need to add 2 fields to the exisitng DS from Comm Stru, so could anyone point me inthe right direction, Hoow to Add the fields with out disturbing the production,
    and the same way i need to cgane my DSO aswell for new fields, please tell me how to meet this.
    Thanks,
    Kiran.

    Hi Kiran,
    Before applying your changes in Production do the below steps:
    1)run V3 job as immediate, which picks data to delta queue and delete the acive V3 job.
    2)run the IP which loads data to BW(Delta IP).
    3)Apply your changes to the 2lis_va_vatim and DSO.
      i)Do the changes(adding your fields to 2lis_va_vatim and DSO)in DEV and active the 2lis_va_vatim and DSO.(insert this in transports).
    ii)first apply the R3 transport and then BW side.
    4)from now on wards your 2 fileds will get populated in BW side.
    5)Maintain the V3 job for 2lis_va_vatim in R3.
    If you need any clarification how to add fields to 2lis_va_vatim and create transport req pelase check the below article.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2050db8b-9d90-2c10-2980-b13a4b0938f6
    Hope this helps.
    Regards,
    Venkatesh.

  • Add fields in KOB2 & KSB2 report in selection screen as well as output

    Dear All,
    I have an issue in which i have to add fields in KOB2 & KSB2 report.
    i need to add below fields to KSB2 report.
    1) Internal order
    2) Vendor
    3) Purchasing group
    I also need to add profit centre in selection screen for KSB2
    Similarly for KOB2 i need to add below fields
    1) Cost centre
    2) Vendor
    3) Purchasing group
    I also need to add cost centre as input for KOB2 report.
    I have gone through note 325546 "CO line item reports: Creating a user-defined field" which can be helpful.
    However i am not sure as to how do i add fields in input screen as required.
    Other alternative is to create a Z report however when i try and copy the report both KOB2 & KSB2 call same report "RKAEP000".
    I am not able to get as to how do i differentiate the call of different screens when ZKOB2 is called or when ZKSB2 is called.
    I could identify " c_item_group" field having different values however i couldnot get a proper logic as to how correct screen can be called based on input
    Please suggest .
    Thanks,
    Ronak

    Hi Raymond,
    The note 747588 is good as soon as you are adding fields from the same table only.
    When I have added additional table into KAEP_SCOVP selection view below COVP (just because the extra fields I need are not in COVP) they will show up in KOB1 as selection criteria, but not getting saved.
    Any idea if any ABAP should be regenerated or what extra steps are required when adding more tables into Selection View?
    Thank you!

  • How to add field to the header for FBL5N ALV report

    Hi,
       I need to add fields to the customer line item display ALV report(FBL5N) header part.Right now there are four fields in the header like customer, company code, name and city, after that I need to add first name last name and phone no. Can any one tell me where exactly I need to add and populate there fields to be appear in ALV output list.
    Thanks in Advance
    Swapna

    Yes I have tried, I have place a break point in that perform but it does not stop. I think that is not the correct place to added and populate fields. That routine is for populate selection screen ranges single and multiple values and parameters only.
    Thanks
    Swapna

Maybe you are looking for

  • Unable to Load Metadata (Error in shared.context.ContextLoader in startup)

    Hi, I am currently installing fixes on an environment, and every time a patch was installed the application server starts up. The application starts up successfully until I installed 8424662. I still don't know if this is the patch that causes the er

  • IC CRM 7.0: Obtain confirmed partners in external programs

    Hello, we're using the IC in CRM 7.0. After searching for partners, you can confirm the partners to be taken for all further actions. Is there a way to access the currently confirmed partners from "outside", e.g. in a BADI that is called during the c

  • SUM Netweaver 7.4 Java SP update error

    Hello I am trying to update my Netweaver 7.4 Java system from SP4 to SP6 but I am getting error on SUM. I generated stack.xml from Solution Manager system, put everything in one folder and executed latest version of SUM which is SUM10SP10_3-20006676

  • How to combine .m4a files?

    I have an 20 disc audio book that I am importing into iTunes. I have joined the tracks on the cd's so when I imported them I only have 20 tracks, instead of 2000 tracks. Is there a way to combine these 20 .m4a files into 1 .m4a file so I can then ren

  • How to limit Sharepoint folders on File Open

    I'm using Office 2013 with Project Server (SharePoint) 2010. In Word (same in Excel, etc), I select File, Open/Save, SharePoint and can browse through all of the project sites in Project Server.  This allows me to save (or open) a file directly to/fr