Field Calculation

Hi Experts,
My report needs to involve fields from data source for calculation, how to do that? What's the syntax? Thanks.

Thanks
Another question :
I'm trying to enter a manual SQL statement in BI Publisher (so without using the query builder)
But I don't manage to define a left inner join (so my F0902 is my primary table where I want to fetch eg a few other descriptions of whatever in other tables)
It returns in error when I run the view query.
When I leave the simple join like that (see below), then it will pull up the records that exist in all 3 tables. So I have blanks in F0902 but not in F0101.
So can anyone tell me how to define such an left join in BIP? Or is that not supported ?
Stefan
Thanks
SELECT     F0902.CO,
     F0902.LT,
     F0902.CTRY,
     F0902.FY,
     F0902.AID,
     F0902.MCU,
     F0902.OBJ,
     F0902.SUB,
     F0902.SBLT,
     F0902.SBL,
     F0902.AN07,
F0901.AID,
F0901.DL01,
F0901.R001,
F0901.R002,
F0901.R003,
F0101.AN8,
F0101.ALPH
FROM     JDE.F0902,
JDE.F0901,
JDE.F0101
WHERE F0902.AID = F0901.AID
and F0902.SBL = F0101.AN8
and F0902.CO ='00421'
and     F0902.LT ='AA'
and     F0902.FY =10
and     F0902.AID ='30430981'
and     F0902.MCU =' 42102999'
and     F0902.OBJ >'499999'

Similar Messages

  • Field calculation doesn't auto update

    Hello -
    I have a complicated PDF Form that has several pages of fields that are totaled and averaged on the last page. I'm using Acrobat X on the Mac.
    Basically, on the last page there are 2 subtotal fields that are calculated based on other (direct-entry) numeric fields in the document. Those 2 SUBTOTAL fields update automatically when I change the direct-entry fields. So far so good.
    But, then I have a FINAL AVERAGE field that is supposed to average the two subtotals. But when I update one of the direct-entry values, the subtotals update but the final average does not.
    Here's where it gets screwy:
    If I try to manually enter a valid number (validation is OK from 0-3) in one of the SUBTOTALs, the subtotal does not change but this forces the FINAL AVERAGE field to update correctly.
    If I try to manually enter an invalid # (such as 5) in either of the 2 SUBTOTAL fields Acrobat won't let me enter that number, but it WILL recalculate the final average using that number and give me the wrong answer.
    I have tried locking the fields, turning validation on and off, but neither has any effect.
    I'm using the AVERAGE calculation function. I wonder if the problem is that I'm averaging a field that is itself using the Average calculation.
    There are only 2 fields being averaged. I could just add them and divide by 2, but that is not an option in the field calculation, unless I write a javascript, which I haven't learned how to do yet. So, I can't tell whether that would fix the problem. Is there a way to write a custom calculation formula other than using javascript?
    Thanks for any help you can give!

    The field calculation order is most likely not correct. You just have to set the order to whatever makes sense for your form.
    To do this in Acrobat 10, go to form editing mode (Tools > Forms > Edit) , and then select: Tasks > Other Tasks > Edit Fields > Set Field Calculation Order

  • MS Project 2007 - Help with custom field calculation for grouped by dates view

    Hello 
    I am trying to creat a view that counts number of students in courses (while # Students is a custom field that is filled manually and courses are tasks).
    The view should be grouped by Quarters, Months, and weeks (Calculated custom Text fields)
    The weeks groups are displayed by the start day of each week.
    For example:
    The view counts how many students are in courses in a specific week/month/quarter.
    This is the group by definition:
    Those are the fields calculations:
    “WW_Start” field calculation:
    (Year([Start]) & "  W " & Format([Start],"WW") & " " & "   [" & Datevalue(ProjDateSub([Start],CStr(Weekday([Start])-1),"Standard")) & "]")
    “MM” field calculation:
    Year([Start]) & "  M " & Format([Start],"MM")
    Basically it works but it doesn't cover a situation where a course is more then a week.  
    Lets say that the duration of the task is 12 days, the task should appear on 3 different weeks groups.
    But what i did puts the tasks only in the group that shows the first week of the task.
    How can i change my calculations or my view so that in the second, and third week of the task it will also show the task and it's attributes.
    For example:
     - "UV5 ACM" task should also be in W 45 not just W 44.
    Anyone has an idea how to do that?
    Ofir Marco , MCTS P.Z. Projects

    Hi
    First, thanks for the comment "nice neat groups" :)
    I think you understood correctly what is my issue.
    Second, about your question:  the class have the same number of students during the course period.
    It will have 10 students even if the duration is 1 day or 10 days.
    if you look at the basic gantt chart you will see a row like this:
    Task name        Duration        Num_Students     Resource names (Instructors)
    Course YYY       10d                10                       
    Instructor X
    it is an attribute on the task, not the assiment.
    When i group by dates (Weeks, months, quarters) or by another field (can be course type for example) i the students are summed in the task summary level for all tasks.
    Lets say i group by all the tasks (Classes) that are in the 1st quarter, and lets say for the example that there are 3:
    Task 1 -->  5 students
    Task 2 --> 10 students
    Task 3 --> 7 students
    Then, the group by summary should count:
    Quarter 1 - 2014:   22 (students)
    Task 1 --> 5
    Task 2 --> 10
    Task 3 --> 7
    By the way, it doesn't matter if the version is project 2007,2010, 2013, the logic is the same.
    Hope it helps and i'll be glad to have some ideas or evan get examples for solution in a project file by e-mail.
    Ofir Marco , MCTS P.Z. Projects

  • How do I add a set value to a form field calculation?

    I'm creating a form where I need a set value added to the sum of other editable fields - e.g. Field A + Field B +$125 = Sum
    For the addition of Field A and B I've been using the pre-set functions in Adobe X, but I'm clueless as to how to add the $125 to the sum calculation. I'm absolutely new to Java, so I'd need something I can cut and paste.
    Thanks!

    One last question:
    I have existing code for a Submit by Email form that has a subject line and message content. I'm trying to add a second email to it but can't seem to figure out how.
    this.mailDoc({
    bUI: false,
    cTo: "[email protected]",
    cSubject: "Here is my Renovation Draw Request",
    cMsg: "You will find my completed Renovation Draw Request attached. I’m excited to move forward, so please contact me as soon as possible."

  • Problem with non currency field calculations to become curr

    Hi guys,
    Is there a problem if I have a QUAN field and DEC field forming to become a CURR field? I mean a have this computation below:
    v_var1 = v_var2 * v_var3.
    where v_var1 type QUAN, v_var2 type DEC and v_var3 type CURR...
    would it incur any problem with the calculations?
    Thanks!

    Hi,
    Did you try ?
    Worked for me flawlessly
    tables bseg.
    parameters : qty like bseg-menge,
                       amt like bseg-dmbtr.
    data : result like bseg-dmbtr.
    result = qty * amt.
                write result.
    The only issue is that the result will be rounded upto 2 decimals.
    But if you declare result as
    data : result(13) type p decimals 3.
    Then there will be no issues.
    regards,
    Advait
    Edited by: Advait Gode on Oct 3, 2008 3:59 PM

  • PDF form field calculation help needed

    I need to make some simple calculations on a pdf form and need some help.
    I have a form field for number of guests.
    A field for a set cost for various tickets (there are 3 levels of ticket prices) (I might not need this field).
    A subtotal of the guests attending and ticket price.
    A grand total of the subtotals.
    I can't figure out how to either put in a fixed cost in a form field or input a calculation so that the number of tickets is muliplied by a fixed number and gives me a subtotal.
    Thanks.

    Ok. I finally got the calculations to work. But..... when I save and open in Reader, they don't work. Go back to Pro, they don't work there now either. They also don't show up under the Set Field Order Calculations. To reset them, i have to erase the calculations, save, redo the calculations. Preview the form and everything works — calculations happen and i get a total.
    Adobe Reader usage rights are enabled.
    Why is this so hard?
    I found this thread http://forums.adobe.com/message/1152890#1152890 about it. Is this bug still going on since 2009?
    Ok. Apparently you have to enable reader rights after the form is done. It seems to work now. What a pain.

  • BEx Query Designer - working on fields calculations

    Dear all,
    I Developed Query which will give me output for Amount of Consumption of Chemicals during selected Period and Profir Center.
    I Display Amount field using formula
    also i calculate amount of one material (CANE) using formula, now i want to calculate cane / amount and display in third colum for Example :
    Material                          |--- CANE|   Cane / Amount--
    |      Amount
    2000001     RANOCIDE M     |----
    | -
    |     587,984.30 INR
    2000002     RANOCIDE SR     |----
    | -
    |      473,880.80 INR
    2000003     SANTROSE     |-- |--
    |      270,818.20 INR
    CANE     CANE             |  2,961,039,200.47 INR  |                X        |     
    now in Cane / Amount formula field  i am not getting any value , Please can some one Provide me solution for it...
    I dont want to display material Cane in output
    my output should look as follow:
    Material                           |      Cane / Amount |      Amount
    2000001     RANOCIDE M      |       5,035.92         |     587,984.30 INR
    2000002     RANOCIDE SR      |       6,248.49         |      473,880.80 INR
    2000003     SANTROSE      |       10933.67876  |      270,818.20 INR
    and dont want to show INR every time with each currency amount
    Please help
    Regards
    Pumam
    Edited by: PPShinde on May 24, 2011 12:16 PM

    HI,
    I am calculating CANE by using formula
    in Data source MSEG and MKPF data is there
    in formula for CANE i am taking conditions
    first calculate CANE 262 formula field
    Key figure is AMOUNT
    MAterial  is CANE
    and MOvement type 262
    same way for CANE 261
    Key figure is AMOUNT
    MAterial  is CANE
    and MOvement type 261
    In CANE
    i did CANE 262 - CANE 261
    now for Amount i did same way
    first calculate AMOUNT 262 formula field
    Key figure is AMOUNT
    MAterial  is All materials having MAterial TYpe Chemicals
    and MOvement type 262
    same way for AMOUNT 261
    Key figure is AMOUNT
    MAterial  is All materials having MAterial TYpe Chemicals
    and MOvement type 261
    IN AMOUNT
    i did AMOUNT 262 - AMOUNT 261
    r u getting
    i cant able to show u output in excel ot tabulkated format
    Thanks lot
    Regards
    Punam

  • Query field calculation based on a characteristic field

    Hi
    I have a req wherein the query has a field "Balance". Now here the value of the Balance field is calculated based on another characteristic "0bal_flag". 0bal_flag has values "X" or blank. The 0bal_flag is actually a attr of 0gl_account and i have it as a nav attr in my cube.
    The calculation goes like this....
    If 0bal_flag = 'X' then "Balance" = balance (there is a balance field in underlying infoprovider)
    else "Balance" = Debit -credit (these fields are also there in underlying infoprovider....)
    So how do i achieve this...?
    Since 0bal_flag is a char I cannot use it directly in a formula....
    Thanks
    Gaurav

    Hi Gaurav,
    Create a replacement path formula variable on the 0bal_flag with evaluate as boolean checked, you will get the values 1 when flag is X and 0 when the flag is initial, now you can use this 'formula variable' in the formula
    ((0bal_flag==1)balance)+((0bal_flag==0)(debit-credit))
    hope this helps,
    Rk.

  • Delay in field calculation appearing

    Hi all
    Apologies but my coding skills are a bit dated.
    I have three fields A,B and C
    User puts a number into A and B calculates the value of this multipled by a number using a bit of Javascript
    var field2 = this.getField("CPDNo").value;
    event.value = field2 * 25;
    Now C does some checks on the value of B to determine whether to use a minimum value or a maximum value here
    var field1 = this.getField("cpdval").value;
    if (field1<"100"){event.value = "100";
    } else if (field1>"7500"){event.value = "7500";
    } else event.value = field1;
    What I find is B is always correctly calculated but C will wait until I click into another field before performing its calculation...
    What am I doing wrong here??
    thanks
    george

    If the contents of the field mscval is a number you should not be comparing it to string value.
    Are you getting any errors in Acrobat's JavaScript console?
    Are you sure your comparisons are in the correct order for what you are trying to accomplish?
    I would have coded this as follows:
    var field3 = this.getField("mcsval").value;
    // default value
    event.value = field3;
    if (field3 < 100) {
    // field3 less than 100
    event.value = 100;
    } else if (field3 > 7500){
    // field2 greater than 7500
    event.value = 500;
    or
    var field3 = this.getField("mcsval").value;
    switch(true) {
    // field3 is less than 100
    case (field3 < 100) :
    event.value = 100;
    break;
    // field3 is greater than > 7500
    case (field3 > 7500) :
    event.value = 500;
    break;
    // all other values
    default:
    event.value = field3;
    break;

  • Matrial document - scrapping- Amount field calculation

    Hi,
    Can any body explain how the amount in material document is arrived (consider both case - moving average price , standard price)
    The scenario is,
    Goods issued for scrapping - movent type 551  -  T code MB1A
    How the amount in local cuurency (table MSEG , field -DMBTR ) is calculated by the system . Consider both cases - moving average price  & standard price)
    Is it possible to find what unit price or from where it has taken unit price for calculating the amount
    Regards
    Ayyappan

    Hi,
    Thanks for your kind help.
    We developed one report for scrapping (movement type 551). In that, we have taken the following
    Price : from material master - V or S
    Qty   : from material document
    Amount : price * qty
    there is a small difference between the amount what we have calculated as mentioned above and the amount in local currency in MSEG table field DMBTR of material document
    Example :
    In report :   price = 77.8 , qty = 2 ,           amount = price * amt = 155.6
    But in table MSEG (material segment )    amount = 155.61
    There is a differece of 0.01.
    Likewise, we have differece for many material . The differce amount is in decimal points only. Client is asking to match these two amounts .
    What may be the reason for this  or how to resolve it
    Regards
    ayyappan

  • Insert a field calculated upon others

    Hi!
    I would like to know if I had several numeric fields, if I could display in another one their average (just display it). I mean, if I had...
    Option A: 10
    Option B: 5
    Option C: 7.5
    If I could have a field auto-calculating their average dinamically (in this case, 7.5). Is this possible using FormsCentral? This is exactly what I need and I'm afraid this is not possible.
    Thanks.

    That is correct, you can't add calculated fields on the form itself.
    The only thinkg you can do is add the average function to a new column in the Response Table to perform that computation.
    The filler won't see the average but people looking at the data will.
    Gen

  • Turn Off Form Field Calculations When Printing

    I am using Acrobat 9 Pro, and I will be the first to admit, I'm not all that familiar with creating functions or adding codes.  Through trial and error, I have created a form that allows my clients to fill out certain form fields, and automatically totals up their entire order.  If no values are entered and someone prints the document, the section that calculates the total still prints with a $0.00 value. I do have some clients who prefer to print the form and fill it out manually.  My question is, is there a way to disable the form fields, so that when it prints out, the area that would normally calculate the total, would just print blank?  And is it possible to add a button or check box within the PDF that would allow the form fields to be toggled on and off?
    Or another option, is it possible to have the document NOT print any values that are zero or less?
    Thanks!!!!

    You can do some of that other sutff, but if you're using one of the built-in calculation methods and just want to have the field not show a zero result, you can add the following custom validate JavaScript:
    // Custom Validate script
    if (+event.value === 0) event.value = "";

  • Depth-of-Field Calculator for Blackberry??

    Hi all.  I've tried Googling this but I'm not getting hits.  I'm looking for a DoF calculator with Hyperfocal distance for my BBerry Pearl.  They make'em for Windows Mobile devices and Palm OS.  I can't believe I'm the only photographer using BBerry who wants this little program!  DOFMaster for BBerry would be awesome.  ANYBODY out there have a lead for me?
    Thanks in advance for your help.
    Steve

    Reviving a year old thread.....
    I have one you can buy here: http://www.mobihand.com/product.asp?id=43104
    Cheers,
    Todd

  • Currency field calculation problem.

    Dear friends,
    I am trying to calculate one variable that is multiplyied
    by other.
    One is 97.087 that is multiply by dmbtr field.
    Dmbtr field is currency with 2 decimal places.
    Now when i am trying to multiply 97.087 to  dmbtr field.
    System is showing me the error.
    and when i am doing by 97  to  dmbtr field.
    System is showing me no error.
    please help.
    Thanks and Regards
    vivek

    friend,
    this is the code that i am writing.
    wa_output-AMT1  =  wa_output-dmbtr.
    wa_output-AMT11 =  wa_output-AMT1 * ( 97.087 / 100 ) .
    error message is:
    Incomplete arithmetic expression: ")" missing at end of statement.          
    please help.

  • Status Field Calculation

    Hi Experts,
    I need to report on Revert Back Service Tickets,means that I want to list the Service Tickets which the status are changed from 'Completed,Pending' to 'In Process'.
    My logic is
    If Service Ticket's status=completed pending and changed to status=In Process, then ticket is revert back
    else status=completed pending and changed to status=completed..not revert back.
    Could anyone suggest me how to do this?
    Points will be rewarded.
    Thanks and Regards,
    Azimah
    Message was edited by:
            A Abdullah

    Hi Bhanu,
    Could you please explain on what kind of formula variable to use. The status also must depend on date and time field.This is the example of report I'm working on.
    Tran. No.      2000000044
    Status                   Creation Date   Creation Time  Date Changed      Time Change
    COMPLETED, PENDING  18.01.2007 12:54:43      09.02.2007                 11:51:20
    IN PROCESS            18.01.2007       12:54:40      11.02.2007                 11:52:40
    If you look at the report, the status was changed from Completed, Pending to In Process,means that it was Revert Back.So, I need to do report on the tickets which was Reverted Back.
    Please guide me and provide me some ideas.
    Thanks in advance.
    Azimah

Maybe you are looking for

  • Data display issue in CF all non-IE browsers

    The message title was a bit vague for all the factors involved here so let me explain the problem in detail. We are running ColdFusion 7, we use Oracle 9i and the datatype of the field we are having issues with is a LONG field. The data we are displa

  • How Would you Know if Mountain Lion is Downloading?

    Hi. App Store had me update the info in the billing section which I did. When I updated it and click done it came back to the Mountain Lion page still with the icon Buy App. I clicked that for a second time but it said (something like) that I I've al

  • Create Report with CR4E and XML Data Source

    Hi all, I have a problem when create a report with CR4E that should use a XML data source. It is not possible to choose fields from the field explorer, because ther are no fields from the XML-file. Is there a general problem when using an ODA data so

  • Connecting two Macs to one router

    I just ordered a new iMac and would like to connect it and my old computer (eMac) to one router so that they share the same network.  Is this possible?  If so, Could you explain how to do this.  

  • Is There Any Way to check/test if there is a bug/error in JRE???

    Hi I was wondering if there is a way to check/test if there is bugs/errors in JRE ?? can somebody tell me ?? Thanks.