Finding the complete hierarchy of all child records for a given root

Hi,
We need to find the hierarchy starting from a given root by exploding the hierarchy of each child present in the hierarchy.
Consider a data as given below.
Seq_no denotes a primary key.
Child_id denotes the child node in the hierarchy
Parent_id indicates the immediate parent of the child record
Root_id denotes the starting point of the hierarchy.
Within a given hierarchy the root_id will remain the same and parent_id will keep on changing as required.
Seq_No Child_id     Parent_id     Root_id
101          1          NULL     1
102          2          1          1
103          3          2          1
104          4          1          1
105          5          3          1
106 4 NULL 4
107 7 4 4
108 8 4 4
109 9 7 4
110 3 NULL 3
111 4 3 3
112 5 3 3
The requirement is to pull the hierarchy starting from a given root traversing down the path by exploding the hierarchy of each and every child present in that hierarchy. It is explained using below example.
For root_id value as 4, the expected o/p is
child_id path
7 /7
9 /7/9
8 /8
For root_id value as 3, the expected o/p is
child_id path
4 /4
7 /4/7 ---> Hierarchy with root_id 4 gets exploded
8 /4/8
9 /4/7/9
5 /5
For root_id value as 1, the expected o/p is
child_id path
2 /2
3 /2/3 ---> Hierarchy with root_id 3 gets exploded
4 /2/3/4 ---> Hierarchy with root_id 4 gets exploded
7 /2/3/4/7
9 /2/3/4/7/9
8 /2/3/4/8
5 /2/3/5
4 /4
7 /4/7
8 /4/8
9 /4/7/9
5 /5
5 /2/3/5
Also, additionally, if there exist any cyclic child records in the hierarchy, the exploding should stop there itself.
CREATE TABLE xyz
SEQ_NO NUMBER,
ITEM_ID NUMBER,
PARENT_ITEM_ID NUMBER,
ROOT_ITEM_ID NUMBER
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(1, 1, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(2, 2, 1, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(3, 3, 1, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(4, 4, 2, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(8, 3, 3);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(9, 10, 3, 3);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(10, 11, 10, 3);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(12, 10, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(13, 12, 10, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(14, 11, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(15, 13, 11, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(16, 14, 11, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(21, 23, 13, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(104, 16, 91, 14);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(19, 16, 12, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(20, 17, 16, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(101, 110, 110);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(102, 111, 110, 110);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(103, 17, 110, 110);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(29, 31, 17, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(30, 32, 17, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(31, 33, 16, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(35, 49, 23, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(41, 14, 14);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(42, 91, 14, 14);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(43, 92, 91, 14);
COMMIT;
Pl advise.
Thanks,
- Ajit
Edited by: 952105 on Aug 10, 2012 10:44 AM

My application tracks the product master that stores a product configuration along with its all child/sub-child records. There exists many such configurations for various parts.
There can exist only one configuration for a given product at any point in time. But, at the same time, this product can be a part of other product configurations too (i.e. it can exist as a child in other hierarchies).
Now, the business requirement is to pull the hierachy starting from a given product (as a root). This should also pull the hierarchy of each child/subchild existing under its hieararchy, if there exist a separate configuration for those child/subchild products.
SET DEFINE OFF;
CREATE TABLE XYZ
ITEM_ID NUMBER,
PARENT_ITEM_ID NUMBER,
ROOT_ITEM_ID NUMBER,
QUANTITY NUMBER,
LINE_ID VARCHAR2(10 BYTE)
Here, root_item_id denotes the product for which the configuration has been defined. All its child/sub-child records gets stored under this root_item_id itself. The parent_item_id column will get stored appropriately based on the immediate parent of the product under that hierarchy.
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(2, 1, 1, 5, '1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(3, 1, 1, 5, '1.2');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(1, 1, 1, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(4, 2, 1, 6, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(10, 3, 3, 4, '1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(3, 3, 4, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(11, 10, 3, 15, '1.1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(10, 10, 7, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(12, 10, 10, 9, '1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(16, 12, 10, 99, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(17, 16, 10, 77, '1.1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(31, 17, 10, 2, '1.1.1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(33, 16, 10, 5, '1.1.1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(32, 17, 10, 3, '1.1.1.1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(14, 11, 11, 10, '1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(13, 11, 11, 9, '1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(11, 11, 8, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(23, 13, 11, 77, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(49, 23, 11, 5, '1.1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(16, 91, 14, 56, '1.1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(92, 91, 14, 10, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(91, 14, 14, 8, '1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(14, 14, 6, '1.0');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(110, 110, 1, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(17, 110, 110, 1, '1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(111, 110, 110, 1, '1.1');
COMMIT;
The expected result for product with root_item_id as 14
item_id hierarchy_path
11 /11
13 /11/13
23 /11/13/23
49 /11/13/23/49
14 /11/14 -- it should explode the hierarchy of product with id 14
91 /11/14/91 as there exists a configuration for this product as a root
16 /11/14/91/16
92 /11/14/91/92
In above example, it should explode the hierarachy of other products too (item_id 13,23 etc) if there exists a product configuration (starting with root_item_id as 13 or 23 etc.) for them in the table.
Thanks,
- Ajit

Similar Messages

  • How do I find the total size of all my Music in iTunes 11?

    I'm looking to get a new iPod, either a nano or Touch, so I'm trying to find the total size of all of my Music. Since iTunes 11's interface is so different from previous versions, I don't see a way to view that.

    Ctrl B to show top menu
    View Show Status Bar to show the grey bar at the bottom with the info you want.
    While your there View> Show Sidebar and see if you prefer that.

  • How can I view the complete score with all tracks? I seem to only be able to view one track at a time. Thanks

    How can I view the complete score with all tracks? I seem to only be able to view one track at a time. Thanks

    JoBrooke wrote:
    I seem to only be able to view one track at a time.
    unfortunately, that is how GB works, it only offers a score for a single track at a time

  • Find the schema which contains all these tables

    In my DB, only SCOTT has all the three tables EMP,DEPT, BONUS. There are schemas which have either one or two of these tables but only SCOTT has all these 3 tables.
    To find the schema which contains all these *3* tables. I tried the below mentioned queries which gave the wrong answers.
    1.
    select TABLE_NAME, owner from dba_Tables where table_name IN ('EMP','DEPT', 'BONUS')-- will return any schema which has any of these tables. So, wrong result
    2.
    select TABLE_NAME, owner from dba_Tables where table_name = 'EMP' AND TABLE_NAME='DEPT' AND TABLE_NAME= 'BONUS'-- Wrong result because it is mutually contradictory. As AP has mentioned below, A table_name cannot be equal to all the three tables .
    Edited by: GarryB on Dec 22, 2010 7:56 AM

    Hi,
    GarryB wrote:
    Thanks everyone. So, this means that this seemingly simple query cannot be written with just a plain AND , OR . Right?You're right. Every query needs SELECT and FROM, for example.
    What's wrong with Solomon's simple solution?
    Whatever you don't like about it, I'm sure there's another approach that doesn't have the same problem, even if it is slower and more complicated.
    As AP pointed out, no one row has all the information you need to decide if that row will be part of the result set or not.
    You need something that can make a decision based on the data in multiple rows.
    GROUP BY, like Solomon suggested, is the easiest and most efficient way I know of.
    Anything that GROUP BY does can probably be done by analytic functions. In this case, it will be more complicated and slower, but you can get the same results.
    A self-join, as user13524665 demonstrated, is another way.
    You could also get the results you want using EXISTS-, IN-, or scalar sub-queries, all of which would be even more complicated, and scale just as poorly, as a self-join.
    CONNECT BY, recursive sub-queries, MODEL, and XML functions can also look at several rows at the same time. I don't believe you want to read and test soltuions for all of these any more than I want to write all of them. Solomon gave a good solution for your original problem. If you want to add some extra restrictions to your problem (such as "I can't use ... or ...") explain clearly what those restrictions are, and why you need them.

  • Can I find the names of who viewed a recording?

    Can I find the names of who viewed a recording?

    If the recording is tied to an Event (using the Events Module) or is converted to a Course (using the Training Module), then yes, you can get the user specific information on viewers. However, as a Content object, either in the Meeting Recordings folder or a Content folder, there is no user specific information that is tracked. This is true for any Content object in Connect.

  • Our records indicate that this product has been replaced. Please provide the serial number for your replacement product to find the support and warranty coverage information. For more information, please contact us.

    Hi,
    i have purchased iphone 4s 16GB in india yesterday and when i m checking warranty status of my phone from https://selfsolve.apple.com/agreementWarrantyDynamic.do
    i got responce
    Our records indicate that this product has been replaced. Please provide the serial number for your replacement product to find the support and warranty coverage information. For more information, please contact us.
    Please help

    hi
    if it is from gray market is there any harm on that please let me know
    my phone is working fine and even when i connected to itunes it got registered with my id,

  • Our records indicate that this product has been replaced. Please provide the serial number for your replacement product to find the support and warranty coverage information. For more information, please contact us." how does this possible..???

    I have a horrible time with my new Iphone-4, No SIM card found issues and while i tried to contact customer care with device serial number getting a messgae of "Our records indicate that this product has been replaced. Please provide the serial number for your replacement product to find the support and warranty coverage information. For more information, please contact us."
    What step should i take next.

    Where did you get the phone?
    That phone was replaced by Apple or an AASP and was not returned to Apple as it should have been, or it was stolen from Apple or somewhere in the supply chain.
    You can not get support from Apple for that phone.
    Return it to wherever you got it and get your money back.

  • Find the tech names of all query's present in a workbook

    Hi,
    I need some materials  on workbooks.
    How find the tech names of all query's present in a workbook. I had an issue from end user and they just send me the workbook. So now i need to find out all the querries present in workbook.
    Please let me know steps to find out and some materials on workbook.
    Thanks,

    Hi
    Check in metedata repositroy.., when you click on th query here, it will show you which infoprovider it is created and list of workibooks created on the query etc.....
    Hope it helps you.... else get back
    Regards
    Rajesh

  • Sql to find the complete database usage including redo and temp

    can i get a sql or script through which i can find the complete usage statistics of the complete database which includes temp and redo log space.

    can i get a sql or script through which i can find
    the complete usage statistics of the complete
    database which includes temp and redo log space.Define 'usage statistics'. Sounds like you mean disk space usage. There are several DBA_* views such as DBA_DATA_FILES, DBA_TEMP_FILES, etc. See the Reference Manual at http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm. I leave the rest as an exercise for the student.

  • I have slight Dyslexia and find the spell check on all mac products far inferior to microsoft, any advice?

    I have slight Dyslexia and find the spell check on all mac products far inferior to microsoft, any advice on any way to improve spell check. I have an Iphone, Ipad and mac bookpro and I find the spell check terrible, I miss typed grammar and wrote grammer, my mac said it had no spelling suggestions, both google and micro soft word corrected the spelling but not my Mac book pro. Any surgestions?

    Not very many Outlook users here. You'll to better asking in Microsoft's Office:Mac forums here:
    Office for Mac forums

  • Is it possible to find a base record for a given component using a SQL qry

    Is it possible to find a base record for a given component through a SQL query ?
    Ex:
    1. VOUCHER for VCHR_EXPRESS
    2. VENDOR for VNDR_ID
    The below query gives multiple rows, I want it to restrict results to just one row
    SELECT DISTINCT A.PNLGRPNAME AS COMPONENT, A.DESCR, A.ADDSRCHRECNAME, A.SEARCHRECNAME, D.RECNAME AS TableName
    FROM PSPNLGRPDEFN A, PSPNLGROUP B, PSPNLDEFN C, PSPNLFIELD D, PSRECDEFN E
    WHERE A.PNLGRPNAME = B.PNLGRPNAME
    AND A.MARKET = B.MARKET
    AND B.PNLNAME = C.PNLNAME
    AND C.PNLNAME = D.PNLNAME
    AND A.PNLGRPNAME = 'VNDR_ID' -- Component Name
    AND E.RECNAME = D.RECNAME
    AND E.RECTYPE =0
    AND D.FIELDUSE =0
    AND D.OCCURSLEVEL = 0
    AND B.HIDDEN = 0
    Thanks in Advance..

    For the given examples, the problem is that there are pages in these components that contain subpages with record names specified. The SubPage field type appears to be at level 0, but if you view the SubPage definition, the records are at level 1. This is because the scroll area is contained within the subpage.
    In theory, the situation is complicated by the fact that you can have subpages within subpages, which would force you to use a recursive query to fully expand the subpages. In practice, there probably aren't many, if any, pages where a scroll area is buried several subpages deep.
    An alternative might be to compare the primary keys of the level 0 records to the primary keys of the add or search record keys. They should only match for the base record. Even this option is not trivial, though.
    Regards,
    Bob

  • Were can I find the english version of CS5 to download for my mac?  I had to put a new HD in.

    Were can I find the English version of CS5 to download for my mac?  I had to put a new HD in.

    You can download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS5: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

  • How to find the list of USER-EXITS or BADI for the transaction ABSO

    Hi all,
    Please help me to find the list of USER-EXITS or BADI for the transaction ABSO & find the exact user-exit which meets the requirement.
    Thanks & Regards,
    gyanaraj

    Hi,
    Copy the problem  in SE38 and  Execute it
    Enter the Tcode  u want
    this  will the  list of Userexits and badis
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.

  • Where can I find the plugin to open camera raw files for Nikon D810 for Photoshop CS5.1? I've looked around the site but cannot get this to work.. Thank you.

    Where can I find the plugin to open camera raw files for Nikon D810 for Photoshop CS5.1? I've looked around the site but cannot get this to work.. Thank you.

    See for yourself which version of ACR is needed for that camera’s RAW files
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    then check your version (Photoshop > About Plug-In > Camera Raw).
    Your version of Photoshop does not support that version of ACR.
    You could use the free DNG Converter.

  • Where can I find the Oracle Clusterware 11.1.0.7 for Linux x86

    Hello,
    I am testing upgrading Oracle 11g RAC from 11.1.0.6 to 11.1.0.7 on Linu x86 (RedHat 5.3/OEL 5.3)
    I haven't been able to find the Oracle Clusterware 11.1.0.7 for Linux x86 download, which is required for the RAC upgrade.
    Could someone tell me the patch/patchset number or how can I search for it in metalink?
    Thanks!

    Hi,
    You need to download patch 6890831
    Please see the metalink note 800603.1 for 11.1.0.7 patch set and installation instructions for Linux x86.
    Hope this helps.
    Regards
    Satishbabu Gunukula
    http://oracleracexpert.blogspot.com
    [Click here to delete archive logs using RMAN|http://oracleracexpert.blogspot.com/2009/08/delete-archive-logs-using-rman.html]
    [Click here for Oracle Data pump export/Import with Examples|http://oracleracexpert.blogspot.com/2009/08/oracle-data-pump-exportimport.html]
    Edited by: Satishbabu Gunukula on Aug 26, 2009 10:32 PM

Maybe you are looking for

  • Migrating from Bridge CS6 to CC

    Hi, is there a way to migrate labels, keywords and collections to Bridge CC?  It is impossible to do this to 30,000+ images.

  • Error when downloading a file to Excel

    Hi all When trying to download a file with function "WS_DOWNLOAD" to Excel I am getting the following error: "Error no. 5 in SAPGUI with Graphics call or file transfer" And then: "E5: illegal data in download file 'C:\Shipment.xls (WK1 Conversion)'"

  • Headset iPad 3 Skype

       Hello I have a DR-BT21G Sony headset when Inplay music on skype works perfect but when I use skype sometimes the audio go to iPad speakrs instead the headset and about the voice msgs in Skype simply all play on iPad speakers instead the headset no

  • Why won't GB open anymore after the 10.7.4 update?

    I recenty updated the software to 10.7.4 & now GarageBand won't open. I try to open a project with it but it gives me an error message saying something about MIDI...I have no idea what to do and i'm guessing it really is because of the update. If any

  • User IDs mixed up

    When I was ill my husband setup our new iPhones by connecting them both to HIS computer. At the same time, he changed his email address and his iTunes user ID.  Somehow, during this process he managed to link his iTunes library to MY user ID so that