Want to crate a dynamic formula depending characteristics

Hi experts,
I want to create a query which calculates the following:
I have some products, some factories and the variable month.I want to find what percentage of product A  is produced in factory A month by month.(also for product B in factory A, product A in factory B and so on)
The problem is that I can not select the characteristic values in query designer while creating a formula.I also tried to calculate it in workbook but I failed.Because the number of rows and columns is not constant depending which month the user selects.So the formula calculates wrong things as the place of the things changes.
Thanks in advance...
Regards,
Sunny

You will have to create "selections" or "restricted KF" for each factory product combination e.g FAC_A_PRD_A. Using these selections you can build a percentage formula as FAC_A_PRD_A / Total qty.
When you suppress zeros on the query it should only display combinations where qty is not 0.

Similar Messages

  • Inspection plan : Dependent characteristics specifications

    Hi all ;
    We want to list our inspection plans with a alv report. We use tables MAPL - PLKO - PLMK - PLPO - PLMW .
    But , we can not find dependent characteristics in tables , when i click f1 , i get belowed result. It is a structure.
    How can i get plmwb-lifnr with their characteristic results ?
    Regards.
    M.Ozgur Unal

    Hi all ;
    You can join with ZKRIZ between MAPL - PLMW to contact related lines.
    Regards.
    M.Ozgur Unal

  • Headcount for all months and dynamic formula in HR Module

    Hi all,
    I am new to HR module, I had requrement like user will i/p from date and to date for calmonth based upon that i need to create a report i, and in the report i need to  calculate the %attrition(leavers rate)
    I am uploading  from a flat file and the fields in the flat file contains empno,emplocation,empdepartment,Dateofjoining,dateofreleiving
    suppose if the user enters from 05.2008 till 06.2008 means my formula will look like
    the formula to calulate %attrition = totalemployquit/(opening headcount of 1st of 05.2008Closing headcount of end of 05.208)/2opening headcount of 1st of 06.2008+Closing headcount of end of 06.2008)/2)/No of months 365/No of days elapsed100
    if user enters 03.2008 till 05.2008 means my formula will chage accordingly:
    totalemployquit/(opening headcount of 1st of 03.2008Closing headcount of end of 03.208)/2(opening headcount of 1st of 04.2008Closing headcount of end of 04.208)/2opening headcount of 1st of 05.2008+Closing headcount of end of 05.2008)/2)/No of months 365/No of days elapsed100
    Please help me out that sap has the facility for dynamic formula and also how can i find the  opening and closing headcount .
    I already gone through  Personal administartion link and all so please dont provide me the link in help .sap.com  and all,but it would be help full if telling me the way to implement the keyfigures 0HDCNT_VC and 0HDCNT_NC in this case .

    Mr Vinay
        Here u can do one thing by creating custom exit variable and write code for the same in CMOD.
        With this variable u can populate what ever u want.
         Recently i got this req & i solved .
    Warm Regards,
       Hari

  • Adding 2 dependent characteristics in DIP profile

    Hi All,
    I need to add 2 dependent characteristics to the DIP profile. I have already added 1 using the BADI DIP_AD010003_DC . Any suggestions on how to add the 2nd characteristic also?
    Regards,
    Siju

    In DIP profile
    To use RRB between company codes, you have to adjust the DIP profile. Make sure that Intercompany Line Items are selected as a source for dynamic items of the dynamic item processor.
    1. The Characteristic relevant indicator is set for the cost element characteristic.
    A dynamic item is created on the basis of sales price for each cost element (planned or actual costs)
    2.  The Material determination indicator is set for the Cost element characteristic.
    The cost element is made available as a characteristic for material determination using sets. If this indicator is set, you can enter only a set for the characteristic in the Material determination table.
    3. The No summarization indicator is not set for the cost element characteristic.
    Several dynamic items with the same material number and cost element in the sales price basis lead to the item in the sales document.
    4. The Structuring indicator is set for the cost element characteristic. The set name PS-ALL or OAS is preset with levels from 1 to 2.
    Dynamic items are structured hierarchically using the cost element group.
    Do all this setting in DIP profile.& use the DIP to perform thsi billing reqmt.
    Assignment to the DIP profile is performed in the service order header or the sales order itmes.
    Regards,
    ANSAR

  • We have always used one iTunes account and I want to crate a new account for my daughter.  What is the best way to go about this and will she need to download free apps again?

    We have always used one iTunes account and I want to crate a new account for my daughter.  What is the best way to go about this and will she need to download free apps again?

    Not going to happen the way you want it to.
    When you add a gift card balance to the Apple ID, it's available for the Apple ID.
    Probably best to create unique Apple ID's for each... this will also make things easier in the future as purchases are eternally tied to the Apple ID they were purchased with.

  • I want to use a dynamic schema name in the from clause but its not working.

    DECLARE
         vblQueryName VARCHAR2(20);
         vblSchemaName VARCHAR2(20);
    BEGIN
         SELECT CurrentSchemaName INTO vblSchemaName FROM HR_989_SCHEMA;
         vblQueryName:='060_525_020';
         INSERT /*+ APPEND(HP_ELIGIBILITIES,4) */ INTO HP_ELIGIBILITIES
              LVL1ID,
              LVL1Desc,
              LVL2ID,
              LVL2Desc,
              LVL3ID,
              LVL3Desc,
              LVL4ID,
              LVL4Desc
         SELECT /*+ PARALLEL(a,4) */
              LVL1ID,
              LVL1Desc,
              LVL2ID,
              LVL2Desc,
              LVL3ID,
              LVL3Desc,
              LVL4ID,
              LVL4Desc
         FROM
         bold     vblSchemaName.HP_ELIGIBILITIES a
         WHERE
              UPPER(LVL2ID) = 'XX' ;
         COMMIT;
    DBMS_OUTPUT.PUT_LINE( 'Query Executed: ' || vblqueryName);
    INSERT INTO HP_QUERYEXECLOG(QueryName) VALUES(vblQueryName);
    EXCEPTION WHEN NO_DATA_FOUND THEN NULL;
    END;
    I want to create a rules table so that the schema name in front of the table name in the from clause can be controlled by a separate table that is maintained but its not working . Help and your valuable inputs needed for this issue

    I want to use a dynamic schema name in the from clauseyou can alternatively set the current schema as e.g. in:
    declare
       vblqueryname    varchar2 (20);
       vblschemaname   varchar2 (20);
    begin
       select currentschemaname into vblschemaname from hr_989_schema;
       vblqueryname := '060_525_020';
       execute immediate 'alter session set current_schema=' || vblschemaname;
       insert /*+ APPEND(HP_ELIGIBILITIES,4) */
             into hp_eligibilities (lvl1id,
                                    lvl1desc,
                                    lvl2id,
                                    lvl2desc,
                                    lvl3id,
                                    lvl3desc,
                                    lvl4id,
                                    lvl4desc
          select /*+ PARALLEL(a,4) */
                lvl1id,
                 lvl1desc,
                 lvl2id,
                 lvl2desc,
                 lvl3id,
                 lvl3desc,
                 lvl4id,
                 lvl4desc
            from hp_eligibilities a
           where upper (lvl2id) = 'XX';
       commit;
       dbms_output.put_line ('Query Executed: ' || vblqueryname);
       insert into hp_queryexeclog (queryname)
       values (vblqueryname);
    exception
       when no_data_found
       then
          null;
    end;

  • Dependent characteristics updation in transaction QP02

    HI Friends,
        Could you please help me regarding updation of dependent characteristics in the transaction QP02.
    My requirement is i will give the plant and group in the first screen and i select the first entry and i will click inspection characteristics in the appl tool bar and then i will select master inspection characteristics and i have to press dependent characteristics update to update
    diameter,unit of measurment....  based on material assignment. CAn i use any BAPI for this?
    Please help me i will give the points.
    Thanks a lot in advance.

    Hi,
    I think your problem is solved .
    I am also working on same requirement .Please can you tell the bapi or procedure how to solve that problem .
    regards
    Nandan.N

  • Showing Dynamic parameters depending on Static parameter

    Post Author: Relais
    CA Forum: General
    Is it possible to show dynamic parameters depending on the selection of the static parameter?For example, I would like to show a dynamic list of Departments, only if u201CDepartmentu201D is selected from the static parameter list.
    Or if u201CCategoryu201D is selected from the static list, then I would like to prompt the user with a dynamic list of available Categories.
    Is this possible or must you always show all parameters?Any feedback would be appreciated.
    Thank you.

    Hi,
    What i would do is in addition to what you already have,  create a new view V-Channel and embed this view as default view in the Window.
    Create 2 outbound plugs (to_view1 , to_view2)
    Create a event in component controller  like event_name is NAVIGATE and the parameter is TO of type string.
    Create a method go_navigation with parameter destination of type string.
    Write your code in this method to fire the Navigation event filling the TO parameter with destination.
    In the V_Channel subscribe to this event NAVIGATE. and write the code for firing outbound plug to_view1 or to_view2 based on the TO parameter value.
    Remember to connect these outbound plugs to the right inbound plugs in the ViweContainerUIElement views.
    In the start-up plug event handler method, retrieve the URL parameters and call the Go_NAvigation method  filling the right value for the destination parameter.

  • Want to add Image Dynamically...

    I want to add image dynamically in my output screen..so is there any code that i can use..Please help with this...

    Can you please be more specific about what you want to do dynamically.  Do you just want to dynamically control which image appears in an image UI element (which can be done by data binding a context attribute to the image Source property) or do you want a dynamic number of images (which can be done with a row repeater or multipane UI element and inner Image UI elements).

  • I want to convert this excel formula into a formula that works in Numbers =INDEX(Codes!$B$1:$B$9998;MATCH(TRUE;ISNUMBER(SEARCH(Codes!$A$1:$A$9998;'Curren t Account'!E4358));0))

    I want to convert this excel formula into Numbers formula =INDEX(Codes!$B$1:$B$9998;MATCH(TRUE;ISNUMBER(SEARCH(Codes!$A$1:$A$9998;'Curren t Account'!E4358));0))

    Without knowing the structure of the spreadsheet, or what e3xactly you are trying to do, it would be hard to advise. however, have a look here: http://help.apple.com/numbers/ipad/2.0/

  • I don't want the language bar switches automatically depending on the site until I change it manually.

    I am using firefox 4.0 in mac. Whenever I go to the korean site, the language bar switches automatically to korean from english, but if I am back to english based site, the language still keep korean. I don't want the language bar switches automatically depending on the site until I change it manually. It's very annoying. Thank you.

    I don't know why it says that I use firefox 4... When I check in my About window it says 18.
    I do ignore the message about the plugins. But I've started to get a little bit annoyed that I have to move up and press the little x every time I navigate to a site that needs something like flash. It eats up the size of about two text rows... it feels so unnecessary that it's there. If I want flash I will install it... The browser doesn't have to inform me about it every time.
    I really hoped for a better answer. Hopefully the firefox crew will add an option to not show that kind of messages in the future.

  • Retain value of dynamic formula

    Here is my question...
    I have a check box in column A, in column B I have the following formula: =IF(A1=FALSE,"0",TODAY()). So basically, when I check the box I get today's date, but it is dynamic and the day changes unless I remove the formula and input the actual date.
    What I would like is for the date to remain static. In other words, if I check the box on Dec 29, 2010, I want that date to remain indefinitely instead of changing each day. Is there anyway to do this?
    Thanks for any help.
    Clay

    clayphillips wrote:
    I have a check box in column A, in column B I have the following formula: =IF(A1=FALSE,"0",TODAY()). So basically, when I check the box I get today's date, but it is dynamic and the day changes unless I remove the formula and input the actual date.
    What I would like is for the date to remain static. In other words, if I check the box on Dec 29, 2010, I want that date to remain indefinitely instead of changing each day. Is there anyway to do this?
    Hi Clay,
    Here are two routes:
    1
    Delete the checkbox.
    Insert the date using Insert (menu) > Date & Time
    (or use the keypress combination shift-option-command-D).
    This inserts a fixed Date and Time value with the current Date and the time set to 00:00:00.
    Only the Date is displayed.
    2
    Insert the date using the checkbox (as you've been doing), then select the cell containing the date.
    Copy.
    Go Edit > Paste Values.
    This replaces the formula in the cell with the value (a Date and Time value as above) calculated by the formula.
    In either case the result is a fixed value that won't change until you actually change it.
    Regards,
    Barry

  • Dynamic Formula Creation

    Hi,
    I want to derive a formula based on the below table.
    LINE_NO
    OPERATOR
    VARIABLE
    1
    A
    2
    +
    B
    3
    C
    4
    D
    5
    6
    +
    E
    7
    8
    F
    9
    G
    10
    The formula will always concatenate the operator with the variable for each step and it will formulate a complete formula at the end by concatenating the operator and variable columns in each step.
    so if i formulate it , the formula would be A+B(C/D)+E*(F/G)
    I want the formula to be generated dynamically at the run time.
    Could any body please help me in how to formulate it?
    Any immediate help is highly appreciated.

    Here we go... not difficult to put it in PL/SQL...
    SQL> select * from fm;
       LINE_NO O V
             1   A
             2 + B
             3 *
             4 ( C
             5 / D
             6 )
             7 + E
             8 *
             9 ( F
            10 / G
            11 )
    11 rows selected.
    SQL> set serverout on
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    a number := 3;
      3    b number := 4;
      4    c number := 6;
      5    d number := 2;
      6    e number := 3;
      7    f number := 6;
      8    g number := 2;
      9    formula varchar2(100);
    10    result  number;
    11  begin
    12   select x.formula
    13         ,to_number(y.column_value) as result
    14   into formula, result
    15   from (
    16         select replace(sys_connect_by_path(replace(operator,'/',' div ')||
    17                                            decode(variable,'A',a,'B',b,'C',c,'D',d,'E',e,'F',f,'G',g)
    18                                           ,'~'),'~') as formula
    19         from   fm
    20         where connect_by_isleaf = 1
    21         connect by line_no = prior line_no + 1
    22         start with line_no = 1
    23        ) x
    24       ,xmltable(x.formula) y;
    25    --
    26    dbms_output.put_line('Formula: '||formula);
    27    dbms_output.put_line('Result : '||result);
    28* end;
    SQL> /
    Formula: 3+4*(6 div 2)+3*(6 div 2)
    Result : 24
    PL/SQL procedure successfully completed.

  • Build dynamic query depending upon selection of table and columns

    Hi ,
    I want your views on following requirement :
    we r doing generic export to excel functionality .
    1.User will select multiple tables and according to tables ,columns on that table will select
    2.There can be multiple table
    3.depending upon column and table selection , we have to build dynamic query and execute .
    Please let me know is it possible .If yes then please tell me how to do above requirement.
    Thanks in advance

    Hi,
    Identifiers cannot be used as bind variables, query are parsed
    before evaluate bind variables. Identifiers like table name.
    For excel you can use some like this:
    SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF
    SPOOL test_xls.xls
    SELECT colum1||chr(9)||columN FROM tableName;
    or CSV:
    SELECT colum1|| ',' ||columN FROM tableName;
    SPOOL OFF
    SET MARKUP HTML OFF ENTMAP OFF SPOOL OFF PREFORMAT ON
    For construct the query i suggest to read "Dynamic SQL Statements":
    http://www.java2s.com/Tutorial/Oracle/0440__PL-SQL-Statements/0300__Dynamic-SQL.htm
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/dynamic.htm
    http://docs.oracle.com/cd/B10500_01/appdev.920/a96590/adg09dyn.htm
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:227413938857
    --sgc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Create a dynamic formula in Financial Reporting Studio

    Hello,
    this is my issue: i'd like to create a formula that reference dynamicly to a cell, so if i add a new row (and the first cell changes) i don't have to change the formula .
    Ex.
    formula: =cell[28,A] * 100
    if i add a row the cell[28,A] become [29,A] and the formula changes his value and i don't want it!
    i hope my request is quite clear.
    thanks for helping
    Andrea

    Hi
    Good question? I think, there is a solution.
    You can use the concept of multiple grid here.
    Please keep the referred grid at one place and use another grid where you want the formulas.
    Please mail me for further info: [email protected]

Maybe you are looking for

  • Windows 8 will not connect to Windows server 2011

    I have two Windows 8 Pro (64bit) computers that I am trying to connect to my Windows 2011 Server and I receive the following error message on both when the connection software starts:  "Cannot connect the computer to the server because ether another

  • OS 10 in classic mode

    I am running OS 10.4.8 and trying to use it in classic mode (kid games). When it was installed I did not upgrade, but simply loaded a new version of Tiger. I want to buy/download the software I need to run in classic mode for these games. Can anybody

  • SC State in Transport Studio!

    Hi people/collegues, I am trying to use NWDI. step1. A track is configured. -> OK step2. Create a SC and adding dependencies (Production State: developed or planned). -> OK step3. Adding an SC to the track -> OK Going to the Transport Studio and afte

  • Doubt in Oracle Trade Management

    What is the difference between REQUESTED_VALUE and REQUESTED_AMOUNT in the table ozf_request_lines_all. These two fields are same for few records while different for few others Also what is the relationship between the above mentioned fields and APPR

  • DSO for 0FIAR_C30

    Hi Guru's I want to implement EHP3 reporting: 1)Does is working well if anybody has implemented same. 2) what is solution for  DSO , between 0FIAR_C30 and 0FI_AR_30 and others. Efforts would be definatly appreciated. thanks Micky