Complex Hierarchy

Hi All,
We are trying to build a complex item hierarchy that
spans multiple intersection tables.
Example: A -> AB <- B -> BD <- D... The intersection
tables contain no items per se but only id codes. We
want to get the items at A, B and D but there are no
direct joins to these tables. Do we need to build a
custom folder to make these joins for us and bring
in the hierarchy from one folder? Is there another
or easier way?
Thanks,
-Gus

Hi Gus
Complex folders would work as would SQL Views. Personally I would use a SQL view as you have the ability to a) use it in other applications, and b) have the ability to use SQL tools to optimize the code.
Hope this helps
Regards
Michael

Similar Messages

  • Complex hierarchy chain.

    Hi All,
    This is reference to the thread Hierarchy order number. I am using Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production. Frank helped to obtain the hierrachy relationship between the parts.
    During QA testing they found the below scenario and it is called 'Complex hierrarchy order'.
    Here is the sample data creation.
    CREATE TABLE BL_SAMPLE_SS_DATA
    AS
    SELECT 'A' AS OLD_PART_NO,
           '2' AS NEW_PART_NO
      FROM DUAL
    UNION
    SELECT 'B' AS OLD_PART_NO,
           '1' AS NEW_PART_NO
      FROM DUAL
    UNION
    SELECT 'B' AS OLD_PART_NO,
           '2' AS NEW_PART_NO
      FROM DUAL
    UNION
    SELECT 'C' AS OLD_PART_NO,
           '2' AS NEW_PART_NO
      FROM DUAL
    UNION
    SELECT '2' AS OLD_PART_NO,
           'D' AS NEW_PART_NO
      FROM DUAL
    UNION
    SELECT '2' AS OLD_PART_NO,
           'E' AS NEW_PART_NO
      FROM DUAL
    UNION
    SELECT 'D' AS OLD_PART_NO,
           '3' AS NEW_PART_NO
      FROM DUAL
    UNION
    SELECT 'E' AS OLD_PART_NO,
           '4' AS NEW_PART_NO
      FROM DUAL
    UNION
    SELECT '4' AS OLD_PART_NO,
           '5' AS NEW_PART_NO
      FROM DUAL
    UNION
    SELECT '5' AS OLD_PART_NO,
           '6' AS NEW_PART_NO
      FROM DUAL
    UNION
    SELECT '5' AS OLD_PART_NO,
           '7' AS NEW_PART_NO
      FROM DUAL;
    Explanation about the above sample data:
    1. The part 'A' was first manufactured later the part A is replaced by part number 2.
    2. The part B is replaced by two part number 1 and 2. ( The customer can pick either 1 or 2)
        it means Part B is replaced by two parts 1 and 2. for example if Part B is a car front mirror passenger wiper with 14 inch size, after sometime Ford released the same car front mirror passnger wiper in 2 sizes one is part 1 (8 inch) and next one is part 2 (14 inch). we will show this description of part in part details page. so we should show both like part B is replaced with 1 and 2 in chain. Based on customer need, they will pick one.
    3. Part C is replaced by 2.
    4. Part number 2 is replaced by two parts D and E (same as #2).
    5. Part D is replaced by 3 and Part E is replaced by 4.
    6. part 4 is replaced by 5 and Part 5 is replaced by 6 and 7.
    so the hierrachy would be like below
    A -> 2
    B -> 1 and 2
    C -> 2
    2 -> D and E
    D -> 3
    E -> 4
    4 -> 5
    5 -> 6 and 7
    so the output should contain data like below for each present in the chain. Below output table contain chain for random two parts like this i need to show for all the parts present in that chain.
    PARTNO
    OLD PART NO
    NEW PART NO
    B
    A
    2
    B
    B
    1
    B
    B
    2
    B
    C
    2
    B
    2
    D
    B
    2
    E
    B
    D
    3
    B
    E
    4
    B
    4
    5
    B
    5
    6
    B
    5
    7
    5
    A
    2
    5
    B
    1
    5
    B
    2
    5
    C
    2
    5
    2
    D
    5
    2
    E
    5
    D
    3
    5
    E
    4
    5
    4
    5
    5
    5
    6
    5
    5
    7
    Thanks All
    Anyone please guide me to do this. Thanks All

    Really sorry about not mention in initial post. The SEQ_NO should be assigned based on hierarchy order of the parts. For example,  the hierarchy of above sample data like below.
    OLD PART
      NO
    NEW PART NO
    A
    2
    B
    1
    B
    2
    C
    2
    2
    D
    2
    E
    D
    3
    E
    4
    4
    5
    5
    6
    5
    7
    So regardless of the PART_NO we should show in the table in above order. The SEQ_NO will be used when application render the data from table like order by seq number. so that the hierarchy wont change.
    for an example and keep it short i will take 2 part numbers B and 5. The data in target table (PARTS) will be like below
    PARTNO
    OLD PART NO
    NEW PART NO
    SEQ_NO
    B
    A
    2
    1
    B
    B
    1
    2
    B
    B
    2
    3
    B
    C
    2
    4
    B
    2
    D
    5
    B
    2
    E
    6
    B
    D
    3
    7
    B
    E
    4
    8
    B
    4
    5
    9
    B
    5
    6
    10
    B
    5
    7
    11
    5
    A
    2
    51
    5
    B
    1
    52
    5
    B
    2
    53
    5
    C
    2
    54
    5
    2
    D
    55
    5
    2
    E
    56
    5
    D
    3
    57
    5
    E
    4
    58
    5
    4
    5
    59
    5
    5
    6
    60
    5
    5
    7
    61
    WHen application does "SELECT * FROM PARTS WHERE PART_NO = 5 ORDER BY SEQ_NO" .The result will show as per the order in case if the order in the target table is wrong. Hope this helps.

  • Complex Hierarchial structure

    suppose i've the table as follows
    emp
    manager empno     empname
    1     1      david
    1     2     brown
    2     3     bruce
    3     4     tommy
    2     5     jimmy
    2     6     bruno
    5     7     grave
    8 8     black
    8 9     jones
    9 10     nick
    if i want the hierarchy for 1 i need the output as follows.
    2
    3
    4
    5
    6
    7
    if i want the hierarchy for 2 i need the output as follows.
    3
    4
    5
    6
    7
    can u please tell me how to achieve this using connect by

    If you really want hierarchy, you can't get
    2
    3
    4
    5
    6
    7
    because employee ID = 7 is a child of employee ID = 5.
    Hierarchy output can be:
    SQL> with t as (
      2  select 1 manager, 1 empno, 'david' empname from dual
      3  union all select 1, 2, 'brown' from dual
      4  union all select 2, 3 ,'bruce' from dual
      5  union all select 3, 4 ,'tommy' from dual
      6  union all select 2, 5 ,'jimmy' from dual
      7  union all select 2, 6 ,'bruno' from dual
      8  union all select 5, 7 ,'grave' from dual
      9  union all select 8, 8 ,'black' from dual
    10  union all select 8, 9 ,'jones' from dual
    11  union all select 9, 10, 'nick' from dual
    12  )
    13  select empno, empname, level from t
    14  start with manager = 1 and empno != 1
    15  connect by prior empno = manager
    16  /
         EMPNO EMPNA      LEVEL
             2 brown          1
             3 bruce          2
             4 tommy          3
             5 jimmy          2
             7 grave          3
             6 bruno          2
    6 rows selected.

  • Query 4 joined tables with internal joins to represent a complex hierarchy!

    I've got to refine/replace a query (Oracle 9i) that
    currently joins rows from four tables in a hierarchical
    fashion that I use to produce a listing like this:
    agency abc 1
    ....division def 1.1
    ........service ghi 1.1.1
    ........service jkl 1.1.2
    ............faq mno 1.1.2.1
    ............faq pqr 1.1.2.2
    ........service stu 1.1.3
    ....division vwx 1.2
    ........service yyy 1.2.1
    ............faq zzz 1.2.1.1
    The change involves allowing for unlimited levels of
    nested child divisions to produce a listing like this:
    agency abc 1
    ....division def 1.1
    ........service ghi 1.1.1
    ........service jkl 1.1.2
    ............faq mno 1.1.2.1
    ............faq pqr 1.1.2.2
    ........service stu 1.1.3
    ....division vwx 1.2
    ........division xxx 1.2.1
    ............division aaa 1.2.1.1
    ............division bbb 1.2.1.2
    ................service aaa 1.2.1.2.1
    ....................faq fff 1.2.1.2.1.1
    ....................faq ggg 1.2.1.2.1.2
    ........service yyy 1.2.1
    ............faq zzz 1.2.1.1
    Notice the insertion of three nested divisions under
    division 1.2 with services and faqs under those. The
    order of names throughout is alphabetic within a nesting
    level.
    Here's the SQL I currently use, without nested divisions
    (it contains extra info that I use to control what and
    how names are displayed):
    SELECT
    agency.agency_id AGENCY_ID,
    agency.agency_type_id AGENCY_TYPE_ID,
    agency.name AGENCY_NAME,
    agency.acronym AGENCY_ACRONYM,
    agency.expiration_date AGENCY_EXP,
    agency.post_count AGENCY_POST,
    agency.stat AGENCY_STAT,
    agency_type.agency_type AGENCY_TYPE,
    division.division_id DIV_ID,
    division.name DIV_NAME,
    division.transfer_number DIV_TRANS_NUM,
    division.expiration_date DIV_EXP,
    division.post_count DIV_POST,
    division.stat DIV_STAT,
    service.service_id SVC_ID,
    service.name SVC_NAME,
    service.taxonomy SVC_TAX,
    service.keywords SVC_KEYWORDS,
    service.action_type SVC_ACTION_TYPE,
    service.sr_form_name SVC_SR_FORM,
    service.expiration_date SVC_EXP,
    service.post_count SVC_POST,
    service.stat SVC_STAT,
    faq.faq_id FAQ_ID,
    faq.name FAQ_NAME,
    faq.expiration_date FAQ_EXP,
    faq.post_count FAQ_POST,
    faq.stat FAQ_STAT
    FROM
    agency,
    agency_type,
    division left join service on
    division.division_id=service.division_id left join
    faq on service.service_id=faq.service_id
    WHERE (
    (agency_type.agency_type_id = agency.agency_type_id)
    AND (agency.agency_id = division.agency_id)
    AND (agency.agency_id = :agency_id )
    It's very fast -- I can retrieve and display 5,000 rows
    in seconds using Perl DBI and CGI -- and very easy to use
    to produce the hierarchical listing of items from the
    four tables. It is also very straightforward since I was
    able to generate the SQL using the SQL modeler in TOAD
    (I'm not the strongest SQL developer so I resort to
    tools).
    I need to get jump-started in the right direction to
    determine what I need to add to my division table
    (div_parent_id?), if I need a div_parent_child table to
    define the relationships (rows with parent_id & child_id
    pairs), and how to change or rewrite the SQL query. The
    CGI form that will be used to define the relationships
    will ask users to define children of a given division. I
    envision presenting a list of divisions with null
    parent_division_id columns for users to select from then
    updating selected rows for selected divsions.
    Thanks in advance for any help/guidance!
    -Gene

    INLINE VIEWS!
    select whatever_you_want
    from (
    SELECT FOLDER_ID, PARENT_FOLDER_ID, FOLDER_NAME
    FROM FOLDERS
    START WITH PARENT_FOLDER_ID = 0 CONNECT BY PARENT_FOLDER_ID = PRIOR FOLDER_ID
    ) tree, FILES
    where tree.folder_id = files.folder_id -- or something like that
    always try to keep the CONNECT BY limited to ONE AND ONLY table. then use that query in a subquery, a WITH clause, an inline view or something. do not try to JOIN or UNION with a CONNECT BY. it won't work the way you think it will, and even it returns the expected results, it will perform terribly.
    * your mileage may vary
    Message was edited by:
    shoblock
    added exclamation marks to show my excitement!!!!

  • Unable to create position hierarchy in organization model

    I was unable to create position hierarchy in organizational hierarchy. I want to maintain position hierarchy within an organization. But SAP CRM is not allowing that. I was able to create organizational hierarchy. Please let me know, how can I maintain the position hierarchy within the same organization?
    --hari

    Hi hari,
    it is only possible to have a hierarchy with two levels on position level. Therefore you create two positions below your organization (tx ppoma_crm). At one of these positions you set the flag "Head of own organizational unit" at the Basic data tab of the position (To see this, you need to display the Details of the positions at the bottom of the screen). Now you can assign a business partner (or more)  to this position which is (are)  the Head of this unit.
    If you need a more complex hierarchy you have to use organizations to show this.
    Hope it helps!
    Kind regards
    Christian

  • How to convert org hierarchy XML to CSV/Excel format using PI/XI

    Hi All,
    I am working with SAP PI/XI for the first time and need some help file conversion of complex hierarchy XML to CSV file using PI. I have done plenty of research on SDN and could find much related to what I want to do.
    Here is the example of how my input XML would look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <PartyMaster type="OrgHierarchy" name="Compass Group Owned">
    <PartyMasterHierarchy>
    <Hierarchy level="3" nodeName="Bon Appetit Sector" type="Sector" ID="A00000" refID="A00000">
    <Hierarchy level="4" nodeName="BA Division" type="Division" ID="AB0000" refID="AB0000" >
    <Hierarchy level="5" nodeName="BA East Coast Region" type="Region" ID="ABE000" refID="ABE000">
    <Hierarchy level="6" nodeName="Engstrom, John RVP" type="District" ID="ABE01" refID="ABE01" >
    </Hierarchy>
    </Hierarchy>
    </Hierarchy>
    </Hierarchy>
    <Hierarchy level="3" nodeName="Levy Sector" type="Sector" ID="K00000" refID="K00000".
    <Hierarchy level="4" nodeName="Levy Sector Division" type="Division" ID="K90000" refID="K90000">
    <Hierarchy level="5" nodeName="Levy Sector Region" type="Region" ID="K99000" refID="K99000">
    <Hierarchy level="6" nodeName="TBA Total" type="District" ID="K9901" refID="K9901"> </Hierarchy>
    </Hierarchy>
    </Hierarchy>
    </Hierarchy>
    </PartyMasterHierarchy>
    </PartyMaster>
    I would like to get CSV output in the format below
    DISPLAY_NAME, DOCUMENT_DESCRIPTION, PARENT, EXTERNAL_ID, ORG_UNIT_TYPE
    Bon Appetit Sector, Bon Appetit Sector,constant value, A00000, constant value
    Levy Sector, Levy Sector, constant value, K00000, constant value
    BA Division, BA Division, A00000, AB0000, constant value
    Levy Sector Division, Levy Sector Division, K00000, K90000, constant value
    BA East Coast Region, BA East Coast Region, AB0000, ABE000, constant value
    Levy Sector Region, Levy Sector Region, K90000, K99000, constant value
    Engstrom John RVP, Engstrom John RVP, ABE000, ABE01, constant value
    TBA Total ,TBA Total ,K99000, K9901, constant value
    1) How do I go about this? I think I have to configure an adapter but which adapter would give me the desired result?
    2) How do I tell PI when to pick the file from and where to place it after conversion? Could this be done in adapter configuration?
    Any help will be greatly appreciated.
    Thanks.
    --Mithun

    >>> 1) How do I go about this? I think I have to configure an adapter but which adapter would give me the desired result?
    Use File adapter at the sender side to pick up the xml and use file adapter at the receiver side (message protocol file content conversion) to convert xml format to csv.
    Basically you have to configure in the file adapter (FCC) on the receiver side to get desired csv structure from XML.
    >>> 2) How do I tell PI when to pick the file from and where to place it after conversion? Could this be done in adapter configuration?
    Configure sender file adapter to pick up the file from the specified directory. Configure receiver file (fcc adapter) to drop the csv file after conversion.
    For sender adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    For receiver adapter in our case FCC (FILE content Conversion) follow the link
    http://help.sap.com/saphelp_NW04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Hope answered your question.
    Mapping area: simple suggestion. Keep input and output message same structure and do one to one mapping.  In the receiver fcc adapter configure for csv structure following instruction given in the above second link
    Note: FCC adapter does not support nested structure more than 2. So in your case you can achieve using conversion agent tool. Otherwise you might have to achieve through some graphical mapping.

  • How to convert hierarchy XML to CSV/Excel format using PI/XI

    posted in PI forum but not many replies, please bear with me as I am in crunch time*
    Hi All,
    I am working with SAP PI/XI for the first time and need some help file conversion of complex hierarchy XML to CSV file using PI. I have done plenty of research on SDN and could find much related to what I want to do.
    Here is the example of how my input XML would look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <PartyMaster type="OrgHierarchy" name="Compass Group Owned">
    <PartyMasterHierarchy>
    <Hierarchy level="3" nodeName="Bon Appetit Sector" type="Sector" ID="A00000" refID="A00000">
    <Hierarchy level="4" nodeName="BA Division" type="Division" ID="AB0000" refID="AB0000" >
    <Hierarchy level="5" nodeName="BA East Coast Region" type="Region" ID="ABE000" refID="ABE000">
    <Hierarchy level="6" nodeName="Engstrom, John RVP" type="District" ID="ABE01" refID="ABE01" >
    </Hierarchy>
    </Hierarchy>
    </Hierarchy>
    </Hierarchy>
    <Hierarchy level="3" nodeName="Levy Sector" type="Sector" ID="K00000" refID="K00000".
    <Hierarchy level="4" nodeName="Levy Sector Division" type="Division" ID="K90000" refID="K90000">
    <Hierarchy level="5" nodeName="Levy Sector Region" type="Region" ID="K99000" refID="K99000">
    <Hierarchy level="6" nodeName="TBA Total" type="District" ID="K9901" refID="K9901"> </Hierarchy>
    </Hierarchy>
    </Hierarchy>
    </Hierarchy>
    </PartyMasterHierarchy>
    </PartyMaster>
    I would like to get CSV output in the format below
    DISPLAY_NAME, DOCUMENT_DESCRIPTION, PARENT, EXTERNAL_ID, ORG_UNIT_TYPE
    Bon Appetit Sector, Bon Appetit Sector,constant value, A00000, constant value
    Levy Sector, Levy Sector, constant value, K00000, constant value
    BA Division, BA Division, A00000, AB0000, constant value
    Levy Sector Division, Levy Sector Division, K00000, K90000, constant value
    BA East Coast Region, BA East Coast Region, AB0000, ABE000, constant value
    Levy Sector Region, Levy Sector Region, K90000, K99000, constant value
    Engstrom John RVP, Engstrom John RVP, ABE000, ABE01, constant value
    TBA Total ,TBA Total ,K99000, K9901, constant value
    1) How do I go about this? I think I have to configure an adapter but which adapter would give me the desired result?
    2) How do I tell PI when to pick the file from and where to place it after conversion? Could this be done in adapter configuration?
    Any help will be greatly appreciated.
    Thanks.
    --Mithun

    Hi Mithun,
    You might try this step below :
    1. As for xsd schema fo the xml or create xsd schema base on the sample xml file using tools like xmlspy or others free tools.
    2. import you xsd schema as outbound Data type
    3. apply mapping from source to target (csv).
    Configuration
    Sender file adapter (without content conversion)
    Receiver file adapter (with content conversion).
    so the sender adapter will be monitoring inbound directory and write the result to another directory.
    Thank You and Best Regards
    Fernand.

  • Upload/ download Work Center Hierarchy

    Hello All,
    I need your help with this one. Therefore thanks in Advace:
    Is there a way to download and upload work center hierarchies?
    The idea ist to download a complex hierarchy to a file and then upload it to another system/ client.
    Thanx
    Raf

    Hi Daniele,
    I just tried  the way you suggested:
    - RCRAPDX1 downloaded a txt to presentation server with data.
    - changed only the plant in file.
    - run RCRAPDX2
    unfortunately result is that ths system try to maintain the work centers within the file,
    (which are already maintained).
    The hierarchy structure won't be maintained.
    So what I look for is a manner to transport the complete hierarchy structure...
    regards
    raf

  • Serialization of complex hierarchies using PortableObject or PofSerializer

    Hi, I am starting with Coherence and I am having a hard time trying to introduce POF serialization in a complex hierarchy of classes... classes containing another classes that extend abstract classes that extend another abstract classes... All of them add up to 500 classes... I tried using PortableObject and Cohclipse to generate automatically the readExternal and writeExternal methods but I noticed that I missed that data of the attributes contained in the abstract classes. I thought that it might be because I repeated in the subclass the indexes for the attributes of the abstract class but I changed it and it is still not working. Besides I have problems with Enums...
    I just wanted to know which would be the best approach to this kind of task because I am trying to look for posible solutions in google but all I can find are just very simple examples... If you could give me any advise I would really appretiate it. Thanks

    In Coherence 3.7 you can use annotations for por serialization, Coherence introduced two annotation: Portable and PortableProperty, that could make it for you easy to add por serialization without writing read/write external methods. Also it can automatically set the indexes so you avoid messing witht hem.
    Thanks a lot,
    Carlos Curotto.

  • How to convert hierarchy XML to CSV format using PI/XI

    Hi All,
         I am working with SAP PI/XI for the first time and need some help file conversion of complex hierarchy XML to CSV file using PI. I have done plenty of research on SDN and could find much related to what I want to do.
    Here is the example of how my input XML would look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <PartyMaster type="OrgHierarchy" name="Compass Group Owned">
        <PartyMasterHierarchy>
             <Hierarchy level="3" nodeName="Bon Appetit Sector" type="Sector" ID="A00000" refID="A00000">     
                   <Hierarchy level="4" nodeName="BA Division" type="Division" ID="AB0000" refID="AB0000" >               <Hierarchy level="5" nodeName="BA East Coast Region" type="Region" ID="ABE000" refID="ABE000">
                             <Hierarchy level="6" nodeName="Engstrom, John RVP" type="District" ID="ABE01" refID="ABE01" >
                             </Hierarchy>
                           </Hierarchy>
         </Hierarchy>
                    </Hierarchy>
                    <Hierarchy level="3" nodeName="Levy Sector" type="Sector" ID="K00000" refID="K00000".               <Hierarchy level="4" nodeName="Levy Sector Division" type="Division" ID="K90000" refID="K90000">              <Hierarchy level="5" nodeName="Levy Sector Region" type="Region" ID="K99000" refID="K99000">                   <Hierarchy level="6" nodeName="TBA Total" type="District" ID="K9901" refID="K9901">                        </Hierarchy>
              </Hierarchy>
         </Hierarchy>
                     </Hierarchy>
            </PartyMasterHierarchy>
    </PartyMaster>
    I would like to get CSV output in the format below
    *DISPLAY_NAME     DOCUMENT_DESCRIPTION      PARENT           EXTERNAL_ID     ORG_UNIT_TYPE*     
    Bon Appetit Sector     Bon Appetit Sector      constant value    A00000                       constant value
    Levy Sector          Levy Sector           constant value    K00000                 constant value
    BA Division          BA Division            A00000                 AB0000                       constant value
    Levy Sector Division         Levy Sector Division       K00000              K90000                       constant value
    BA East Coast Region     BA East Coast Region          AB0000             ABE000                        constant value
    Levy Sector Region     Levy Sector Region       K90000              K99000                        constant value
    Engstrom, John RVP     Engstrom, John RVP        ABE000               ABE01              constant value
    TBA Total                    TBA Total             K99000               K9901             constant value
    1) How do I go about this? I think I have to configure an adapter but which adapter would give me the desired result?
    2) How do I tell PI when to pick the file from and where to place it after conversion? Could this be done in adapter configuration?
    Any help will be greatly appreciated.
    Thanks.
    --Mithun

    Mithun,
    you would get lot of answers if you looking in the PI (process integration forum)... There is something calles File content coversion in XI file adapter (which can convert the xml to csv and viceversa)

  • Java Mapping, XSLT Mapping, ABAP Mapping

    Hi Experts,
                     Could any one explain what is the main features of the following Mapping. How to pick the mapping?
    Java Mapping - When to use and what is the advantage.
    ABAP Mapping - When to use and what is the advantage.
    XSLT Mapping - When to use and what is the advantage.
    Graphical Mapping - When to use and what is the advantage.
    cheers,
    Sunee

    There are 4 types of mapping in XI
    1. Graphical Mapping
    2. XSLT Mapping
    3. JAVA Mapping
    4. ABAP Mapping
    When to use Message mapping
    1 When the logic for your mapping is simple and straight forward, you can use
    Advantages of message mapping
    1)Easy to use.
    2) has GUI drag and drop.
    3) used for simple mapping cases
    4) it does not involve any complex logic
    Disadvantages of message mapping
    1)has limitation in terms of complex hierarchy
    When to use Java mapping
    1) Java mapping are used when graphical mapping cannot help you.
    Advantages of Java Mapping
    1)you can use Java APIs and Classes in it.
    2) file look up or a DB lookup is possible
    3) DOM is easier to use with lots of classes to help you create nodes and elements.
    Disadvantages of Java mapping
    1)SAX parser is not easy to develop
    2)DOM parser is intensive
    3) Java knowledge is required
    4) bit complexer
    XSLT Mapping - When to use
    1)When the required output is other than XML like Text, Html or XHTML (html displayed as XML )
    2)When default namespace coming from graphical mapping is not required or is to be changed as per requirements.
    3)When data is to be filtered based on certain fields (considering File as source)
    4)When data is to be sorted based on certain field (considering File as source)
    5)When data is to be grouped based on certain field (considering File as source)
    Advantages of using XSLT mapping
    1)XSLT program itself defines its own target structure.
    2)XSLT programs can be imported into SAP XI. Message mapping step can be avoided. One can directly go for interface mapping once message interfaces are created and mapping is imported.
    3)XSLT provides use of number of standard XPath functions that can replaces graphical mapping involving user defined java functions easily.
    4)File content conversion at receiver side can be avoided in case of text or html output.
    5)Multiple occurrences of node within tree (source XML) can be handled easily.
    6)XSLT can be used in combination with graphical mapping.
    7)Multi-mapping is also possible using xslt.
    8)XSLT can be used with ABAP and JAVA Extensions
    Disadvantages of using XSLT mapping
    1)Resultant XML payload can not be viewed in SXMB_MONI if not in XML format (for service packs < SP14).
    2)Interface mapping testing does not show proper error description. So errors in XSLT programs are difficult to trace in XI but can be easily identified outside XI using browser.
    3)XSLT mapping requires more memory than mapping classes generated in Java.
    4)XSLT program become lengthier as source structure fields grows in numbers.
    5)XSLT program sometimes become complex to meet desired functionality.
    6)Some XSL functions are dependent on version of browser.
    Advantages of Abap Mapping
    1) A person comfortable with OOABAP can go for ABAP mapping instead.
    Disadvantages of Abap Mapping
    1) Abap knowledge is required
    2) bit compexer
    For further info on each of the mapping, refer to these links,
    Graphical Mapping,
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    XSLT Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    http://www.w3.org/TR/xslt20/
    Java Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    DOM parser API
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
    Check this blog on Mapping:
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    Also, check this thread for more info,
    Different types of Mapping in XI

  • OWB11gR2: Mapping execution in a process flow not visible in OWB Browser

    When a mapping is executed inside a process flow, execution details are not visible in OWB Repository Browser (Control Center reports) - rows processed, errors etc. Mapping row is missing in a log, like it never happened (but it did).
    This auditing information is very important for monitoring reasons (to our customers also) and I just don't get it how this functionality is lost with this version. Another serious bug?

    Hi David,
    I was rather tired and frustrated last evening, so today I noticed some things I didn't yesterday. Your reply gave me a new motivation.
    The conclusion is - a mapping execution in a process flow is logged, but the way activities are displayed in OWB Browser are now different than in previous versions. If I click on 'Execution Job Report' on a process flow, I see all the activities listed except mappings (transformations, assign, file exists, subprocess etc.). If I want to see mapping execution row, I must click on a plus (expand) sign.
    This kind of behavior will make processes with a complex hierarchy (usually we have more than 5 levels of subprocesses) rather vast to monitor. In 10gR2, a drilling down was accomplished by opening a new browser tab (Execution Job Report link) for each subprocess/mapping activity. Now it shall remain on one huge screen (list) that keeps expanding.
    But, if that is the new feature, we shall live with that. If our customers won't like it, they will have to get used to it.
    Thank you for your reply!

  • I have a PDF with a diagram, I need to translate the text so I open it in Illustrator.  The document opnes up vertically oriented  I try to put it horizontal to be able to read and change the text  However everything I have done is not working  The artboa

    I have a PDF with a diagram, I need to translate the text so I open it in Illustrator.  The document opens up vertically oriented  I try to put it horizontal to be able to read and change the text  However everything I have done is not working  The artboard does change, but the diagram stays vertical.....Please help  I need to finish that for today..Please help

    A PDF usually consists of one to an indefinite number of clipping masks inside each other.
    You need to be very carefull with selecting stuff.
    So you need to read the manual on how to select stuff and on the basics of Illustrator.
    On top of that: because of the complex hierarchy of PDF files, it is kind of difficult to help you without seeing anything.

  • Vertical mappings and queries

    Hi all,
    I am currently a bit frightened by what I see in my logs. Most of our
    classes (around 70 for the moment) are belonging to a complex hierarchy.
    BASE <---------> RELATION
    ||||
    subclasses
    The top superclass 'base' is a class which is containing a collection
    of relations. The class relation is used to link 2 subclasses of 'Base'
    together.
    Because each subclass needs to get access to its relations, 'Base' is
    mapped as a concrete class (can't be horizontal or flat). Hierarchy's
    leaves are mapped 'vertical' and the other classes are mapped as 'flat'
    or 'vertical' to limit the number of tables and joins.
    So, when I execute a JDOQL query which uses the relations to crawl in
    the database, it seems that the query is launched nearly 70 times, one
    time per leaf, with all the joins included. Useless to say that
    execution time is quite huge even for a little query.
    My expectations were that JDO could only make the query on the 'Base'
    class, and when results are known, only making the joins to retrieve
    resulted classes' fields. Reading the documentation, I've met the
    concept of 'fetch groups' which could handle all the lazy-loading as I
    wish to. I've tried to include only the 'Base' fields in the default
    fetch group to see if it resolves my problem, but it seems to have no
    diffferences.
    As I have not a great knownledge of fetching, I may have missed
    something, so If someone could point me the right way, it would be
    greatly appreciated :)
    Thomas

    So it the relation defined at base? Then it should not be in the
    default fetch group as may be issuing spurious queries.
    Thomas Cornet wrote:
    >
    Hi all,
    I am currently a bit frightened by what I see in my logs. Most of our
    classes (around 70 for the moment) are belonging to a complex hierarchy.
    BASE <---------> RELATION
    ||||
    subclasses
    The top superclass 'base' is a class which is containing a collection
    of relations. The class relation is used to link 2 subclasses of 'Base'
    together.
    Because each subclass needs to get access to its relations, 'Base' is
    mapped as a concrete class (can't be horizontal or flat). Hierarchy's
    leaves are mapped 'vertical' and the other classes are mapped as 'flat'
    or 'vertical' to limit the number of tables and joins.
    So, when I execute a JDOQL query which uses the relations to crawl in
    the database, it seems that the query is launched nearly 70 times, one
    time per leaf, with all the joins included. Useless to say that
    execution time is quite huge even for a little query.
    My expectations were that JDO could only make the query on the 'Base'
    class, and when results are known, only making the joins to retrieve
    resulted classes' fields. Reading the documentation, I've met the
    concept of 'fetch groups' which could handle all the lazy-loading as I
    wish to. I've tried to include only the 'Base' fields in the default
    fetch group to see if it resolves my problem, but it seems to have no
    diffferences.
    As I have not a great knownledge of fetching, I may have missed
    something, so If someone could point me the right way, it would be
    greatly appreciated :)
    Thomas--
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Traverse object tree from the middle with reflection

    Hi.
    I am new to using reflection in more complex scenarios, and would like some advice.
    If I get back a partial object tree, from an ORM layer for example, where I have a series of associated objects, for example Employee, which has a Department attribute, linking it to its parent department, and a collection of child address objects, is it possible to traverse all objects attached to Employee, calling a given method on them, if they extend a certain class?
    Could someone show an example of doing this, or describe how it could be done?
    Thanks for your help.

    You have an arbritrarily complex hierarchial collection whith a unknown structure.
    You wish to apply a method to all references in the tree.
    There are only two basic storage mechanisms in java; reference or array.
    Setup: Keep a hashtable/dictionary of each visited reference to avoid endless recursion.
    Method, called Doit() which takes an Object 'n'
    - If n is null return
    - if n is already in hashtable return
    - Add to hashtable
    - if n is of type base class then call target method (might want to decide about thrown exception.)
    - reflect through n for members which are either Object or array (base type Object)
    - If single member is Object then call Doit
    - If array recurse through each item and call Doit()

Maybe you are looking for

  • Error message into a Variable.

    Dear users, I have a rather usual (unusual from the weekend beers for me though!!) query which I can't figure out a proper way to implement. My requirement is like this: I have a message class in which I want to define a text 'Employee number & not f

  • Hard drive is smaller error on factory reset

    I just replaced the hard drive on an HP Pavilion s5610y slimline, and it appeared successful as it began installing Windows.   I then got "the hard drive is smaller than one originally installed, cannot continue.  I replaced a 640 GB grive with a 1TB

  • I purchase 1 apple tv from dubai,but after connect apple tv in my tv display showing two icons only-COMPUTERS and SETTING

    WHEN CONNECTING APPLE TV ONLY SHOWING 2 ICONS  THAT IS SETTING AND COMPUTER,HOW CAN I GET THE OTHER ICONS LIKE PHOTOS,MOVIES,YOUTUBE ,HULUPLUS ETC..

  • Safari not handling Javascript correctly

    I am currently trying to learn how to put Javascript into web pages by reading through the tutorial at http://www.w3schools.com/js/default.asp However it seems that Safari is not handling the Javascript correctly when it loads some of the examples: h

  • TRANSPORT FOR A ROLE

    Hi all, when we create a role , does it ask for a crequest. i created a object class and object under a request thats under a workbench request. when i crreated a role and assigned the same object to the role, IT NEVER ASKED FOR A REQUEST. CAN ANYONE