Reference to a table in formula

Before updating to the new numbers, I was able to reference to an entire table in different formulas. So I could add new data to a table and the formula still worked. See example below:
In the new numbers though, I am not able to select a table without also selecting rows or coloums:
So the question is:
Are there a way to make a raference to an entire table in a formula in the new numbers?
Additional info
I use the function when working with statistics, when I want to be able to add more observations to my data.

The ability to reference an entire table was removed in Numbers 3. 
=SUM(Table 1::B:C) would be the equivalent function in your case.
=SUM(Table 1::2:7) would also work
The first formula will include newly added rows but not new columns added to the right.
The second formula will include new columns but not new rows added to the bottom.

Similar Messages

  • GetPivotData with cell reference in a Table

    I was told that this might be a better place to post this question than Microsoft Answers for Office.
    I have a Table in which I need to use a GetPivotData function.  I need to use a cell reference in that GetPivotData function.  I have done this before with no problem in a normal cell range, but it seems like the syntax when using a Table screws
    things up.  Can anyone help me out here?
    The GetPivotTable function would normally look like this if not in a Table.
    =GETPIVOTDATA("[Measures].[Total Blocked Dollars]",'Sheet2'!$A$4,"[Dim Prod Ctrl No].[By Prod Ctrl No]","[Dim Prod Ctrl No].[By Prod Ctrl No].&[18418]")
    That formula sits in a column called "Block" in my Table.  The 18418 sits in a column called "ID" in my table.  So what I have tried is:
    =GETPIVOTDATA("[Measures].[Total Blocked Dollars]",'--Report Blocks--'!$A$4,"[Dim Prod Ctrl No].[By Prod Ctrl No]",concatenate("[Dim Prod Ctrl No].[By Prod Ctrl No].&[",[@[ID]],"]"))
    I have tried a few combinations like this but I can't seem to use a cell reference from a table (which requires the [@[field]] syntax) to work with the GetPivotData.
    Any ideas?
    Thanks!

    That's not the issue.  The GETPIVOTDATA function is actually IN a table.  The arguments for the GETPIVOTDATA function need to reference a cell/column in the table, and it's only PART of the argument that needs to be replaced.  In the example
    below the 18418 needs to be replaced with the data in the same row of the table in a column named ID.
    =GETPIVOTDATA("[Measures].[Total Blocked Dollars]",'Sheet2'!$A$4,"[Dim Prod Ctrl No].[By Prod Ctrl No]","[Dim Prod Ctrl No].[By Prod Ctrl No].&[18418]")
    Does that clarify any?
    Thanks for the response!

  • Reference Cells in table 2 by value in table 1

    I'm looking for a shortcut to a cell referencing problem I can't seem to solve elegantly. I want to use a value found in a cell to reference another cell in a Formula... I've used VLOOKUP in the past but it just seems like it's overkill. I think I'm just formatting things incorrectly if you look at my examples below...
    Let's say you have 2 tables with unique names (TableA and TableB). TableA consists of 2 columns. Column A is a sequential list of numbers from 1 to say 10. Column B's Header is 'North' and it is also 10 rows but with strings in each cell.
    Moving to TableB I have numbers in column A that are not sequential.
    What I want is a formula for Column B (of TableB) that will bring in the string from TableA that is in the second column and matches the Row with the same number as found in the column A of the current Row.
    For example if TableB's cell A4 held the number '8' (without quotes) then I want to find the value in cell North '8' of TableA. So this I can type directly =TableA :: North '8'
    but i really want a Formula that I can copy and paste into hundreds of cells. I'd think it'd be something like =TableA :: North 'TableB::A4' or perhaps =TableA :: North (VALUE(TableB::A4)) but these don't work! Is there a syntax trick that I haven't uncovered?
    Thanks for any help!

    Demetrios wrote:
    =INDIRECT(ADDRESS(A+1, 3, , , "TableA"))
    Of course, if A+1 is higher than the number of rows available in "TableA" the formula will return an error.
    It seems that it would be useful to look at the description of the function ADRESSE()
    +ADDRESS(row, column, [type], [style], [table])+
    +row: The row number of the address.+
    +column: The column number of the address.+
    +type: Optional; a number specifying whether the row and column numbers are relative or absolute:+
    +1 or missing treats row and column as absolute references.+
    +2 treats the row number as an absolute reference and the column number as a relative reference.+
    +3 treats the row number as a relative reference and the column number as an absolute reference.+
    +4 treats both row and column numbers as relative references.+
    +style: Optional; the address style:+
    +TRUE, 1, or omitted formats the address using the A1 style, in which the letter specifies the column and the number specifies the row.+
    +FALSE formats the address using the R1C1 style, which isn’t supported and returns an error.+
    +table: Optional; the name of the table. If the table is on another sheet, you must also include the name of the sheet.+
    the first three parameters MUST be numbers so it's normal that you are not allowed to use "greek alphabet".
    We may use:
    =INDIRECT(ADDRESS(A+1,COLUMN(TableA :: greek alphabet),,,"TableA"))
    as I did in this modified version.
    The +1 added for the first parameter was required because I added a header row in TableA.
    Yvan KOENIG (from FRANCE mercredi 12 mars 2008 21:02:49)

  • Reference field and table for AUFK for F4 help in alv.

    Hi All,
       I need to put F4 help on ALV for order no (AUFK) what is the reference field and table for that?
      i tried giving field as aufk and table as ccss but its not working.
       ls_fcat-ref_field = 'AUFNR'.
        ls_fcat-ref_table = 'CCSS'.
    Thanks & Regards,
    Ruchi Tiwari

    Hi,
    Try this.
    Set the f4 help for the field in the fieldcatalog
      ls_fcat-f4availabl = 'X'.
    1. Create a event of ONF4 for the alv grid.
    2. Set the event handler.
    3. Append the field for the F4 help in the internal table and call the below method
        CALL METHOD g_mprn->register_f4_for_fields
        EXPORTING
          it_f4 = i_f4.
    4. create a class definition and implementation
        refer sample pgms (BCALV_F4, BCALV_GRID_EDIT_DELTA and BCALV_GRID_EDIT)
    Hope this may be helpful.
    Regards,
    Sharin.

  • Create data reference to a table that is known at runtime

    Hi,
    I am trying to create a data reference to a table that is known only at runtime. In system 4.6C, I am not able to insert this coding
    data: lr_data type ref to data.
    CREATE DATA lr_data type table of (structure_name).
    In hihger releases, I am able to do so.
    Could you please tell me how to solve this problem in 4.6C?
    Best regards,
    Fabian

    Hi fabian,
    If i understood,
    u want to create a dynamic internal table.
    1.
      For this purpose,
      in my program,
      there is an INDEPENDENT FORM
      whose inputs are
      TABLE NAME / STRUCTURE NAME
      and from those, it consructs dynamic table.
    2. Here is the program.
    the dynamic table name will be
    <DYNTABLE>.
    3. U can use this program (FORM in this program)
    to generate any kind of internal table
    by specifying TABLE NAME .
    4.
    REPORT abc.
    COMPULSORY
    FIELD-SYMBOLS: <dyntable> TYPE ANY TABLE.
    FIELD-SYMBOLS: <dynline> TYPE ANY.
    DATA: lt TYPE lvc_t_fcat.
    DATA: ls TYPE lvc_s_fcat.
    FIELD-SYMBOLS: <fld> TYPE ANY.
    DATA : fldname(50) TYPE c.
    parameters : iname LIKE dd02l-tabname.
    START-OF-SELECTION.
    PERFORM
    PERFORM mydyntable USING lt.
    BREAK-POINT.
    INDEPENDENT FORM
    FORM mydyntable USING ptabname.
    Create Dyn Table From FC
    FIELD-SYMBOLS: <fs_data> TYPE REF TO data.
    FIELD-SYMBOLS: <fs_1>.
    FIELD-SYMBOLS: <fs_2> TYPE ANY TABLE.
    DATA: lt_data TYPE REF TO data.
    data : lt TYPE lvc_t_fcat .
    DATA : ddfields LIKE ddfield OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'DD_NAMETAB_TO_DDFIELDS'
    EXPORTING
    tabname = iname
    TABLES
    ddfields = ddfields.
    CONSTRUCT FIELD LIST
    LOOP AT ddfields.
    ls-fieldname = ddfields-fieldname.
    APPEND ls TO lt.
    ENDLOOP.
    ASSIGN lt_data TO <fs_data>.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = lt
    IMPORTING
    ep_table = <fs_data>
    EXCEPTIONS
    generate_subpool_dir_full = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    ENDIF.
    Assign Dyn Table To Field Sumbol
    ASSIGN <fs_data>->* TO <fs_1>.
    ASSIGN <fs_1> TO <fs_2>.
    ASSIGN <fs_1> TO <dyntable>.
    ENDFORM. "MYDYNTABLE
    regards,
    amit m.

  • Using Table.Join formula takes extremly long time to get results.(Why Query Folding doesn't work?)

    Hi,
    I built a query with 4 tables inside (load from Oracle DB and two of them are quite big, more than millions of rows). After filtering, I tried to build relationships between tables using Table.Join formula. However, the process took extremly long time to
    bring out results (I ended the process after 15 mins' processing). There's a status bar kept updating while the query was processing, which is showed as  . I suppose
    this is because the query folding didn't working, so PQ had to load all the data to local memory first then do the opertion, instead of doing all the work on the source system side. Am I right? If yes, is there any ways to solve this issue?
    Thanks.
    Regards,
    Qilong 

    Hi Curt,
    Here's the query that I'm refering,
    let
        Source = Oracle.Database("reporting"),
        AOLOT_HISTS = Source{[Schema="GEN",Item="MVIEW$_AOLOT_HISTS"]}[Data],
        WORK_WEEK = Source{[Schema="GEN",Item="WORK_WEEK"]}[Data],
        DEVICES = Source{[Schema="GEN",Item="MVIEW$_DEVICES"]}[Data],
        AO_LOTS = Source{[Schema="GEN",Item="MVIEW$_AO_LOTS"]}[Data],
        Filter_WorkWeek = Table.SelectRows(WORK_WEEK, each ([WRWK_YEAR] = 2015) and (([WORK_WEEK] = 1) or ([WORK_WEEK] = 2) or ([WORK_WEEK] = 3))), 
        Filter_AlotHists = Table.SelectRows(AOLOT_HISTS, each ([STEP_NAME] = "BAKE" or [STEP_NAME] = "COLD TEST-IFLEX" or [STEP_NAME] = "COLD TEST-MFLEX") and ([OUT_QUANTITY] <> 0)),
        #"Added Custom" = Table.AddColumn(Filter_AlotHists, "Custom", each Table.SelectRows(Filter_WorkWeek, (table2Row) => [PROCESS_END_TIME] >= table2Row[WRWK_START_DATE] and [PROCESS_END_TIME] <= table2Row[WRWK_END_DATE])),
        #"Expand Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"WRWK_YEAR", "WORK_WEEK", "WRWK_START_DATE", "WRWK_END_DATE"}, {"WRWK_YEAR", "WORK_WEEK",
    "WRWK_START_DATE", "WRWK_END_DATE"}),
        Filter_AolotHists_byWeek = Table.SelectRows(#"Expand Custom", each ([WORK_WEEK] <> null)),
        SelectColumns_AolotHists = Table.SelectColumns(Filter_AolotHists_byWeek,{"ALOT_NUMBER", "STEP_NAME", "PROCESS_START_TIME", "PROCESS_END_TIME", "START_QUANTITY", "OUT_QUANTITY", "REJECT_QUANTITY",
    "WRWK_FISCAL_YEAR", "WRWK_WORK_WEEK_NO"}),
        Filter_Devices= Table.SelectRows(DEVICES, each ([DEPARTMENT] = "TEST1")),
        SelectColumns_Devices = Table.SelectColumns(Filter_Devices,{"DEVC_NUMBER", "PCKG_CODE"}),
        Filter_AoLots = Table.SelectRows(AO_LOTS, each Text.Contains([DEVC_NUMBER], "MC09XS3400AFK") or Text.Contains([DEVC_NUMBER], "MC09XS3400AFKR2") or Text.Contains([DEVC_NUMBER], "MC10XS3412CHFK") or Text.Contains([DEVC_NUMBER],
    "MC10XS3412CHFKR2")),
        SelectColumns_AoLots = Table.SelectColumns(Filter_AoLots,{"ALOT_NUMBER", "DEVC_NUMBER", "TRACECODE", "WAFERLOTNUMBER"}),
        TableJoin = Table.Join(SelectColumns_AolotHists, "ALOT_NUMBER", Table.PrefixColumns(SelectColumns_AoLots, "AoLots"), "AoLots.ALOT_NUMBER"),
        TableJoin1 = Table.Join(TableJoin, "AoLots.DEVC_NUMBER", Table.PrefixColumns(SelectColumns_Devices, "Devices"), "Devices.DEVC_NUMBER")
    in
        TableJoin1
    Could you please give me some hints why it needs so long to process?
    Thanks.

  • Reference a Derived table in another Derived Table

    Is it possible to reference a derived table from another derived table? I am using Business Object XI 3.0.

    This is not possible as the Designer wants physical tables...
    What you could do is create the second derived table as follows:
    SELECT     table1.col1,
         table1.col2,
         table2.col1,
         table2.col2
    FROM     table1,
         (SELECT col1,
              col2
         FROM     atable) table2
    Regards
    Jacques

  • Can a subquery hosted within a table reference that hosting table?

    I have a large table that tracks Orders and Deliveries ("OrderAssign"). The OrderID column has a dropdown with a query that references some other tables that cover order details, like when each Order is due.
    I'd like the dropdown query to only display order details for Orders that haven't been filled ("OrderAssign.Filled = 0"). The problem, I think, is that this would mean the query would reference the table that hosts it. Is this possible? I tried
    to set up a test case, and got a generic syntax error I've seen many times before when the syntax is correct, but I'm using a SQL structure that Access doesn't like. 
    This table is linked to SQL, so I could also write a SQL view or function if that makes a difference.
    I'm using Access 2010. Thanks!
    EDIT: Huh, so I figured out a way, I think. I created a SQL view that filtered the records the way I wanted; then used the Linked Table Manager to create a linked view; then used that linked view in my dropdown subquery.
    So I guess my follow up question to this is: is there any reason I SHOULDN'T do this? Will there be any issues with existing records in the table whose values will no longer show up in the constraining dropdown subquery?
    EDIT 2: And I think I found the deal breaker. The field doesn't display the first column with the "real" info, the ID#. It displays the second. Once you add a query that doesn't display every row in the table, that query no longer has results to
    display for the filtered records. So some of the records display the "real" info, which the users don't want to see, and the open records show the second field. Messy.
    hydrogonium

    I might not be using the right terminology. I have a lot of experience with SQL Server, relatively little with Access. I am doing this for a client who is used to entering data directly into the table, and wants minimal changes. However, the dropdown literally
    has thousands of entries, which could be pruned by ~80% if filled orders are filtered out.
    The table has "dropdown subqueries" (probably not the right term), which were created like so:
    - Go to the Design tab.
    - Click on the field you want to modify.
    - Go to the lookup tab.
    - Change the Display Control to 'Combo Box'
    - Change the Row Source to a query, in my case, 'SELECT * FROM LinkedSQLView'
    - Format the list as you want it displayed; in my case, the actual ID# is hidden in the first column, and the other ten columns are displayed.
    The fields in question are:
    - OrderRequestID (Number on Access / Int on SQL Server) - has a dropdown.
    - OrderFillID (Number on Access / Int on SQL Server) - has a dropdown.
    - OrderFilled (Yes/No on Access / Bit on SQL Server).
    Purpose / Background: This table is basically a clearinghouse for entities making orders and other entities filling them. My client sits in the middle and matches everything up. It can get very complicated, because different products qualify for different
    orders, and the amount supplied can be smaller or greater than an individual order.
    hydrogonium

  • The reference to the table, view or sequence is not allowed in this context

    Hi,
    I'm triying to execute the SP that I describe below and the OS give me an error:
    CREATE OR REPLACE PROCEDURE DWARE.P_CSCV_AGR_MONTH_REVENUE
        TBL_NAME VARCHAR2,
        START_DATE DATE,
        RESULT_ OUT NUMBER
      ) AS
      BEGIN
      DECLARE
        v_tbl_name VARCHAR2(30);
        v_start_date DATE;
        v_result NUMBER := 0;
        v_select_aux VARCHAR2(32767) := ' ';
        v_temp_table VARCHAR2(30);
        v_exists NUMBER;
      BEGIN
        v_tbl_name := TBL_NAME;
        v_start_date := START_DATE;
        v_temp_table := 'temp_' || v_tbl_name;
        SELECT count(*) INTO v_exists FROM tab WHERE lower(tname) = lower(v_temp_table);
        IF (v_exists = 1) THEN
          v_select_aux := '
            DROP TABLE ' || v_temp_table || ' CASCADE CONSTRAINTS PURGE
          EXECUTE IMMEDIATE (v_select_aux);
          COMMIT;
        END IF;
        v_select_aux := 'CREATE TABLE ' || v_temp_table || ' AS
                                  SELECT ch.date_ month_revenue,
                                       s.date_sub month_sub,
                                       s.codpromoter,
                                       u.OPERATOR,
                                       SUM (ch.total) AS TOTAL_OK
                                       FROM cscv_sub_charges_' || to_char(v_start_date, 'YYYY_MM')|| ' ch
                                       INNER JOIN cscv_subs s
                                       ON ch.id_sub = s.ID
                                       INNER JOIN cscv_users u
                                       ON s.id_user    = u.ID
                                WHERE ch.STATUS = 0
                                GROUP BY ch.date_, s.date_sub, s.codpromoter, u.OPERATOR';
        EXECUTE IMMEDIATE (v_select_aux);
        COMMIT; 
         v_select_aux := '
    INSERT INTO ' || v_tbl_name || ' (
             month_revenue,
             month_sub,
             codpromoter,
             operator,
             TOTAL_0,
             TOTAL_1,
             TOTAL_2,
             TOTAL_3,
             TOTAL_4,
             TOTAL_5,
             TOTAL_6,
             TOTAL_7,
             TOTAL_8,
             TOTAL_9,
             TOTAL_10,
             TOTAL_11
            SELECT
             month_revenue,
             month_sub,
             codpromoter,
             operator,
             TOTAL_0,
             TOTAL_1,
             TOTAL_2,
             TOTAL_3,
             TOTAL_4,
             TOTAL_5,
             TOTAL_6,
             TOTAL_7,
             TOTAL_8,
             TOTAL_9,
             TOTAL_10,
             TOTAL_11
            FROM
               SELECT
                  month_revenue,
                  month_sub,
                  codpromoter,
                  operator,
                  sum(total_ok) total_0,
                  0 total_1,
                  0 total_2,
                  0 total_3,
                  0 total_4,
                  0 total_5,
                  0 total_6,
                  0 total_7,
                  0 total_8,
                  0 total_9,
                  0 total_10,
                  0 total_11
                 FROM '|| v_temp_table ||'
              WHERE to_char(month_sub,''mm/yyyy'') = to_char(sysdate,''mm/yyyy'')
              GROUP BY month_revenue,month_sub,codpromoter, operator
              UNION ALL
              SELECT
                  month_revenue,
                  month_sub,
                  codpromoter,
                  operator,
                  0,
                  sum(total_ok),
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0
                 FROM '|| v_temp_table ||'
              WHERE to_char(month_sub,''mm/yyyy'') = to_char((to_date(sysdate,''dd/mm/yy'') - INTERVAL ''1'' MONTH),''mm/yyyy'')
              GROUP BY month_revenue,month_sub,codpromoter, operator
            GROUP BY month_revenue,
             month_sub,
             codpromoter,
             operator
        EXECUTE IMMEDIATE (v_select_aux);
        v_result := v_result + SQL%ROWCOUNT;
        COMMIT;
        v_select_aux := '
          DROP TABLE ' || v_temp_table || ' CASCADE CONSTRAINTS PURGE
        EXECUTE IMMEDIATE (v_select_aux);
        COMMIT;
        RESULT_ := v_result;
      END;
      END P_CSCV_AGR_MONTH_REVENUE;
    BEGIN
    DWARE.P_CSCV_AGR_MONTH_REVENUE(CSCV_AGR_MONTH_REVENUE,'01/01/2010');
    END;
    /and the output is:
    Error at line 1
    ORA-06550: líne 2, column 32:
    PLS-00357: The reference to the table, view or sequence 'CSCV_AGR_MONTH_REVENUE'  is not allowed in this context
    ORA-06550: líne 2, column 1:
    PL/SQL: Statement ignoredwhat could I do to resove the problem??
    Thanks in advance...

    Hi,
    Your procedure's signature is
    CREATE OR REPLACE PROCEDURE DWARE.P_CSCV_AGR_MONTH_REVENUE
    TBL_NAME VARCHAR2,
    START_DATE DATE,
    RESULT_ OUT NUMBER
    ) i.e. it is expecting two input parameters, TBL_NAME in VARCHAR2 format and the other START_DATE in DATE format. Also you need a variable with data type as NUMBER to hold the value of OUT parameter RESULT_
    Now look at the way you are calling this procedure
    BEGIN
    DWARE.P_CSCV_AGR_MONTH_REVENUE(CSCV_AGR_MONTH_REVENUE,'01/01/2010');
    END;
    /first parameter has to be a VARCHAR2, so enclose CSCV_AGR_MONTH_REVENUE into single quotes.
    second parameter should be a date, so use to_date() function.
    Lastly declare a variable with data type as Number for holding value of out parameter RESULT_
    Something like this :
    declare
    t_num number;
    begin
    a('CSCV_AGR_MONTH_REVENUE',to_date('01/01/2010','MM/DD/YYYY'),t_num);
    dbms_output.put_line(t_num);
    end;Vivek L

  • How to export a reference to a table line from a method?

    Hello,
    I have a class which has a hashed table as an attribute. I want to retrieve a line from the table using the key and return a reference to the table line. I want changes to the return value of the method to be directly reflected in the table, as if using a local field symbol. I have tried to approaches, neither of which works.
    First, I returned a reference to the local field symbol. This dumps, because after returning from the method call, the target of this reference no longer resides on the stack.
    Second, I have tried using an export parameter marked as "pass by reference", i. e. without VALUE(). Strangely, this still seems to give me only a copy of the data.
    What is the correct way to proceed?
    Illustrative pseudo-code follows.
    Thanks, Sebastian
    *==============================================================
    *Possibility 1: (using references)
    DATA mt_key_map TYPE zt_entity. " member variable (hash table of zs_entity)
    METHODS get
        IMPORTING
          !is_key TYPE zs_key
        EXPORTING
          !er_vt TYPE REF TO zs_entity.
    METHOD get.
      FIELD-SYMBOLS: <fs_vt> TYPE zs_entity. 
      READ TABLE mt_key_value WITH KEY key = is_key ASSIGNING <fs_vt>.
      GET REFERENCE OF <fs_vt> INTO er_vt.
    ENDMETHOD.     
    " Client Code:
      FIELD-SYMBOLS: <fs_vt> TYPE zs_entity. 
      CALL METHOD get
        EXPORTING
          is_key        = is_key
        IMPORTING
          er_vt         = lr_vt.
      ASSIGN lr_vt->* TO <fs_vt>.  " will dump, because the local field symbol
                                   " to which lr_vt points is no longer on the stack
      <fs_vt>-value = 'newdata'.       
    *==============================================================
    *Possibility 2:  (using a structure passed by reference)
    DATA mt_key_map TYPE zt_entity. " member variable (hash table of zs_entity)
    METHODS get
        IMPORTING
          !is_key TYPE zs_key
        EXPORTING
          !es_vt TYPE zs_entity.  
    METHOD get.
      FIELD-SYMBOLS: <fs_vt> TYPE zs_entity. 
      READ TABLE mt_key_map WITH KEY key = is_key ASSIGNING <fs_vt>.
      es_vt = <fs_vt>.
    ENDMETHOD.   
    " Client Code:
      DATA: ls_vt TYPE zs_entity.
      CALL METHOD get
        EXPORTING
          is_key        = is_key
        IMPORTING
          es_vt         = ls_vt.
      ls_vt-value = 'newdata'.   " will not change the contents of the
                                 " table mt_key_value       

    In the first approch, try to change the exporting parameter type REF TO DATA.
    Try like:
    CLASS lcl_test DEFINITION.
      PUBLIC SECTION.
        DATA: t_mara TYPE HASHED TABLE OF mara WITH UNIQUE KEY matnr.
        METHODS:
          constructor,
          get
            IMPORTING
              if_matnr TYPE matnr
            EXPORTING
              ea_mara  TYPE REF TO data.
    ENDCLASS.                    "lcl_test DEFINITION
    START-OF-SELECTION.
      DATA: lo_test TYPE REF TO lcl_test,
            lr_data TYPE REF TO data.
      FIELD-SYMBOLS: <fa_mara> TYPE ANY,
                     <f_field> TYPE ANY.
      CREATE OBJECT lo_test.
      lo_test->get(
        EXPORTING
          if_matnr = '000000000077000000'   " << Replace Your Material
        IMPORTING
          ea_mara  = lr_data ).
      ASSIGN lr_data->* TO <fa_mara>.
      ASSIGN COMPONENT 'ERSDA' OF STRUCTURE <fa_mara> TO <f_field>.
      <f_field> = space.
      WRITE: 'Done'.
    CLASS lcl_test IMPLEMENTATION.
      METHOD constructor.
        SELECT * INTO TABLE t_mara
               FROM mara
               UP TO 10 ROWS.
      ENDMETHOD.                    "constructor
      METHOD get.
        FIELD-SYMBOLS: <lfs_mara> LIKE LINE OF me->t_mara.
        READ TABLE me->t_mara ASSIGNING <lfs_mara> WITH KEY matnr = if_matnr.
        GET REFERENCE OF <lfs_mara> INTO ea_mara.
      ENDMETHOD.                    "get
    ENDCLASS.                    "lcl_test IMPLEMENTATION
    Regards,
    Naimesh Patel

  • References between source tables and mappings

    Hi,
    I'm looking for a table, view etc. in the repository which shows me references between source table and mappings?
    cheers,
    Bernhard

    Here's another one:
    http://www.nicholasgoodman.com/bt/blog/2005/04/01/owb-sources-and-targets-sql/
    select
    distinct 'TARGET',
    comp.map_name,
    comp.data_entity_name,
    comp.operator_type
    from
    all_iv_xform_map_components comp,
    all_iv_xform_map_parameters param
    where
    lower(operator_type)
    in ('table', 'view', 'dimension', 'cube')
    and param.map_component_id = comp.map_component_id
    and param.source_parameter_id is not null
    UNION
    select
    distinct 'SOURCE',
    t1.c1,
    t1.c2,
    t1.c3
    from
    (select
    comp.map_name c1,
    comp.data_entity_name c2,
    comp.operator_type c3,
    max(param.source_parameter_id) c4
    from
    all_iv_xform_map_components comp,
    all_iv_xform_map_parameters param
    where
    lower(operator_type) in
    ('table', 'view', 'dimension', 'cube')
    and param.map_component_id = comp.map_component_id
    group by
    comp.map_name, comp.data_entity_name, comp.operator_type) t1
    where t1.c4 is null
    order by 2,1

  • Definition of Reference Data in complex Fox Formulas

    Hello IP Experts / Gurus / Developers,
    As far as I know there is no real concept behind the determination of Reference Data in Integrated Planning, when you do run functions from a sequence and not directly on a Dataprovider (where you have the possiblity to define editable and not editable structure elements).
    The reference data is generated at runtime of the FOX Code. Using Complex FOX Code with a nested loop, the reference data in the planning buffer (seen in Planning Modeller) isnt really the data that it should be. Some read statements (in loops, but also outside the loops) are not recognized and obviously do not lead to the definition of Reference Data. This is not a specific problem of my function or architecture. It doesnt occur, when I reduce the complexity of the FOX Code to a few rows.
    The question that I have is: Is there any possibility to define reference data in a fox statement or before running it?
    Function modules, hidden statements etc. ?
    Maybe a trick with running a loop like the one below (doesnt work, it also leads to immense performance issues)
    FOREACH YEAR, CCODE IN SELECTION.
       VALUE = {0amount, YEAR, CCODE).
       EXIT.
    ENDFOR.
    Thanks in advance for sharing your experience.
    Michael

A: Definition of Reference Data in complex Fox Formulas

Hi Michael,
   I don't think I understand from your post what is the issue that you are trying to solve; but it would not be correct to say that there is 'no real concept' behind determination of reference data.
Reference data is the data a planning function needs to read, which is outside the selection of the filter under which the function is currently running. So for the same function, reference data can change when running under different filters. Reference data can only be read, not modified - I am sure that is already clear. And also, the selection corresponding to reference data is not locked by planning.
Whenever you put any selection (inside the curly braces - {}) on the right hand side of the equal sign (talking about Fox), and if this selection is not contained in the filter, this data will be read as reference data. Also, statement like FOREACH in REFDATA will read reference data. Regarding the amount of data that is read (and hence the performance impact), it depends on factors like master data (for eg, in the Foreach statement in your code, it must be slow becuase of the huge master data that CCODE might be having), and number of records in cube, that are being read. You cannot really "define" reference data using code - it will be determined at run-time.
Hope this helps.

Hi Michael,
   I don't think I understand from your post what is the issue that you are trying to solve; but it would not be correct to say that there is 'no real concept' behind determination of reference data.
Reference data is the data a planning function needs to read, which is outside the selection of the filter under which the function is currently running. So for the same function, reference data can change when running under different filters. Reference data can only be read, not modified - I am sure that is already clear. And also, the selection corresponding to reference data is not locked by planning.
Whenever you put any selection (inside the curly braces - {}) on the right hand side of the equal sign (talking about Fox), and if this selection is not contained in the filter, this data will be read as reference data. Also, statement like FOREACH in REFDATA will read reference data. Regarding the amount of data that is read (and hence the performance impact), it depends on factors like master data (for eg, in the Foreach statement in your code, it must be slow becuase of the huge master data that CCODE might be having), and number of records in cube, that are being read. You cannot really "define" reference data using code - it will be determined at run-time.
Hope this helps.

  • This entry already exists in following tables "tax formula master table'

    I am getting this error while adding a new tax Formula.
    Please suggest the possible solution.
    SAP B1 2007 B PL-10
    This entry already exists in following tables "tax formula master table' (OFML) (ODBC-2035) [Message134-183]
    Regards,
    Ranjith

    Hi
    First of all have u tried what i told ??
    For which tax going u r going to create???
    Check in another DB, whether same error is coming r not
    Giri
    Edited by: Giri dharan on Dec 30, 2009 5:47 PM

  • Help on finding a reference to a table

    Hi ,
    my oracle verion : oracle 10G
    if i fire a query something like :
    select * from user_source where text like '%CLASSIFICATION%'
    it will return me rows and help me narrow my search onto a mere 100 rows to find a reference for a table called 'WC_CLASSIFICATION_D' and tells me lets say which all packages are having a reference for this table. But the thing is its letting me know for a particular user , Now lets say if i have around 20 users in my database , with every single user writing a few packages that contains reference to the same table , How do i find that out.
    PS : I hope I am clear with my question , what i am having a feeling is that there would be a table tht could contain the user code for the entire database ..please help
    Regards
    Rahul

    Better yet, DBA_SOURCE (if you have access).
    USER_SOURCE contains source for all PL/SQL objects owned by the current user.
    ALL_SOURCE contains source for all PL/SQL objects for which the current user has at least some privileges. (Well, there is a privilege requriement for it to be seen here; it may be more subtle than my statement of 'at least some privileges'.)
    DBA_SOURCE contains source for all PL/SQL objects in the database.
    This naming/privilege convention is used for many of the SYS catalog views (USER_TABLES, USER_OBJECTS, etc.)
    Every user has access to the USER_ views and the ALL_ views, but different users may see different content. The DBA_ views are generally not public; you need a privilege such as SELECT ANY DICTIONARY to see them.
    By the way, USER_SOURCE does not have the source for views or materialized views. Use USER_VIEWS and USER_MVIEWS if you need those.

  • Generate CRC table with Formula Node

    I want to generate an CRC table by formula Node,but the table which generated is not correct,could someone with experience could help me?
    uInt8 j;
    uInt16 i;
    uInt16 crc, c;
    uInt16 crc_tabccitt[255];
    for (i=0; i<256; i++)
     crc = 0;
     c = ( i) << 8;
     for (j=0; j<8; j++)
        if ( (crc ^ c) & 0x8000 )
            crc = ( crc << 1 ) ^ 0x1021;
        else
            crc = crc << 1;
        c = c << 1;
    crc_tabccitt[i] = crc;

    How is it not correct?
    Post your VI with a description what is wrong and what it should be.

  • Maybe you are looking for

    • Using code to save a lot of time

      Hey all This is a what I am working on at the moment: https://www.dropbox.com/s/x86laqtic481wpc/homepage.zip This is an animation that has a object that slides over, then a text box comes up and waits for a while. The problem is that there will be si

    • Using Business Catalyst in Dreamweaver CS6

      When I click the login button in the Business Catalyst panel in Dreamweaver CS6, I get no response. So I cannot login to access my BC sites via Dreamweaver. Also, when I tried to import a Business Catalyst site via the Manage Sites... Tab in Dreamwea

    • Itunes crashing while synching apple tv

      I have removed and reinstalled apple tv a number of times to no avail. Keep getting an error message after opening itunes while apple tv tries to synch. Tried unplugging my router, unplugging my modem, resetting the apple tv but same thing keeps happ

    • Need RFCs to call to update Position attributes....

      Hi,    We have a custom ISR scenarios installed. We're trying to take these 3 changes 1) Update title of an Unoccupied  Position 2) Update cost center of an Unoccupied Postion 3) Make an Unoccupied Position Vacant We're trying to identify RFCs we can

    • PDF file dropping letters

      I have encountered a problem with some  PDF files dropping a letter thru the entire document. Some documents it is an "a" and other is an "o". In one case the document is complete in Preview than drops the letter ion printing. Any help[ would be appr