Teradata Source Issue

Hi,
I am extracting data from Teradata  using SSIS package and Teradata source from Attunity. I am getting below error. Can you please help me to fix that issue.
TPT Export error encountered during Initiate phase. '' ('0A'X) is not a valid Teradata SQL token.
Thanks,
CMK.

You most probably have used an invalid syntax
Arthur
MyBlog
Twitter

Similar Messages

  • Teradata Source SQL Server where clause In SSIS

    Hi All,,
    I want pull the data from Teradata to SQLServer .But Teradata source query in where clause around 200 productcodes manually. Instead of that one I want pass sqlserver table dynamically . creating  one temp table in ssis for sqlserver data and  
    Teradata source query joining the temp table (with out where clause) Is it possible to implement this task in SSIS or
    Best method to implement this task in ssis
    Thanks
    CMK...

    Hi CMK,
    You can create a staging table to store the productcodes used in the WHERE clause in the Teradata source query. Then, you can use Lookup Transformation in SSIS to achieve your goal.
    If you use Enterprise or Developer Edition of SSIS 2008 or higher, you can install the Microsoft Connector Version for Teradata by Attunity to obtain the OLE DB provider for Teradata. You can use an OLE DB Source adapter to extract data from the Teradata
    database without WHERE clause, then add a Lookup Transformation which lookups records from the staging table, and output the lookup match records to the destination SQL Server table.
    Reference:
    https://www.simple-talk.com/sql/ssis/implementing-lookup-logic-in-sql-server-integration-services/
    Regards,
    Mike Yin
    TechNet Community Support

  • Adding Teradata source component programmatically in SSIS

    Need help to add a Teradata source component programmatically in SSIS . I am able to add the component but the column info and other metadata is not available for subsequent components. Any documentations or suggestion is needed .

    What kind of source is it? ODBC? Column info appears after you set the columns up.
    Arthur My Blog

  • SSAS Tabular from Teradata Source - Impersonation Account

    Hi All, I have built a SSAS 2012 Tabular Model cube using Teradata as a Data Source and the ODBC drivers provided by Teradata. Which windows account should I specify in the Impersonation Settings of the connection to Teradata? I just have a Teradata user/password
    while the impersonation settings need a WINDOWS user/password. Do i need to enable Teradata LDAP support  and get my domain user read access to the teradata database for the data import in SSDT to succeed?
    Thanks, Ashish Singh

    Hi Ashish,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Does not join to any fact source issue in 10g

    HI,
    I am getting below issue while compiling rpd.
    Logical Dimension Table Dim-XX has a source xx_aa that does not join to any fact source.
    Let me describe situation here.
    In physical layer , i have one xx_v table . there is no join condition physical layer. But in BMM layer we have created two logical tables for single xx_v table and providing join in bmm layer. When am compiling it i'm getting an error.
    The one which i have using current rpd, same rpd in production with out any warnings(Logical Dimension Table Dim-XX has a source xx_aa that does not join to any fact source) and they don't have any logical level mapping in content tab. But i am using same rpd in dev instance getting warnings.
    Thanks,
    Mal
    Edited by: user10675696 on Feb 11, 2013 3:08 AM

    Hi Srini,
    Please find the below warning here and we don't have an hierarchy for MTL_SYSTE_ITEMS_B
    [39008] Logical dimension table Mtl System Items B has a source MTL_SYSTEM_ITEMS_B that does not join to any fact source.
    I am getting this in Dev instance only but not in Production. But one rpd can be used in dev and production instances.
    Thanks,
    Mall

  • Data Source Issue - Plz help

    Hi all,
    We are using a cluster environment for our E2E testing. We hav OSB Server and SOA Server. But the data source named mds-owsm, soaLocalXt datasource keeps on suspending on and off showing unpredictable behaviour. Because of this our server gets shut down automatically which was badly affecting our testing. Kindly help us resolving this issue.
    When we track our osb managed server log, we see the following error:
    [2011-04-10T21:24:08.159-05:00] [osb_server1] [NOTIFICATION] [] [oracle.mds] [tid: MDSPollingThread-[owsm, jdbc/mds/owsm]] [userId: <anonymous>] [ecid: 0000Iwxj3gJ6QPD5nBL6iZ1DcJMm00000A,1:18925] [APP: wsm-pm] [[
    oracle.mds.exception.MDSRuntimeException: weblogic.common.resourcepool.ResourceDisabledException: Pool mds-owsm is Suspended, cannot allocate resources to applications..
         at oracle.mds.internal.persistence.db.BaseReposAccess.<init>(BaseReposAccess.java:360)
         at oracle.mds.internal.persistence.db.shredded.ShreddedReposAccess.<init>(ShreddedReposAccess.java:274)
         at oracle.mds.internal.persistence.db.shredded.ShreddedDBMSConnection.createReposAccess(ShreddedDBMSConnection.java:444)
         at oracle.mds.internal.persistence.db.BaseDBMSConnection.getOrCreateReposAccess(BaseDBMSConnection.java:2072)
         at oracle.mds.internal.persistence.db.BaseDBMSConnection.queryStoreForLatestCommitNumber(BaseDBMSConnection.java:2503)
         at oracle.mds.internal.persistence.db.DBDocumentChangeProvider.queryStoreForLatestCommitNumber(DBDocumentChangeProvider.java:330)
         at oracle.mds.internal.persistence.db.DBDocumentChangeProvider.getChanges(DBDocumentChangeProvider.java:81)
         at oracle.mds.persistence.stores.db.DBMetadataStoreCommunicator.signalChanges(DBMetadataStoreCommunicator.java:134)
         at oracle.mds.internal.persistence.db.ChangePollingThread.run(ChangePollingThread.java:81)
    Caused by: oracle.mds.internal.persistence.db.fcf.MDSDBIOException: weblogic.common.resourcepool.ResourceDisabledException: Pool mds-owsm is Suspended, cannot allocate resources to applications..
         at oracle.mds.internal.persistence.db.JNDIConnectionManagerImpl.fetchConnection(JNDIConnectionManagerImpl.java:96)
         at oracle.mds.internal.persistence.db.ConnectionManager.getConnection(ConnectionManager.java:347)
         at oracle.mds.internal.persistence.db.BaseReposAccess.<init>(BaseReposAccess.java:347)
         ... 8 more
    Caused by: weblogic.jdbc.extensions.PoolDisabledSQLException: weblogic.common.resourcepool.ResourceDisabledException: Pool mds-owsm is Suspended, cannot allocate resources to applications..
         at weblogic.jdbc.common.internal.JDBCUtil.wrapAndThrowResourceException(JDBCUtil.java:251)
         at weblogic.jdbc.common.internal.RmiDataSource.getPoolConnection(RmiDataSource.java:344)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:360)
         at oracle.mds.internal.persistence.db.JNDIConnectionManagerImpl.fetchConnection(JNDIConnectionManagerImpl.java:91)
         ... 10 more
    Thanks & Regards
    Prabhu

    Because of this our server gets shut down automatically No. Just because connection pool got suspended, server should not go down. There is any other issue which you did not notice. For Data Source to function properly, make sure that intial and maximum connections limit has been set appropriately (preferably both should be equal) and make sure that database is up and running always and has that many connections open. Check with the DBA for DB connection limit settings.
    Raise a SR with support if you are not able to figure out the exact issue.
    Regards,
    Anuj

  • Generic Data Source issue in CRM.

    Hi Guru's,
    Generic Data Source with Table gave an issue "invalid Extracture structure template XXXXX of Data source  XXXXX"
    Generic Data source with Function Module gave an issue "Units field VOLUM_U for field VOLUME of DataSource ZTEST_XYZ is hidden"
    Generic Data Source with View configured successfully but the data is not coming in Extractor Checker.
    Three tables has taken in to consideration. I think there might be some issue with Join condition.
    Can any one through light on this incident.  Your help will be appreciated.
    Thanks in Advance.
    Venkat.

    Hi Praveen,
    yes you are right.  I took reference field as VOLUM_U.
    I have created Generic Table.  Do you need me to take same table in the reference Table.
    Thanks
    Venkat.

  • CO_PA DATA SOURCE ISSUE

    Hi,
    I am trying to display a COPA data source, i have given proper operating concern name and tried with costing based and account based it is throwing below error message:
    Table entry missing for data source.
    when i look into the details it is showing below information.
    an attempt was made to extract data using this data source.
    this is not possible due to missing of control entries in the system tables.
    System Response:
    The process was terminated.
    Procedure:
    if the data source was transported into this system, check the import logs for errors.
    I tried to debug it from KEB2, here also i am getting same error message.
    Please provide me the answer to over come this issue.

    Hello,
    The administration of the delta method for CO-PA DataSources occurs in part in the OLTP system. In particular, the time up until which the data has already been extracted is stored in the control tables of the DataSource. Since the control tables for the delta method for the extractor are managed in the OLTP system, certain restrictions apply.
    There can only ever be one valid initial package for a DataSource. If, for the same DataSource, a separate initialization is scheduled for different selections, for example, and data is posted to the operating concern between the individual initializations, data inconsistencies could occur between SAP BW and OLTP. The reason for this is that, with each initialization, the time stamp of the DataSource in the OLTP system is set to the current value. Consequently, records from a previous selection are no longer selected with the next delta upload if they were posted with a different selection prior to the last initial run.
    See this doc for more info [How to Connect Between CO-PA and SAP BW for a Replication Model|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/fb07ab90-0201-0010-c489-d527d39cc0c6]
    Also see
    [How to Connect Between CO-PA and SAP BW for Data Retraction|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1910ab90-0201-0010-eea3-c4ac84080806]
    [SAP Network Blog: Best Practices for Profitability Management with SAP Business Profitability Management and CO-PA|/people/community.user/blog/2007/09/10/best-practices-for-profitability-management-with-sap-business-profitability-management-and-co-pa]
    [SAP Network Blog: Configuration Characteristics in Profitability Analysis|/people/udo.werner/blog/2007/05/10/configuration-characteristics-in-profitability-analysis]
    Thanks
    Chandran

  • XML Data Source Issue

    Post Author: MrJames
    CA Forum: Semantic Layer and Data Connectivity
    I'm sure the issue is my lack of understanding on how this should work.  I've created a report using an XML data source.  The fields on my report come from the XML file schema, and all fields having to do with quantities selected from the schema show as numeric fields in the report designer.  However, when I try to use the SUM function on these fields I only get a count, and not a sum.
    When I view the XML file using XML Notepad 2007, the viewer shows these fields as text fields.  So as near as I can tell, I'm reading text data into a field defined as numeric.
    I can directly connect to the table in SQL Server 2005 and the sum functions work fine, however, the sum function will not sum when using the XML table. 
    Apparently I'm missing something here??

    Hi,
    Which product are you using and in which version?
    Didier

  • Multiple source issue

    I am new to OBIEE and I have came accross an issue. I appologize if this information is in the forum somewhere but I have searched and cannot find it.
    My situation is that I would like to have one logical table that contains multiple data sources which have all the same columns. I already have session variables setup to differentiate the user's security through a row-wise variable for a specific column and a session variable for another column which determines the user's association to the data source in which they belong to. This security works well when the data sources are seperated in the Business Model and Mapping portion but the issue that arises is that the user's cannot share reports when the data sources are seperated in the BM&M.
    I have dragged and dropped a table from the Physical model to the BM&M, I then dragged the second data source (with same meta data structure) over to the "Sources" folder in the first data source table in the BM&M. On the Content tab or each data source table I have defined the WHERE clause as such, where VALUEOF(NQ_SESSION."SCHOOL") session variable is my row-wise column filter and the VALUEOF(NQ_SESSION."GROUP") filter is my data source determinative:
    sandbox."".SANDBOX.OBIEE_CROSS_ENROLLMENTS.HOME_SCHOOL = VALUEOF(NQ_SESSION."SCHOOL") AND sandbox."".SANDBOX.OBIEE_CROSS_ENROLLMENTS.DATA_SOURCE = VALUEOF(NQ_SESSION."GROUP")
    Unfortunatley this only returns values in the BI Answers for the first drag and drop Pysical table in the BM&M layer and not the second Physical table drug into the "Sources" folder. I have also tried to create a new logical table and drag both tables into the "Sources" folder to no avail. I have experimented with the Fragmentation content on the "Content" tab of the seperate logical tables, checking the "This source should be combined with other sources at this level", which gives me an error in BI Answers that a column does not exist which really does.

    Hi,
    You do need to check the "This source should be combined with other sources at this level" checkbox, otherwise it will always take the first logical table source. So you need to get rid of the error message. Are you sure you mapped all the columns on each logical table source?
    You can check the details in the link provided below
    http://www.rittmanmead.com/2007/06/19/obiee-data-modeling-tips-2-fragmentation/

  • Select Recording Source issue on Audigy 2

    I unistalled and installed the program and can't get it to work. I have the Audigy 2 ZS plat. with the software and all. Problem I have when I open up the Organizer MediaSource Player everything works but the "select recording source" button or selection doesn't work. It's kind of blanked out as if I don't have that option at all. But when I go to the mixer I can here the line inputs but I can't record from it b/c I can't select it. If anyone has this issues let me know or how to solve it. I have windows XP and also my Audio Stream recorder doesn't work either.

    Ok I got it to work. This is the reply I got from Creative but I didn't remove the program from the add/remove option on the PC b/c that didn't work at first. I inserted the installation CD and remove it from that wizard. Rebooted and the PC found new hardware. I then installed the driver and software from the CD and now it works.
    For Mediasource. It appears something was corrupted in Mediasource or there is a conflict within the system.Please uninstall all software and drivers for the soundcard, from add/remove programs. Once this is done, shut down the system and changePCI slots for the soundcard, then turn the system back on, cancel the found new hardware wizard, disable all background applications (especially virus scanner, firewall, and any other background applications running in the bottom right hand corner of the system), andthen perform a full reinstallation of the drivers and software from the soundcard installation cd.
    CAT I hope you fix your sound card. Good luck.

  • 2LIS_04_P_COMP Data Source Issue

    Hello Experts,
    I am having a issue while loading the data  into the DSO using the 2LIS_04_P_COMP Datasource.
    in this Data source we do have a field BDMNG( for Required Qty).
    There is a Start Routine in the Update rules( we have maintained the 3.x Data Source)
    The data is coming correctly when the modify data package
    statement is executed the data in the data package internal take is same as below,
    I had verified the same in the debugging..
    I also verifeied the data in the PSA it is having
    same data which is mention below
    But is updating in the DSO differently any clues ???
    Suppose data in the change is as below in general
    Production order    Material       BDMNG       usage
    101                          ABC            100             50    New image(N)
    101                          ABC           -100           -50    Before Image(x)
    101                          ABC            100             80    After Image (' ')
    But in my DSO the Change log as well as the active table hold the data as below
    Production order    Material      BDMNG       usage
    101                          ABC             100           50    New image(N)
    101                          ABC            -100          -50    Before Image(x)
    101                          ABC             -100           80    After Image (' ')
    Which i am not under standing why i am getting the value as -100 instead of 100 Thanks in Advance
    Regards
    KK
    Edited by: KK on Feb 4, 2010 10:45 AM

    Hello Experts
    Kindly let me know what may cause this. or let me know if any one is also facing the same issue.
    Regards

  • SRM Sourcing issue

    Dear Gurus,
       SRM 5.5, ECC 6.0, Classic scenario.
    I have a requirement that for a certain purchase group selected in Shopping cart via Free Form Text, the shopping cart should not go to Sourcing(Preferred Vendor is entered) but instead create a PO in ECC with Acct Asign category 'B' (Limit item).
    We had made following the changes in DOC_CHANGE_BADI to make preferred Vendor to Fixed Vendor by changing Partner_Fct from '39' to '19'. 
    And in the PO_CREATE_NEW Badi Account assignment category is set to 'B', Expected value and Target Value are set for PO creation.
    Our Issue is- PO is created but also sending the shopping cart to Sourcing. I am trying to find how Source_rel_ind is being set after PO is created and hence its sent to sourcing.
    Any advise is appreciated.
    Thanks
    Viktor P

    Hello Viktor,
    Check your customizing in SPRO:
    SAP Implementation Guide -> Supplier Relationship Management -> SRM Server -> Sourcing -> Define Sourcing for Product Categories.
    If you cannot manage sourcing with this solution, then use method DETERMINE_SOURCING  from BAdI BBP_SRC_DETERMINE to overwrite default sourcing customizing according to your need.
    Regards.
    Laurent.

  • 0CLM_INVOICE data source issue

    HI Experts,
    I have been testing data source 0CLM_INVOICE and noticed discrepancies when extracting data using RSA3. I have used the selection for Company Code, Fiscal Year and Customer and when i display the list of extracted data, records for other customers (aside from my selection) are showing. It looks like my selections are not working. Also, in the SAP documentation for this data source,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/22/e11ceb47fc4069a46b91efcf5f6abb/frameset.htm
    the POSTING_DATE and INV_DATE are said to be derived from BSEG-BUDAT and BSEG-BLDAT, respectively. The trouble is that I can't find these fields in the BSEG table.
    Can anyone enlighten me on this? Or if you have encountered similar issues on this data source, please let me know how it was resolved.
    Thanks!
    JL

    Hi JL:
    Check if any of the SAP Notes below is applicable to your system.
    1459106 - "No invoice data for initial BI extraction"
    1444730 - "Different results despite the same import parameters"
    Regards,
    Francisco Milán.

  • Z data source issue for creating packets

    Hi I have created a Z data source (function module) .
    My issue is I am not able to create data record packets all the data is coming in one packet only.
    The is code is as show below is some one can please assist me how can I change the code so that is can create multiple packets for the option given in Tcode RSA3.
    FUNCTION ZBW_MATERIAL_GROUP_HIE.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
    *" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *" VALUE(I_REMOTE_CALL) TYPE SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
    *" TABLES
    *" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *" E_T_DATA STRUCTURE ZBW_MAT_GRP_HIER OPTIONAL
    *" EXCEPTIONS
    *" NO_MORE_DATA
    *" ERROR_PASSED_TO_MESS_HANDLER
    TABLES : /BI0/HMATL_GROUP.
    DATA : BEGIN OF t_hmat OCCURS 0,
    hieid LIKE /BI0/HMATL_GROUP-hieid,
    objvers LIKE /BI0/HMATL_GROUP-objvers,
    iobjnm LIKE /BI0/HMATL_GROUP-iobjnm,
    nodeid LIKE /BI0/HMATL_GROUP-nodeid,
    nodename LIKE /BI0/HMATL_GROUP-nodename,
    tlevel LIKE /BI0/HMATL_GROUP-tlevel,
    parentid LIKE /BI0/HMATL_GROUP-parentid,
    END OF t_hmat.
    DATA : BEGIN OF t_flathier,
    hieid LIKE /BI0/HMATL_GROUP-hieid,
    lv2_id LIKE /BI0/HMATL_GROUP-nodeid,
    lv2_name LIKE /BI0/HMATL_GROUP-nodename,
    lv3_id LIKE /BI0/HMATL_GROUP-nodeid,
    lv3_name LIKE /BI0/HMATL_GROUP-nodename,
    lv4_id LIKE /BI0/HMATL_GROUP-nodeid,
    lv4_name LIKE /BI0/HMATL_GROUP-nodename,
    lv5_id LIKE /BI0/HMATL_GROUP-nodeid,
    lv5_name LIKE /BI0/HMATL_GROUP-nodename,
    lv6_id LIKE /BI0/HMATL_GROUP-nodeid,
    lv6_name LIKE /BI0/HMATL_GROUP-nodename,
    lv7_id LIKE /BI0/HMATL_GROUP-nodeid,
    lv7_name LIKE /BI0/HMATL_GROUP-nodename,
    lv8_id LIKE /BI0/HMATL_GROUP-nodeid,
    lv8_name LIKE /BI0/HMATL_GROUP-nodename,
    lv9_id LIKE /BI0/HMATL_GROUP-nodeid,
    lv9_name LIKE /BI0/HMATL_GROUP-nodename,
    lv10_id LIKE /BI0/HMATL_GROUP-nodeid,
    lv10_name LIKE /BI0/HMATL_GROUP-nodename,
    lv11_id LIKE /BI0/HMATL_GROUP-nodeid,
    lv11_name LIKE /BI0/HMATL_GROUP-nodename,
    material LIKE /BI0/HMATL_GROUP-nodename,
    END OF t_flathier.
    FIELD-SYMBOLS: <f> LIKE LINE OF t_hmat,
    <Level> TYPE ANY.
    data : count(2) type c,
    lv_level(20) type c.
    DATA : lv_count TYPE n.
    DATA : lv_id LIKE /BI0/HMATL_GROUP-nodeid,
    lv_hieid LIKE /BI0/HMATL_GROUP-hieid.
    Auxiliary Selection criteria structure
    DATA: l_s_select TYPE srsc_s_select.
    Maximum number of lines for DB table
    STATICS: s_s_if TYPE srsc_s_if_simple,
    counter
    s_counter_datapakid LIKE sy-tabix,
    cursor
    s_cursor TYPE cursor.
    Select ranges
    RANGES: l_r_nodename FOR /BI0/HMATL_GROUP-nodename,
    l_r_hieid FOR /BI0/HMATL_GROUP-hieid.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
    IF i_initflag = sbiwa_c_flag_on.
    Initialization: check input parameters
    buffer input parameters
    prepare data selection
    Check DataSource validity
    CASE i_dsource.
    WHEN 'ZMATERIAL_GROUP_HIE'.
    WHEN OTHERS.
    IF 1 = 2. MESSAGE e009(r3). ENDIF.
    this is a typical log call. Please write every error message like this
    log_write 'E' "message type
    'R3' "message class
    '009' "message number
    i_dsource "message variable 1
    ' '. "message variable 2
    RAISE error_passed_to_mess_handler.
    ENDCASE.
    APPEND LINES OF i_t_select TO s_s_if-t_select.
    Fill parameter buffer for data extraction calls
    s_s_if-requnr = i_requnr.
    s_s_if-dsource = i_dsource.
    s_s_if-maxsize = i_maxsize.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
    APPEND LINES OF i_t_fields TO s_s_if-t_fields.
    ELSE. "Initialization mode or data extraction ?
    Data transfer: First Call OPEN CURSOR + FETCH
    Following Calls FETCH only
    First data package -> OPEN CURSOR
    IF s_counter_datapakid = 0.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
    LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = '0MATERIAL'.
    MOVE-CORRESPONDING l_s_select TO l_r_nodename.
    APPEND l_r_nodename.
    ENDLOOP.
    LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'HIEID'.
    MOVE-CORRESPONDING l_s_select TO l_r_hieid.
    APPEND l_r_hieid.
    ENDLOOP.
    Get the data from Hierarchy table
    SELECT * FROM /BI0/HMATL_GROUP INTO CORRESPONDING FIELDS OF
    TABLE t_hmat
    WHERE hieid IN l_r_hieid
    AND objvers = 'A' .
    ENDIF.
    loop through all the 0MATERIAL entries to get all the hirarchy levels.
    Start of change.
    LOOP AT t_hmat ASSIGNING <f>
    WHERE iobjnm = '0MATL_GROUP'
    AND nodename IN l_r_nodename.
    LOOP AT t_hmat ASSIGNING <f>
    WHERE nodename IN l_r_nodename.
    End of change
    lv_count = <f>-tlevel.
    "refresh t_flathier.
    CLEAR: t_flathier. ", lv_level, count.
    MOVE :
    <f>-hieid TO lv_hieid ,
    <f>-nodename TO t_flathier-material,
    <f>-parentid TO lv_id.
    if <f>-iobjnm <> '0MATL_GROUP' .
    move <f>-nodename+3 to t_flathier-material .
    else.
    move <f>-nodename to t_flathier-material .
    endif.
    Added for Last level.
    if lv_count = '1' .
    *t_flathier-lv1_name = t_flathier-material .
    elseif lv_count = '2' .
    t_flathier-lv2_name = t_flathier-material .
    elseif lv_count = '3' .
    t_flathier-lv3_name = t_flathier-material .
    elseif lv_count = '4' .
    t_flathier-lv4_name = t_flathier-material .
    elseif lv_count = '5' .
    t_flathier-lv5_name = t_flathier-material .
    elseif lv_count = '6' .
    t_flathier-lv6_name = t_flathier-material .
    elseif lv_count = '7' .
    t_flathier-lv7_name = t_flathier-material .
    elseif lv_count = '8' .
    t_flathier-lv8_name = t_flathier-material .
    elseif lv_count = '9' .
    t_flathier-lv9_name = t_flathier-material .
    elseif lv_count = '10' .
    t_flathier-lv10_name = t_flathier-material .
    endif.
    DO lv_count TIMES .
    lv_count = lv_count - 1.
    IF lv_count = 1.
    EXIT.
    ENDIF.
    READ TABLE t_hmat WITH KEY
    hieid = lv_hieid
    nodeid = lv_id.
    IF sy-subrc = 0.
    CLEAR lv_id.
    CASE lv_count.
    WHEN '11' .
    MOVE : t_hmat-nodename+3 TO t_flathier-lv11_name,
    t_hmat-parentid TO lv_id.
    WHEN '10' .
    MOVE : t_hmat-nodename+3 TO t_flathier-lv10_name,
    t_hmat-parentid TO lv_id.
    WHEN '9' .
    MOVE : t_hmat-nodename+3 TO t_flathier-lv9_name,
    t_hmat-parentid TO lv_id.
    WHEN '8' .
    MOVE : t_hmat-nodename+3 TO t_flathier-lv8_name,
    t_hmat-parentid TO lv_id.
    WHEN '7' .
    MOVE : t_hmat-nodename+3 TO t_flathier-lv7_name,
    t_hmat-parentid TO lv_id.
    WHEN '6' .
    MOVE : t_hmat-nodename+3 TO t_flathier-lv6_name,
    t_hmat-parentid TO lv_id.
    WHEN '5' .
    MOVE : t_hmat-nodename+3 TO t_flathier-lv5_name,
    t_hmat-parentid TO lv_id.
    WHEN '4' .
    MOVE : t_hmat-nodename+3 TO t_flathier-lv4_name,
    t_hmat-parentid TO lv_id.
    WHEN '3' .
    MOVE : t_hmat-nodename+3 TO t_flathier-lv3_name,
    t_hmat-parentid TO lv_id.
    WHEN '2' .
    MOVE : t_hmat-nodename+3 TO t_flathier-lv2_name.
    ENDCASE.
    ENDIF.
    ENDDO.
    Populate data for level 1 (Class Type)
    READ TABLE t_hmat WITH KEY
    hieid = lv_hieid
    tlevel = 1.
    IF sy-subrc = 0.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    EXPORTING
    input = t_hmat-nodename
    IMPORTING
    output = e_t_data-0class_type.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = e_t_data-0class_type
    IMPORTING
    output = e_t_data-0class_type.
    ENDIF.
    populate data to extraction structure ( removing prefixe 'class type')
    MOVE : lv_hieid TO e_t_data-hieid,
    t_flathier-lv2_name TO e_t_data-xhier_lv1,
    t_flathier-lv3_name TO e_t_data-xhier_lv2,
    t_flathier-lv4_name TO e_t_data-xhier_lv3,
    t_flathier-lv5_name TO e_t_data-xhier_lv4,
    t_flathier-lv6_name TO e_t_data-xhier_lv5,
    t_flathier-lv7_name TO e_t_data-xhier_lv6,
    t_flathier-lv8_name TO e_t_data-xhier_lv7,
    t_flathier-lv9_name TO e_t_data-xhier_lv8,
    t_flathier-lv10_name TO e_t_data-xhier_lv9,
    t_flathier-lv11_name TO e_t_data-xhie_lv10,
    t_flathier-material TO e_t_data-0MATL_GROUP.
    APPEND e_t_data.
    CLEAR e_t_data.
    ENDLOOP.
    s_counter_datapakid = s_counter_datapakid + 1.
    IF s_counter_datapakid > 1 .
    RAISE no_more_data.
    ENDIF.
    ENDIF. "Initialization mode or data extraction ?
    ENDFUNCTION.
    As now when I run it in Tcode RSA3 it give only one data packet of some 5k to 6k records.
    Thanks in advance for your help.
    Pawan.

    Hi PS,
    Instead of
    SELECT * FROM /BI0/HMATL_GROUP INTO CORRESPONDING FIELDS OF
    TABLE t_hmat
    WHERE hieid IN l_r_hieid
    AND objvers = 'A' .
    code should look like this .
          OPEN CURSOR WITH HOLD S_CURSOR FOR
          SELECT (S_S_IF-T_FIELDS) FROM /BI0/HMATL_GROUP
        FETCH NEXT CURSOR S_CURSOR
                   APPENDING CORRESPONDING FIELDS
                   OF TABLE E_T_DATA
                   PACKAGE SIZE S_S_IF-MAXSIZE.
    For more information refer to sample code of fm "RSAX_BIW_GET_DATA_SIMPLE"
    Hope that helps.
    Regards
    Mr Kapadia
    ***Assigning points is the way to say thanks in SDN.***

Maybe you are looking for

  • Can u

    Hi Experts can any body send the answers bellow this questions? CIN Questions What is excise duty? What is excise group? Which business processes are covered under CIN? Which t-code display CIN menu? What master data set up is required before CIN cus

  • Failed to connect to repository server

    Hi. I have a question about setting up a repository server on an oracle database. I need help with some of the directions found at: http://download-west.oracle.com/otn_hosted_doc/designer/doc_library/releases_6i49_9027/cmnhlp72/rep_insgde/igch2_65.ht

  • SAP Netweaver 7.0 Web Dispatcher HA Setup with Sun Cluster 3.2

    Hi, How to HA SAP web dispatcher, which is not mentioned in the guide 'Sun Cluster Data Service for SAP Web Application Server Guide for Solaris OS'. Since I do not want to install central instance within the cluster, should I install two standalone

  • Regex, jdbc help needed

    I need to write a program that extracts data from a website an inserts it into a oracle database. I use HTML or JTidy to pretty the html code of the site that I am going to extract. After prettying up the code us JTidy, I save file in a tempory direc

  • What is the best resource for photoshop brushes I can use commercially?

    I have been down a hundred trails of photoshop brush websites where almost all of them don't allow commercial use of the brush, for art that will be "reproduced" into a product . Most sites claim you can use the brush for commerical use, but they don