Group by ODS table

Hi experts,
Some doubts, please advice.
I am trying to send aggregate value of one column in ODS table into an internal table. I am using the following code.
select carrid connid AVG( seatsocc ) as seatsocc
from /BIC/ODSTable
into corresponding fields of table itab
where fldate = sy-datum group by carrid connid
But either because there is no header line in ODS table, or because I did use right column names in the internal table itab, I got "0" in all rows. Could anyone please tell me which is the reason of my error?
I tried to skip "corresponding fields of table itab ", and using internal table, however, i got an syntax error.
I saw some ABAP book using working area. Is it the only solution? I am not familiar with working area and someone told me I should be very careful of working area. what's the deal with working area? Can I append working area to an internal table?
Any suggestion will be really appreciated.
Jenny

Hi,
If your Internal table itab has someother fields other than these 3 fields that you are updating then you need to specify ‘into corresponding fields of itab’. Whereas if your itab contains only these three fields then ‘into table itab’ will work.
Work Area is a data object that should be compatible with the line type of the Internal table. It is an interface to the entries in the Internal table.
When you write data to internal table, the data is first written to the work Area and then transferred to appropriate entries in the table.
When you read data from an internal table to work Area, the record is over written to the work Area and it is used in the program.
You can also access an internal table using field symbols. In this case you do not need to copy the data into a work area. You can assign a line of an internal table to a field symbol. Ideally, the field symbol will have the same type as the line type of the internal table. Once you have assigned the entry to the field symbol, working with the field symbol has exactly the same effect as accessing the corresponding line directly.
Regards,
Prema

Similar Messages

  • Maintaing Tax Groups in the Table CRMC_TAX_GROUP

    Hi All
    In order to download Materials from ECC to CRM2007 via Middleware, I need to maintain the Tax Groups in the Table CRMC_TAX_GROUP and then assignt the Tax Types to the ECC Tax Classifications.
    However, I am unable to add entries to the table CRMC_TAX_GROUP either through SE16 or SM30.
    I am only able to run the report in Data Browser (SE16) in display mode. When I try to maintian the table using sm30, I get the following Exit Message:
    Check maintenance object CRMC_TAX_GROUP or update
    function group CRM_PRSALESTAX_C
    I request your help and suggestions in this regard.
    Thanks in advance.
    Regards
    Chaitanya

    Hi,
      You can maintain that table using a maintainence view 'CRMV_TAX_GROUP' in sm30.
    Thanks
    Swagatika

  • Reg Usage of ODS Table in Transformation

    Hai All,
                I am new to SAP NetWeaver BI. Can i use the ODS Table in the transformation rules ?
    Is this the right approach  or not ? My requirement is i have  to poulate some infomration into new ODS depending on the data which is available in othere ods table.
    Regards
    Prashanth

    Hi Prashant,
    Please refer to the sources below to understand Transformations...
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm</a>
    Also refer to this white paper in SDN on Transformations
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19">https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19</a>
    To ensure good performance, use the Start or End Routine to execute such lookups on DSO tables.
    Regards,
    Shrikant

  • Query regarding the data type for fetcing records from multiple ODS tables

    hey guys;
    i have a query regarding the data type for fetcing records from multiple ODS tables.
    if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
    can any one help with some suggestion.

    Hi Mudit,
    One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
    AS is used to rename the column name when data is being selected from your DB.
    So, the query  Select ename as empname from emptable will return the data with column name as empname.
    Regards,
    Bhavesh

  • Difference between the Field Group  and Internal Table.

    Hi all,
    Can anybody tell me the difference between the Field group and Internal table and when they will used?
    Thanks,
    Sriram.

    Hi
    Internal Tables: They are used to store record type data in tabular form temporarily in ABAP programming. Or we can say, it stores multiple lines of records for temporary use in ABAP programming.
    A field group is a user-defined grouping of characteristics and basic key figures from the EC-EIS or EC-BP field catalog.
    Use
    The field catalog contains the fields that are used in the aspects. As the number of fields grows, the field catalog becomes very large and unclear. To simplify maintenance of the aspects, you can group fields in a field group. You can group the fields as you wish, for example, by subject area or responsibility area. A field may be included in several field groups.
    When maintaining the data structure of an aspect, you can select the field group that contains the relevant characteristics and basic key figures. This way you limit the number of fields offered.
    Regards
    Ashish

  • Material Group Difference MM03  (Table MARA) and Reservation (Table RESB)

    Why material group at T-code MM03 (MARA-MATKL) difference at Table RESB ?
            Table MARA-MATKL = 04
            Table RESB-MATKL = 02
    I checking  MM03 not change about material group. I don't know some T-code can change material group link to table RESB.

    Dear Mr.Jutamas,
    As per to my understanding,initially when the reservation was made for the
    particular material ,material group - 02 in Basic Data 1 view  would have been
    present or maintained in the material master.
    After that a change might have occured,i.e someone must have changed the
    material group from 02 to 04.
    So in MARA table the value is showing as 04 and in RESB its showing as 04.
    Once after creating reservation ,if such changes are made,as far as i know that
    will not get updated or reflected in RESB.
    Better confirm the same,in MM03 - Display mode of the material and after going
    into any one of the view,in the top menu check Environment - Display Changes -
    you may get one or a list of changes that were made,along with the user,date &
    time details.
    <b>If useful reward points</b>
    Regards
    Mangal

  • Subject area security validating users and groups from external table

    Hi all.
    I don't have practice to put question here, but there is one problem, that seems don't work correctly in OBIEE.
    I'm trying to put users in groups within external table and this works fine.
    I put security on the subject area level like this:
    SA1 -> GroupA allow, Everyone not allow
    SA2 -> GroupB allow, Everyone not allow
    External table:
    User----------Group
    A---------GroupA;GroupB
    B---------GroupB
    Users A, B and GroupA, GroupB exists in the RPD, but I didn't put users inside them, I want this from table.
    From the init block, external table I'm taking users and join them in the group. Same name users and groups are also in the presentation service.
    When i connect with user A i don't see any subject area, when go to My Account i see in Group Membership/GroupA and GroupB, so it's readed from the external table.
    Why in this case the subject area permission is not working?
    It works if I explicitly put users in groups, in the RPD.
    I have read this blog entry http://kpipartners.blogspot.com/2009/07/groups-webgroups-and-delivers.html and it is said that this works, but I'm interested how.
    What should we have in the presentation part, administration, Manage Privileges -> Access within Oracle BI Answers option for those two subject area?
    This doesn't work or something is missing:
    Re: Security on Subject Areas
    Regards
    Goran
    http://108obiee.blogspot.com

    What should we have in the presentation part, administration, Manage Privileges -> Access within Oracle BI Answers option for those two subject area?Yes, you should remove Everyone and add the relevant groups to each Subject Area. You don't need to set privileges in the RPD, in fact that's probably why it doesn't work for you. Leave your RPD Presentation Catalog as "Everyone" = Read as you will controlling access from the Presentation Services and it should work.

  • Group by internal table

    Hi ..
    How can  I group an internal table instead of a similar field. For example I want to move internal table columns by same belnr's .

    Hi Yusuf
    Am not sure if this is what you are looking for, but please try with offset.
    Eg:
    Considering an example whereby Int.Table IT_VBAK holds VBELN(Sales Document Numbers) & Int.Table IT_OBJNR holds the Status object numbers.
    Fields in both internal tables might not match to group but field OBJNR has sales document numbers as a part.
    In this case we can go as below:
    LOOP AT it_objnr.
         READ TABLE it_vbak WITH KEY vbeln = it_objnr-objnr(10). <--- First 10 chars of OBJNR is sales document number
    ENDLOOP.
    In the above example, field lengths are different, hence we use OFFSET operations to compare.
    Considering another example, Plant is reffered as WERKS in few tables and as BWKEY in few tables in this case we can approach this way:
    LOOP AT it_marc.
         READ TABLE it_mbew WITH KEY matnr = it_marc-matnr
                                     bwkey = it_marc-werks.
    ENDLOOP.
    Hope this is what you are looking for.
    Do correct me if my understanding is wrong.
    Kind Regards
    Eswar

  • Record Groups Vs Plsql table

    Hi,
    In forms, I am storing some values in a plsql table(like an array). Everytime a value is chosen in the filter, I do a sequential search of the table to retrieve my values. As this is a single table the search is taking a long time.I would like to replace this with multiple run time record groups. My question is whether the storing and retrieval from record groups are in any way faster or slower than retrieval from a table? I dont know the exact row number. So I have to do a sequential read of the record group also. So it will be something like :
    for i in 1..10 loop
    v := get_group_char_Cell('col name',i);
    end loop;
    Is this faster than
    for i in 1..10 loop
    v := tab(i).col;
    end loop;
    Ps: The record group could be smaller than the table as it will be multiple. Table will be always be one.
    Thanks in Advance.

    Hi ,
    I have a filter which has certain values. When the value is chosen, I need to look thru either the table or record group sequentially to get the matched record and apply it. We want to make this process as fast as possible. Hence the question of using plsql table vs record groups vs GLOBAL table. I was given to understand that if the global table is indexed it could be as fast or faster than the plsql table. The advantage in using GLOBAL table might be that I can directly select the value instead of retrieving the entire PLSQL table and compare the values.
    EG -
    for i in 1..tab.count loop
    tab(i).col = val;
    end loop
    select col into v from GLOBAL_TAB where col1 = val;
    So which you think would be faster? Also consider the record groups.
    Thanks in Advance.

  • Read data from ODS table using value mapping

    hi all;
    can anyone help on how to read data from ODS table using value mapping

    Mudit,
    Take a look at this blog,
    <a href="/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler">DB Lookup in Mapping</a>
    Regards,
    Bhavesh

  • Please maintain business area in Pur. Group-Business area table ZBAPRGRP

    How to maintain business area in Pur. Group-Business area table ZBAPRGRP?
    what is the transcation code and its implication.

    Hi
    ZBAPRGRP is not a standard SAP table. You can change it SM30. You have to see if it is an customizing table then you have to transport it. Or an user table.
    When it is an user table there should be created a transaction code for it to change. Other wise you have a problem with the settup from your authorization
    This information should be in your manuals/ specification from the program that is using this table
    Paul

  • ASSIGN AN AUTHORIZATION GROUP TO MANY TABLE

    Hello,
    I have several hundreds table to assgin an authorization group zaut.
    Is there any easy way to do it?
    I do not want to go se54 and change all table authorization group one by one.
    Please help.
    Thanks,
    Jeongbae

    Use Tcode SM30V_DDAT to assign the Authorization Group to multiple tables.
    Regards,
    Naimesh Patel

  • Cube ODS table level info

    Dear All,
              When we create a cube or an ODS how many tables are created?or is it structures that are created?What are those tables that are created?
    Yours truly,
    Ratish
    [email protected]

    Fact table is nothing but table with Data.
    While loading the data 1st the data will moves to F fact table.
    We load the data in to the F fact table,where the data are grouped according to the individual load among requests.
    The F table allows us to check for overlapping requests and to delete unnecessary requests.
    The F fact table degrades the query performance,When executing a query,the OLAP process must aggregate keyfigures to eliminate the requests information in the data packet dimension.
    To overcome this drawback,BW allows us to aggregate the F fact table and save the aggregated data in the E fact table in a process called the Info cube Compression.
    After the compression ,the OLAP processor will go to the E fact table to retrieve the data.
    For performance and disk space,it is recomended that you roll-up a request as soon as possible and then compress the Infocube......
    Hope it will helps you..........

  • Dynamically change the Priority Group of Logical Table Sources in OBIEE 11g

    Hi All,
    I have 2 Logical Table Sources(LTS 1 and LTS 2 for a Logical Table in BMM Layer).
    Example: Logical Table : Sample
    LTS Source 1 : Sample 1(Priority Group Set to 1)
    LTS Source 2 : Sample 2(Priority Group Set to 0)
    I have set the Priority Group of Sample 1 LTS Source to 1 and Priority Group of Sample 2 LTS Source to 0.
    I need to dynamically change the Priority Group of Sample 1 LTS Source to 0 if my role is DEVELOPER where role is a column in database.
    If my role is not equal to DEVELOPER then the Priority Group of Sample 1 LTS Source will remain same(1).
    Please suggest how can i achieve this.
    Thanks,
    Soukath Ali

    hello Soukath Ali,
    didi you find a way to dinamically changing Priority Group?
    thanks,
    Maria Teresa Marchetti

  • Problem creating cache group for a table with data type varchar2(1800 CHAR)

    Hi,
    I am using TimesTen 7.0 with Oracle 10.2.0.4 server. While creating Cache Group for one of my table I'm getting the following error.
    5121: Non-standard type mapping for column TICKET.DESCRIPTION, cache operations are restricted
    5168: Restricted cache groups are deprecated
    5126: A system managed cache group cannot contain non-standard column type mapping
    The command failed.
    One of my filed type in oracle table is Varchar2(1800 CHAR). If I change the filed size to <=1000 it (E.g. Varchar2(1000 CHAR)) then the Create Cache command works fine.
    MyDatabase Character Set is UTF8.
    Is it possible to solve without changing the filed size in the Oracle Table?
    Request your help on this.
    Thanks,
    Sunil

    Hi Chris.
    The TimesTen server and the Oracle Client is installed on a 32-bit system.
    1. ttVersion
    TimesTen Release 7.0.5.0.0 (32 bit Linux/x86) (timesten122:17000) 2008-04-04T00:09:04Z
    Instance admin: root
    Instance home directory: /appl/TimesTen/timesten122
    Daemon home directory: /var/TimesTen/timesten122
    Access control enabled.
    2. Oracle DB details
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Oracle Client - Oracle Client 10.2.0.4 running in a 32 bit Linux/x86
    3. ODBC Details
    Driver=/appl/TimesTen/timesten122/lib/libtten.so
    DataStore=/var/TimesTen/data
    PermSize=1700
    TempSize=244
    PassThrough=2
    UID=testuser
    OracleId=oraclenetservice
    OraclePwd=testpwd
    DatabaseCharacterSet=UTF8
    Thanks,
    Sunil

Maybe you are looking for