Formula in different Blocks

Hi, I have 2 blocks, but the result in one of the blocks I need it in the other one.
Is there a way to connect them without losing the result of one of the blocks in the other one?
Example.
I have a count formula in block A and I want in one cell of block B this count formula.The 2 blocks are in same section.
Thanks in advance.
Reynaldo

Hi Reynaldo,
You can-not use the result/summary of 1 block into another block. As, measures default context in the current block/section etc. i.e. it will display the values according to dimesion used with it.
You have to create a variable which will give the same result as of block 1 with the help of where clause and context operators (In, For All)
Regards,
Rohit

Similar Messages

  • Copy values from a filed to another in different blocks in same table

    Hi All,
    How to copy value from a filed to another field in different blocks in same form ?
    example if i change value in Field A of block 1 it should reflect in Field B block 2 and again if i change in Field B block 2 it should reflect in Field A of block 1.
    values will change twice or thrice then it will not change. It is happening like that.
    how to do this ?
    Regards

    Same table / different blocks
    I guess, both blocks will be marked for update, and when your user presses commit, the same table will be updated twice!
    Are you sure that this is what you want to do? Is the same record current in both blocks? If so, you better use 1 block (it can be spread over several canvases and windows) and synchronize the items with the "synchronize item" property.
    Anyway: If you can't apply the synchronize-property bcos the items are in different blocks, you can synchronize with 2 when-validate-item triggers.
    Wolfram

  • How to create a running total formula for different calendar years

    Hello everyone,
    I am looking for some help in creating a running total formula for different calendar years in Oracle. This is what I currently have organized in the crosstab report: vertically I have the cities from our database organized, then horizontially have the following information for each city:
    2006 /2007 /2008
    Amount /Amount Spent /Unspent Amount Amount Recieved/Amount Spent /Unspent Amount Amount Recieved/Amount Spent/Unspent Amount
    Recieved
    I am trying to create a formula that will specify each calendar year. For example, I'd like to have a formula in 2007 which would total the: 2007= {2006 unspent amount + the unspent amount in 2007} and same for 2008= {2007 unspent amount + the unspent amount in 2008}. I hope this is clear, I have simplified the report into a basic interpretation of what i've been trying to accomplish.
    Would anybody know if this is possible and how to approach this?
    Really appreciate it! Thanks.
    Alex

    Hi,
    you can try and define a running total as a calculation in the crosstab as:
    sum(Unspent Amount) over (partition by city order by year)
    i find the crosstab format comfusing sometime since the aggregation is auto applied.
    I would start with a flat table and then "duplicate is as a cross tab"
    for your running total you can sort the data by the city,year and get it to 3 lines for each city, for example:
    city year Unspent Amount all other amount...
    X 2007 10
    X 2008 20
    X 2009 30
    Y 2007 5
    Y 2008 15
    Y 2009 25
    then you can use a funtion to calculate the amount :
    sum(Unspent Amount) over (partition by city order by year)
    this is the sql i used just to check it:
    SELECT city,year,"Unspent Amount"
    ,SUM("Unspent Amount") over (PARTITION BY city ORDER BY YEAR)
    FROM (
    SELECT 'X' city, 2007 YEAR, 10 "Unspent Amount" FROM dual UNION ALL
    SELECT 'X', 2008 ,20 FROM dual UNION ALL
    SELECT 'X', 2009 , 30 FROM dual UNION ALL
    SELECT 'Y', 2007 , 5 FROM dual UNION ALL
    SELECT 'Y', 2008 , 15 FROM dual UNION ALL
    SELECT 'Y', 2009 , 25 FROM dual
    Tamir

  • Module-pool: how to create different blocks at same screen

    hi experts,
    can i create different blocks at same selection-screen in module-pool? if yes,how?and can i use 'loop at screen' in dat case?
    thanks.

    you can do that...
    you have create subscreen areas in the screen painter and call the selection screen on those areas..
    Just see the stpes..and follow the sample code..
    REPORT  ztest_mod.
    DATA: kunnr TYPE kunnr.
    "if you want to create blocks same like selection screen the
    "you have to create them as subscreen,
    "place them in subscreen area.
    * Custom Selection Screen a
    SELECTION-SCREEN BEGIN OF SCREEN 0200 AS SUBSCREEN.
    SELECT-OPTIONS: s_kunnr FOR  kunnr.
    SELECTION-SCREEN END OF SCREEN 0200.
    START-OF-SELECTION.
      "in this screen i have a button with function code 'SEARCH'
      " and a subscreen area with name sub
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS'.
    ENDMODULE.                    "status_0100 OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    MODULE user_command_0100 INPUT.
    "for reading the selection screen fields
      DATA:
          i_dyn_fields LIKE TABLE
                         OF dynpread
                       WITH HEADER LINE.
      MOVE:
        'S_KUNNR-LOW' TO i_dyn_fields-fieldname.
      APPEND i_dyn_fields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = sy-repid
          dynumb               = '0200'
        TABLES
          dynpfields           = i_dyn_fields
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          stepl_not_found      = 10
          OTHERS               = 11.
      IF sy-subrc eq 0.
       read table i_dyn_fields index 1.
        s_kunnr-low = i_dynp_fields-VALUE
        s_kunnr-sign = 'I'.
        s_kunnr-option = 'EQ'.
        append s_kunnr.
      ENDIF.
      DATA: it_kunnr TYPE TABLE OF kna1.
      CASE sy-ucomm.
        WHEN 'SEARCH'.
          SELECT * FROM kna1
          INTO TABLE it_kunnr
          WHERE kunnr IN s_kunnr.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                    "user_command_0100 INPUT
    Flow Logic
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      CALL SUBSCREEN sub INCLUDING sy-repid '0200'.
    PROCESS AFTER INPUT.
      MODULE user_command_0100.
    Regards
    Vijay Babu Dudla

  • Tablespace creation with different block size

    OS - rhel 4.3
    kernel - 2.6.9
    Oracle - 10.2
    Hardware - IBM X series 346.
    Defined block size for the db - 8kb.
    Question: Can I create a tablespace with 16k?
    regards,
    Lily

    You can create a tablespace with 16k blocks if, as Daljit suggests, you create a 16k block buffer cache.
    I would, however, ask why you would want to create such a tablespace? The ability to have tablespaces with different block sizes in a single database was created primarily to allow the use of transportable tablespaces in situations where different databases had different block sizes. If you are trying to create a 16k block size for a different reason, there are a couple of things to be aware of
    - While there are theories out there that tablespaces with different block sizes can have dramatic effects on performance, I've never seen any solid evidence that backs up this theory.
    - Using different block sizes in the same database can significantly increase the complexity of managing a database. You'll have multiple buffer caches that you'll have to size, for example, automatic SGA management doesn't work with non-standard block size buffer caches, etc.
    Justin

  • Database Tablespaces with different block sizes...

    Hi ,
    What are the pros and cons of setting different block sizes to tablespaces, and where may be this useful???
    Thanks,
    Simon

    http://asktom.oracle.com/pls/ask/f?p=4950:8:101384681997409236::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:44779427427730
    generally speaking tablespaces with different block sizes than the db standard are for transportable tablespaces only.
    however,
    Burleson will tell you to micromanage your memory allocations with multiple block sized tablespaces and various keep/recycle caches.
    http://www.dbazine.com/oracle/or-articles/burleson2
    I think its overkill and you can most likely get performance improvements from looking at other things such as the SQL your applications are running against the db. My rule of thumb is that 70% of your performance improvements are going to come from sql tuning. You can focus on the other 30% when the vast majority of your queries use 5 LIO per row per join. (Milsap's ratio not mine)

  • DEVELEPOR 2000 - Forms 5.0 Clearing a different block

    I have two blocks A & B in a form. Block A is a control block
    and Block B is a base table block. When the value in a TextItem
    in Block A is changed, I want to clear the Block B. I cannot use
    the Clear_Block function in the WHEN-VALIDATE-ITEM trigger for
    the TextItem because forms doesn't allow navigation to a
    different block in this trigger. Can anyone suggest a different
    method ??
    null

    Raghu Menon (guest) wrote:
    : I have two blocks A & B in a form. Block A is a control block
    : and Block B is a base table block. When the value in a
    TextItem
    : in Block A is changed, I want to clear the Block B. I cannot
    use
    : the Clear_Block function in the WHEN-VALIDATE-ITEM trigger for
    : the TextItem because forms doesn't allow navigation to a
    : different block in this trigger. Can anyone suggest a
    different
    : method ??
    How about this (in psuedo code)
    1) upon entering a field in block A do; store orginal field
    value in a variable, store block.field_id in variable
    2) when user moves to another field in block check...
    if field value != saved value in variable and block B has
    stuff in it then
    alert('value in block A changed, do you want block B
    cleared???)
    if yes then
    go_block('B');
    clear_block(no_validate);
    go_item(block.field_id) stored from 1 above
    else
    go to desired field;
    end if;
    end if;
    of course this is just a rough outline, also worry about nulls
    in IF compare, etc, etc, etc.
    This lets WHEN-VALIDATE-ITEM do its thing. This code could be
    stuck under other another type of trigger ie key tab or whatever.
    null

  • 3 different blocks in same report

    Hello,
        My client needs to display the output in 3 different blocks on the same report, is there some class/method to achieve it?
    Thanks for help in advance
      SDN powered

    Hi,
    Check this code.In this you will get two ALV in the same report.You can append one more in this.
    REPORT  Ztest_MULTIPLE_ALV                     .
    type-pools : slis.
    data : alvfc type slis_t_fieldcat_alv.
    data : alvly type slis_layout_alv.
    data : alvev type slis_t_event .
    DATA : BEGIN OF itab OCCURS 0.
    include structure t001.
    DATA: END OF itab.
    DATA : BEGIN OF ptab OCCURS 0.
    INCLUDE STRUCTURE t000.
    DATA: END OF ptab..
    start-of-selection.
    SELECT DATA
    SELECT * FROM t001 into table itab.
    select * from t000 into table ptab.
    INIT BLOCK ALV
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
    i_callback_program = sy-repid.
    ADD INTERNAL TABLE ITAB
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    I_PROGRAM_NAME = SY-REPID
    I_INTERNAL_TABNAME = 'ITAB'
    I_INCLNAME = SY-REPID
    CHANGING
    CT_FIELDCAT = ALVFC.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    is_layout = alvly
    it_fieldcat = alvfc
    i_tabname = 'ITAB'
    it_events = alvev
    TABLES
    t_outtab = ITAB
    EXCEPTIONS
    program_error = 1
    maximum_of_appends_reached = 2
    OTHERS = 3.
    ADD INTERNAL TABLE PTAB
    REFRESH ALVFC[].
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    I_PROGRAM_NAME = SY-REPID
    I_INTERNAL_TABNAME = 'PTAB'
    I_INCLNAME = SY-REPID
    CHANGING
    CT_FIELDCAT = ALVFC.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    is_layout = alvly
    it_fieldcat = alvfc
    i_tabname = 'PTAB'
    it_events = alvev
    TABLES
    t_outtab = PTAB
    EXCEPTIONS
    program_error = 1
    maximum_of_appends_reached = 2
    OTHERS = 3.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    is_layout = alvly
    it_fieldcat = alvfc
    i_tabname = 'PTAB'
    it_events = alvev
    TABLES
    t_outtab = PTAB
    EXCEPTIONS
    program_error = 1
    maximum_of_appends_reached = 2
    OTHERS = 3.
    DISPLAY
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.

  • Marketing Segmentation, Edit Column Formula in Criteria Block

    Hello!
    I want to edit Column Formula in Criteria Block after creating some filters in my segmet.
    For example, i can change "x>3" to "x + y > 3".
    But I have two problems:
    1) I can't select fiels in left panel when edit column formula - only typing. In Answers I can!
    2) I can't write more difficult expression, for example With case, ifnull e.t.c. - in this case OBIEE ignore functions.
    Thanks!

    Hi,
    did u included any case condition over there..kinly check the syntax and correct it.
    Thanks
    Deva

  • Copying formula using different sheet but same cells

    How can I copy this incredibly long formula into different cells but change the sheet that it's referencing without typing in the sheet name in every instance it occurs (at least 28 times right now).
    Is this something I'm going to have to use an outside editor (ie text edit, pages) to find & replace?

    I don't know which is the "incredibly long formula" but I know that Jerrold described the required scheme in the late 48 hours !
    In one fixed cell of your table (A1 is a good choice), store the name of the sheet to address.
    Then, in the formulas, use the function INDIRECT to compute the cell's reference grabbing the sheet name from the cell A1 (with an absolute reference : $A$1)
    This way, when you will paste the formula in an other table, it will grab the sheet name from the cell A1 of this new table.
    Yvan KOENIG (VALLAURIS, France) mardi 24 mai 2011 22:18:11
    Please :
    Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Computational Error when using if then formula in a block, when the formula

    Hi all,
    I am getting a computational error on one of my reports,
    where i have created a new variable. The variable is an "if and
    then" formula which uses the date variable. However if i leave the
    date variable in the report block then the new variable is fine and
    works. However due to the nature of the report we would like the
    report to give a summary over a date range. In normal circumstances
    i would be able to simply drag out the date variable from the report
    block and it would create a summary. Unfortunatley in this instance
    i get the dreaded "computational error". I know its due to the fact
    that business objects requires the date variable present. Is there
    any way around this...
    I've seen some manual work arounds i.e table
    properties and hide the date field, and then group header for each
    category with totals and then table properties and select Fold so
    that it shows the total (one for each product, rather one for each
    day and each product). Just wandering if there is perhaps a more
    efficient way around this. your help will be much appreciated.
    Nandeep

    I don't think it is possible to lock in the date and time using a formula. You could put NOW() in a cell, copy, and Edit Paste Formula Results where you want the result.
    Or if you are "time stamping" a lot, you may find this Automator Service (Dropbox download) helpful. It puts a "Today" function (actually it should be named "Now" because it includes both date and time) in your Services menu like this:
    Just doubleclick the .workflow package to install it. You may have to click "download anyway" in System Preferences > Privacy & Security.
    If you want you can assign the service a keyboard shortcut in System Preferences here:
    SG

  • Applying formulas to different cells.

    Hi,
    I have a table with several different values and I am using a formula that will allow me to mark up my prices in each cell by a certain percentage. So for example, in the cell that contains $126, I have this formula (D8 is where I can enter my markup percentage):
    =IF(D8>0,126*(1+D8),126)
    Is there a way I can apply this same formula to the rest of the cells which contain different prices without actually pasting this formula into each cell and changing the value each time?
    This is my first day using Numbers so I don't have any experience using formulas or any spreadsheet program.Would appreciate any help!
    Thanks.

    The fact that it's your first day using Numbers isn't an excuse to forget to read Numbers User Guide or iWork Formula and Functions User Guide.
    Your question is answered in page #81 of the late edition of the 1st resource in the chapter Autofilling Table Cells   
    Read also page #30 in the 2nd resource.
    I don't want to be rude, I'm just unable, at this time, to insert a screenshot.
    Yvan KOENIG (VALLAURIS, France) mercredi 27 juillet 2011 17:42:47
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How can I get the content of a text element to insert in a different block

    I have two blocks. The first one (block_control) is a non based block with a text element (EXERCICE). When I go to the second block (block_data) and I want to insert a new record, I need in my record the value of EXERCICE who is in the first block (block_control). How can I get this balue if I want to be able to do an execute_query too on the second block ? Because if I use pre-block or post-block or when-new-record-instance trigger to make the content of EXERCICE follow from block_control to block_data in a hidden field, I can't execute_query.
    Thank's

    First , when you want to insert a record in the second block , override the default commit_form processing and create a commit-form trigger which is called by a button to commit your form. The when-button-pressed trigger of this button should be : do_key('commit_form'); . And you create the key-commit trigger on the second block. Inside the key-commit trigger write this :
    :second_block.item_name := name_in('block_control_name.exercice');
    commit_form;
    In this way you get the exercice data into your record.
    Secondly, in the post-query trigger of the second block, set the exercice column of the second block to the exercice column of the block_control.
    And that's it.

  • Radio button in two different blocks in the selection screen

    Hi folks,
             In my selection screen i have two selection blocks. First block to create a new document no, second block to display the list of the created document numbers.User has to go any one of that..can i keep first radio button in the first selection block and the second radio button in the second block...I have already tried..but its not allowing..is this possible..if so please suggest me how...
               Thanks,
               Shyam.

    Hi,
    Hope the following logic will help u.
    selection-screen begin of block input with frame title text-000.
    parameters :desktop     radiobutton group rg_f user-command rg_f,
                       in_file type ibipparms-path modif id ps,
                menu     radiobutton group rg_f,
                       sys_file type ibipparms-path modif id as default  '/sapia/iface/in/comm/sapfin/' .
    selection-screen end of block input.
                                        AT SELECTION-SCREEN.                                       *
    at selection-screen.
      case sy-ucomm.
        when 'RG_F' or 'RG_B'.
          perform f_toggle_finputs.
        when 'ONLI'.
          if ( desktop = c_x and in_file is initial ) or ( menu = c_x and sys_file is initial ).
            message e100.
          endif.
      endcase.
    FORM    :  f_toggle_finputs
    loop at screen.
        if screen-group1 = 'PS'.
          if desktop = c_x.
            screen-input    = 1.
             sys_file = c_server_path.
          else.
            screen-input    = 0.
          endif.
        endif.
        if screen-group1 = 'AS'.
          if menu = c_x.
            screen-input    = 1.
            clear: in_file.
          else.
            screen-input    = 0.
          endif.
        endif.
        modify screen.
      endloop.
    endform. "f_toggle_finputs
    Thanks.

  • Use same selection formula in different subreports

    I have got a main report that will have its own selelction formlua, then im planning to have multiple subreports that will use part of the selection formula from the main report in addition to its own selection formula. So i want know if there is way where  if I make a change to the main selection formula it reflects in the subreports as well.
    For Example
    main report:
    {ContractsTable.Contract}="123456"
    subreport 1
    {ContractsTable.Contract}="123456" and
    {ContractsTable.Country}="United Kingdom"
    subreport 2
    {ContractsTable.Contract}="123456" and
    {ContractsTable.Region}="East"
    What im trying to figure out is that if change the parameter for the {ContractsTable.Contract}  from "123456"  to "789125" in the main report, i want the change to reflect in the subreports as well.i dont want to be going to each subreport and changing the parameter.
    I have tried to work out a solution using shared variables and parameters,but failed miserably.Has anyone git any ideas?

    Hi Thomas,
    You can the option "Change Sub report Link" and link the 2 subreports with the parameter the mainreport uses.
    For Example if Main Report Uses Parameter ?Contract
    Then link that with each Sub report Parameters ?Contract1 and ?Contract2
    So When you refresh the Main report it only asks for one parameter i.e ?Contract
    and all the Sub reports runs according to it.
    Thanks,

Maybe you are looking for

  • Function module ISR_GET_DATA_FROM_XML  throwing dump.

    Hi All, Function module ISR_GET_DATA_FROM_XML  throwing dump. The dump says, The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "ISR_GET_DATA_FROM_XML" "(FUNCTION)", nor was it propagated by a RAISING clause

  • I need help transferring music and apps from my iPod Touch, generation 1 or 2 onto my itunes library on my laptop

    I am trying to transfer my music and apps from my iPod Touch to my laptop computer's itunes library so that I can update the IOS.  I have tried "Transfer Purchases from iPod Touch under File/Devices and nothing seems to happen.  The itunes library on

  • Media player N97 not working

    I am struggling with N97 media player every time I try to play a video including the ones captured by the phone camera I receive the following message "Enable to play either sound or video clip, trying to play partially" then I only get the sound wit

  • SunOneAppServ with Oracle 10g vers. 10.1.0.3.0

    Hello, I'm using two different versions of SunOneAppServer, Sun Java System Application Server Enterprise Edition 8.1_02(build b19-p08) and Sun Java System Application Server 7 2004Q2UR2. These two instances of Application Servers work over two diffe

  • How to customize Flash Chart color scheme (Look 1 etc..)

    Hi, Is their any way I can customize the Flash Chart color schemes (Look 1, Look 2). I know there's a "Custom" option but I'd like to define what Look 1 is so that I don't need to use custom values for each chart. Thank you, Martin [http://apex-smb.b