Need help on Calculation Logic in Bex

Dear BW Experts,
I am working on Reporting. I have a requirement in my report.
Output of the Report :
State_________Material_____Total_Closed_Calls____No of Part Consumed
Karnataka_____Cell Charger__10_________________2
_____________Battery_______20________________4
_____________Pin___________25_______________5
Result____________________55________________11
Mumbai______Keypad________20_______________8
____________Cover_________10________________5
Result____________________30________________13
I want to calculate % of part Consumed.
ie)(No of Part Consumed /Total Number of Closed Calls) * 100
In the case of Karnataka, (2 / 55)*100 = 3.6
State_______Material_____Total_Closed_Calls____No of Part Consumed____% of Consume
Karnataka___Cell Charger__10____________________2_____________________3.6
___________Battery_______20___________________4_____________________7.2
___________Pin___________25__________________5_____________________9.0
Result____________________55__________________11
Mumbai______Keypad________20_________________8_____________________26.6
____________Cover_________10_________________5_____________________20
Result____________________30__________________13
How can i achieve this calculation in Bex.
Please help on this issue.
Thanks,
Siva.
Edited by: Siva Kumar on Jun 29, 2009 11:49 AM

Create a formula as follows...
'No of parts consumed'  %CT 'Total number of calls closed'.
I have also observed that you dont want that calculation for total. I saw that blank in your example.
If that is the case, then go to "Calculation" tab and select calculate resutl as "HIDE".  That should hide your result value for this particular formula.
- Danny

Similar Messages

  • Need help with calculator project for an assignment...

    Hi all, I please need help with my calculator project that I have to do for an assignment.
    Here is the project's specifications that I need to do"
    """Create a console calculator applicaion that:
    * Takes one command line argument: your name and surname. When the
    program starts, display the date and time with a welcome message for the
    user.
    * Display all the available options to the user. Your calculator must include
    the arithmetic operations as well as at least five scientific operations of the
    Math class.
    -Your program must also have the ability to round a number and
    truncate it.
    -When you multiply by 2, you should not use the '*' operator to perform the
    operation.
    -Your program must also be able to reverse the sign of a number.
    * Include sufficient error checking in your program to ensure that the user
    only enters valid input. Make use of the String; Character, and other
    wrapper classes to help you.
    * Your program must be able to do conversions between decimal, octal and
    hex numbers.
    * Make use of a menu. You should give the user the option to end the
    program when entering a certain option.
    * When the program exits, display a message for the user, stating the
    current time, and calculate and display how long the user used your
    program.
    * Make use of helper classes where possible.
    * Use the SDK to run your program."""
    When the program starts, it asks the user for his/her name and surname. I got the program to ask the user again and again for his/her name and surname
    when he/she doesn't insert anything or just press 'enter', but if the user enters a number for the name and surname part, the program continues.
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??
    Here is the programs code that I've written so far:
    {code}
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class Project {
         private static String nameSurname = "";     
         private static String num1 = null;
         private static String num2 = null;
         private static String choice1 = null;
         private static double answer = 0;
         private static String more;
         public double Add() {
              answer = (Double.parseDouble(num1) + Double.parseDouble(num2));
              return answer;
         public double Subtract() {
              answer = (Double.parseDouble(num1) - Double.parseDouble(num2));
              return answer;
         public double Multiply() {
              answer = (Double.parseDouble(num1) * Double.parseDouble(num2));
              return answer;
         public double Divide() {
              answer = (Double.parseDouble(num1) / Double.parseDouble(num2));
              return answer;
         public double Modulus() {
              answer = (Double.parseDouble(num1) % Double.parseDouble(num2));
              return answer;
         public double maximumValue() {
              answer = (Math.max(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double minimumValue() {
              answer = (Math.min(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double absoluteNumber1() {
              answer = (Math.abs(Double.parseDouble(num1)));
              return answer;
         public double absoluteNumber2() {
              answer = (Math.abs(Double.parseDouble(num2)));
              return answer;
         public double Squareroot1() {
              answer = (Math.sqrt(Double.parseDouble(num1)));
              return answer;
         public double Squareroot2() {
              answer = (Math.sqrt(Double.parseDouble(num2)));
              return answer;
         public static String octalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
    String octal1 = Integer.toOctalString(iNum1);
    return octal1;
         public static String octalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String octal2 = Integer.toOctalString(iNum2);
              return octal2;
         public static String hexadecimalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
              String hex1 = Integer.toHexString(iNum1);
              return hex1;
         public static String hexadecimalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String hex2 = Integer.toHexString(iNum2);
              return hex2;
         public double Round1() {
              answer = Math.round(Double.parseDouble(num1));
              return answer;
         public double Round2() {
              answer = Math.round(Double.parseDouble(num2));
              return answer;
              SimpleDateFormat format1 = new SimpleDateFormat("EEEE, dd MMMM yyyy");
         Date now = new Date();
         SimpleDateFormat format2 = new SimpleDateFormat("hh:mm a");
         static Date timeIn = new Date();
         public static long programRuntime() {
              Date timeInD = timeIn;
              long timeOutD = System.currentTimeMillis();
              long msec = timeOutD - timeInD.getTime();
              float timeHours = msec / 1000;
                   return (long) timeHours;
         DecimalFormat decimals = new DecimalFormat("#0.00");
         public String insertNameAndSurname() throws IOException{
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        while (nameSurname == null || nameSurname.length() == 0) {
                             for (int i = 0; i < nameSurname.length(); i++) {
                             if ((nameSurname.charAt(i) > 'a') && (nameSurname.charAt(i) < 'Z')){
                                       inputCorrect = true;
                        else{
                        inputCorrect = false;
                        break;
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your name and surname: ");
                             nameSurname = inStream.readLine();
                             inputCorrect = true;
                        }catch (IOException ex) {
                             System.out.println("You did not enter your name and surname, " + nameSurname + " is not a name, please enter your name and surname :");
                             inputCorrect = false;
                        System.out.println("\nA warm welcome " + nameSurname + " ,todays date is: " + format1.format(now));
                        System.out.println("and the time is now exactly " + format2.format(timeIn) + ".");
                        return nameSurname;
              public String inputNumber1() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter a number you want to do a calculation with and hit <ENTER>: ");
                             num1 = br.readLine();
                             double number1 = Double.parseDouble(num1);
                             System.out.println("\nThe number you have entered is: " + number1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("\nYou did not enter a valid number: " + "\""+ num1 + "\" is not a number!!");
                             inputCorrect = false;
                        return num1;
         public String calculatorChoice() throws IOException {
              System.out.println("Please select an option of what you would like to do with this number from the menu below and hit <ENTER>: ");
              System.out.println("\n*********************************************");
              System.out.println("---------------------------------------------");
              System.out.println("Please select an option from the list below: ");
              System.out.println("---------------------------------------------");
              System.out.println("1 - Add");
              System.out.println("2 - Subtract");
              System.out.println("3 - Multiply");
              System.out.println("4 - Divide (remainder included)");
              System.out.println("5 - Maximum and minimum value of two numbers");
              System.out.println("6 - Squareroot");
              System.out.println("7 - Absolute value of numbers");
              System.out.println("8 - Octal and Hexadecimal equivalent of numbers");
              System.out.println("9 - Round numbers");
              System.out.println("0 - Exit program");
              System.out.println("**********************************************");
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your option and hit <ENTER>: ");
                             choice1 = inStream.readLine();
                             int c1 = Integer.parseInt(choice1);
                             System.out.println("\nYou have entered choice number: " + c1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid choice number: " + "\""+ choice1 + "\" is not in the list!!");
                             inputCorrect = false;
                        return choice1;
         public String inputNumber2() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br2 = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter another number you want to do the calculation with and hit <ENTER>: ");
                             num2 = br2.readLine();
                             double n2 = Double.parseDouble(num2);
                             System.out.println("\nThe second number you have entered is: " + n2);
                             System.out.println("\nYour numbers are: " + num1 + " and " + num2);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid number: " + "\""+ num2 + "\" is not a number!!");
                             inputCorrect = false;
                        return num2;
         public int Calculator() {
              int choice2 = (int) Double.parseDouble(choice1);
              switch (choice2) {
                        case 1 :
                             Add();
                             System.out.print("The answer of " + num1 + " + " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 2 :
                             Subtract();
                             System.out.print("The answer of " + num1 + " - " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 3 :
                             Multiply();
                             System.out.print("The answer of " + num1 + " * " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 4 :
                             Divide();
                             System.out.print("The answer of " + num1 + " / " + num2 + " is: " + decimals.format(answer));
                             Modulus();
                             System.out.print(" and the remainder is " + decimals.format(answer));
                             break;
                        case 5 :
                             maximumValue();
                             System.out.println("The maximum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             minimumValue();
                             System.out.println("The minimum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 6 :
                             Squareroot1();
                             System.out.println("The squareroot of value " + num1 + " is: " + decimals.format(answer));
                             Squareroot2();
                             System.out.println("The squareroot of value " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 7 :
                             absoluteNumber1();
                             System.out.println("The absolute number of " + num1 + " is: " + decimals.format(answer));
                             absoluteNumber2();
                             System.out.println("The absolute number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 8 :
                             octalEquivalent1();
                             System.out.println("The octal equivalent of " + num1 + " is: " + octalEquivalent1());
                             octalEquivalent2();
                             System.out.println("The octal equivalent of " + num2 + " is: " + octalEquivalent2());
                             hexadecimalEquivalent1();
                             System.out.println("\nThe hexadecimal equivalent of " + num1 + " is: " + hexadecimalEquivalent1());
                             hexadecimalEquivalent2();
                             System.out.println("The hexadecimal equivalent of " + num2 + " is: " + hexadecimalEquivalent2());
                             break;
                        case 9 :
                             Round1();
                             System.out.println("The rounded number of " + num1 + " is: " + decimals.format(answer));
                             Round2();
                             System.out.println("The rounded number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 0 :
                             if (choice2 == 0) {
                                  System.exit(1);
                             break;
                   return choice2;
              public String anotherCalculation() throws IOException {
                   boolean inputCorrect = false;
                   while (inputCorrect == false) {
                             try {                              
                                  BufferedReader br3 = new BufferedReader (new InputStreamReader(System.in));
                                  System.out.print("\nWould you like to do another calculation? Y/N ");
                                  more = br3.readLine();
                                  String s1 = "y";
                                  String s2 = "Y";
                                  if (more.equals(s1) || more.equals(s2)) {
                                       inputCorrect = true;
                                       while (inputCorrect = true){
                                            inputNumber1();
                                            System.out.println("");
                                            calculatorChoice();
                                            System.out.println("");
                                            inputNumber2();
                                            System.out.println("");
                                            Calculator();
                                            System.out.println("");
                                            anotherCalculation();
                                            System.out.println("");
                                            inputCorrect = true;
                                  } else {
                                       System.out.println("\n" + nameSurname + " thank you for using this program, you have used this program for: " + decimals.format(programRuntime()) + " seconds");
                                       System.out.println("the program will now exit, Goodbye.");
                                       System.exit(0);
                             } catch (IOException ex){
                                  System.out.println("You did not enter a valid answer: " + "\""+ more + "\" is not in the list!!");
                                  inputCorrect = false;
              return more;
         public static void main(String[] args) throws IOException {
              Project p1 = new Project();
              p1.insertNameAndSurname();
              System.out.println("");
              p1.inputNumber1();
              System.out.println("");
              p1.calculatorChoice();
              System.out.println("");
              p1.inputNumber2();
              System.out.println("");
              p1.Calculator();
                   System.out.println("");
                   p1.anotherCalculation();
                   System.out.println("");
    {code}
    *Can you please run my code for yourself and have a look at how this program is constructed*
    *and give me ANY feedback on how I can better this code(program) or if I've done anything wrong from your point of view.*
    Your help will be much appreciated.
    Thanks in advance

    Smirre wrote:
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??You cannot restrict the user. It is a sad fact in programming that the worst bug always sits in front of the Computer.
    What you could do is checking the input string for numbers. If it contains numbers, just reprompt for the Name.
    AND you might want to ask yourself why the heck a calculator needs to know the users Name.

  • Need help buying a logic board!!!

    Hi,
    So I posted a while back about my mac failing to boot up. Now I concluded it was the logic board that was faulty. I need help deciphering what the part numbers mean.
    My logic board part number is 630-6694/T6690 and model 820-1592-A. This came with the dual 2.0 ghz PPC970fx 90nm model (June 2004). There are boards with the same model number as mine, but different part number prefixes (i.e. 661-xxxx instead of 630-xxxx), so what does this mean????
    I would like to really get the latest motherboard that is still compatible with the processors, if that's possible? I have seen different dual socket boards like 820-1760-A, which I'm interested in since it is the Early 2005 model.
    Can anyone here with technical knowledge shed some light on what these model numbers and part numbers mean?
    Thanks!

    Hi, if it were me, I'd call one of these and see what'd work, I'm no expert but I hear G5s are really particular...
    http://www.dvwarehouse.com/Logic-Boad-for-PowerMac-G5-(Early-2005)-820-1592-A-p-35673.html
    http://www.welovemacs.com/6613584.html

  • Hi need help to change logic of IT0008 annual salary calculation

    Hi friends
    I am an HR ABAPer. I need to do following modification to IT0008 annual salary calculation.
    currently in the Annual salary is calculated from PFREQ feature .
    In PFREQ feature we have only
    Company Code
    Personnel Area
    Personnel Subarea
    Employee Group
    Employee Subgroup
    Transaction Class for Data Storage
    Subtype
    Country Grouping
    Wage Type
    Pay Scale Type to get the months to be considered .
    The current requiremet is to consider ' No of years of services 'for Thiland to get the no of periods. I have an userexit 'EXIT_SAPLPARA_001' . Could you please help me how to use to meet the requirement only for Thiland ?

    990094 wrote:
    I am new to Java and i struck up in some java code. could some one modify the code according to my requirement please..No. Ask for help so YOU can change it and learn from it, don't flat out ask other people to do it for you. People will just assume you'll be the one flipping their burgers in the future if you do that.
    new to JavaThere is a forum that has this exact name, I suggest you take your further questions (not requests to outsource work) there.

  • Need help with calculating interest

    Hey im trying to find out where my calculations are screwing up on the interest is coming up wrong but i am unable to find out where. After every month its suppose to be deposit - withdrawl * monthly interest rate and then add that total to the new month etc... any help will be appreciated. Heres my class and test
    public class SavingsAccount
        private double bal;
        private double intRate;
    The constructor initializes an object with a
    balance and an annual interest rate.
    @param bal The account balance.
    @param intRate The annual interest rate.
        public SavingsAccount(double bal, double intRate)
        bal= 0.0;
        intRate = 0.0;
        The withdraw method withdraws an amount from
        the account.
        @param amount The amount to withdraw.
        public void withdraw(double amount)
            bal -= amount;
        The deposit method deposits an amount into
        the account.
        @param amount The amount to deposit.
        public void deposit(double amount)
            bal += amount;
        The addInterest method calculates the monthly
        interest and adds it to the account balance.
        public void addInterest()
        // Get the monthly interest rate.
        // Calculate the last amount of interest earned.
        // Add the interest to the balance.
         intRate = bal * (intRate/12);
         bal += intRate;
        The getBalance method returns the account balance.
        @return The account balance.
        public double getBalance()
        return bal;
        The getInterestRate method returns the annual
        interest rate.
        @return The annual interest rate.
        public double getInterestRate()
        return intRate;
        The getLastInterest method returns the last amount
        of interest earned.
        @return The last amount of interest earned.
        public double getLastInterest()
        return bal;
    import java.util.Scanner;
    import java.text.DecimalFormat;
    public class SavingsAccountTest
        public static void main(String args[])
        // Annual interest rate
           double intRate;
        // Starting balance
           double startBal;
        // Amount of deposits for a month
           double deposit;
           double totalDeposit;
        // Amount withdrawn in a month
           double withdrawn;
           double totalWithdrawn;
        // Interest earned
           double intEarned = 0;
        // Deposit accumulator
           deposit = 0.0;
           totalDeposit = 0.0;
        // Withdrawal accumulator
           withdrawn =0.0;
           totalWithdrawn = 0.0;
        // Months that have passed
           double months;
        // Create a Scanner object for keyboard input.
           Scanner keyboard = new Scanner(System.in);
        // Get the starting balance.
           System.out.println("What is your account's starting balance");
           startBal = keyboard.nextDouble();
           while (startBal < 0)
               startBal=0;
        // Get the annual interest rate.
           System.out.println("What is the annual interest rate?");
           intRate = keyboard.nextDouble();
           while (intRate <= 0 )
               intRate = 0;
        // Create a SavingsAccount object.
           SavingsAccount account = new SavingsAccount(0.0, 0.0);
        // Get the number of months that have passed.
           System.out.println("How many months have passed since the " +
                              "account has opened? ");
           months = keyboard.nextDouble();
           while (months <= 0)
               months = 1;
        // Get the deposits and withdrawals for each month.
        for (int i = 1; i <= months; i++)
        // Get the deposits.
           System.out.println("Enter the amount deposited during month " + i);
           deposit= keyboard.nextDouble();
           totalDeposit += deposit;
           while (deposit <=0)
               deposit = 0;
        // Get the withdrawals.
           System.out.println("Enter the amount withdrawn during month " + i);
           withdrawn = keyboard.nextDouble();
           totalWithdrawn += withdrawn;
           while (withdrawn <= 0)
               withdrawn = 0;
        // Add the deposits to the account.
           startBal += deposit;
        // Subtract the withdrawals.
           startBal -= withdrawn;
        // Add the monthly interest.
           intRate = startBal * intRate/12;
           startBal += intRate;
        // Accumulate the amount of interest earned.
           intRate += intEarned;
        // Create a DecimalFormat object for formatting output.
        DecimalFormat dollar = new DecimalFormat("#,##0.00");
        // Display the totals and the balance.
        System.out.println("Total deposited: " + dollar.format(totalDeposit));
        System.out.println("Total withdrawn: " + dollar.format(totalWithdrawn));
        System.out.println("Total interest earned: " + dollar.format(intEarned));
        System.out.println("Account balance: " + dollar.format(startBal));
    }

    Ok this is what i have fixed up so far but im still having trouble calculating the interest. Problem1) We were given the skeleton to the class and demo. I cannot figure out what to enter in getLastInterest.(completely lost all i need is hint) 2)When i try to get the Total money deposited and i call the account.deposit(balance) it keeps on giving an error void not allowed. Any help is appreciated
    public class SavingsAccount
        private double balance;
        private double interest;
        private double intEarned;
        The constructor initializes an object with a
        balance and an annual interest rate.
        @param bal The account balance.
        @param intRate The annual interest rate.
        public SavingsAccount(double bal, double intRate)
        balance = bal;
        interest = intRate;
        The withdraw method withdraws an amount from
        the account.
        @param amount The amount to withdraw.
        public void withdraw(double amount)
            balance -= amount;
        The deposit method deposits an amount into
        the account.
        @param amount The amount to deposit.
        public void deposit(double amount)
            balance += amount;
        The addInterest method calculates the monthly
        interest and adds it to the account balance.
        public void addInterest()
        // Get the monthly interest rate.
        // Calculate the last amount of interest earned.
        // Add the interest to the balance.
         interest = balance * (interest/12);
         interest = intEarned;
         balance += interest;
        The getBalance method returns the account balance.
        @return The account balance.
        public double getBalance()
        return balance;
        The getInterestRate method returns the annual
        interest rate.
        @return The annual interest rate.
        public double getInterestRate()
        return interest;
        The getLastInterest method returns the last amount
        of interest earned.
        @return The last amount of interest earned.
        public double getLastInterest()
        return intEarned;
    import java.util.Scanner;
    import java.text.DecimalFormat;
    public class SavingsAccountTest
        public static void main(String args[])
        // Annual interest rate
           double intRate;
        // Starting balance
           double balance;
        // Amount of deposits for a month
           double deposit;    
        // Amount withdrawn in a month
           double withdraw;
        // Interest earned
           double intEarned = 0;
        // Deposit accumulator
           deposit = 0.0;  
        // Withdrawal accumulator
           withdraw =0.0;    
        // Months that have passed
           double months;
        // Create a Scanner object for keyboard input.
           Scanner keyboard = new Scanner(System.in);
        // Get the starting balance.
           System.out.println("What is your account's starting balance");
           balance = keyboard.nextDouble();
           if (balance < 0)
               balance=0;
        // Get the annual interest rate.
           System.out.println("What is the annual interest rate?");
           intRate = keyboard.nextDouble();
           if (intRate <= 0 )
               intRate = 0;
        // Create a SavingsAccount object. Cannot find Symbol!!
           SavingsAccount account = new SavingsAccount(balance,intRate);
        // Get the number of months that have passed.
           System.out.println("How many months have passed since the " +
                              "account has opened? ");
           months = keyboard.nextDouble();
           if (months <= 0)
               months = 1;
        // Get the deposits and withdrawals for each month.
        for (int i = 1; i <= months; i++)
        // Get the deposits.
           System.out.println("Enter the amount deposited during month " + i);
           deposit= keyboard.nextDouble();
           account.deposit(deposit);
           if (deposit <=0)
               deposit = 0;
        // Get the withdrawals.
           System.out.println("Enter the amount withdrawn during month " + i);
           withdraw = keyboard.nextDouble();
           account.withdraw(withdraw);
           if (withdraw <= 0 || withdraw >= balance)
               withdraw = 0;
        // Add the deposits to the account.
           account.deposit(balance);
        // Subtract the withdrawals.
           account.withdraw(balance);
        // Add the monthly interest.
           account.addInterest();
        // Accumulate the amount of interest earned. ????? Wrong
           intRate += intEarned;
        // Create a DecimalFormat object for formatting output.
        DecimalFormat dollar = new DecimalFormat("#,##0.00");
        // Display the totals and the balance.
        System.out.println("Total deposited: " + dollar.format(account.deposit(balance)));
        System.out.println("Total withdrawn: " + dollar.format(account.withdraw(balance)));
        System.out.println("Total interest earned: " + dollar.format(account.addInterest()));
        System.out.println("Account balance: " + dollar.format(account.getBalance()));
    }

  • Need help in calculating a total from flowable table

    I've tried everything to include using the example from the tutorial on creating a flowable purchase order form.  My problem is that I can't get the total field to reflect a total.  I'd be willing to send the form to anyone willing to shed some light and provide a solution.
    Thanks

    Paul, I don't believe that I'm grasping exactly what you are saying.  I have several forms at work that I've designed (none with flowable content however) with calculations, it's just I can't seem to get this one to do what I need.  So.... let me plead ignorance on this one for the moment.
    Actually, I have the one row that accepts data, then if the user wants to, they can click on the add item button to add another instance.  Even after entering the one rows data, that amount does not reflect in the total field.  You would likely need to see the form possibly, and if so, let me know.  I'd be glad to have your help in any way you could provide it.
    Mike

  • Need help with calculated fields in Adobe Interactive Forms

    Hi Gurus,
    I have an Adobe Interactive form in which i have radio buttons. Upon selecting any of the radio buttons, value in text box should be changed( Calculqated filedS). How i can achieve this?
    Regards,
    Srini
    Moderator message: wrong forum, please post again in Adobe Interactive Forms, but always try yourself before asking.
    Edited by: Thomas Zloch on Jul 13, 2010 11:58 AM

    Hi Tapan
    No, it's working ,with  one remark.
    I've done a mistake, in the final formula. The logic remain the same! ;)
     The calculation values for second column ( COL2 ) are 1,2,3 and not 0,1,2 as I wrote  before and as for COL1 are so the formula is
    =3*if(COL1="ABC",0,IF(COL1="DEF",1,2)+if(COL2="RST",1,IF(COL2="YYZ",2,3)
    and not
    =3*if(COL1="ABC",0,IF(COL1="DEF",1,2)+if(COL2="RST",0,IF(COL2="YYZ",1,2)
    I created also a real example  for you, with 2 dif calculation ways . First I created 2 calc_columns for COL1 and COL2 ( CALC_COL1+CALC_COL and after I added both these 2 column , and second way is to calculate directly) .
    Check this image
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Need help in Mapping Logic

    Hi all,
    In mapping i need to mapp like this
    Idoc--file scenario, sending delivery document to file system
    in header of file structure, i have a field called Total Units, the logic for this field shld be
    Sum up the field ZCONV_QUAN for each delivery.
    How to do this please help me
    Regards

    Hi satish,
    I have to do some thing more in this.
    As you said i mapped the field to sum and to target field.its fine
    Now this field is there at header level and comes only ones, i should repeat this field as many number of times the line item repeats.
    Now iam using the ligic like this
    ZCONV_QUAN--UseOneAsMany-Sum--Target Field
    to UseOnaAsMany function i mapped ZCONV_QUAN as first argument and changed the context to Idoc and the second argument as line Item segment changed the context to Idoc, third argument as line itme segment.
    its giving the error as
    Too many values in first queue in function useOneAsMany. It must have the same number of contexts as second queue
    Regards

  • Need Help in improving logic for determining the range

    Hi guys,
    I need some help in my program logic to determine the range of value. My purpose of this program is to find which combinations have the lowest amplitude.
    In the attachment is a set of number.
    e.g 10    0 is a combination.
    Each combination, I will need to draw a graph of data acquired using this combination VS gray level. There is 255 gray level. Every 5 gray level I will acquire a point so I will have 52 points.
    Next, I will get the maximum value - minimum value. And this is the amplitude for the combination. I can do all this function, however it is not practical for me to do it this way until 360 360. There is a round 1200+ combination. It requires a long time since I need to interface all this function with my hardware.
    The graph of each combination maybe a irregular shape. Do any of you have a logic to help me to shorten the process and find the range of values (combination) where the lowest amplitude may lies. Thanks!!
    Attachments:
    example.txt ‏11 KB

    Hi Johnsold,
    This is a example of my result. This is only a portion of it. The last column is the amplitude, I store all the 52 points into array and used Array Min and Max function. Then I use max - min to get the amplitude. From the amplitude I cannot see any pattern. Can you please advice me on it. Thanks!!!

  • NEED HELP!! LOGIC CRASHES AFTER splash screen plss hel

    hey i recently updated to osx 10.6.6 and since then my logic pro has been acting up. But it has come to the point to where now it doesnt even open it crashes right after checking midi drivers. here is the report if anyone can pleasee helpp
    Process: Logic Pro [483]
    Path: /Applications/Logic Pro.app/Contents/MacOS/Logic Pro
    Identifier: com.apple.logic.pro
    Version: 8.0.2 (1502.22)
    Build Info: Logic-15022200~9
    Code Type: X86 (Native)
    Parent Process: launchd [410]
    Date/Time: 2011-01-23 18:53:35.804 -0500
    OS Version: Mac OS X 10.6.6 (10J567)
    Report Version: 6
    Interval Since Last Report: 406669 sec
    Crashes Since Last Report: 78
    Per-App Interval Since Last Report: 367569 sec
    Per-App Crashes Since Last Report: 59
    Anonymous UUID: A3586FC6-6081-439D-A15C-C8042C0882EB
    Exception Type: EXCBADACCESS (SIGABRT)
    Exception Codes: KERNINVALIDADDRESS at 0x0000000049b45b69
    Crashed Thread: 0 Dispatch queue: com.apple.main-thread
    Application Specific Information:
    abort() called
    Thread 0 Crashed: Dispatch queue: com.apple.main-thread
    0 libSystem.B.dylib 0x9128a176 __kill + 10
    1 libSystem.B.dylib 0x9128a168 kill$UNIX2003 + 32
    2 libSystem.B.dylib 0x9131c89d raise + 26
    3 libSystem.B.dylib 0x91332951 __abort + 124
    4 libSystem.B.dylib 0x913329cd abortreportnp + 0
    5 com.apple.logic.pro 0x002b37ff 0x1000 + 2828287
    6 libSystem.B.dylib 0x9128f46b _sigtramp + 43
    7 ??? 0x0000000b 0 + 11
    8 com.apple.logic.pro 0x00020cff 0x1000 + 130303
    9 com.apple.logic.pro 0x00021f94 0x1000 + 135060
    10 com.apple.logic.pro 0x00032e0b 0x1000 + 204299
    11 com.apple.logic.pro 0x002b741e 0x1000 + 2843678
    12 com.apple.logic.pro 0x002b75e3 0x1000 + 2844131
    13 com.apple.logic.pro 0x00012e8c 0x1000 + 73356
    14 com.apple.logic.pro 0x0019534e 0x1000 + 1655630
    15 com.apple.logic.pro 0x004d3c78 0x1000 + 5057656
    16 com.apple.logic.pro 0x0051f9db 0x1000 + 5368283
    17 com.apple.logic.pro 0x005205f9 0x1000 + 5371385
    18 com.apple.AppKit 0x94753040 -[NSDocument readFromURL:ofType:error:] + 743
    19 com.apple.logic.pro 0x00520410 0x1000 + 5370896
    20 com.apple.AppKit 0x9463eddd -[NSDocument initWithContentsOfURL:ofType:error:] + 311
    21 com.apple.AppKit 0x9463e981 -[NSDocumentController makeDocumentWithContentsOfURL:ofType:error:] + 383
    22 com.apple.logic.pro 0x0053d6d3 0x1000 + 5490387
    23 com.apple.AppKit 0x9463e739 -[NSDocumentController openDocumentWithContentsOfURL:display:error:] + 886
    24 com.apple.logic.pro 0x004d8b79 0x1000 + 5077881
    25 com.apple.Foundation 0x923d5588 nsnotecallback + 345
    26 com.apple.CoreFoundation 0x9851f793 __CFXNotificationPost + 947
    27 com.apple.CoreFoundation 0x9851f19a _CFXNotificationPostNotification + 186
    28 com.apple.Foundation 0x923ca384 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128
    29 com.apple.Foundation 0x923d7789 -[NSNotificationCenter postNotificationName:object:] + 56
    30 com.apple.AppKit 0x94423422 -[NSApplication _postDidFinishNotification] + 125
    31 com.apple.AppKit 0x94423332 -[NSApplication _sendFinishLaunchingNotification] + 74
    32 com.apple.AppKit 0x9457a4ed -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 274
    33 com.apple.AppKit 0x9457a10d -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 101
    34 com.apple.Foundation 0x9240a7a4 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 511
    35 com.apple.Foundation 0x9240a568 _NSAppleEventManagerGenericHandler + 228
    36 com.apple.AE 0x92dc8f58 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 166
    37 com.apple.AE 0x92dc8e57 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 43
    38 com.apple.AE 0x92dc8d61 aeProcessAppleEvent + 197
    39 com.apple.HIToolbox 0x97a07389 AEProcessAppleEvent + 50
    40 com.apple.AppKit 0x943f39ca _DPSNextEvent + 1420
    41 com.apple.AppKit 0x943f2fce -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
    42 com.apple.AppKit 0x943b5247 -[NSApplication run] + 821
    43 com.apple.prokit 0x0210df5c NSProApplicationMain + 326
    44 com.apple.logic.pro 0x00003942 0x1000 + 10562
    45 com.apple.logic.pro 0x00003869 0x1000 + 10345
    Thread 1: Dispatch queue: com.apple.libdispatch-manager
    0 libSystem.B.dylib 0x9124f982 kevent + 10
    1 libSystem.B.dylib 0x9125009c dispatch_mgrinvoke + 215
    2 libSystem.B.dylib 0x9124f559 dispatch_queueinvoke + 163
    3 libSystem.B.dylib 0x9124f2fe dispatch_workerthread2 + 240
    4 libSystem.B.dylib 0x9124ed81 pthreadwqthread + 390
    5 libSystem.B.dylib 0x9124ebc6 start_wqthread + 30
    Thread 2: com.apple.CFSocket.private
    0 libSystem.B.dylib 0x912480c6 select$DARWIN_EXTSN + 10
    1 com.apple.CoreFoundation 0x98540c83 __CFSocketManager + 1091
    2 libSystem.B.dylib 0x9125685d pthreadstart + 345
    3 libSystem.B.dylib 0x912566e2 thread_start + 34
    Thread 3:
    0 libSystem.B.dylib 0x912290fa machmsgtrap + 10
    1 libSystem.B.dylib 0x91229867 mach_msg + 68
    2 com.apple.audio.midi.CoreMIDI 0x025090c1 XServerMachPort::ReceiveMessage(int&, void*, int&) + 155
    3 com.apple.audio.midi.CoreMIDI 0x0252797a MIDIProcess::RunMIDIInThread() + 150
    4 com.apple.audio.midi.CoreMIDI 0x0250a2d9 XThread::RunHelper(void*) + 17
    5 com.apple.audio.midi.CoreMIDI 0x02509ca6 CAPThread::Entry(CAPThread*) + 96
    6 libSystem.B.dylib 0x9125685d pthreadstart + 345
    7 libSystem.B.dylib 0x912566e2 thread_start + 34
    Thread 4:
    0 libSystem.B.dylib 0x9124ea12 _workqkernreturn + 10
    1 libSystem.B.dylib 0x9124efa8 pthreadwqthread + 941
    2 libSystem.B.dylib 0x9124ebc6 start_wqthread + 30
    Thread 5:
    0 libSystem.B.dylib 0x9124ea12 _workqkernreturn + 10
    1 libSystem.B.dylib 0x9124efa8 pthreadwqthread + 941
    2 libSystem.B.dylib 0x9124ebc6 start_wqthread + 30
    Thread 6:
    0 libSystem.B.dylib 0x9124ea12 _workqkernreturn + 10
    1 libSystem.B.dylib 0x9124efa8 pthreadwqthread + 941
    2 libSystem.B.dylib 0x9124ebc6 start_wqthread + 30
    Thread 7:
    0 libSystem.B.dylib 0x912570a6 _semwaitsignal + 10
    1 libSystem.B.dylib 0x91282ee5 nanosleep$UNIX2003 + 188
    2 libSystem.B.dylib 0x91282e23 usleep$UNIX2003 + 61
    3 com.apple.AppKit 0x9455cfe1 -[NSUIHeartBeat _heartBeatThread:] + 2039
    4 com.apple.Foundation 0x923d5bf0 -[NSThread main] + 45
    5 com.apple.Foundation 0x923d5ba0 _NSThread__main_ + 1499
    6 libSystem.B.dylib 0x9125685d pthreadstart + 345
    7 libSystem.B.dylib 0x912566e2 thread_start + 34
    Thread 0 crashed with X86 Thread State (32-bit):
    eax: 0x00000000 ebx: 0x913328e1 ecx: 0xbfffde9c edx: 0x9128a176
    edi: 0x1ed7c800 esi: 0x251df830 ebp: 0xbfffdeb8 esp: 0xbfffde9c
    ss: 0x0000001f efl: 0x00000286 eip: 0x9128a176 cs: 0x00000007
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
    cr2: 0x010b7818

    Hi, ish1919.
    Have you updated the drivers for your hardware? An OS update sometimes needs later drivers. Older ones can cause conflicts. Check the manufacturer website [eg. RME] for your hardware and get the latest version.
    Hope this helps.
    Scorpii.

  • Need Help in Calculation of Paid and Unpaid Break in Daily Work Schedule

    hai,
    I am a student of SAP-HCM. I am having problem with the calculation
    in Paid and Unpaid Break in Daily work schedule (Time Management).
    Please help.
    thank you
    Dev.

    Hi,
    The above screen shot is table where we maintain unpaid and paid breaks, we mention about when a break has to start under START tab and when it has to end under END button.
    Under UNPAID and PAID tabs we mention duration of break,  if its 15 mins break or half an hour or one hour depending on start and end timings.
    Suppose a shift is for 9 hours in total and client wants there should be a paid break of one hour, then out of this 9 hours shift itself  break would be considered.... and in case client wants unpaid break then shift would be for 10 hours out of which 9 hours will be working hours and one hour break.
    When this concept has to be calculated in schema processing type would be assigned to this time pair showing break accordingly either paid or unpaid.

  • Need help in creating logic

    Hi all,
    I need suggestion of all of you guys in approaching my goal. What i want to do is... I have a bow still at one place but can rotate at its pivot point and there is an arrow that is used to pull the thread of the bow, as i drag back the arrow then thread of the bow should pull and when drag furthur, bow's thread should lose.
    Can anyone help me how can i approach this.. I have attached an image as a refrence here.

    create a movieclip.  on its timeline create 3 layers.
    the3 shapes (the arrow, the bow and the draw string) should each be placed on their own layer
    shape tween the bowstring and shape tween the bow and classic tween the arrow.
    position that movieclip's reg point and transform point where ever you want.

  • Need help in abap logic

    I am facing problem in abap program.
    Requirement :
    i want to print the data like this
    delivery no-  item-  from batch-   to batch -   material shade-   no of cones-   netwt-   grosswt-   no of bags.
    delivery no & item from lips-vbeln  lips-uecha field table.
    against this i will be having no of batch in lips-charg field. 
    batches may be in order or may not be there.
    Against this each batch i will get  shade, no of cones, netwt, grosswt, from batch classification.
    mch1,ausp   table.
    on change of any of the above items or batch order i must print it with a new line.
    example.
    say supose if delivery 100  item 10 contains ABC001 batch to ABC008  batch ,
    CDE 009 to CDE010, XYZ012, PQR013 batch.
    this batch number contains characters and numeric.
    i want to print like this
    delivery___item__frombatch__to batch____shade__noofcones__netwt___grosswt____no of bags
    100______10____ABC001____ABC008___black__40_________50 kg__50.4 kg_____8
    _______________CDE009____CDE010___black__50_________50 kg__50.4 kg_____2
    _______________XYZ012_____XYZ012___black__50_________50 kg__50.4 kg_____1
    _______________PQR013____PQR013___black__40_________50 kg__50.4 kg_____1
    can u any please help me how to build the logic.

    Hello Navin,
    You've got to give control break points within the loop, to fix the problem.
    LOOP AT T_TABLE INTO FS_TABLE.
      AT NEW FIELDNAME1.
        WRITE:/ FS_TABLE-FIELDNAME1.
      ENDAT.                                   " AT NEW FIELDNAME1
    AT NEW FIELDNAME2.
       WRITE:/ FS_TABLE-FIELDNAME2.
    ENDAT.                                     " AT NEW FIELDNAME2
    * Fieldname3 will be printed below distinct Fieldname2. Fieldname3 is printed as bunch.
       WRITE:/ FS_TABLE-FIELDNAME3.
    ENDLOOP.                                " LOOP AT T_TABLE INTO FS_TABLE
    Note:
    Try giving ON CHANGE OF T_TABLE-FIELDNAME.
    This is an obsolete statement, but this really does well, in case of printing Currency or Date.
    Usually, date and currency fields are printed
    Rs.****.**
    LOOP AT T_TABLE INTO FS_TABLE.
      ON CHANGE OF FS_TABLE-FIELDNAME1.
        WRITE:/ FS_TABLE-FIELDNAME1.
      ENDON.                                   " ON CHANGE OF FS_TABLE-FIELDNAME1
    ON CHANGE OF FS_TABLE-FIELDNAME2.
       WRITE:/ FS_TABLE-FIELDNAME2.
    ENDON.                                     " ON CHANGE OF FS_TABLE-FIELDNAME2
       WRITE:/ FS_TABLE-FIELDNAME3.
    ENDLOOP.                                " LOOP AT T_TABLE INTO FS_TABLE
    Try with the concept above, hope you'll get the solution.
    Thankyou,
    Zahackson

  • Need help on displaying Cells in Bex Analyser

    Hi all,
      I am showing the report in Bex Analyser.In Bex, unfortunately, the the seperate Cells are not displaying in the report.The report is showing only data with no cells displaying.Pls help on this.
    I hope some settings has to
    Thanks,
    Jelina.

    Thanks for the reply.
    In my report, the Cell borders are not displaying in the Bex Analyser.Only data alone is displaying.
    Is there any options available enable the Cell borders in the Bex Analyser.
    Thanks in advance.
    Thanks,
    Jelina.

  • Need help understanding Specific Logic preferences

    Hello everyone. I'm currently optimizing my system for my next project, and decided to dive into the manual and read up on Logic's song setttings/preferences, however there were a few I did not understand. Can someone explain the following Logic preferences and what they effect/do? (I have included the associated Logic manual pages, hoping they will make sense to you, as they didnt to me
    Living Groove connection: pg. 641 No clue what this does
    Smooth Cycle Algorithm: pg 641 Do not understand
    Plugin Delay compensation: pg 644. Do I need this if I am not using a DSP card, but am using the "external" and "I/O" plugins?
    Sample Accurate automation: pg 644 How important is this? How much "overall system performance" is effected with this enabled? When not enabled, what is the default unit? A frame? QF? Tick?
    Audio preferences-Drivers-Process buffer Range: pg 380 Dont understand the testing process. What should I expect to change between the different settings?
    Audio preferences-Sample editor-"Global Undo File path" or "Store undo files in song folder." Which to use an why?
    Video-Video to Song: pg 653 Is this some sort of timing compensation? Why would this be used in place of Video offset within the session itself?
    Thanks in advance for any reply!
    Dual 2.5GHz G5   Mac OS X (10.4.5)   5Gb Ram, Logic 7.1.1 and other goodies

    Living Groove connection - If you create a groove using a region, but then you change notes' positions/velocity in the template region, any quantizing you do based on that groove will change as well. don't know if it works reliably now. Last time I tried it many years ago it was flaky.
    Smooth Cycle Algorithm: Tries to optimize the way cycling works to smooth transitions between end point and start point to eliminate glitching and/or stuttering in the time.
    Plugin Delay compensation: Mostly for use with 3rd party DSP cards. I don't think it has any effect on external and I/O plugs. Could be wrong about that.
    Sample Accurate automation: Performance hit depends on your CPU. Not sure what the non-sample accurate default is. Probably means that the resolution is the same as that of Midi data.
    Audio preferences-Drivers-Process buffer Range. You have to test by trial-and-error. Use the smallest setting which doesn't make your computer convulse whent you work it hard. Changing this setting can alter the slew rate and latency of some kind of automation and thus change the way your mixes sound if you have a lot of rapid automation moves, so try not to mess with it once you find a good setting.
    "Global Undo File path" or "Store undo files in song folder." Use the latter, particularly if you use project folders and have any intentions of transporting your work or need to keep access to your undo history. Putting undo data in project folder means it gets saved with your song.
    Video-Video to Song: Is how you adjust the startpoint of the movie relative to the startpoint of the Song in Logic. Your downbeat may not correspond exactly to how the video was cut. This is how you compensate for that.
    External Video to Song is an aditional adjustment to conpensate for latency caused by playing QT movies via a DV bridge device on FW.

Maybe you are looking for

  • Can a replacement LCD have the same exact defect?

    I brought my 24" iMac in because there was a pixel anomaly/stuck red pixel in the center of the screen. As I'm a graphic artist, it was very annoying. I brought it to the Apple Store where the Genius agreed to have the display replaced. I went to get

  • MessageRichTextEditor - How to hide the link 'Change to Rich Text Mode'

    Hi, I will be using RTE only in plain text mode.So I want to hide the link 'Change to Rich Text Mode'.How can we do this. Please suggest. Regards, ashok

  • Admin menu formatting

    The formatting in the admin menus is all messed up (Chrome 39). Doesn't affect functionality but it's starting to get annoying. Any chance of a fix soon?

  • Delete a spase image on Time Capsule

    How can I delete just one of three sparse images on my Time Capsule?  Can this be done with tmultil?

  • Cannot compile anything other than default.as

    Hello group, have downloaded trial Flex Builder, installed 2.0.143 on xp pro. Have debugger 9.0.28 successfully installed. Have been able to write mxlm and run file. Though now I need to compile/run large as3 file. Create project and compile and run