Simple Addition/Subtraction in Manual Planning

Hi Friends
I want to know if we can do simple calculations as Addition or Subtraction dynamically in our Manual Layout (without creating a new Key figure and adding it into my transaction Cube)
eg. I have Fields A and Field B in my Manual Layout and a want to display Field C (A-B) , which is the difference of A and B also in my Manual Layout.
Pleaze reply asap
Rishi

Hi,
in your query you can add a formula which returns A-B. Then user can see this in the planquery and you don't need to define a key figure for this. If you want to have this for many queries, you can created it once as a calculated key figure and add it in all your queries.
regards
D

Similar Messages

  • Java program to perform binary addition,subtraction and modulus.

    i am a newbie to java and require ur urgent help plzzzz.
    i wanna perform binary addition,subtraction and modulus operation between two numbers of 512 bit without using java functions i.e by simple logics of control statements.i need to convert two 512 bit numbers passed as string into binary form, and then perform addition,subtraction and modulus operations on these two binary numbers and finally dipaly the result in decimal format.
    i think we may use full adder binary logic in this!!!
    please send me the java coding for these three operations as urgent as possible on my email.
    i would be highly obliged.
    thanks.
    sheetal.

    i have managed to make this code myself but i wanna learn the basics...so plz help me guyz...
    this is the code:
    package bytearrayopeations;
    import java.math.BigInteger;
    * @author sheetalb
    public class binaryadding {
    public static void main(String[] args) {
    BigInteger a = new BigInteger("123456");
    BigInteger b = new BigInteger("5121");
    String bb1 = a.toString(2);
    String bb2 = b.toString(2);
    String ss1 = null;
    String ss2 = null;
    String result = "";
    String carry="0";
    System.out.println("first value=" +bb1);
    System.out.println("second value=" +bb2);
    int k=bb1.length();
    int h=bb2.length();
    System.out.println("length 1="+ k);
    System.out.println("length 2=" +h);
    int p=h-k;
    //System.out.println("difference=" +p);
    int q=k-h;
    //System.out.println("difference 2=" +q);
    if(h==k)
    else if(h>k)
    for(int i=0;i<p;i++)
    bb1="0"+bb1;
    System.out.println("new value of first=" +bb1);   
    else if(h<k)
    for(int i=0;i<q;i++)
    bb2="0"+bb2;
    System.out.println("new value of second=" +bb2);
    StringBuffer sb1=new StringBuffer(bb1);
         StringBuffer sb2=new StringBuffer(bb2);
    bb1=sb1.reverse().toString();
         bb2=sb2.reverse().toString();
    //System.out.println("rev. buffer1=" +bb1);
    //System.out.println("rev. buffer2=" +bb2);
    for(int i=0;i<bb1.length();i++)
    ss1=bb1.substring(i,i+1);
    ss2=bb2.substring(i,i+1);
    System.out.println("value1=" + ss1 + " " + "value2=" + ss2);
    if (ss1.equals("0") && ss2.equals("0"))
    if (carry.equals("0"))
    result+="0";
    else
    result+="1";
    else if (ss1.equals("1") && ss2.equals("1"))
    if (carry.equals("0"))
    result+="0";
              carry="1";
              else
                   result+="1";
                   carry="1";
    else if (ss1.equals("0") && ss2.equals("1"))
    if (carry.equals("0"))
         result+="1";
                   carry="0";
                        else
                        result+="0";
    carry="1";
    else if (ss1.equals("1") && ss2.equals("0"))
    if (carry.equals("0"))
    result+="1";
    carry="0";
                   else
    result+="0";
    carry="1";
    System.out.println("sum=" result " " + "carry" + carry);
    result+=carry;
    StringBuffer sb3=new StringBuffer(result);
    result=sb3.reverse().toString();
    System.out.println("result is " +result); 
    System.out.println("Binary = "+ result + ", Decimal = "+Integer.parseInt(result,2));
    plz reply nw...

  • BPS - possibility of Manual Planning Functions

    Hi guys,
      I need some technical advice. Please advice if this task can be "EASILY" accomplished via BPS Manual Planning Function ?
      My client need to input certain data into BW and generate a report displaying all the below mentioned data into a simple BW query.
      Type of data that need to be inputted manually (key-in) :-
      Market Velocity
      AVG Daily Trading Value
      Mkt CAP of New Listing
      No. of new Listing
      No. of Derivative Instructions
      Please assist soonest possible

    Hi John,
    Should work. If you have an InfoCube (type transactional) with the chars & keyfigs, you could do a manual planning. However, for demo purposes, you could also use transaction RSINPUT for this cube. If you have defined your correct InfoObjects, you have these several options.
    If you want to report on this transactional InfoCube, make sure you include the variable for "most current data" in your BEx report.
    Good luck,
    Laurens.

  • Increase empty rows in BPS Manual planning

    Hi All,
    I have a BPS layout and there is already data in the cube and I can see it. when I want to add additional data via this manual planning layout, ı only see 20 empty rows. when ı insert 20 rows of data and save it, new 20 empty rows will come.
    Is it possible to increase these rows from 20 to 500.
    I want to insert 500 rows of data at a same time.
    I appreciate you for your replies.
    Ali

    Hello Ali,
    we have had the same problem and could extend the number of input ready rows by changing of the system function:
    Function Group: UPP_FRONT_SPREADS
    Include: LUPP_FRONT_SPREADSTOP
    Following line was changed:
    *\constants: c_dummies_number type upp_y_row value  20.
    constants: c_dummies_number type upp_y_row value 500.
    Best regards,
    Kirill

  • Error while creating manual planned order in apo

    Dear expert
    While I am creating manual planned order i am getting error as message /sapapo/rrp251
    Every thing is correct BOM and PV's no error after consistency check and it getting succesfully transffered to APO and it is also visible in APO
    But while creating manual planned orders planned order are not getting generated  I am using BLock planning with PPDS
    Please help How to resolve it
    Regards
    Virender

    Hi
    The error message /SAPAPO/RRP251 - Error occurred while creating order means While creating an order, the system encountered problems, such as, for example, no available components or components that are available late, orders that could not be scheduled, and so on.
    I think system attempted to solve the availability problems by using alternative procurement options. This was not successful. The order could not be created. Check the exceptional situations in the planning protocol, under Goto -> Planning log, and deal with the causes of the exceptional situations if this is possible or necessary.
    Thanks
    Amol

  • Binary addition,subtraction and modulus...plz help urgent

    plz help me on this query...
    i need to pass two 512 bit number as string,then convert them to binary and
    then perform binary addition,subtraction,modulus operations on those two numbers.finally convert result to integer.
    i designed a code which doesnt work correct.it is:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package bytearrayopeations;
    import java.math.BigInteger;   
    * @author sheetalb
    public class binaryadding {
        public static void main(String[] args) {
            BigInteger a = new BigInteger("123456");
            BigInteger b = new BigInteger("5121");
            String bb1 = a.toString(2);
            String bb2 = b.toString(2);
            String ss1 = null;
            String ss2 = null;
            String result = "";
            String carry="0";
            System.out.println("first value=" +bb1);
            System.out.println("second value=" +bb2);
            int k=bb1.length();
            int h=bb2.length();
            System.out.println("length 1="+ k);
            System.out.println("length 2=" +h);
            int p=h-k;
            //System.out.println("difference=" +p);
            int q=k-h;
            //System.out.println("difference 2=" +q);
            if(h==k)
           else if(h>k)
                for(int i=0;i<p;i++)
                    bb1="0"+bb1;
                System.out.println("new value of first=" +bb1);   
        else if(h<k)
            for(int i=0;i<q;i++)
                bb2="0"+bb2;
            System.out.println("new value of second=" +bb2);
            StringBuffer sb1=new StringBuffer(bb1);
         StringBuffer sb2=new StringBuffer(bb2);
            bb1=sb1.reverse().toString();
         bb2=sb2.reverse().toString();
            //System.out.println("rev. buffer1=" +bb1);
            //System.out.println("rev. buffer2=" +bb2);
            for(int i=0;i<bb1.length();i++)
                ss1=bb1.substring(i,i+1);
                ss2=bb2.substring(i,i+1);
              System.out.println("value1=" + ss1 + "    " + "value2=" + ss2);
              if (ss1.equals("0") && ss2.equals("0")) 
                 if (carry.equals("0")) 
                     result+="0";
                        else
                            result+="1";
               else if (ss1.equals("1") && ss2.equals("1"))
                if (carry.equals("0")) 
                    result+="0";
              carry="1";
              else
                   result+="1";
                   carry="1";
        else if (ss1.equals("0") && ss2.equals("1"))
                     if (carry.equals("0")) 
                         result+="1";
                   carry="0";
                        else
                          result+="0";
                                    carry="1";
               else if (ss1.equals("1") && ss2.equals("0"))
                     if (carry.equals("0")) 
                        result+="1";
                        carry="0";
                   else
                                result+="0";
                                carry="1";
           System.out.println("sum=" +result + "         " + "carry" + carry);
                        result+=carry;
                        StringBuffer sb3=new StringBuffer(result);
                        result=sb3.reverse().toString();
                    System.out.println("result is " +result); 
                  System.out.println("Binary = "+ result + ", Decimal = "+Integer.parseInt(result,2));
    }plz provide me or email me if possible java coding for all three operations as soon.
    [email protected]

    One thread is enough. Continue here:[http://forums.sun.com/thread.jspa?threadID=5373720&messageID=10643157#10643157]

  • Variable with range- only 1st value used in manual planning ?

    Hi,
    We're trying to define a column in a manual planning layout that will represent a YTD total.  We have defined a variable  for 0fiscper that contains the range of periods we require in the YTD total.  When we execute that manual planning area with this variable used as a restriction on the data column we want, the key figure values displayed only represent those for the 1st period in the range - not  all periods in the range !
    I'm hoping someone can tell me if manual planning layouts can use variables in this manner.  If not, how can this best be done ? 
    Many thanks,
    Blair

    Hi Blair,
    Create a total column using the dynamic column, as a result you would have the individual period columns and the total column in the layout. Now make the individual period columns hidden using any of the options below.
    You could achieve the same, by making the column hidden in the transaction UPX_MNTN
    > Enhance Planning Layout
      > Select the relevant layout
         > Select the enhanced button for the key figure
           column
           > Mark the hidden check box there.
    Alternatively if you are using Excel GUI, you could set the column width of the columns preceeding the total column as 0 (in the third screen of the layout) to make them hidden.
    Hope it helps

  • Calculated key figures in manual planning

    I'm trying to set up a Material Planning system using BPS.
    One of the requirements my customer wants is that in the manual planning he can both modify a multiplier as well as one of the resulting amount key figures.
    The multiplier is used to calculate the consensus amount based on a consolidated amount.
    In my manual planning I have the possibility to allow input on the multiplier as well as the consensus forecast (that has been calculated upfront). Now I need the consensus forecast to change when th multiplier is changed.
    How can I best tackle this? (Yes, I'm fairly junior to BPS...)
    Thanks for any guidance in this matter.
    Regards,
    Eric

    Hi Eric,
    to give business the most flexible solution, allow them to manually change the multiplier or the result and provide two planning functions (FOX). One for calculating the result from the multiplier, and one for the reverse. Then the user can choose which direction they want to go.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Clarification on Manual Planning

    Hello
    Would appreciate clarification on the following query.
    Is it possible to write zero key figures into the infocube:
    The context is I have paytype as a characteristic
    when the characteristic is BONUS the rates (read All Key Figures )are zero, while there are specific rates when the value of the paytype characteristic is PAID
    While I maintain these values in the planning layout , I find that the system recognizes only those entries which has atleast one non-zero value
    The work around for me would be to try and introduce a key-figure which would have a value in all instances
    Just wanted to know whether there is an alternative
    Thanks for your time
    Regards

    appreciate your response on this query;
    I also felt like sharing SAP's perspective on this.......
    <b>My query to SAP</b>
    I have created a planning layout for manual planning; Set of entries were entered in the planning layout
    The scenario demands the key figures for certain characteristics combinations to be zero ; this means that for these combinations, all the key figures assumes zero values The systems generates entries only in the cases where atleast one key figures has a non zero value; Why is this so? Is the BPS design/ Loading
    into t cubes designed such that key figure should have non zero values
    to be loaded into the data target Appreciate help on this Regards;
    Ramesh
    <b>SAP Reply</b>    28.11.2005 20:46:07      SAP AG
    Dear Ramesh,
    yes, the system is designed this way. The BPS could not discern betweenvalues of zero and values not yet planned. Data sets have to have at least one key figure diverse to zero, otherwise these data sets will be
    deleted from the internal buffer and will be not written to the cube. This is the standard behaviour of the BPS system.
    A possible workaround is to set dummy key figure (like "planned") with value 1 for "yes" and 0 for "no".
    thanks and regards
    Jens Horn
    Support Consultant
    SAP Active Global Support
    Netweaver Business Intelligence

  • How To Add New Key Figure in Manual Planning

    Dear All
    Please Help
    I Already implement BPS for 2 year.
    Now user want to add new key figure in Cube.
    I already add new key figure to cube and activated it.
    But in Manual Planning, The new key figure not show in selection
    what I must do?
    Please Help.
    Thanks

    Hi,
    not all key figure types are supported in BPS.
    1. All key figure types must have aggregation SUM, SUM.
    2. Supported key figure types:
    - amout
    - quantity
    - number (integer, float, dec)
    - time, only type DEC
    - datum, only type DEC
    All other key figures are filtered out and are not available in BPS.
    Regards,
    Gregor

  • BPS ERROR I CREATE A NEW Manual Planning when a use variable in lead column

    Dear
    when a create a new manual planning have a message.
    Frist
    I create two variable one is Controlling Area other is Cost Element
    in planning area.
    next
    I a create a manual planning to make a report form.i create a
    manual planning layout category is key Figures and make Controlling
    Area and Cost Element as lead column in next continue setup lead
    columns tab.i set key figure and set Controlling Area and Cost Element
    to use variable above.and finish other tab.
    next
    i double click manual planning system give me a message
    The environment has changed; the layout can no longer be executed
    notes: i can insure Controlling Area and Cost Element is a single value
    and make sure both can mapping in cube
    by the way when i use fixed value this form will be run.
    Edited by: frank ju on Aug 6, 2009 11:13 AM

    Hi Everybody:
    I summarize the last post: In RoboHelp 7 for Word, the problem is that when I try to create a winhelp2000 project importing from a .hlp file of origin created previuosly, the import process makes error because it want to extract images that not exist on the .hlp file of origin. Thanks in advance for all the help that you can give me.
    Ismael.

  • SEM-BPS Creation of the Manual Planning

    Hi All,
    Am new to SEP BPS.
    Am trying the create the Manual Plannng. but it is giving the following message.
    "Select a node related to tree".
    I followed the steps mentioned below.
    Selected the Planing LEvel, from planning menu selected the option manual planning --> create.
    it gives me the above step.
    The other alternative follwed is right click on the planning level, in the context menu it suppose to list the create manual planning. but am not able to see this option.
    To create a manual plan any settings has to be done...
    Regards,
    Prathima.

    Hi Prathima,
    To create Manual Planning, select the Planning package for the Planning Level and then select "Create Manual Planning"
    alternatively
    once you have selected the Planning package on the right click mouse of the planning functions also will give you the option to do the same.
    Cheers
    Anurag

  • How to allow only new combinations when adding lines in manual planning?

    Hello Xperts.
    in manual planning (input ready query called over web-template) the user wishes to plan (change the key figure values) for already existing combinations and to add new lines (which has been enabled in the web-template through a button group).
    The crux of the matter is that the user is supposed to be able to enter only new unique combinations of data. Hence the user may not enter already existing characteristic combinations as a new line.
    I have noticed that the system default is that if the user enters an already existing combination when "adding a new line", the value entered for the key figures is simply added to the existing value (summation) of that characteristic combination. This is unacceptable to the business requirements!
    I thought about solving with a check combination exit (CL_RSPLS_CR_EXIT_BASE), but the problem is that all already existing combinations would be invalid, hence it would not work I think.
    I would appreciate any suggestions out there how this could be accomplished. Thank you.

    Hi,
      The best option that satisfies your requirement is to create a custom planning function to accept only new combinations.
    For this check the following link,
    http://help.sap.com/saphelp_nw70/helpdata/en/43/0c033316cd2bc4e10000000a114cbd/frameset.htm
    In the above go to BI Integrated Planning -> BI Integrated Planning -> Implementing Planning Function Types
    After this, in your "Save" button on the workbook insert this custom function also before the "Save".
    So once you click "Save" button first check is performed and error is thrown if the records entered by the user are not as per your requirement.
    Regards,
    Balajee

  • If any function like greatest or least for addition,subtraction and multi?

    if any function like greatest or least for addition,subtraction and multi?
    there are two columns 'a' and 'b'...i have to add the values in column wise
    a b add
    10 30 -->40
    20 40 -->60
    IS there any function?

    Hi,
    794244 wrote:
    if any function like greatest or least for addition,subtraction and multi?
    there are two columns 'a' and 'b'...i have to add the values in column wise
    a b add
    10 30 -->40
    20 40 -->60
    IS there any function?Do you mean something like
    FUNCTION_X (a, b, c, d, ...)that would return the sum of all those numbers?
    No, not that I know of. If there were, it would be harder to use than
    a + b + c + d + ...The first is a comma-delimited list of columns, with a function name and parentheses.
    The second is a +-sign delimited list, with nothing else needed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Simple addition using 7 series Gen2 integrated block for PCIe for ZYNQ7000

    Hi,
    I have been trying to perform a simple addition program using 7 Series Gen2 Integrated block for PCIe 3.0.
    Due to some issue in the design i am unable to proceed. Can anyone help me out  on how the interface has to be done what are the necessary IPcores needed and the necessary driver to execute on the host machine.
    Tool : Vivado 2014.4
    Regards
    Heramban

    Hi,
    Satish I have refered this document long time back. The issue is that this mode is making the FPGA standalone and its more complex. Am asking for a simple design where in i use 7 series integrated block and connect it to a custom IP core where it performs only addition. Generate bit stream, use a driver program (CPP file ). Execute in the host system. The CPP file will have the data to be executed. the FPGA reads the data from the HOST Machine (CPP file), executes and gives back the result in the terminal window (Host machine).
    Regards
    Heramban

Maybe you are looking for