Class Extraction In A Hierarchy with Aggregation

Hi All,
I have a situation in which i use a class extraction method to determine which sub class will be intantiated in an inheritance hierarchy in which the root is an aggregate of some other object. (ie the root and its sub class's descriptors are aggregate descriptors). Because a class indicator will not work for me due to multiple classes corresponding to one indicator type, i went for the class extraction method option.
The problem i am experiencing is that, when i try to map the DB fields of the source object's table to the properties of the aggregate or target object, toplink automatically provides an entry for the class indicator type under the Fields tab prompting me for a class indicator DB column which i do not have or better do not want to provide because i am using a class extractor method and not a class indicator. The only column i can provide here is already used and i cannot have 2 writable mappings to one field.
I would appreciate any help from the forum.
Thanks.

Hi All,
I have a situation in which i use a class extraction method to determine which sub class will be intantiated in an inheritance hierarchy in which the root is an aggregate of some other object. (ie the root and its sub class's descriptors are aggregate descriptors). Because a class indicator will not work for me due to multiple classes corresponding to one indicator type, i went for the class extraction method option.
The problem i am experiencing is that, when i try to map the DB fields of the source object's table to the properties of the aggregate or target object, toplink automatically provides an entry for the class indicator type under the Fields tab prompting me for a class indicator DB column which i do not have or better do not want to provide because i am using a class extractor method and not a class indicator. The only column i can provide here is already used and i cannot have 2 writable mappings to one field.
I would appreciate any help from the forum.
Thanks.

Similar Messages

  • ALV as Hierarchy with aggregation

    Hi
    I have 5 columns: H1, H2, H3, SUM1, SUM2
    For columns SUM1, SUM2:
    lo_field = lo_value->if_salv_wd_field_settings~get_field( <fs_col>-id ).
    lo_field->if_salv_wd_aggr~create_aggr_rule( ).
    lo_aggr_rule = lo_field->if_salv_wd_aggr~get_aggr_rule(  ).
    lo_aggr_rule->set_aggregation_type( if_salv_wd_c_aggregation=>aggrtype_total ).
    For columns H1, H2, H3:
    <fs_col>-r_column->if_salv_wd_column_hierarchy~set_hierarchy_column( value = abap_true ).
    If i create sort rule for H1,H2,H3 hierarchy automatic sort is broken.
    How i can create aggregation on Hierarchy ALV?

    hi arjun,
    it still doesn't work. when i debug it, the system sets the column hierarchy "false"...
    the code is like this now:
      DATA:
            l_ref_cmp_usage TYPE REF TO if_wd_component_usage,
            l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table,
            l_value TYPE REF TO cl_salv_wd_config_table.
      l_ref_cmp_usage = wd_this->wd_cpuse_salv( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      l_ref_interfacecontroller = wd_this->wd_cpifc_salv( ).
      l_value = l_ref_interfacecontroller->get_model( ).
    *  cl_salv_wd_model_table_util=>if_salv_wd_table_util_stdfuncs~set_all(
    *    r_model = l_value ).
      l_value->if_salv_wd_std_functions~set_hierarchy_allowed( abap_true ).
      l_value->if_salv_wd_table_settings~set_display_type(
      if_salv_wd_c_table_settings=>display_type_hierarchy ).
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      lr_column = l_value->if_salv_wd_column_settings~get_column( 'CNOID' ).
      lr_column->if_salv_wd_column_hierarchy~set_hierarchy_column( abap_true ).
      lr_column = l_value->if_salv_wd_column_settings~get_column( 'STOID' ).
      lr_column->if_salv_wd_column_hierarchy~set_hierarchy_column( abap_true ).
      l_value->if_salv_wd_table_hierarchy~set_last_hier_column_as_leaf( abap_true ).

  • Creating & Extracting R3 Hierarchy with MCK1

    Hello Expert,
    I need some advice & How tos on creating a General hierarchy with MCK1 and extracting those into BW.
    Is there any other better way to create General hierarhy in R3 and extracting into BW
    Thank you
    Arun

    Hi,
    I have the following need on Hierarchy purpose
    In ECC - transactio OVSV - a product hierarchy is available
    Question : How can we extract this product hierarchy into BI ?
    Following Extractors required a Hierarchies: Name of the hierarchy to extractor the hierarchy.
    0MATERIAL_LGEN_HIER               Material number
    0MATERIAL_LKLS_HIER               Material number
    0MATERIAL_LPRH_HIER               Material number
    0PROD_HIER_LPRH_HIER              Material number
    How can I link the OVSV  product hierarchy to a Hierarchies: Name of the hierarchy - in order to be able to extract it into BI ?

  • Hierarchy with External chars, how the external char automatically derives

    Hi All,
    We have Profit Center hierarchy. It has 'Profit Center Group' as a external char. We have account also in the aggregation level.
    The hierarchy is on Profit Center with Profit Center Group as the parent nodes to the profit centers.
    There are multiple hierarchies like legal, and management. We should be able to plan on different hierarchies properply, with Profit Center Group derived / created automatiically as per the hierarchy chosen in the variable.
    The Profit Center and Group Profit Center are not in the rows and the account is. We tried to plan on the the account hierarchically with diaggreation turned on.
    When Data posted, we wanted the Profti Center Group get derived as per the hierarchy chosen in the variable. Right now a blank Group get's posted in the database.
    This worked with the Char Relation of type Hierarchy with Hierarchy value fixed. There is no way, we can define the varialbe hierarchy and also Exit Class is not able to read the source variables.
    How to make this based on hier variable, or if Char Relationship definition on the InfoProvider in the Plan Modeler  not all needed as the relation between Profit Center and Profti Center Group is already in the hierachy chosen in the variable for Profit Center.
    Thanks in advance,
    Best Regards,
    - Shashi

    Hello Shashi,
    derivation can only work, when Profit Center Group is not in the aggregation level. When you have more than one hierarchy on Profit Center (you are using in queries) I suggest that you create one hierarchy on Profit Center with Profit Center Group as foreign characteristics to be used in characteristic relationships. This is then a fixed hierarchy that defines what can be derived from Profit Center for all hierarchies you are using in queries.
    Then you need no exit implementation. In addition, the hierarchy used in the characteristic relationship defines the admissible combinations in the cube. The hierarchies used in the query are only views on the cube data, in fact the foreign characteristics in hierarchies used in queries are treated as text nodes.
    Regards,
    Gregor

  • Extracting Funds Center Hierarchy from R/3 to BW

    Hello Experts,
    The goal is to extract Funds Center hierarchy defined in R/3 table FMHISV, field FISTL (Funds Center) to BW.
    On the BW side we have 0FUNDS_CTR InfoObject setup which is compounded with 0FM_AREA (Financial management area), which is FIKRS field in FMHISV table in R/3).
    I have tried this document -
    http://www.bwexpertonline.com/archive/Volume_03_(2005)/Issue_08_(September)/V3I8A2.cfm
    ad this SAP note - 134975.
    I seem to setup everything that is asked in those 2 documents,  but when I run the load, nothing gets loaded (only the top text node).
    Am I missing any step? Do I have to define a set in R/3 manually, etc. Do i need to mofidy my ABAP code?
    Any help would be aprpeciated, esp step by step guide.
    Thank you

    In the tcode GS03, click on F4 help of set. Now in reference table name/field name enter your field name. If hierarchy is Set hierarchy you will get it in the F4 help list.
    KJ!!!

  • Hierarchy with Intervals and Temporal Join

    Hi,
      I am loading a hierarchy structure (Time dependant and with Temporal Join and Intervals)
    in the flat file structure for hier loading we have leaf to and leaf from fields which means Page of the hierarchy to and page of the hierarchy from.
    can anyone let me know what is the use of these fields, and the values we have to pass for these fields with an example.
    i haven't come across Hier loading with intervals and termporal join.
    can anyone please help me in this?
    Regards,
    p423168.

    Hi,
    BI Process (Loading Hierarchies from Flat file to BI)
    Go to RSA1
    Create info object for customer as zcust_b5 and activate
    Create info object as zcust_b5 and activate it
    Select the info object and double click on it
    Select the hierarchies tab and select the option with hierarchies
    And select Hierarchies not time dependent
    Click external characteristics in hierarchies
    Select your Infoobjects in the list and pass it and activate it
    After activating the objects we will see tables of hierarchies at maintain Hierarchies
    Create an application component
    Create the transfer rules for the info object and activate (for hierarchies, texts, attributes)
    This screen will show the communication structure.
    After creating the data source at info source level the field attributes are shown in above
    Create an excel sheet with required values and save it in CSV file.
    Uploading the Hierarchy Data into BW
    a) Create Info Package for Hierarchy Upload. Select the Hierarchy to be uploaded
    and also the Full Update button as we are uploading the entire Hierarchy.
    b) There are three update methods for uploading the hierarchy.
    Full Update: For Uploading the entire hierarchy structure
    Insert Sub tree: For appending the hierarchy with new nodes.
    Update Sub tree: For modifying the nodes of the hierarchy.
    Create info package and schedule the data loads
    Select the Hierarchy and name it before scheduling
    Schedule and Start the data loads
    After creating the info package of the info object the above screen shows the initial hierarchy maintenance
    Hierarchy is done successfully by extracting data from flat file.
    time dependent :
    a) For making the hierarchy time dependent select the u2018Time-Dependent Hierarchy structureu2019 radio button and activate the info object ZSREP
    b) In the transfer structure there will be 2 more additional fields date from and date to for the time dependent nodes.
    c) Consider that Sales Representative u2018SREP2u2019 was in England up to 31/12/1995 and moved to USA
    d) Flat file structure for the above hierarchy is shown below . It contains two extra columns Date-to and Date-from.
    e) In the info-package Update tab , select Fixed Time interval radio button and give start date as 01/01/1000 and End date as 31/12/9999 so that all nodes are uploaded.
    f) Upload the hierarchy data from flat-file to BW.
    g) Display the loaded hierarchy.
    Regards
    Sudheer
    Edited by: SUDHEER on Dec 30, 2008 12:52 PM

  • Build Hierarchy with ABAP

    Hi there
    trying to build a hiearchy for 0COSTCENTER from scratch via ABAP. Found Class CL_RSSH_HIERARCHY_BASE but as I'm not very experience in OO, I cant find out how to use this for my purpose. Would really appreciate if somebody out there could help me before I get crazy here
    What I want to do is to build up a hierarchy with the Profit Center as a parent and its Costcenters as children (/BI0/MCOSTCENTER has the PROFIT_CTR for each COSTCENTER).
    Thanks
    Gerald

    Hi Cuneyt
    I used the FB also used by the classes:
    CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_UPDATE'
        EXPORTING
          i_s_hiehead         = l_s_hiehead
        IMPORTING
          e_subrc             = g_subrc
        TABLES
          i_t_hiedirt         = l_t_hiedirt
          i_t_hierstruc       = l_t_hierstruc
          i_t_thiernode       = l_t_thiernode
          i_t_nodenames       = l_t_nodenames
        I_T_HIERINTVL       =
          e_t_messages        = l_t_message.
    you can use the FB RSNDI_SHIE_STRUCTURE_GET to get the structure infos for any given hierarchy.
    good luck
    Gerald

  • Sort  Hierarchy with Java API

    Hi Mdm guru,
    I have to sort the getHierarchy results.
    In the MDM Data Manager is possible "Sort Entire Branch" (in the context menu).
    My question: there is a method in the Java Api for this funtionality?
    Best Regards

    Hi Rocco,
    It depends upon <i>which</i> API you are using.  The API <b>mdm4j</b> has a function
    CatalogData.GetChildren()
    which has a parameter for defining the sort field.  So you can create your own recursive function which drills down through a hierarchy, creating each level sorted.
    The class <b>SortDefinition</b> belongs to the "new" API <b>MDMJavaAPI</b>, but at present I do not see a way of gettting a sorted hierarchy with this API.
    Walter

  • Extract data from Essbase with HAL to a flat file

    Hello,
    I would like to extract data from Essbase with HAL.
    I use the essbase Adapter with the "Extract Data" Method.
    All is working when I use only the essbase Adaptater and configure it.
    But I want to have a variable on my Years dimension.
    I have to fill "Years member port" and "Years Criteria port" of my essbase Adapter with variable.
    I have a "v_year" and "v_year_criteria" variable. I fill "v_year" with "FY05" but I don't know how fill my "v_year_criteria" variable.
    Thanks a lor for answer.

    If you are in 9.3x, I would recommend using the DATAEXPORT calc script function. You just FIX on what you want to export (including substitution variables), and then fill in some parameters and it writes a file. Look in the DBAG.

  • BO Webi report hierarchy with measure values showing more(almost double value) compare to BW Bex report

    Hi,
    In our BO Webi report hierarchy with measure values showing more(almost double value) compare to BW Bex report. Can any one please help on this.
    Is it BW problem or BO problem?
    I checked in some other threads but it's not given solution.
    Thanks,
    Manjunatha

    Hi,
    Is it BW problem or BO problem? : BO
    is it causing problem with hierarchly data only ?  without hierarchies data is matching or not?
    Post same in SAP BusinessObjects Web Intelligence  .
    Thanks.

  • How to create a hierarchy with postable notes

    Hi all,
    Please take e look at the following case:
    In BPS we want to make a planning on groups of FI-GL-accounts. For the grouping of the GL-account we make use of the Financial Statement functionality in R/3. With a BC DataSource (0GL_ACCOUNT_T011_HIER) this Financial Statement is imported in BW as a hierarchy on InfoObject 0GL_ACCOUNT. As said, we do not want to make a planning on the GL-account but on the groups, i.e. the nodes of the hierarchy. We think in this case we need a BW hierarchy with postable nodes and make the planning on the inner nodes of the hierarchy.
    So far so good, but when we execute the Manual planning  the system responds with “Hierarchy xxxx does not contain any postable nodes” Anyone has a clue? Did we forget something?
    Thx,
    Henk van der Haar.

    Hi Henk,
    For the hierarchy with postable nodes the nodes also have to be captured as characteristic values firstly. For more details refer to the document link below
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how to plan in bps using hierarchies with several characteristics.pdf
    Some useful threads also on the same.
    Hierarchy with Postable nodes
    Bbw hierarchy with postable nodes Disabled
    Hope it helps.
    Cheers
    Anurag

  • Exit button not working in exe file made with Aggregator

    Hi,
    I created an .exe file using Aggregator in full screen mode but the exit button on the skin doesn't work. When I click the exit button, the dislay hiccups (wobbles a bit) but the file keeps playing and doesn't close. This is especially problematic since this occurs in full screen. The only way to exit is by hitting the Escape key on the keyboard. The exit button works fine in individual .exe files of the modules; it's just in the aggregated .exe file that the exit button doesn't work. Is there anything special I need to do to make the exit button work with Aggregator?

    Hi, this is more J2EE related stuff, SAP came with a solution but is taking ages to get the next page after the "Exit" button is pushed:
    Go to VisualAdnmin >server(n) >Services >Configuration Adapter >
    (Right side Pane) webdynpro >sap.com >tcwddispwda >PropertySheet
    default.
    Edit the property sheet and change the custom value for the property
    "sap.locking.maxWaitInterval" to 200.
    Note 1113811, explains why these kind of errors happen.
    I still waiting for a better solution from SAP.
    Cheers

  • Vendor Hierarchy with Pricing from Info Record

    Hi All,
    We are currently exploring configuration options available to use a 'Vendor Hierarchy' for price determination during Purchase Order processing - R/3 46C
    We also have a specific business requirement that requires our Vendor Hierarchy node prices be maintained in an Info Record (using a 'PB00' type condition type) rather than the 'LH01' and 'LH02' condition types used to maintain price conditions directly in the Vendor Hierarchy.
    Does anyone know if it is possible to combine a Vendor Hierarchy with pricing that is sourced from Info Record rather than the standard 'LH01' and 'LH02' Vendor Hierarchy pricing conditions in the standard system?
    Thanks,
    Ravelle
    References:
    <a href="http://help.sap.com/saphelp_46c/helpdata/en/12/08464f470311d1894a0000e8323352/frameset.htm">Vendor Hierarchy</a>
    <a href="http://help.sap.com/saphelp_46c/helpdata/en/12/084676470311d1894a0000e8323352/content.htm">Vendor Hierarchy - Purchase Order Pricing</a>

    A solution has not been identified...query closed.

  • How to built a hierarchy with flat file?

    Hi Experts,
    for a better representation of the report, i need to built a hierarchy with flat file.
    The Data load is via Flat file.
    Do you have some documentation about that?
    Thanks
    Cheers
    Gilo

    Hi Gilo,
       Check these docs...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb">How to… Download a Hierarchy to a Flat File</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm">Uploading Hierarchies from Flat Files</a>
    <a href="http://sapbwneelam.blogspot.com">More Docs...</a>
    Hope it Helps
    Srini

  • Problem in hierarchy with sap table

    One problem regarding tree hierarchy  with the sap bi table example zmaterial  which is  having  3 fields which should show as node and there data as sub node suggest me , how to do it I have look around the example but there are of simple node with string concept none of them is of sap table

    Hi Sarfaraz,
    Go throgh these example programs.
    WDR_TEST_TREE
    WDT_TREE_TABLE_BY_KEY
    and also go throgh this blog.
    Dynamic Tree in ABAP WebDynpro
    also check this wiki
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/organization%2bhierarchy%2bin%2btree%2bstructure%2bas%2bf4%2bhelp
    Edited by: suman kumar chinnam on Oct 17, 2008 10:04 AM

Maybe you are looking for