Loading Hierarchy levels as Navigational Attributes of 0MATERIAL.

Hello Guys, <br><br>
bit of background about the issue: <br><bR>
I am loading 0MATERIAL hierarchy from ECC using 0MATERAIL_LKLS_HIER Data source.(IS Retail). this job runs very fast.
We have a 8 level hierarchy in ECC/BI and the lowest level of hierarchy is 0MATERAIL. I am also loading 0MATERIAL_ATTR from ECC. While loding 0MATERAIL_ATTR into BI, i need to populate each hierarchy level of an artcile as navigation attributes of 0MATERIAL. <br><br>
For this requiremetn i wrote a start routine in the update rules and reading hierarchy levels and node names from /BI0/HMATERIAL table. the problem is the performance of the extractor is very very poor. It runs for more than 10 hours every day and it is causing many problems for our transactional data loads. <br><br>
Here is the code i am using in my start routine. <br><br>
I need suggestions on improving the performance of this extractor asap. are there any other best practices to load Article hierarchy levels as attributes apart from using ABAP  lookups?? any help will be appreciated. <br><br>
TYPES: BEGIN OF TY_HIER, <br>
        MATERIAL TYPE /BI0/OIMATERIAL, <br>
        HIER_LEVEL1 TYPE RSSHNODENAME, <br>
        HIER_LEVEL2 TYPE RSSHNODENAME, <br>
        HIER_LEVEL3 TYPE RSSHNODENAME, <br>
        HIER_LEVEL4 TYPE RSSHNODENAME, <br>
        HIER_LEVEL5 TYPE RSSHNODENAME, <br>
       END OF TY_HIER. <br><br>
DATA: GT_HIER TYPE STANDARD TABLE OF TY_HIER, <br>
      WA_HIER TYPE TY_HIER. <bR><br>
DATA: LT_MAT_HIER TYPE STANDARD TABLE OF /BI0/HMATERIAL,<br>
          WA_MAT_HIER TYPE /BI0/HMATERIAL,<br>
          wa_hier TYPE ty_hier. <bR><br>
  DATA: l_nodename TYPE rsshnodename.<bR><br>
* Retrieving the whole hierarchy table into an internal table <br>
  SELECT * FROM /BI0/HMATERIAL INTO TABLE LT_MAT_HIER. <br><br>
* Looping at the data package <br>
  LOOP AT DATA_PACKAGE. <bR><br>
    WA_HIER-MATERIAL = DATA_PACKAGE-MATERIAL. <bR><br>
* Sort internal table for binary search<br>
    Sort LT_MAT_HIER by iobjnm nodename. <bR><br>
    READ TABLE LT_MAT_HIER <br>
          INTO WA_MAT_HIER WITH KEY IOBJNM = '0MATERIAL'<br>
                                  NODENAME = DATA_PACKAGE-MATERIAL<br>
                                  binary search. <bR><br>
    Sort LT_MAT_HIER by nodeid. <bR><br>
    WHILE WA_MAT_HIER-TLEVEL > 1. <bR><br>
      READ TABLE LT_MAT_HIER <br>
            INTO WA_MAT_HIER WITH KEY NODEID = WA_MAT_HIER-PARENTID <br>
                                                    binary search. <br><bR><br>
*      IF SY-SUBRC = 0. <br>
      SHIFT WA_MAT_HIER-NODENAME BY 3 PLACES LEFT. <bR><br>
      CASE WA_MAT_HIER-TLEVEL. <br>
        WHEN '07'. <br>
          CONTINUE. <br>
        WHEN '06'. <br>
          WA_HIER-HIER_LEVEL5 = WA_MAT_HIER-NODENAME. <br>
        WHEN '05'. <br>
          WA_HIER-HIER_LEVEL4 = WA_MAT_HIER-NODENAME. <br>
        WHEN '04'. <br>
          WA_HIER-HIER_LEVEL3 = WA_MAT_HIER-NODENAME. <br>
        WHEN '03'. <br>
          WA_HIER-HIER_LEVEL2 = WA_MAT_HIER-NODENAME. <br>
        WHEN '02'. <br>
          WA_HIER-HIER_LEVEL1 = WA_MAT_HIER-NODENAME. <br>
        WHEN OTHERS. <br>
          CONTINUE. <br>
      ENDCASE. <br>
    ENDWHILE. <br><br>
    APPEND WA_HIER TO GT_HIER[]. <br>
    CLEAR WA_HIER. <bR>
  ENDLOOP. <bR><br>
  SORT GT_HIER BY MATERIAL.
<br><br>
Thanks in advance <br>
Cheers <bR>
POPS<br>

Any other thoughts guys...
is there a standard function module where we can specify the lowest level article detail as input and request for level  1 - 5 values ??

Similar Messages

  • Navigational Attribute data is not display in Cube level and reporting

    Hello ALL
    Iam facing a problem like,I created Navigational attribute and I selected that navigational attribute in cube level also but data is not display in cube level.
    What will be the problem?Pl help me out.
    regards
    balaji

    Hi Dinesh
    You mean base characteristic means loading data after creating Navigational attribute?Is it this way,(orelse can u tell me about this base characterstic)
    Yes after making that particular attribute as a navigational attribute I loaded data in master data tables.
    How to run Attribute change run?can u give me steps
    regards
    balaji

  • Data issue with Navigational Attribute in the report

    Hi Experts,
    We have a report which has Material and Material Group in the report. Material Group is a navigational attribute of 0Material. We have some 31 material groups in the ODS. However, the report is diaplaying only 3 material Groups. If I use Material Group directly( not as an attribute of material) then it is displaying all the 31 material groups correctly.
    We have a hierarchy which is loaded through Flat file on Material Group. We need the hierarchy to be displayed for all the material groups in the ODS. Please let me know what could be causing this issue?
    Thanks and Regards,
    Kavitha Jagannath

    Hello Kavitha,
    Check if the Material Masterdata is having these Material groups. If not then load this Material masterdata and activate it.
    As your query is using Material group as Navigational attribute then the data should come from this Material Masterdata.
    If your Material has only 3 of th eMat Groups then report will show only 3. Better update this Material masterdata.
    Regards,
    Pratap Sone

  • Navigational Attribute in BEx

    Hi,
    I have a problem with  navigational attribute in BEx reporting.  Product hierarchy 1 to 4 (0PRODH1 to 0PRODH4  referencing 0PROD_HIER) is a navigational attribute in 0MATERIAL. In query from an ODS I am able to include them and able to filter on it using a variables, but I am not able to get subtotal on the basis of PRODH3, but able to subtotal on the basis of PRODH1 & PRODH2.
    I run RSRV on 0MATERIAL & 0PROD_HIER and there is no error on it.
    If anybody know how to rectify this issue pls reply.
    Thanks
    EV

    Try this:
    My experience is that the property of showing subtotals in bex, is pointing at the characteristic to the left in your report  of the one you are changinin  .
    If you have
    Fiscal year, profit Center , Customer ,  Product,
    And want subtotals on the two first. BUT NOT Customer and product..
    The property show subtotals should be choosen for the first three.
    Fiscal year, profitcenter AND customer.
    Hope this helps.

  • Navigational Attributes

    Hi All,
    I am creating two new navigational attributes of 0MATERIAL..
    One of these navigational attributes should have text and one of them is numeric.
    Since I want both of these as navigational so I am not creating the numeric one as KF as I believe if we create an attribute as KF then it is only display attri.
    I have decided to create two chars. Create and load their master data (external loading). And check them as navigational attr of 0MATERIAL.
    Do we need to delete the entire master data from 0MATERIAL and reload it along with the master data of its new attrbiutes?
    Also, what will be the effect of adding these new nav. attri to a char on the cubes that have this characteriatics.
    Regards,
    Sharmishtha

    Hi SB,
    As far as I understood you are planning to add few chars (which have their own master data) as nav attrs in an info-object. The stesps would be as follows:
    1. You need to change the extractor and datasource in R/3 and add the additional fields.
    2. In many case the fields are populated using a user exit on the R/3 side.
    3. On the BW side add the new chars as nav attrs in the info-object, make them navigational and activate.
    4. Now replicate the datasource and map the new fields of the datasource and the nav attrs in the transfer rules and ctivate.
    5. Now load the info-object and thus the new nav attrs get the values populated.
    Hope this helps.
    Bye
    Dinesh

  • Need help on Authorization on Navigational Attribute.

    Hi All,
    I am working on Authorizations.
    I am using the info Object "Material group" which is the Navigational Attribute of 0MATERIAL.
    In Reporting, I have created the Authorization Variable for Material group.
    And after this, i have created the Authorization Object in RSECADMIN and added the info Object "Material group" and harded coded the value as "1000". After this, i have created the Authorization Role in PFCG and added this authorization Object over there.And this role is assigned specific User.
    While Running the report on specific User, for Material group, filteration is not happening over there (Material group = 1000). It is showing all values for this user.
    Can you please help on this issue.
    Thanks,
    Shahina A

    Thanks for your reply. I was on leave for the past 2 days. I have checked as you suggested.
    In 0MATERIAL, 0MATL_GROUP is the attribute and i have made Authorization Relvent for this Attribute.
    And i activated the Info object 0MATERIAL.
    Then i have run the query in RSRT and found an error while running the Report.
    Can u pls help on this issue.
    Diagnosis
    The system determined the authorized characteristic values for the characteristic 0MATERIAL__0MATL_GROUP. It determined that you do not have the (analysis) authorization to view transaction data for any characteristic values or range.
    System Response
    If this situation occurs when a variable is being filled, the query cannot be executed.
    Procedure
    You must have authorization for at least one characteristic value for the characteristic 0MATERIAL__0MATL_GROUP.
    Create the appropriate analysis authorizations for the user.
    If you are only authorized for evaluations that aggregate using the characteristic 0MATERIAL__0MATL_GROUP (for ":" authorizations), use a query without this characteristic. If the characteristic is not used as a filter or in the drilldown, variables should not be used.
    Procedure for System Administration
    Notification Number EYE 018 
    Thanks,
    Shahina A

  • Error Message in Query Filter on attribute of 0MATERIAL filters charac.

    Hi All,
    i have a query with few variables , i used navigational attributes of 0material......
    I am getting the below Warning Message...  Ineed to supress the below Error Message....
    Please let me know the solution...
    Error Message: Filter on attribute of 0MATERIAL filters charac. values without master data
    Diagnosis
    Currently, it cannot be guaranteed that SIDs and master data exists for all characteristic attributes for the DataStore object to be read.
    There is a restriction on a navigation attribute of the listed characteristic in the query. This filters all characteristic values of the master-data bearing characteristic for which there is not yet master data out of the result.
    For performance reasons, this filtering is unavoidable.
    System Response
    Procedure
    In case of doubt, find other restirctions directly on the characteristic values of the characteristics contained in the DataStore object.
    Procedure for System Administration
      Notification Number DBMAN 345 
    Thanks All

    Dear all SAP Gurus,
    we've solved this problem and this is the solution:
    The warning is triggered by the method CL_RSDRV_ODS_QUERY-PROCESS_SFC_WITH_ATR when the BExFlag of the InfoProvider is not set. Using DSOs for direct update there is no change to change the BExFlag. As a result queries based on a DSO for direct update always throw the above mentioned warning when filter-characteristics are attributes.
    Regards, Clemens

  • Base Unit of Measure as Navigable Attribute

    Any idea how to make the Base Unit of Measure 0BASE_UOM a navigable attribute for 0MATERIAL?
    Any helpful answer would be appreciated.
    Thank you,
    Gabriel.

    Hi Gabriel
    BASE_UOM is Generally added to the UNIT Dimension by default.
    Where as Navigational attributes have to be added to drill down to further details in the Query.
    So why do u need to make BASE_UOM as a Navigational attr.?
    It is generally not required.

  • Navigation Attributes & Planning Characteristics

    Hi,
    We plan to maintain some of the characteristics as Navigation Attributes. We understand that there are performance issues if we use navigation attributes in planning area.
    I have a query: If we do not navigate data based on navigation attribute in interactive planning, even then the performance be low or only when we select navigation attribute in interactive planning?
    regards,
    Mohit

    By definition, nothing is stored in live cache against navigation attributes. So if you load a selection containing navigational attribute or drill down by navigational attribute, in theory this should be much faster vis a vis reading from live cache (not withstanding the general computing theory of memory resident processing). This statement (of mine) is contra positive to SAP warnings on performance when using navigational attributes. There are a dozen notes on this to scare users.
    There is no definitive answer I guess... at least empirically. It depends eventually on the query size. When query is large, it is hard to blame navigational attributes alone (if you are using some). It can be more so because of transaction time (SQL>LC routine > SQL) in the live cache as well. Sometimes reading a simple relational table (if indexed) can be much faster than reading non-relational (live cache) tables.
    I am not a techspert and authority on this. This response is based on my painful experiences. For me anything more than couple of seconds on interactive DP is a waste of time.
    Thanks
    Borat

  • Navigation attributes in APO DP

    I am using APO DP V5.
    I have a planning characteristics of product and customer. I also have a characteristic of 'product group'. I am trying to clarify the <u>real difference</u> between modelling this characteristic as a planning characteristic or as a navigation attribute of product.
    Based on my testing, using product group as a navigation attribute, I can select by product group and apply fixing and disaggregation.
    So, what is the 'added value' of modelling 'product group' as a planning characteristics?
    Any feedback appreciated.
    Thanks, Bob Austin

    To quote OSS note 413526
    When defining a planning area you have the option of using either basic
    characteristics or navigation attributes. With regard to the design the
    following aspects should be considered:
    Navigation attributes:
    ===========================================================
    The use of navigation attributes adversely affects performance during
    data selection and during navigation in the interactive planning. The
    number of used navigation attributes is important and not the different
    specifications of a navigation attribute.
    It is very easy to realign the planning objects since only the master
    record table of the affected InfoObject has to be changed.
    Navigation attributes can not be used as a characteristic during the
    definition of a fixed aggregate.
    During the disaggregation a navigation attribute can never represent the
    lowest planning level.
    Navigation attributes can not be used in the promotion planning, in
    other words an 'assign object' is not possible for navigation attributes.
    Basic characteristics:
    ===========================================================
    In comparison with navigation attributes, the exclusive use of basic
    characteristics improves the performance.
    It is possible to realign the planning objects, but this is more
    complicated.
    Basic characteristics can be used during the definition of aggregates.
    Both navigation attributes and basic characteristics can be used during the
    data extraction.
    It is therefore not possible to give a clear-cut recommendation for or
    against navigation attributes.

  • Question on navigational attribute ?

    Hi all ,
    we have turn-off some navigational attributes from 0MATERIAL ,
    my questin is is it necessary to reload the full data or not ?
    or
    is it enough to run the attribute change run ?
    Thanks

    When you turn on Navigation Attributes , the additional fields are included into the X and Y tables and hence especially when you transport these changes to an IOBJ which is very large - you will need to make sure you have enough undo table space etc..
    The same this applies to removing Nav Attributes... the X and Y tables will get rebuilt and if the IOBJ is very big - I would recommend taking additional precautions like monitoring unto tablespaces etc when transporting the same.
    Also as an additional step - run the attribute change run once the transport is done - you need not reload any master data.

  • Navigation attribute issue

    hi all..
    i have problem with navigation attribute :
    there's infoobject 0MATERIAL and navigation attribute ZPROLL
    I have set ZPROLL as navigation attribute of 0MATERIAL in the cube.
    For example data :
    0MATERIAL      ZPROLL    AMOUNT  
    100001                  A                5
    100002                  A                4
    100003                  A                5
    100004                  B                7
    100005                  B                10
    Is there a way to show the data such :
    ZPROLL         Amount
    A                         14
    B                         17
    Is navigation attribute able to be independent in query?
    thanks a lot.

    Hi Jane,
    If you want to use ZPROLL as navigational for 0MATERIAL.
    You have to enable ZPROLL as a navigational, in master data attributes of 0MATERIAL and also in the provider (cube/dso) you have to enable this ZPROLL as navigational.
    Then you can use this ZROLL  independently in query  , you will get output as per the requirement if u remove material from query.
    Thanks,
    Joseph.

  • Data for navigational attributes # Not Assigned

    Hello friends,
    Our report is based on Multiprovider which is based on 5 cubes.
    These five cubes has one particular Characteristics which hasnavigational Attribute .
    We are using the navigational attribute directly under free characteristics Tab in Query.
    We are also using Characteristic in Query - for characateristic data is shown in report.
    In report we are able to see data as # Not Assigned for navigational attributes.
    When we checked data at info object level for that characateristic, correct data is shown for that navigation attributes.
    We have checked following settings
    At characteristic level - Uncheck Attributes only
    At cube level all navigational attributes are checked
    In Multi provider identification table - This navigational attribute is checked for all five cubes
    In Multi provider Navigational Attributes Tab - This naviagtional attributes is checked
    Activation of Master data was done once again
    we are not getting any other ideas, can any one please suggest us where the problem is?
    Thanks
    Tony.

    Hi Tony
    I have  the exact same problem. Did you find out what the problem was?
    KR Nete
    Edited by: Nete Grøn Jacobsen on Jul 14, 2008 1:51 PM
    I solved my problem
    1. Activate the navigation attribute(s) on the underlying basiscube, from which the query displays data
    2. Choose the navigation attribute(s) for all relevant basiscubes (multicube -> Change -> Button Identification)
    See also:
    KR Nete

  • Navigational Attribute and Hierarchy

    Hi All,
    We are loading customer master from DB Connect to infoobject "ZCUSTID". Now Company type description (ZCMPINDS) is Navigational Attribute of ZCUSTID. And we are loading flat file hierarchy for ZCMPINDS with two external characteristics (ZMKTSEG and ZINDSEG).
    We have created test query and we maintained necessary setting for Hierarchy but we are not able to drill down to hierarchy for ZCUSTID. Mainly we are not able to see ZINDSEG and ZMKTSEG in report.
    Kindly suggest some solution.
    Regards,
    Sohil Shah.

    Hi Sohil,
    In Query designer : right click on ZCUSTID, there you have to select attributes of  ZCUSTID ,find ZINDSEG and ZMKTSEG  select them .
    Hope it heps.......
    Thanks
    chandra sekhar

  • Hierarchy level for Site hierarchy idoen't load in BI

    Hi gurus,
    I have created a new hierarchy level for Site hierarchy in transaction CL01 in R/3. But this level is not load in BI.
    Site hierarchy and other levels load right, but no the new one.
    Do you now anything to resolve my issue?
    Any feedback will be really appreciated.
    Thanks

    Hi,
    I think,you have to follow the old concept only.
    Gana.

Maybe you are looking for

  • How to implement Oracle user/role security with Access front end?

    Hi, We have successfully migrated our Access database tables to Oracle 10g using SQL developer. We've recreated all the users and roles(i.e., access groups) in Oracle and granted rights to tables. In the Access front end database, in the Database win

  • Can I use a Time Capsule on a hard wired iMac and get wireless to other devices?

    I have a 6 year old iMac that does not have an airport extreme card.  I have it connected to a cable modem ARRIS model TM502G which is also the VOIP for my telephone.  My question is, if I buy a Time Capsule, will I be able to have wi-fi for other de

  • Adding a second Hard Drive for /var and /opt

    I need some help... I have an Ultra 60 with 1 36 Gig drive, Solaris 10 with Java DeskTop. I want to add a 9 Gig drive to extend /var and /opt. Below is the data on the disk (format). My question is: How do I set this disk up so the /var and the /opt

  • Correct way to export uncompressed to get a product aired on TV

    Hello all, just finished editing a 50 minute doc that will be aired on Greek TV I edited with most of my footage beeing  DV-pal 16:9 so I edited on a sequence with these kind of settings. I exported a "current settings" version and took it to an AVID

  • Shared Services Security Classes

    Hello, I wanted to know what the real value of having Security classes set up? I understand that having Security Classes on Shared Services is not mandatory. Under which circumstances should you use Security Classes and as I am involved in setting up