How do I subtract two fields in a form?

I am working on an expense form and I have everything working except one thing.
We have to subtract any over payments from previous expense reports on the current expense report. I am looking at the calculate tab of the Text Field Properties.  But I do not see a way to subtract my two fields.
I then setup a field that contains a negative one, except when I display the field on the form, the negative one is a positive one.  I did enter -1 as the default value to my "subtraction" field.  I was then going to multiple negative 1 against the the over payment amount so I could get a negative over payment amount.  I was then going to add the negative over payment amount to the total due and arrive at a net due,  But this does not work.
Here is the calculation I am trying to do:
Total Expenses     (calculated field from all of the preceding fields.)
Deductible Expense       (user entered)
Net Expense check          (Total Expense - Deductible expense).
Can anyone tell me how to do this?
thanks,
Dennis

With Acrobat there are 3 calculations options.
"The field is the ____ of the following fields:" options are for sum, product, average, min, and max operations or for actions that could be repeated over multiple fields. One does not usually subtract or divide multiple fields in on action.
"Simplified field notation" uses only field names and values. Field names must start with an alphabetic character and should not have any spaces or special characters. Cannot perform conditional control statements or functions. Special characters or spaces can be in field names if the JavaScript escape character precedes the special character or space. The 4 arithmetic operations can be performed.
"Custom JavaScript calculation" has no restrictions on field names, control statements, functions or mathematical operations. One needs to access the field object and the value property of the field object.

Similar Messages

  • How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version

    How to add the clearing document no. & payment method in FBL3 tcode. Can any one explain me step by step process how to add that two fields. This is ABAP 3.1 version. It's urgent requirement.
    Moderator Message: Duplicate thread locked. Please carry on with this thread: How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version
    Message was edited by: Suhas Saha

    Did you read the note provided in How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version ?
    Regards,
    Raymond

  • How can I format a field in the form creator?

    How can I format a field in the form creator? It's putting the same text in all the fields within a table. I want each field within the table to have different text. As soon as you click out of the table, all the text is the same.
    I even changed the fields from a text box to a drop-down list so a person can make their selection, which will be a quantity from 0-9. There are two of these such fields. You make your selection in each, click off the table and both fields show whatever I selected in field 1. The original Qty I selected in the bottom field was a 5 but it changed it to whatever is in the top field on it's own. I've added a screen shot.

    This behaviors usually happens when you create the fields but  a copy paste command from one of the fields. The copy paste command assumes that your intentions is to maintain a copy of the field in two separate locations (e.i, a form field  "company name" printed in each and every page of a multi-page form document.
    Go to the properties fields of each field and make sure  to assign unique form field  names.

  • I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically. Can some one out there help me?

    I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.

    Update automatically under which circumstances, exactly?

  • How to update a particular field in a form.

    Hi Guys,
    I just want to know how to update a paricular field in a form.
    I want to upadate a field in a view BOM_RESOURCES_V
    for that i've a procedure called process_rtg.
    now i want to know how to use that procedure.

    hi,
    check metalink Note:264711.1 on how to use ROUTING BUSINESS OBJECT API
    ( BOM_RTG_PUB.Process_Rtg package)

  • How to subtract two fields

    Hi,
    All,
    I want to calculate balence quota. by usingdifference of  two fields.   ITAB-ANZHL and ITAB-ABWTG .
    . i have taken a variable A FOR balence Quota. in itab i have defined A TYPE C,  in field catalog i have written
    'A'    'ITAB'   'BALENCE QUOTA'. so how need to perform coding for calcualte balence quota.
    A is for balence quota.
    Thanks,
    Regards,
    Saurabh

    DATA : BEGIN OF ITAB OCCURS 0 ,
           PERNR LIKE PA2006-PERNR,
           KTART LIKE PA2006-KTART,
           KTEXT LIKE T556B-KTEXT,
           ANZHL LIKE PA2006-ANZHL, " Quota number
           BEGDA LIKE PA2006-BEGDA,
           ENDDA LIKE PA2006-ENDDA,
           KVERB LIKE PA2006-KVERB,
           AWART LIKE PA2001-AWART,
           ATEXT LIKE T554T-ATEXT,
           STDAZ LIKE PA2001-STDAZ,
           ABWTG LIKE PA2001-ABWTG,
           KALTG LIKE PA2001-KALTG,
           A TYPE I,
          END OF ITAB.
          DATA : B TYPE I.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : PERNR FOR  PA2006-PERNR NO-EXTENSION NO INTERVALS .
    SELECT-OPTIONS : BEGDA FOR  PA2006-BEGDA NO-EXTENSION NO INTERVALS.
    SELECT-OPTIONS : ENDDA FOR  PA2006-ENDDA NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN : END OF BLOCK B1.
    'PERNR'  'ITAB'  'Personnel no',
    *'GJAHR'  'ITAB'  'Year',
    'KTART'  'ITAB'  'Absence Quota type',
    'KTEXT'  'ITAB'  'Text',
    'ANZHL'  'ITAB'  'Quota Number',
    'KVERB'  'ITAB'  'Quota Deduction',
    'BEGDA'  'ITAB'  'Start',
    'ENDDA'  'ITAB'  'T0',
    'AWART'  'ITAB'  'Absence Quota Type',
    'ATEXT'  'ITAB'  'Text',
    'STDAZ'  'ITAB'  'Absence hours',
    'ABWTG'  'ITAB'  'Absence Days',
    'KALTG'  'ITAB'  'Calender Days',
    'ABWTG' 'ITAB'   'Quota Used',
    'A'      'ITAB'  'Balence Quota'.
    SELECT   M1~PERNR
             M1~KTART
             M1~ANZHL
             M1~BEGDA
             M1~ENDDA
             M1~KVERB
             M2~AWART
             M2~STDAZ
             M2~ABWTG
             M2~KALTG  INTO CORRESPONDING FIELDS OF TABLE ITAB
                       FROM PA2006 AS M1
                       INNER JOIN PA2001 AS M2
                       ON M1PERNR = M2PERNR
                         AND M1BEGDA = M2BEGDA
                         AND M1ENDDA = M2ENDDA
                       WHERE M1~PERNR IN PERNR AND
                             M1~BEGDA IN BEGDA AND
                             M1~ENDDA IN ENDDA .
         IF SY-SUBRC <> 0 .
         MESSAGE 'DATA NOT FOUND' TYPE 'W' .
         ENDIF .
    LOOP AT ITAB .
    SELECT SINGLE KTEXT FROM T556B INTO (ITAB-KTEXT)  WHERE KTART = ITAB-KTART.
    SELECT SINGLE ATEXT FROM T554T INTO (ITAB-ATEXT) WHERE AWART = ITAB-AWART.
    MODIFY ITAB INDEX SY-TABIX TRANSPORTING KTEXT ATEXT.
    ENDLOOP.

  • 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 :-(

  • How to group from two fields?

    Afternoon all,
    Any ideas how to group a report by using two fields in one formula?
    I have two fields in a table
    1: Stock_Code
    2: Misc_Code
    I need to group my report by Stock and Misc code combined. How would I be able to do this by using formula?
    Regards
    Jehanzeb

    See I tried that already pandabear however for some reason it doesn't bring the results from both fields. It is only bringing results from one field.
    The report criteria is
    {lab_credits.date_created} in date(2007,01,01) to date(2007,12,31) and
    {lab_reasons.reason_code}={?Reason_Code}
    the formula I used initially was
    {lab_credits2.stock_code}+{lab_credits2.misc_code}
    but then tried
    {lab_credits2.stock_code}+ " " +{lab_credits2.misc_code}
    however both didn't seem to work under the above conditions.
    The output should be
    5-760
    7-240
    7-250
    7-821
    AR
    CARR
    GLAZE
    TINT
    U-113
    U-114
    Where 5-760 and U-113 data is coming from stock_code field and AR to TINT is coming from Misc_code field.
    The output is ignoring the Misc field values under the given criteria.
    Regards
    Jehanzeb

  • How to compare the two field in jasper report design

    hi to all,
    I am new to jasper report design
    I want to compare two fields (or) variable using if..else condition.
    pls help me out

    Check out these postings:
    http://forum.java.sun.com/thread.jspa?threadID=5286462
    http://forum.java.sun.com/thread.jspa?threadID=5286468

  • How do I Average two fields and round down?

    I need to average two fields and round down to the nearest whole number. The two fields will always each have a value.
    If someone could help me out, I'd appreciate it.
    T.

    Assuming you want this to be a custom calcuation script for a field, it could look something like this:
    // Custom calculation script
    (function () {
        // Get the field values, as numbers
        var v1 = +getField("text1").value;
        var v2 = +getField("text2").value;
        // Set this field's value to the average, rounded down
        event.value = Math.floor((v1 + v2) / 2);
    More information on the Math.floor method can be found in any decent JavaScript reference.

  • How do you calculate multiple fields in a Form?

    Hi,
    I have a spreadsheet with several headings and several fields as illustrated below, and description of each field and calculation required is listed below.
    Rate Per Day
    Days
    Course
    Attending
    Total
    $1,000
    2
    Course A
    Yes
    $2,000
    $2,000
    1
    Course B
    Yes
    $2,000
    $5,000
    5
    Course C
    No
    $2,000
    2
    Course D
    Yes
    $4,000
    Total:
    $8,000
    Rate per day:  Field value is inputted by us.
    Days:  Field value is inputted by us.
    Course:  Field value is inputted by us.
    Attending:  Is actually a check-box that the client ticks.
    Course Total:  This should be the calculation of RATE PER DAY * DAYS IF ATTENDING BOX IS CHECKED
    Total:  Sum of above COURSE TOTAL FIELDS
    We currently do this in EXCEL 2007, however we looking at converting it to a PDF Form for distribution to our clients to we can track responses, etc.
    My question is really ery simple ... how do I create the above calculations in a form that I want to distribute??  This possible?? If so how (please bear in mind I'm not a developer

    In re-reading your question, I realized you're using a check box. In that case, you will need to create a custom calculation script using JavaScript.
    Something like:
    // This is a custom calculation script
    (function () {
        // Get the value of the check box
        var v1 = getField("Attending1").value;
        if (v1 !== "Off") {
            var v2 = +getField("Rate1").value;
            var v3 = +getField("Days1").value;
            // Sum the two field values and set the value of this field to the result
            event.value = v2 + v3;
        } else {
            // Blank field if checkbox is unchecked
            event.value = "";
    You'd replace the field names I used with the field names you're using.
    This leaves out checking to see if the corresponding Couse field is filled-in, and you'll have to use a custom Format script if you want the type of formatting you show.

  • How to show a time field in a form portlet

    Hi,
    I am not familiar with PL/SQL and I was wondering how I could show a time field on a form portlet.
    I have a date column in my database that stores the time and date together, but I do not know how to separate them into date and time fields. I also do not know how to concatenate them when a user inserts a new record, or how to query on a date alone.
    At present, the user has to type the date and time following this format mask hh:mi am DD/Mon/RR
    I also have a problem with one of my hidden id fields. I have set the default to a sequence.nextval (#qtc_app.seq_visitor.nextval) and then hidden it since
    it is irrelevant to my users. However, I can no longer use the query function since the sequence is always generating a new value. How would I only generate
    a new sequence no. when a user inserts a record??
    Thank you!
    cheers, Kim

    Hi,
    Each colunm in the form has a format mask associated with it. For the date column make the format mask like this DD-MON-RR HH.MI. This will show the date along with the hours and minutes.
    Thanks,
    Sharmila

  • How to use Key Flex Fields in Custom Form

    Dear Members,
    I have developed a custom form.
    In my form there is a search criteria for location.
    When ever user wants to query based on the location ,I want to display Asset Location Key Flexfield so that user can choose the respective segements and search the assets.
    Can any one please tell me what is the procedure to be followed to display Key Flex Fields in the custom forms?
    Your inputs will be of great help to me.
    Thanks in advance.
    Best Regards,
    Arun Reddy.

    Hi,
    Please see the note:730068.1 - How To Invoke a DFF from a custom form
    Thanks,
    Ajikumar G

  • How to collapse unused text field in PDF form

    Hi all, may i know how to collapse unused text field in a PDF form. Etc, we have alot of description line for user to enter the info, but some line will be left unused, so i was wondering whether can i hide those unused text field. But when i need them, i just expand it and use it.

    I don't think w/o UI Customization it is possible.
    UI customization won't be a small one as it is a common wizard and used at multiple places. So it will be a huge work.

  • How can we add Text field on system form which is updateable?

    Hi Experts
    I Want to create text field on System Form like A/R Invoice, in which I can store value after saving the document. I means Updateable field. Is it possible and How?
    Thanks
    Regards
    Gorge

    Hi Gorge,
    Please follow Jeyakanthan instructions. You may know how to create a UDF but you clealy don't understant how they work.
    A UDF in the System document's Title table is always updatable, unless you define it otherwise or do not have permission to update it (Open the form where you created the UDFs and press CTRL + ALT + B to open the definitions form).
    A UDF in the System document's Rows table is always updatable ONLY if that document's rows are updatable AND if you set them as updatable (via Form Settings) and have permission.
    On a User Form, you make your own rules!
    Regards,
    Vítor Vieira

Maybe you are looking for

  • Word 2011 in Lion, cannot insert multiple images, crashes...

    Greetings all, Having made the great switch to Lion last week, I have difficulty with Word '11. When trying to create a document with more than one picture, the program allows the first insertion, but thereafter it is not possible to add another. I h

  • JCAPS 5.1.1 Java Collaborations in eInsight Business Process

    We currently use JCAPS version 5.1.1. We use Java Collaborations (jcd) services embedded on eInsight Business process(bp) to complete a business process. Question: Java Exception from a collaboration (jcd) is received by business process (bp) only if

  • Where can I find this backups?

    Hi! As you see in the picture, my Mac have 80,5 in backups. Recently I run the command "tmutil disablelocal" for stop the auto local store of Time Machine backup but my Mac still store some of those backup. Where can I find those files? I search in "

  • How to update SharePoint list columns including choice fields programmatically?

    Hi All, I have a requirement to update multiple columns (which are choice columns) in a SharePoint list.  I'm a newbie at creating event receivers and timer jobs.  Not sure which one to do and where to start first.  There are approximately 4500 list

  • ISO code 3 character - usage in SAP

    Hello experts, There is field "ISO code 3 character" which can be customised under t-code : OY01 [alternatively - SAP NetWeaver >> General Settings >> Set Countries >> Define Countries in mySAP Systems ('New Entries')] It possibly can be entered in t