Percent of a Field

Hello all...
I'm very lost trying to do what I thought was a simple calculation in Acrobat Pro 9.
I have two rows of fields. Row A is the base value entered by the user. Row B will calculate based off of the values of Row A.
For the purpose of explaining, I will call the Fields in Row A Field1a, Field2a, Field3a and the fields in Row B Field1b, Field2b and Field3b etc.
The different fields in Row B use different calculations. For example, Field1b is equal to Field1a. Field 2b is equal to Field2a x 5. Field3b is equal to Field3a x .1
This is where I'm having trouble.
How do I set up calculations so that Field2b = (Field1a x 5) ?
Or so that Field3b = (Field3a/10) ?
on Field3b I tried:
var c = this.getField(“Field3a”);
event.value = c.value * 0.1;
But it keeps saying there is an illegal character on line 2.
Any help would be very appreciated.

Oh... duh. I'm sorry. I didn't know how to do the simple script either.
I am not using a non-English keyboard. o_o so I have no idea why that happened with the quotations.
As for the simple script, it isn't working.
I entered the calculations like so:
in Fieldb1, : Fielda1 * 5
or
Fieldb1, : Fielda1 * 0.1
And when I close form editing and enter a value into Fielda1, the field stays blank.
I don't know what's wrong.
Thank you for the help so far!

Similar Messages

  • Question about Percent Function

    This kinda goes along with my question about the plus sign. That was answered by the fact it means there is more than can be displayed in the field with the plus sign. The problem I am having is all of the fields with the plus sign are formated to be PERCENT. These fields are filled in via the C# program. The values are calculated in the C# program and outputed to the PDF form in the form of 00.00 - 100.00. Thus if I am filling in these fields with values that are within a PERCENT range, then why are they showing a plus sign. I have even go as far as to wipe the field clean, re-do the Text box, re-format as PERCENT, with the text centered, and the No Calculation radio button set true. The only other thing I do these fields is set the FONT to 10 point or otherwise the huge in size.

    Thank you all for the help on this. What I found is:
    it is correct that the incoming value to a fillable field for a PERCENT must be between 0 and 1 BUT this is NOT the complete answer.
    If I filled the field with 33.33 then it will display  33.33 + which says the display is too big.
    If I filled the field with .3333 thin it will display .3333 without the PLUS sign, but is still not correct because the FORMAT is set to PERCENT.
    What I had to do is add the following JAVA script.
    // Custom Calculate script for text field
    (function () {
        // Get the field values
        var v1 = getField("NO_FEAR_ASSOC_WITH_TARGETED_DISABILITY_PERCENT_1").value;
        // Set this field value
        event.value = v1;
    Now if the input is .3333 the display is now 33.33% which is correct. Sense the JAVA Script is basicly a NOP, this tells me that the PERCENT format requires some kind of trigger. Sense a FILL is NOT a trigger, the display comes out incorrect.

  • How to fix payment term in purchase order

    Hi: Everybody
    can you tell me how to fix value of payment term when creating or change purchase order? that means this field value just copy from vendor master data. and users can not change this value.
    I try to research screen field control in SPRO. however, may standard sap not provide this function.
    thank you
    Henry

    Hi
    This can be acheived using the Field selction control.
    Check the field selction key for the PO document type.
    SPRO-> Materials Management-> Purchasing-> Purchase Order-> Define Document Types.
    Now maintain the filed selction key in
    SPRO-> Materials Management-> Purchasing-> Purchase Order-> Define Screen Layout at Document Level
    In the filed selction group Terms of delivery and payment, maintain the field selection option as display for the fields
    Terms of payment
    Terms of payt. (days, percent)
    For the field selection key ME21N & ME22 also maintain the same
    Thanks & Regards
    Kishore

  • Initial load of articles through ARTMAS05

    Hi Retail experts, I need to built IDOCs to perform the initial load of articles through ARTMAS05.
    Although we tried to use an IDOC from a DEMO system as template, we couldn't get a successful IDOC so far. The Function module we are using is BAPI_IDOC_INPUT1, with IDOC type ARTMAS05.
    Does anybody has a guideline to set this up?
    Thanks in advance.

    I would welcome Bjorn's input on this, but, generally I accomplish this using LSMWs. I use SWO1 to explore the business object, but use LSMW (Legacy System Migration Workbench) to mass load. In the case of LSMW, you simply call the transaction LSMW.
    - From here, define a project, subproject and object. (Eg: Project = INITLOAD {initial data load}, Subproject = LOMD {logistics master data}, object = ARTMAS {article master}).
    - Maintain the object attributes. Here, you can chose from four options: standard/batchinput, batch input recording, Business Object Method (BAPI) or IDoc. Choose the Business Object method, use object BUS1001001 and method CLONE.
    - Define your source structure. Here, you will lay out what the input file's STRUCTURE is going to look like (not the fields). Since it's ARTMAS, it's not realistic to put all data into a single row in a text file, so you will likely use a structured input file - especially for variants, site-specific and sales-org-specific data.
    - Define your source fields. Here you will define the fields that are in your input file and assign them to your input structure. A lot of work goes into this step. Note - I would try to use names very close to the SAP names, since there is an automapping tool. Also, you can copy SAP table structures into your field structures which is very helpful if you plan to use say 75 - 80 percent of the fields of a particluar structure.
    - Maintain structure relations. You will assign your input structures to the corresponding ARTMAS structures in this step.
    - Map the fields and maintain conversion rules. Here you assign your input fields to the ARTMAS fields. Also, you can code ABAP in this step for conversion/translation purposes. It depends on your chosen ETL or ETCL or ECTL or CETL methodology (E = Extract, C = Cleanse, T = Transform, L = Load) on whether you will write ABAP conversion rules in this step.
    - Specify input files. This is where the data resides in it's text file input format. Typically, you will use a small data set that sits on your PC to test it, and then for a mass load, create a server-side directory on the SAP server, place the input file there, and you can use it. This speeds processing for large files considerably.
    - Assign files. Here you assign the previously specified input file to an input structure
    - Read data. This actually reads the data so that you can see how it's going to come in.
    - Convert data. This creates a psuedo IDoc. It is not an IDoc yet, but in IDoc format.
    - Start IDoc generation. This converts the converted file into a true IDoc.
    - Start IDoc processing. Here, your IDoc moves from 64 status to (hopefully) 53 status.
    Well, I hope this helps, and I would be interested in Bjorn's input. Also, Bjorn, what did you mean by the WRKKEY comment? I've never heard or seen a reference to this.

  • How to set payment form in payment methods in CRMD_ORDER

    Hi All,
    while creating service order before going to save, i need to check wether the payment card number and type fields are empty or not(in transactional data there is a tab payment methods) , if empty i need to set the payment form field as
    'payment card' as default.
    and one more thing i have to assign a even to this ZFM so that it can trigger before going to save the service order.
    please help me out this is hight priority issue.
    Thank yiou.

    Hi
    This can be acheived using the Field selction control.
    Check the field selction key for the PO document type.
    SPRO-> Materials Management-> Purchasing-> Purchase Order-> Define Document Types.
    Now maintain the filed selction key in
    SPRO-> Materials Management-> Purchasing-> Purchase Order-> Define Screen Layout at Document Level
    In the filed selction group Terms of delivery and payment, maintain the field selection option as display for the fields
    Terms of payment
    Terms of payt. (days, percent)
    For the field selection key ME21N & ME22 also maintain the same
    Thanks & Regards
    Kishore

  • @MEDIAN/@COUNT/@MODE Help  Needed

    Hi,I have a dimension named 'Contracts' which is NEVER null. In my Accounts dimension I load a discount percentage (Percent) into this field as a rounded integer such as 30.00 for 30%. I have 8 contracts each with a value in it. I can't get @MEDIAN or @COUNT or @MODE function to work. Fix(@Levmbrs(Contract,0),FY04,@Descendants(Country),@Descendants(Channel),@Descendants(Segment),@Descendants(Customer_Total_Range),@Descendants(Customer_Type))Mean=@AVGRANGE (SKIPNONE,"Percent",@Children(Contract));Median=@MEDIAN (SKIPNONE,@RANGE("Percent"),@Descendants(Contract));Count = @COUNT(SKIPNONE,(Contract));Mode=@MODE (SKIPNONE,@RANGE(Percent,@Children(Contract)));I'm stumped. I have looked in the manual and can't figure out what I'm doing wrong.ThanksSam

    You can say
    HAVING COUNT (case when B.USERID_ENTRY= 'DSIIVR' then 1 end) > 1G.

  • Short dump on calculating percentage

    hi experts,
       i'm trying to calculate for the total salary based on the reference value.
    but when i'm retrieving the PTOT(totalsalary) for calculation ,i got into short dump CONVT_NO_NUMBER or CX_SY_CONVERSION_NO_NUMBER.
    It's unable to interpret "PTOT(ASSUME  '134,475.81')" as a number.
    HERE i've given my logic what i used.
    if anyone knows plz help me.
    Table for collection of data. Used in hr_basic_display_list.
    DATA: BEGIN OF DATA_TAB OCCURS 20,
            PERNR(8), WGTYP(10), WTEXT LIKE T512T-LGTXT,
            APR(12), MAY(12), JUN(12), JUL(12),AUG(12), SEP(12),
            OCT(12), NOV(12), DEC(12),JAN(12), FEB(12), MAR(12), ptot(15),
            LANGTEXT1(60), LANGTEXT2(60), LANGTEXT3(60), LANGTEXT4(60),
            SORTEXT(250),
    END OF DATA_TAB.
    DATA:BEGIN OF ITAB_PER OCCURS 0,
         PERCENT(15),         “The field to be added in the output ALV screen                                                                                END OF ITAB_PER.              to calulate percentage                     
    .”enhanced fields in            .                                              selection screen of report HINCANN0
    PARAMETERS : P_PERCEN(15) , “the reference field
      LOOP AT DATA_TAB.                                       "changes
    ITAB_PER-PERCENT = ( DATA_TAB-PTOT / P_PERCEN ) * 100.
        APPEND ITAB_PER.
        CLEAR ITAB_PER.
        ENDLOOP.

    Hi Siva
    Change the type of PERCENT to dec instead of Char.
    ~BiSu

  • How to populate the field Discount Percent (DIS) in the outbound S1ORDEXC?

    Hello all,
    I am working with the Spec2000 to send out the IDOC S1ORDEXC.
    Does anyone know how to populate the field Discount Percent (DIS)?
    This field length of Discount Percent is 2 characters, but our customer discount in the Princing Conditions (Sales Order) is longer than 2 characters (ex:  7.500-%)
    Thank you

    Hello Thuan
    I guess you are working with IS- ADEC and SPEC 2000. I am not an expert on this but leave you some hints from OSS notes I came across.
    It appears like Discount Percent - DIS and Procurement Discount Percent -PDP are complementary and mutually exclusive. If one exists, the other need not.
    Looks like DIS is computed as (100-PDP)/100 and it is just a 2- integer data (as in 20 Percent). It is a kind of multiplier (Factor), example if  PDP discount is 10 percent, then DIS (Factor) is 0.9 and so  final (net) price after discount = Price*0.9.
    " If the discount comes in the S1BOOKED inbound into SD in the field DIS, then the discount has to be sent back in the DIS field .. if it came in the PDP field then it has to be sent back in the PDP field. If there was no discount in the incoming IDoc, then the discount has to be filled in the PDP if there was a change in the discount".
    KDATE in SPEC 2000 file maps to DIS and KPERC to PDP.
    PDP has 4 characters and per OSS note 440380, the point is ignored meaning you can work with 1225 instead of 12.25.
    So may be you can work with PDP?
    OSS notes: Apply to older releases but may still be applicable conceptually speaking.
    456153 - S1ORDEXC does not send out Discount
    440380 - PDP has only 4 characters in the SPEC IDoc instead of 5
    596042 - Discount percent DIS not considered e processing S1ORDEXC
    698668 - Incorrect calculation of unit price for PO item by S1ORDEXC
    Let me know you final findings.

  • Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    1. Use the mouse to select the field and then press the space bar.
    2. A null string is the same as zero. What is the result for division by zero?

  • CProjects 4.0 - Percent Complete field in Evaluations

    Gurus,
    I am looking for the attribute which corresponds to the task's 'Percent Complete' field. I intend creating an Evaluation Layout with 'Percent Complete' as one of the columns. Just not able to find out.
    Please suggest.
    Thanks and Regards.

    Hi Zhenbo,
    Thanks for responding.
    I did try 'Work Complete'. I have a scenario wherein, for a task, the 'Work' is 50 hrs. 'Confirmed' is 25 hrs. 'Remaining Work' is 25 hrs. By this, I should get 50% as the 'Work Complete'. I get 0 in Evaluations.
    There's another field 'Percent Complete'. This is what I was looking for. I inentded rolling up the values for each task in a phase to the phase and finnaly to the project. But having not found the 'percent Complete' for the task, I am not able to proceed.
    Thanks and Regards.

  • How to remove % from percent field in standard section

    Hi Experts,
    I will like to remove % symbol from a percentage field in a standard section. May I know can this be done?
    As I know the % symbol can be remove from report, but can it be done in standard section?
    **The reason I insisted to use percent field is because all other field types is already hit the limit.
    Thanks
    Anson

    Hi,
    This is working for me
    *& Report  ZTESTRAUL
    REPORT  ztestraul.
    TYPES: BEGIN OF tp,
             one TYPE wertv8,
             two TYPE char15,
           END OF tp.
    DATA: wa TYPE tp.
    wa-two = wa-one = '1345.00'.
    replace ALL OCCURRENCES OF ',' IN wa-two WITH ''.
    write: wa-one, wa-two.
    Raul Natu

  • How to add the percent (%) symbol at the end of a number in a form field

    Hi,
    I need to display a percentage as a result of a calculation in the form: 80.23%
    How can I direct the Format Mask     inside an APEX form to display that?
    I use a PL/SQL expression
    Thank you

    There is no solution to this?
    I would think that since the percent symbol is a very common symbol next to numbers that it should have been a native format in oracle.
    this needs to be escalated to the database team.

  • Database design: field to store percent value

    I need to create a table T that holds field P which is going to store percentage values.
    1. Should database store in field P value "3.5" or "0.035" if user enters on web page string "3,5%"? Which is wiser design- to store as values in range 0..1, or in range 0...100 for percentages?
    2. How does enterprise products solve this? For example, "Oracle E-Business Suite" is there any field that holds percentage value? How it holds?
    Thanks.

    1. Should database store in field P value "3.5" or "0.035" if user enters on web page string "3,5%"?
    Which is wiser design- to store as values in range 0..1, or in range 0...100 for percentages?I prefer storing percentages as numbers in the range 0...1.
    To constrain the values on the db filed you can create a check constraint:
    SQL> create table test (pct number(4,3));
    Table created.
    SQL> alter table test add constraint pct_chk
      2  check (pct between 0 and 1);
    Table altered.
    SQL> insert into test values (1.001);
    insert into test values (1.001)
    ERROR at line 1:
    ORA-02290: check constraint (USER.PCT_CHK) violated
    SQL> insert into test values (1);
    1 row created.
    SQL> insert into test values (0.001);
    1 row created.
    SQL> insert into test values (0);
    1 row created.
    SQL> insert into test values (-0.001);
    insert into test values (-0.001)
    ERROR at line 1:
    ORA-02290: check constraint (USER.PCT_CHK) violated
    2. How does enterprise products solve this? for example, Oracle Erp is there any field that holds percentage value?I don't know.
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/17/supporto-di-xml-schema-in-oracle-xmldb/]

  • Add New discount reason type Amount  / Percent Discount fields

    Hi Experts,
    Add New discount reason type "with description P1 Package" for "
    Amount  / Percentage Discount fields."
    please help.
    Regards,
    Sujit S

    Hi Sujit,
                    I am siva from chennai . now i am searching job .. i am working in leading newspaper in chennai .. u know any newspaper like times of india , hindustan times , the hindu  ... i have done one end to end implementation ... with 5+ years experiance .... please give ur mail id i will send my resume for ur further processing.
    Regards
    S.Siva
    SAP Is-Media

  • Percent complete field

    HI Gurus,
    I am Brand new to cProjects.
    My task is in a project there are different tasks. when user set the task status to Complete in Basic Data TAB, then the Percentage of completion field in Additional data TAB should set to 100%.
    Is anybody come across this kind of issue.
    I came to know that a workflow object will trigger when user change the status.
    Help me regarding this.
    Regards
    Giri.

    Hi Giri,
    Make sure you are passing the correct filter to <b>DPR_EVENTS</b>.
    In the case you have mentioned the filter should be:
    <b>Event: COMPLETED
    Class: CL_DPR_CLASS_O
    Method: ON_TTO_COMPLETED</b>
    Use the <b>ON_EVENT</b> method to get the details of the task, if you need any and set the field percentage completion to 100 based on your check condition.
    Eg. if you have to check the planned and the actual work and then set percentage compeltion.
    The method <b>GET_DATA_EXT</b> of class: <b>CL_DPR_TASK_O</b> can be used to read the task data and <b>SET_DATA_EXT</b> method of the same class can be used to set data for that task.
    Hope this helps you solve your problem.
    Regards,
    Reema.
    <i>Pl award appropriate points to all useful answers.</i>

Maybe you are looking for