Org Hierarchy Query(its urgent)

Hii Gurus,
Our client have the follwing requirement.
They need to see the parent node of the 0ORGUNIT in a separate column.
We do not know what it will take to accomplish this (enhancing 0ORGUNIT doesn't seem to be an option at this point),
Can u give me other options so that we can get.
As is:
Table
ClaenderYear/Month        Organizational unit
JAN2008                             60006395
JAN2008                                 20000000
JAN2008                                    20000026
JAN2008                                      20000040
To be:
  Table
ClaenderYear/Month        Organizational unit               Parent Node
JAN2008                             60006395
JAN2008                                 20000000                      60006395
JAN2008                                    20000026                   20000000
JAN2008                                      20000040                 20000026
Thanks,
Babu

Yep that;s always the issue yeah when hierachy is activated in the report, all becomes messy.
0ORGunit is master data. Add another info object "ZPORGUNIT", then reference this to 0ORGUNIT.
Hope this helps.

Similar Messages

  • Unable to view complete Application Component Hierarchy.( Its Urgent)

    Hi,
      While creating Datasources with RSO2, I am selecting Application components, In the Application Component Hierarchy, I am unable to view the complete Hierarchy, ie subtrees are not available .
        Say Under PA-> PA-PA-IO is visible . ie All  subtrees are missing  under this application component, Including transaction data sources  under PA   and also Master Datasources  under PA-PA-IO. Like this all subtrees under  each application components are not visible.
        I have checked the Datasources delivered by SAP ie using RSA5 . Here all Application components are available including subtrees.
      I  have tried with RSA9 tried to transfer the Application component hierarchy but invain.
      Please help me in this regard. Its very Urgent.
    Thanks,
    Jaswantha

    You can rename your <JDev_Home>\jdev\system to <JDev_Home>\jdev\system_backup, f.ex.
    But it means you will lose your preferences, DB connections, ...
    Regards,
    Didier.

  • Error when executing query its urgent

    hi,
    when iam executing my query in query designer through web morning i got the result in web.
    but when iam executing the same query in wad it is throughing an error like (System error in program SAPLRRK0 and form GET_FIELD_POSITION-01-))
    now again i check that one in querydesigner again it is showing the same error in querydesigner also
    vijay

    Hi,
    Refer Note 931975 - Problems when you execute a query
    Symptom
    At runtime, a query contains a generated ABAP program and a data structure, which is stored in the shared buffer. Due to the gap described here, the version of the ABAP program may not correspond to the version of the data structure.
    This causes several terminations when you execute this query:
    X299 Brain SAPLRRK0; Form GET_FIELD_POSITION-01-,
    X299 Brain SAPLRRK0; Form APPEND_KHANDLE_1-02-,
    ASSIGN COMPONENT L_FIELDNAME OF STRUCTURE C_SX_GVAR, and others.
    Other terms
    RSIX, SX_REPORT,
    Reason and Prerequisites
    The error can occur if one person changes a query and another person simultaneously executes the query. A query may also be changed implicitly if one of the objects used in the query is changed in another query.
    Solution
    The attached corrections apply only to Releases 3.X. An advance correction cannot be provided for NetWeaver 2004s.
    Before you implement the attached correction (in 3.X), you must change the two following method interfaces. Otherwise syntax errors occur in the CL_RSR_REPORT_RSIX class and the RRI0 function group when you implement the corrections.
    1. In Transaction SE24: Change the MODIFY method of the CL_RSR_REPORT_RSIX class as follows:
                  Insert the I_S_RKB1D import parameter with the type RSR_S_RKB1D.
    2. In Transaction SE24: Change the READ_SX_REPORT method of the CL_RSR_REPORT_RSIX class.
                  Delete all existing import parameters (that is, I_GENUNIID, I_DVERS, I_IDVERS and I_GENTIME) and insert the I_S_RKB1D import parameter with the type RSR_S_RKB1D.
    After you implement the corrections, you must delete the incorrect information in the shared buffer. To do this, enter '/$SYNC' in the command field in every application server. Alternatively, you can also call RSRT -> Environment -> Generate Queries. As a result, all queries are regenerated but all OLAP caches are rejected.
    BW 3.0B
               Import Support Package 31 for 3.0B (BW 3. 0B Patch 31 or SAPKW30B31) into your BW system. The Support Package is available when Note 0872272 "SAPBWNews BW 3.0B Support Package 31", which describes this Support Package in more detail, is released for customers.
    BW 3.10 Content
               Import Support Package 25 for 3.10 (BW 3. 10 Patch 25 or SAPKW31025) into your BW system. The Support Package is available when Note 0872274 "SAPBWNews BW 3.1 Content Support Package 25", which describes this Support Package in more detail, is released for customers.
    BW 3.50
               Import Support Package 17 for 3.5 (BW 3. 50 Patch 17 or SAPKW35017) into your BW system. The Support Package is available when Note 0872277 "SAPBWNews BW Support Package 17 NetWeaver'04 Stack 17", which describes this Support Package in more detail, is released for customers.
    SAP NetWeaver 2004s BI
               Import Support Package 08 for SAP NetWeaver 2004s BI (BI Patch 08 or SAPKW70008) into your BI system. The Support Package is available when Note 0872280 "SAPBINews BI 7.0 Support Package 08", which describes this Support Package in more detail, has been released for customers.
               In urgent cases, you can use the correction instructions.
    To provide information in advance, the notes mentioned above may be released before the Support Package is available. In this case, however, the short text of the notes still contains the words "preliminary version".
    Thanks

  • ABAP QUERY - ITS URGENT

    Hi Experts,
    In this scenario we have one Material – Mat1 and 2 plants namely, P1 and P2. At time of execution, in the selection screen, if we give for example: Mat1 and P1, data is displayed for that particular material and plant. Where as if we give MAT1 for P1 and P2 , the material again displayed for P1 which is in first row and it is not displaying the material for P2 which is in 2nd row.
    If we interchange P2 is in first row, the material is displayed and it is not displaying for P1 which is in 2nd row.
    In general – Any material for any plant which is in   2nd row is not displayed only zeros are visible.
    Kindly locate the solution for the above query in the below program.                                                                               
    Specification Name      :  Production Tracker                       
    REPORT  zpp_ptk                                 .
    TYPE-POOLS : slis.
    TABLES : pbed,
             mara,
             mast,
             marc,
             makt,
             pbid,
             pbim,
             stpo,
             t001w,
             scal,
             kna1,
             knmt,
             equi,
             a304,
             konp,
             zcalendar,
             am60x.
    DATA :   gt_sort TYPE slis_t_sortinfo_alv,
             gt_fieldcat TYPE slis_t_fieldcat_alv,
             gt_fieldcat1 TYPE slis_fieldcat_alv,
             gt_events TYPE slis_t_event ,
             gv_pc_start(2) TYPE n,
             gv_pcno(6),
             BEGIN OF gt_pbed OCCURS 0,
             matnr TYPE matnr,
             p_matnr TYPE matnr,
             plnmg TYPE plnmg,
             entmg TYPE entmg,
             perxx TYPE perxx,
             ojtxb TYPE ojtxb,
             ojtxp TYPE ojtxp,
             backlog TYPE plnmg,
             future  TYPE plnmg,
             END OF gt_pbed,
             l_knumh LIKE a304-knumh,            " added by ****** 08.06.2005
             l_datab LIKE a304-datab,           " added by ****** 08.06.2005
             BEGIN OF it_date1 OCCURS 0,
             it_date1 TYPE zstartdt,
             enddt TYPE zenddt,
             sapweekno TYPE zsapweekno,
             END OF it_date1,
             BEGIN OF gt_matnr OCCURS 0,
             matnr TYPE matnr,
             plnmg TYPE plnmg,
             entmg TYPE entmg,
             END OF gt_matnr,
             BEGIN OF gt_stock OCCURS 0,
             matnr TYPE matnr,
             stock TYPE entmg,
             END OF gt_stock,
             gt_fpbed LIKE gt_pbed OCCURS 0 WITH HEADER LINE,
             it_zcalendar LIKE zcalendar OCCURS 0 WITH HEADER LINE,
             l_counter TYPE i,
             l_plus15  LIKE scal-week,
             l_wfpweekno LIKE scal-week,
             l_selectedweekno LIKE scal-week,
             BEGIN OF gt_backlog OCCURS 0,
             matnr TYPE matnr,
             backlog TYPE entmg,
             END OF gt_backlog,
             gt_future LIKE gt_backlog OCCURS 0 WITH HEADER LINE,
             gt_output TYPE zpp_rollplan OCCURS 0 WITH HEADER LINE,
             BEGIN OF gt_out OCCURS 0,
             head(15) TYPE c,
             matnr TYPE matnr,
             stock TYPE labst,
             backlog TYPE plnmg,
             week1 TYPE wmeng,
             week2 TYPE wmeng,
             week3 TYPE wmeng,
             week4 TYPE wmeng,
             week5 TYPE wmeng,
             week6 TYPE wmeng,
             week7 TYPE wmeng,
             week8 TYPE wmeng,
             week9 TYPE wmeng,
             week10 TYPE wmeng,
             week11 TYPE wmeng,
             week12 TYPE wmeng,
             week13 TYPE wmeng,
             END OF gt_out,
           BEGIN OF gt_out26 OCCURS 0,
           head(15) TYPE c,
           matnr TYPE matnr,
           stock TYPE labst,
           backlog TYPE plnmg,
           week1 TYPE wmeng,
           week2 TYPE wmeng,
           week3 TYPE wmeng,
           week4 TYPE wmeng,
           week5 TYPE wmeng,
           week6 TYPE wmeng,
           week7 TYPE wmeng,
           week8 TYPE wmeng,
           week9 TYPE wmeng,
           week10 TYPE wmeng,
           week11 TYPE wmeng,
           week12 TYPE wmeng,
           week13 TYPE wmeng,
           week14 TYPE wmeng,
           week15 TYPE wmeng,
           week16 TYPE wmeng,
           week17 TYPE wmeng,
           week18 TYPE wmeng,
           week19 TYPE wmeng,
           week20 TYPE wmeng,
           week21 TYPE wmeng,
           week22 TYPE wmeng,
           week23 TYPE wmeng,
           week24 TYPE wmeng,
           week25 TYPE wmeng,
           week26 TYPE wmeng,
           END OF gt_out26,
           BEGIN OF it_week OCCURS 0,
           it_week TYPE zsapweekno,
           END OF it_week,
             dd(4) TYPE c,
             cc(2) TYPE c,
             dd1(6) TYPE c,
            l_val1(7)  TYPE c,
            l_val2(7)  TYPE c,
            l_val3(7)  TYPE c,
            l_val4(7)  TYPE c,
            l_val5(7)  TYPE c,
            l_val6(7)  TYPE c,
            l_val7(7)  TYPE c,
            l_val8(7)  TYPE c,
            l_val9(7)  TYPE c,
            l_val10(7)  TYPE c,
            l_val11(7)  TYPE c,
            l_val12(7)  TYPE c,
            l_val13(7)  TYPE c,
            l_val14(7)  TYPE c,
            l_val15(7)  TYPE c,
            l_val16(7)  TYPE c,
            l_val17(7)  TYPE c,
            l_val18(7)  TYPE c,
            l_val19(7)  TYPE c,
            l_val20(7)  TYPE c,
            l_val21(7)  TYPE c,
            l_val22(7)  TYPE c,
            l_val23(7)  TYPE c,
            l_val24(7)  TYPE c,
            l_val25(7)  TYPE c,
            l_val26(7)  TYPE c,
            it_ph TYPE plnmg,
            it_dm TYPE dbmng,
            it_mard LIKE mard OCCURS 0 WITH HEADER LINE,
            it_tot1 TYPE p DECIMALS 3,
            it_tot1_2  TYPE p DECIMALS 3,
           it_tot2 TYPE p DECIMALS 3,
           it_tot2_2  TYPE p DECIMALS 3,
           it_tot3 TYPE p DECIMALS 3,
           it_tot3_2  TYPE p DECIMALS 3,
           it_tot4 TYPE p DECIMALS 3,
           it_tot4_2  TYPE p DECIMALS 3,
           it_tot5 TYPE p DECIMALS 3,
           it_tot5_2  TYPE p DECIMALS 3,
           it_tot6 TYPE p DECIMALS 3,
           it_tot6_2  TYPE p DECIMALS 3,
           it_tot7 TYPE p DECIMALS 3,
           it_tot7_2  TYPE p DECIMALS 3,
           it_tot8 TYPE p DECIMALS 3,
           it_tot8_2  TYPE p DECIMALS 3,
           it_tot9 TYPE p DECIMALS 3,
           it_tot9_2  TYPE p DECIMALS 3,
           it_tot10 TYPE p DECIMALS 3,
           it_tot10_2  TYPE p DECIMALS 3,
           it_tot11 TYPE p DECIMALS 3,
           it_tot11_2  TYPE p DECIMALS 3,
           it_tot12 TYPE p DECIMALS 3,
           it_tot12_2  TYPE p DECIMALS 3,
           it_tot13 TYPE p DECIMALS 3,
           it_tot13_2  TYPE p DECIMALS 3,
           it_tot14 TYPE p DECIMALS 3,
           it_tot14_2  TYPE p DECIMALS 3,
           it_tot15 TYPE p DECIMALS 3,
           it_tot15_2  TYPE p DECIMALS 3,
           it_tot16 TYPE p DECIMALS 3,
           it_tot16_2  TYPE p DECIMALS 3,
           it_tot17 TYPE p DECIMALS 3,
           it_tot17_2  TYPE p DECIMALS 3,
           it_tot18 TYPE p DECIMALS 3,
           it_tot18_2  TYPE p DECIMALS 3,
           it_tot19 TYPE p DECIMALS 3,
           it_tot19_2  TYPE p DECIMALS 3,
           it_tot20 TYPE p DECIMALS 3,
           it_tot20_2  TYPE p DECIMALS 3,
           it_tot21 TYPE p DECIMALS 3,
           it_tot21_2  TYPE p DECIMALS 3,
           it_tot22 TYPE p DECIMALS 3,
           it_tot22_2  TYPE p DECIMALS 3,
           it_tot23 TYPE p DECIMALS 3,
           it_tot23_2  TYPE p DECIMALS 3,
           it_tot24 TYPE p DECIMALS 3,
           it_tot24_2  TYPE p DECIMALS 3,
           it_tot25 TYPE p DECIMALS 3,
           it_tot25_2  TYPE p DECIMALS 3,
           it_tot26 TYPE p DECIMALS 3,
           it_tot26_2  TYPE p DECIMALS 3,
           it_back1 TYPE p DECIMALS 3,
           it_back2 TYPE p DECIMALS 3,
           it_back3 TYPE p DECIMALS 3,
           it_back4 TYPE p DECIMALS 3,
           it_back5 TYPE p DECIMALS 3,
           it_back6 TYPE p DECIMALS 3,
           it_back7 TYPE p DECIMALS 3,
           it_back8 TYPE p DECIMALS 3,
           it_back9 TYPE p DECIMALS 3,
           it_back10 TYPE p DECIMALS 3,
           it_back11 TYPE p DECIMALS 3,
           it_back12 TYPE p DECIMALS 3,
           it_back13 TYPE p DECIMALS 3,
           it_back14 TYPE p DECIMALS 3,
           it_back15 TYPE p DECIMALS 3,
           it_back16 TYPE p DECIMALS 3,
           it_back17 TYPE p DECIMALS 3,
           it_back18 TYPE p DECIMALS 3,
           it_back19 TYPE p DECIMALS 3,
           it_back20 TYPE p DECIMALS 3,
           it_back21 TYPE p DECIMALS 3,
           it_back22 TYPE p DECIMALS 3,
           it_back23 TYPE p DECIMALS 3,
           it_back24 TYPE p DECIMALS 3,
           it_back25 TYPE p DECIMALS 3,
           it_back26 TYPE p DECIMALS 3,
           it_pbhi LIKE pbhi OCCURS 0 WITH HEADER LINE,
           int1 TYPE i,
           int2 TYPE i,
           int3 TYPE i,
           int4 TYPE i,
           int5 TYPE i,
           int6 TYPE i,
           int7 TYPE i,
           int8 TYPE i,
           int9 TYPE i,
           int10 TYPE i,
           int11 TYPE i,
           int12 TYPE i,
           int13 TYPE i,
           int14 TYPE i,
           int15 TYPE i,
           int16 TYPE i,
           int17 TYPE i,
           int18 TYPE i,
           int19 TYPE i,
           int20 TYPE i,
           int21 TYPE i,
           int22 TYPE i,
           int23 TYPE i,
           int24 TYPE i,
           int25 TYPE i,
           int26 TYPE i,
    *forecast purpose
            p_fnavl TYPE c VALUE 'X',
            it_zcal LIKE zcalendar OCCURS 0 WITH HEADER LINE,
           BEGIN OF it_mkpf OCCURS 0,
           mblnr TYPE mblnr,
           budat TYPE budat,
           END OF it_mkpf,
          it_mseg LIKE mseg OCCURS 0 WITH HEADER LINE,
          st_date TYPE zstartdt,
          en_date TYPE zenddt.
    *BUDAT
    SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001..
    SELECT-OPTIONS   : s_matnr FOR pbim-matnr OBLIGATORY.
    PARAMETERS       : p_werks TYPE werks_d OBLIGATORY,
                       p_dispo TYPE dispo,
                       p_mov TYPE bwart OBLIGATORY DEFAULT '321',
                       p_date1 TYPE pbed-wdatu DEFAULT '20070401'. "  MODIF ID ABC..
    *SELECT-OPTIONS    : p_date2 FOR pbed-wdatu.
    PARAMETERS : p_date2  TYPE wdatu.
    SELECTION-SCREEN  : END OF BLOCK blk1.
    SELECTION-SCREEN  : BEGIN OF BLOCK bb1 WITH FRAME TITLE text-002 .
    PARAMETERS        : p_13week RADIOBUTTON GROUP grp1,
                        p_26week RADIOBUTTON GROUP grp1.
    SELECTION-SCREEN  : END OF BLOCK bb1.
    SELECT-OPTIONS    : s_week FOR zcalendar-sapweekno NO-DISPLAY.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'P_DATE1'.
          screen-input = '0'.
          screen-active = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    INITIALIZATION.
    START-OF-SELECTION.
      IF  '20070401' > p_date2.
        MESSAGE 'Please Give Greater that 01.04.2007 ' TYPE 'I'.
        LEAVE LIST-PROCESSING.
      ENDIF.
      SELECT SINGLE sapweekno INTO s_week-low
      FROM zcalendar
      WHERE startdt >=  p_date2. "-high AND enddt >= p_date2-low.
      s_week-option = 'EQ'.
      s_week-sign   = 'I'.
      APPEND s_week.
      SELECT * FROM zcalendar INTO TABLE it_zcalendar.
      SELECT * FROM mard INTO TABLE it_mard WHERE matnr IN s_matnr.
    *********************FOR 13 WEEK*********************************************************************
      IF p_13week EQ 'X'.
        LOOP AT s_week.
          s_week-high = s_week-low + 12.
          MODIFY s_week TRANSPORTING high.
          SELECT SINGLE startdt FROM zcalendar INTO st_date WHERE sapweekno = s_week-low.
          SELECT SINGLE enddt FROM zcalendar INTO en_date WHERE  sapweekno = s_week-high.
          SELECT mblnr budat FROM mkpf INTO TABLE it_mkpf WHERE budat GE st_date AND budat LE en_date.
         SELECT * FROM mseg INTO TABLE it_mseg FOR ALL ENTRIES IN it_mkpf WHERE mblnr = it_mkpf-mblnr
                   AND matnr IN s_matnr
                   AND werks = p_werks
                   and shkzg = 'S'
                   AND bwart IN ('321','322','101','102','131','132') .
          LOOP AT it_mkpf.
            SELECT * FROM mseg INTO it_mseg WHERE mblnr = it_mkpf-mblnr
                            AND matnr IN s_matnr
                            AND werks = p_werks
                            AND shkzg = 'S'
                            AND bwart IN ('321','322','101','102','131','132') .
              APPEND it_mseg.
              CLEAR it_mseg.
            ENDSELECT.
          ENDLOOP.
        ENDLOOP.
        PERFORM get_pbid.
        BREAK-POINT.
        PERFORM s_week_days.
        PERFORM get_backlog.
        PERFORM gt_out.
        PERFORM build_fieldccatlog1.
        PERFORM 13alv.
      ENDIF.
    ******************END OF 13 WEEK*************************************************************************
    *****************For 26 th Week*************************************************************************
      IF p_26week EQ 'X'.
        LOOP AT s_week.
          s_week-high = s_week-low + 25.
          MODIFY s_week TRANSPORTING high.
          SELECT SINGLE startdt FROM zcalendar INTO st_date WHERE sapweekno = s_week-low.
          SELECT SINGLE enddt FROM zcalendar INTO en_date WHERE  sapweekno = s_week-high.
          SELECT mblnr budat FROM mkpf INTO TABLE it_mkpf WHERE budat GE st_date AND budat LE en_date.
          SELECT * FROM mseg INTO TABLE it_mseg FOR ALL ENTRIES IN it_mkpf WHERE mblnr = it_mkpf-mblnr
                    AND matnr IN s_matnr
                    AND werks = p_werks
                    AND shkzg = 'S'
                    AND bwart IN ('321','322','101','102') .
        ENDLOOP.
        PERFORM get_pbid.
        PERFORM s_26week_days.
        PERFORM gt_out26.
        PERFORM build_fieldccatlog1.
        PERFORM 26alv.
      ENDIF.
    **************END OF 26 TH WEEK **********************************************************************
    *&      Form  get_pbid
          text
    FORM get_pbid .
      DATA : lv_line TYPE i,
             lv_perxx LIKE scal-week.
      DATA it_dispo(1) TYPE c. " ashish
    LOOP AT s_matnr. " TODAY
      BREAK-POINT.
      SELECT SINGLE diber INTO it_dispo FROM marc WHERE matnr = s_matnr-low
                                                    AND werks = p_werks.
      IF it_dispo NE 'X'.
        SELECT * FROM pbim WHERE matnr = s_matnr-low
                             AND werks EQ p_werks
                             AND loevr = space.
          SELECT startdt enddt sapweekno INTO TABLE it_date1 FROM zcalendar WHERE sapweekno GE s_week-low AND sapweekno LE s_week-high.
         SORT by s_matnr p_werks.
          LOOP AT it_date1.
            SELECT * FROM pbhi INTO TABLE it_pbhi WHERE bdzei = pbim-bdzei AND ( pdatu GE it_date1-it_date1 AND pdatu LE it_date1-enddt ).
            IF sy-subrc EQ 0.
              DELETE it_pbhi WHERE aenam = 'ABBAU'.
              LOOP AT it_pbhi.
                it_ph =  it_ph + it_pbhi-plnmg.
                it_dm = it_dm + it_pbhi-dbmng.
              ENDLOOP.
              it_ph = it_ph - it_dm.
              gt_pbed-matnr = s_matnr-low.
              gt_pbed-plnmg = it_ph.
              gt_pbed-perxx = it_date1-sapweekno.
              APPEND gt_pbed.
              CLEAR it_pbhi.
              CLEAR it_ph.
              CLEAR it_dm.
              REFRESH it_pbhi.
              CLEAR gt_pbed.
            ELSE.
            ENDIF.
          ENDLOOP.
        ENDSELECT.
      ELSE.
        SORT BY s_matnr p_werks.
        LOOP AT s_matnr.
          SELECT * FROM pbid WHERE  matnr =  s_matnr-low
                             AND   werks = p_werks
                             AND   loevr EQ space.
    ****PHANI
         SELECT * FROM pbed WHERE bdzei = pbid-bdzei.
           MOVE-CORRESPONDING pbed TO gt_pbed.
           PERFORM convert_to_week USING pbed-pdatu
                                CHANGING gt_pbed-perxx.
         check gt_pbed-perxx in r_week.
           gt_pbed-matnr = pbid-matnr.
         PERFORM GET_PARENT USING gt_bom-MATNR
                         CHANGING gt_pbed-p_matnr
                                  GT_pbed-OJTXB.
           COLLECT gt_pbed.
           CLEAR gt_pbed.
    *PHANI
    data it_date1 type ZSTARTDT.
            SELECT startdt enddt sapweekno INTO TABLE it_date1 FROM zcalendar WHERE sapweekno GE s_week-low AND sapweekno LE s_week-high.
            LOOP AT it_date1.
              SELECT * FROM pbhi INTO TABLE it_pbhi WHERE bdzei = pbid-bdzei AND ( pdatu GE it_date1-it_date1 AND pdatu LE it_date1-enddt ).
              IF sy-subrc EQ 0.
                DELETE it_pbhi WHERE aenam = 'ABBAU'.
                LOOP AT it_pbhi.
                  it_ph =  it_ph + it_pbhi-plnmg.
                  it_dm = it_dm + it_pbhi-dbmng.
                ENDLOOP.
                it_ph = it_ph - it_dm.
                gt_pbed-matnr = s_matnr-low.
                gt_pbed-plnmg = it_ph.
                gt_pbed-perxx = it_date1-sapweekno.
                APPEND gt_pbed.
                CLEAR it_pbhi.
                CLEAR it_ph.
                CLEAR it_dm.
                REFRESH it_pbhi.
                CLEAR gt_pbed.
              ELSE.
              ENDIF.
            ENDLOOP.
          ENDSELECT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " get_pbid
    *&      Form  convert_to_week
          text
         -->IV_DATE    text
         -->XV_WEEK    text
    FORM convert_to_week USING iv_date
                     CHANGING xv_week.
      DATA : lv_week LIKE scal-week.
      CALL FUNCTION 'DATE_GET_WEEK'
        EXPORTING
          date = iv_date
        IMPORTING
          week = lv_week.
      xv_week = lv_week.
    ENDFORM.                    "CONVERT_TO_WEEK
    *&      Form  get_stock
          text
    FORM get_stock .
      DATA : lv_stock LIKE mard-insme.
      LOOP AT gt_pbed.
        READ TABLE gt_stock WITH KEY matnr = gt_pbed-matnr.
        CHECK sy-subrc NE 0.
        SELECT SUM( labst ) INTO lv_stock FROM mard
        WHERE matnr = gt_pbed-matnr AND   werks = p_werks.
        SELECT SUM( insme ) INTO gt_stock-stock FROM mard
        WHERE matnr = gt_pbed-matnr AND   werks = p_werks.
        gt_stock-stock = gt_stock-stock + lv_stock.
        gt_stock-matnr = gt_pbed-matnr.
        APPEND gt_stock.
      ENDLOOP.
    ENDFORM.                    " get_stock
    FORM s_week_days .
      DELETE gt_pbed WHERE perxx < s_week-low. " and perxx > s_week-high.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val1.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val2.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val3.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val4.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val5.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val6.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val7.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val8.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val9.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val10.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val11.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val12.
      s_week-low4(2) = s_week-low4(2) + 1.
      CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val13.
    ENDFORM.                    " s_week_days
    *&      Form  build_fieldccatlog
          text
    FORM build_fieldcatlog .
      CLEAR gt_fieldcat1.
      gt_fieldcat1-fieldname = 'MATNR'.
      gt_fieldcat1-tabname = 'GT_OUT'.
      gt_fieldcat1-seltext_l = 'MATERIAL'.
      APPEND gt_fieldcat1 TO gt_fieldcat.
      CLEAR gt_fieldcat1.
      gt_fieldcat1-fieldname = 'WERKS'.
      gt_fieldcat1-tabname = 'GT_OUT'.
      gt_fieldcat1-seltext_m = 'WERKS'.
      APPEND gt_fieldcat1 TO gt_fieldcat.
      CLEAR gt_fieldcat1.
      gt_fieldcat1-fieldname = 'HEAD'.
      gt_fieldcat1-tabname = 'GT_OUT'.
      gt_fieldcat1-seltext_l = 'REF'.
      APPEND gt_fieldcat1 TO gt_fieldcat.
      CLEAR gt_fieldcat1.
      gt_fieldcat1-fieldname = 'STOCK'.
      gt_fieldcat1-tabname = 'GT_OUT'.
      gt_fieldcat1-seltext_l = 'FG-STOCK'.
      APPEND gt_fieldcat1 TO gt_fieldcat.
      CLEAR gt_fieldcat1.
      gt_fieldcat1-fieldname = 'BACKLOG'.
      gt_fieldcat1-tabname = 'GT_OUT'.
      gt_fieldcat1-seltext_l = 'BACKLOG'.
      APPEND gt_fieldcat1 TO gt_fieldcat.
      dd = sy-datum+0(4).
      cc = l_val1+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val1.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK1'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val1.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val2+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val2.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK2'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val2.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val3+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val3.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK3'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val3.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val4+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val4.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK4'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val4.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val5+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val5.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK5'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val5.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val6+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val6.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK6'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val6.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val7+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val7.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK7'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val7.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val8+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val8.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK8'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val8.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val9+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val9.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK9'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val9.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val10+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val10.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK10'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val10.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val11+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val11.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK11'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val11.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val12+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val12.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK12'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val12.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
      CLEAR : cc,dd1.
      cc = l_val13+5(2).
      CONCATENATE dd cc INTO dd1.
      LOOP AT it_zcalendar WHERE sapweekno = dd1.
        CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val13.
        CLEAR gt_fieldcat1.
        gt_fieldcat1-fieldname = 'WEEK13'.
        gt_fieldcat1-tabname = 'GT_OUT'.
        gt_fieldcat1-seltext_l = l_val13.
        APPEND gt_fieldcat1 TO gt_fieldcat.
      ENDLOOP.
    ENDFORM.                    " build_fieldccatlog
    *&      Form  13alv
          text
    FORM 13alv .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
      I_CALLBACK_PROGRAM             = ' '
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
      IS_LAYOUT                      =
          it_fieldcat                    = gt_fieldcat
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          t_outtab                       = gt_out
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
    ENDFORM.                                                    " 13alv
    *&      Form  gt_out
          text
    FORM gt_out .
      LOOP AT s_matnr.
        AT NEW low.
          gt_out-matnr = s_matnr-low.
    ************BEGIN OF FIRST WEEK******************************
          LOOP AT gt_pbed WHERE matnr = s_matnr-low AND perxx4(2) = l_val15(2).
            gt_out-week1 = gt_pbed-plnmg.
            LOOP AT it_zcalendar WHERE sapweekno = gt_pbed-perxx.
              IF p_mov = '321'.
                LOOP AT it_mkpf WHERE budat  GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '321'.
                    it_tot1 = it_tot1 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '322'.
                    it_tot1_2 = it_tot1_2 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                ENDLOOP.
              ENDIF.
              IF p_mov = '101'.
                LOOP AT it_mkpf WHERE budat  GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '101'.
                    it_tot1 = it_tot1 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '102'.
                    it_tot1_2 = it_tot1_2 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                ENDLOOP.
              ENDIF.
              IF p_mov = '131'.
                LOOP AT it_mkpf WHERE budat  GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '131'.
                    it_tot1 = it_tot1 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '132'.
                    it_tot1_2 = it_tot1_2 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                ENDLOOP.
              ENDIF.
              CLEAR gt_pbed.
            ENDLOOP.
          ENDLOOP.
          it_tot1 = it_tot1 - it_tot1_2.
          it_back1 = gt_out-week1 - it_tot1.
          CLEAR it_zcalendar.
    END OF FIRST WEEK ************************
    **********************SECOND WEEK***************************************
          LOOP AT gt_pbed WHERE matnr = s_matnr-low AND perxx4(2) = l_val25(2).
            int2 = int2 + 1.
            CHECK int2  = 1.
            gt_out-week2 = gt_pbed-plnmg.
            LOOP AT it_zcalendar WHERE sapweekno = gt_pbed-perxx.
              IF p_mov = '321'.
                LOOP AT it_mkpf WHERE budat  GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '321'.
                    it_tot2 = it_tot2 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '322'.
                    it_tot2_2 = it_tot2_2 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                ENDLOOP.
              ENDIF.
              IF p_mov = '101'.
                LOOP AT it_mkpf WHERE budat  GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '101'.
                    it_tot2 = it_tot2 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '102'.
                    it_tot2_2 = it_tot2_2 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                ENDLOOP.
              ENDIF.
              IF p_mov = '131'.
                LOOP AT it_mkpf WHERE budat  GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '131'.
                    it_tot1 = it_tot1 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '132'.
                    it_tot1_2 = it_tot1_2 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                ENDLOOP.
              ENDIF.
              CLEAR gt_pbed.
            ENDLOOP.
          ENDLOOP.
          it_tot2 = it_tot2 - it_tot2_2.
          it_back2 = gt_out-week2 - it_tot2.
          it_back2 = it_back2 + it_back1.
          CLEAR it_zcalendar.
    ********************************End of The Second week***********************************************
    *********************Third week*************************************************************************
          LOOP AT gt_pbed WHERE matnr = s_matnr-low AND perxx4(2) = l_val35(2).
            int1 = int1 + 1.
            CHECK int1 =  1.
            gt_out-week3 = gt_pbed-plnmg.
            LOOP AT it_zcalendar WHERE sapweekno = gt_pbed-perxx.
              IF p_mov = '321'.
                LOOP AT it_mkpf WHERE budat  GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '321'.
                    it_tot3 = it_tot3 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '322'.
                    it_tot3_2 = it_tot3_2 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                ENDLOOP.
              ENDIF.
              IF p_mov = '101'.
                LOOP AT it_mkpf WHERE budat  GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '101'.
                    it_tot3 = it_tot3 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '102'.
                    it_tot3_2 = it_tot3_2 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                ENDLOOP.
              ENDIF.
              IF p_mov = '131'.
                LOOP AT it_mkpf WHERE budat  GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '131'.
                    it_tot3 = it_tot3 + it_mseg-erfmg.
                    CLEAR it_mseg.
                  ENDLOOP.
                  LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '132'.
                    it_tot3_2 = it_tot3_2 + it_mseg-erfmg.
                  

    My first question to you would be ...you have defined the plant code as parameters so you can enter multiple plants...change that to a select-option and you would be able to display all the results.
    Regards
    Anurag

  • Want A query (Its Urgent)

    Hi,I have a table as below..
    AFPFTRAN
    code date type amt
    12 10-04-05 T 1
    13 11-05-05 F 2
    12 10-05-05 T 3
    13 05-04-05 F 4
    12 12-04-05 T 5
    13 15-05-05 F 7
    I want details as below:
    date
    Apr May ---
    code T F T F ---
    12 6 0 3 0
    13 0 4 0 9
    I want to get sum(amt) of T,F in particular month for particular emp.
    Hope...I'm clear now...
    Pls Its urgent

    use something like following
    select code, sum(decode(to_char(date, 'MM'), '01', decode(type, 'T', AMT, 0), 0)) Mon01_Type_T, sum(decode(to_char(date, 'MM', '02', decode(type, 'F', AMT, 0), 0)) Mon01_Type_F, .......(for all months and type)
    from Your_table_name
    group by code
    I hope it will work the way you want,
    Regards

  • Org Hierarchy Query

    Hii Gurus,
    Our client have the follwing requirement.
    They need to see the parent node of the 0ORGUNIT in a separate column.
    We do not know what it will take to accomplish this (enhancing 0ORGUNIT doesn't seem to be an option at this point),
    Can u give me other options so that we can get.
    As is:
    Table
    ClaenderYear/Month Organizational unit
    JAN2008                   60006395
    JAN2008                    20000000
    JAN2008                    20000026
    JAN2008                    20000040
    To be:
    Table
    ClaenderYear/Month Organizational unit    Parent Node
    JAN2008                      60006395
    JAN2008                        20000000          60006395
    JAN2008                          20000026        20000000
    JAN2008                            20000040       20000026
    Thanks,
    Babu

    No solution but just an idea. Look to creating a data source on the hierarchy table in the BW system itself. Then you can just have a virtual provider on this datasource

  • Java-SQL Query, Its Urgent.....................

    hi,
    my problem is that i want to get data from the oracle database(SQL) and then put it into a JTABLE.
    The data seems to come correctly into the ResultSet rs Object, but i dont know how to put the data from the rs Object into the JTable.
    Please reply,

    Hi,
    If this is really important, I suggest that you post your question in the Swing Forums. As it is more appropriate for that forum, and you will get a quicker response.
    Damian Sutton.

  • Its urgent:plz tel me what is the steps move to produection oaf page.

    Hi All,
    I developed one oaf page.that page move to production.
    i already move to produection but its not working fine.
    its throw an error.
    plz tell me what is the steps follow when move to production.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_REGION_DATA. Tokens: REGIONCODE = /wnsgs/oracle/apps/ap/agingbuckets/webui/AgingBucketsPG;
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:529)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3719)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3452)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1005)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at oa_html._OA._jspService(_OA.java:85)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._RF._jspService(_RF.java:102)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /wnsgs/oracle/apps/ap/agingbuckets/webui/AgingBucketsPG, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1350)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:503)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3719)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3452)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1005)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at oa_html._OA._jspService(_OA.java:85)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._RF._jspService(_RF.java:102)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /wnsgs/oracle/apps/ap/agingbuckets/webui/AgingBucketsPG, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1350)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:503)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3719)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3452)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1005)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at oa_html._OA._jspService(_OA.java:85)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._RF._jspService(_RF.java:102)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    thanks
    Seshu.
    Edited by: its urgent on Feb 8, 2012 2:31 AM

    Deployement steps:
    1) Copy the Class files and move to into server
    We can get class file >>F:\OAF\jdevhome\jdev\myclasses\imp
    \myprojects
    (imp) Load into server (java TOP) >>D:\oracle\viscomn\java\
    2) Run the XML import Scripts in Command Prompt
    F:\OAF\jdevbin\jdev\bin
    For every Page and every Lov region
    3) Next Go to apps
    System administrator Create Function for a page
    Description tab:
    Function Name : IMP_STUDENT_REGISTRATION
    User Function Name: Imp Student Registration
    Description : Imp Student Registration
    Properties Tab:
    Type: SSWA JSP function
    WebHTML Tab
    Function:
    HTML call: OA.jsp?page=/imp/oracle/apps/po/student/webui/ImpStudentResitrationPG
    Note: DO the same for all the pages
    4) Attach these Functions to Imp Student Operations menu to Imp Student Operations responsibility to User.
    5) Bounce the apache.
    Regards
    Meher Irk

  • Eclipse error while debugging ! Its Urgent

    Hi All,
    I am trying to debug a java project using eclipse 3.1 and i am getting this internal error
    Source method signature could not be resolved Error org.eclipse.jdt.debug.ui
    org.eclipse.core.runtime.CoreException: Source method signature could not be resolved
    at org.eclipse.jdt.internal.debug.ui.actions.ToggleBreakpointAdapter.toggleMethodBreakpoints(ToggleBreakpointAdapter.java:296)
    at org.eclipse.jdt.internal.debug.ui.actions.BreakpointLocationVerifierJob.run(BreakpointLocationVerifierJob.java:163)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    I am not able to set Line breakpoints...
    Can anybody help me ..Its urgent
    Message was edited by:
    Ajay_Java

    hi
    an error occurred when eclipse start or debugging
    the error is :
    !SESSION 2008-05-19 13:47:11.687 -----------------------------------------------
    eclipse.buildId=M20071023-1652
    java.version=1.5.0_15
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86
    !ENTRY org.eclipse.equinox.app 2008-05-19 13:47:12.578
    !MESSAGE Product org.eclipse.sdk.ide could not be found.
    !ENTRY org.eclipse.osgi 4 0 2008-05-19 13:47:12.593
    !MESSAGE Application error
    !STACK 1
    java.lang.RuntimeException: No application id has been found.
         at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:236)
         at org.eclipse.equinox.internal.app.EclipseAppContainer.start(EclipseAppContainer.java:98)
         at org.eclipse.equinox.internal.app.Activator.addingService(Activator.java:112)
         at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064)
         at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:926)
         at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:330)
         at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:274)
         at org.eclipse.equinox.internal.app.Activator.start(Activator.java:54)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
         at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
         at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
         at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:417)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
         at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340)
         at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37)
         at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:405)
         at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
         at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at org.eclipse.core.internal.runtime.PlatformActivator.startAppContainer(PlatformActivator.java:47)
         at org.eclipse.core.internal.runtime.PlatformActivator.start(PlatformActivator.java:32)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)
         at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)
         at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634)
         at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
         at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282)
         at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468)
         at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)
         at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)
    !ENTRY org.eclipse.osgi 2 0 2008-05-19 13:47:12.703
    !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.703
    !MESSAGE Bundle update@plugins/org.eclipse.help.webapp_3.3.1.v20070823_33x.jar was not resolved.
    !SUBENTRY 2 org.eclipse.help.webapp 2 0 2008-05-19 13:47:12.703
    !MESSAGE Missing required bundle org.apache.jasper_5.5.17.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.703
    !MESSAGE Bundle update@plugins/org.eclipse.equinox.jsp.jasper_1.0.1.R33x_v20070816.jar was not resolved.
    !SUBENTRY 2 org.eclipse.equinox.jsp.jasper 2 0 2008-05-19 13:47:12.703
    !MESSAGE Missing imported package org.apache.jasper.servlet_0.0.0.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.703
    !MESSAGE Bundle update@plugins/org.eclipse.help.base_3.3.1.v20070813_33x.jar was not resolved.
    !SUBENTRY 2 org.eclipse.help.base 2 0 2008-05-19 13:47:12.703
    !MESSAGE Missing required bundle org.apache.lucene.analysis_[1.9.1,2.0.0).
    !ENTRY org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE Bundle update@plugins/org.eclipse.sdk_3.3.2.R33x_v20071022/ [20] was not resolved.
    !SUBENTRY 2 org.eclipse.sdk 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing required bundle org.eclipse.help.ui_[3.2.0,4.0.0).
    !SUBENTRY 2 org.eclipse.sdk 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing required bundle org.eclipse.help.base_[3.1.0,4.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE Bundle update@plugins/org.eclipse.pde.ui_3.3.1.v20070912-0800.jar [25] was not resolved.
    !SUBENTRY 2 org.eclipse.pde.ui 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing imported package org.apache.lucene.demo.html_0.0.0.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE Bundle update@plugins/org.eclipse.equinox.jsp.jasper.registry_1.0.0.v20070607.jar [27] was not resolved.
    !SUBENTRY 2 org.eclipse.equinox.jsp.jasper.registry 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing imported package org.eclipse.equinox.jsp.jasper_0.0.0.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE Bundle update@plugins/org.eclipse.equinox.jsp.jasper_1.0.1.R33x_v20070816.jar [32] was not resolved.
    !SUBENTRY 2 org.eclipse.equinox.jsp.jasper 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing imported package org.apache.jasper.servlet_0.0.0.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE Bundle update@plugins/org.eclipse.jdt.compiler.tool_1.0.1.v_780_R33x.jar [53] was not resolved.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE Bundle update@plugins/org.eclipse.help.webapp_3.3.1.v20070823_33x.jar [57] was not resolved.
    !SUBENTRY 2 org.eclipse.help.webapp 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing required bundle org.eclipse.help.base_[3.1.0,4.0.0).
    !SUBENTRY 2 org.eclipse.help.webapp 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing required bundle org.apache.jasper_5.5.17.
    !SUBENTRY 2 org.eclipse.help.webapp 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing required bundle org.eclipse.equinox.jsp.jasper.registry_1.0.0.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE Bundle update@plugins/org.eclipse.pde.ui.templates_3.3.0.v20070608-1300.jar [59] was not resolved.
    !SUBENTRY 2 org.eclipse.pde.ui.templates 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing required bundle org.eclipse.pde.ui_[3.3.0,4.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE Bundle update@plugins/org.eclipse.jdt.apt.pluggable.core_1.0.1.R33x_v20070831-0435.jar [76] was not resolved.
    !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
    !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0.
    !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.model_0.0.0.
    !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.util_0.0.0.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE Bundle update@plugins/org.eclipse.help.ui_3.3.1.v20070726_33x.jar [86] was not resolved.
    !SUBENTRY 2 org.eclipse.help.ui 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing required bundle org.eclipse.help.base_[3.3.0,4.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE Bundle update@plugins/org.eclipse.jdt.compiler.apt_1.0.1.R33x_v20070831-0435.jar [129] was not resolved.
    !SUBENTRY 2 org.eclipse.jdt.compiler.apt 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-19 13:47:12.718
    !MESSAGE Bundle update@plugins/org.eclipse.help.base_3.3.1.v20070813_33x.jar [130] was not resolved.
    !SUBENTRY 2 org.eclipse.help.base 2 0 2008-05-19 13:47:12.718
    !MESSAGE Missing required bundle org.apache.lucene.analysis_[1.9.1,2.0.0).

  • Error while Fetching data from BUT0ID data its urgent

    hi all,
    SElECT SINGLE partner FROM but0id INTO l_bp
                     WHERE type EQ 'BUP008' AND
                           idnumber EQ edid4-sdata+45(10).
    this is my select statement its not working i have to fetch partner number with the help of sdata.
    when i give 69093 instead of  edid4-sdata+45(10) then i am getting the output
    when i specify edid4-sdata+45(10) then it is not working
    please tell me any one its urgent
    Thanks & regards
    Vardhan

    Hi,
    Try doing this.Take the offset of sdata and move it into a varaiable and then check the condition in the query.
    Regards,
    Sharath

  • How to enable java script in my Firefox browser? help its urgent.

    how to enable java script in my Firefox browser? help its urgent.

    go to '''about:config''' and search for '''javascript.enabled''' change its value to '''true'''
    *[http://kb.mozillazine.org/About:config about:config]

  • Hierarchy  Query  to  get  parent  nodes?

    Hi Everyone,
    I want to write a hierarchy query which should give me the path starting from given node to its parents(Grand parents). below is the sample data and the output what i am expecting. and also the output what i am getting right now from my query.
    CREATE TABLE RELATION (PARENT VARCHAR2(5),CHILD VARCHAR2(5) PRIMARY KEY);
    --Data for the tree which starts from the root 'A'
    Insert into RELATION (PARENT, CHILD) Values (NULL,'A');
    Insert into RELATION (PARENT, CHILD) Values ('A', 'B');
    Insert into RELATION (PARENT, CHILD) Values ('A', 'C');
    Insert into RELATION (PARENT, CHILD) Values ('B', 'D');
    Insert into RELATION (PARENT, CHILD) Values ('B', 'E');
    Insert into RELATION (PARENT, CHILD) Values ('D', 'F');
    Insert into RELATION (PARENT, CHILD) Values ('C', 'G');
    --Data for the tree which starts from the root 'H'
    Insert into RELATION (PARENT, CHILD) Values (NULL,'H');
    Insert into RELATION (PARENT, CHILD) Values ('H', 'I');
    Insert into RELATION (PARENT, CHILD) Values ('H', 'J');
    Expected Output by passing values as 'F' which gives the path from bottom to up.
    A<-B<-D<-F
    My Query:
    SELECT substr(sys_connect_by_path(child,'<-'),3)
    FROM relation
    WHERE connect_by_isleaf = 1
    START WITH child = 'F'
    CONNECT BY PRIOR parent = child
    ORDER BY child;
    Output of my query:
    F<-D<-B<-A
    I am getting the output in reverse order. i can use the reverse string function to reverse the string but the problem is the node can also contain the values like 'AC' 'BA'.. in future.
    Can anyone please help me in getting the correct output.
    Thank you in advance.

    I like ListAgg :D
    with RELATION(PARENT,CHILD) as(
    select NULL,'A' from dual union all
    select 'A', 'B' from dual union all
    select 'A', 'C' from dual union all
    select 'B', 'D' from dual union all
    select 'B', 'E' from dual union all
    select 'D', 'F' from dual union all
    select 'C', 'G' from dual union all
    select NULL,'H' from dual union all
    select 'H', 'I' from dual union all
    select 'H', 'J' from dual)
    SELECT ListAgg(child,'<-')
           within group(order by Level desc) as revPath
    FROM relation
    START WITH child = 'F'
    CONNECT BY PRIOR parent = child;
    revPath
    A<-B<-D<-F

  • Plz some body answer for this..its urgent

    Hai can anyone help me?
    I have lengthy report containing 1000s of Records in it..
    When i disply this report in viewer,i have to use horizontal scroll bar of IE to view the lengthy report,which will in turn display long page ofit.
    But,My requirement is,i want to display the length report in singe screenshot itself..it means i should not use IE Horizontal scroll bar to view the next set of records in report..
    does discoverer supports providing any scroll bar to view horizontal shots like what we do in Excel.
    Hope u understand what i am coming to say..if not understandable plz query me i will tell in details..
    But plz somebody reply me for this query..its urgent.
    regards
    ck

    Brother this is not the correct way to ask.
    In your words you are commanding...
    But we have to request the EXPERTS.
    WE are in learning stage dont order or command.
    Just request them in another way...... then only u get the required reply....
    With regards,
    Prasad.

  • In put variable to have default from date as current date..its urgent

    query has input data as an interval it could be replaced with a single start end date parameters.only the start date needs a default value...
    plz its urgent..
    i will assign points...

    Hi,
    Steps to follow,
    1) In bex, Create a new variable of 0Calday characteristic.
    Set the following attributes:
    Type of Variable: Characteristic Value
    Variable name: ZCEMONT
    Variable Description: Caldate
    Processing by: Customer Exit (Drop down combo box)
    Characteristic: Calendar date
    Press Next
    Variable Represents: Range Value
    Variable Entry is: Mandatory
    Check Ready for Input
    And Press Next
    Press Finish.
    2) Transaction CMOD
    Create a new project, maintain the short text, and assign a development class.
    (It’s better to ask somebody senior in our project about this, because every project have one main project and development class)
    If you have project say Zproject. Choose option components. Click Change.
    Double-click on EXIT_SAPLRRS0_001.Then double-click on ZXRSRU01.
    Enter the coding .Save and activate the coding.
    INCLUDE ZXRSRU01 *
    DATA: L_S_RANGE TYPE RSR_S_RANGESID. 'In global area
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT. 'In global area
    DATA: zdate like sy-datum.
    CASE I_VNAM.
    WHEN 'ZCEMONT'.
    IF i_step = 1.
    zdate = 'your default value'.
    l_s_range-low = zdate.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    ENDCASE.
    Activate the project. This is very important.
    3) TO test now, use that variable ZCEMONT in query some where by going to BEx designer.save the query.Don;t run it.
    4) First run it in RSRT(Tran code).
    Hope i m clear.
    Now your report
    1)Place your Priority infoobject in rows
    2)In column area in Bex, Right Click and New Structure.
    3) Right click the New Structure->New Selection"DOWNTIME"->Drag your KF ZDOWNTIME
    4) Now Create a New Formula and drag  DOWNTIME->
    ='DOWNTIME'<4
    5) same for other two.
    Regards,
    San!
    Message was edited by: San!
    Message was edited by: San!

  • API for assigning an Inv Org to an Org Hierarchy

    Is there an API for linking an Inv ORg to an existing Org Hierarchy?

    Check the documentation, implementation guide specific to your product. Is there anything specific to OAF in your query?
    I will suggest to post this issue in product specific forum.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • MPEG-2 Playback Component v6 no longer available for download

    Hello, I purchased the MPEG-2 Playback Component in June 2006. Due to a hard drive failure in my MacBook I returned to the store to redownload but my entire order history has been removed. I just spent 30 mins on the phone to Robert in aftersales in

  • Condition in the report!!! URGENT

    Hi Gurus,           I am filtering a charectaristic in the report by A, B, C and D. If the characteristic type is A or B, then, the key figure has to be negative.How to achieve this using conditions in the report???? I already tried using conditions

  • Connecting my laptop to my Panasonic plasma TV

    Hey everybody. I am trying to connect my laptop to my TV with a HDMI cord. I've changes my TV to be on the right channel, I've pressed Fn+ F5 but nothing works. I've been told that I need to go into the video card settings in order to press clone / m

  • Cannot delete composer field in iTunes - so cannot use it to search my classical music collection !

    To search my classical music collection easily within iTunes, I delete the composer field for all non-classical music.  This works nicely on my Mac and on my old iPod.  However, when I sync with my newish iPhone and iPad - the composer is still liste

  • Airport Extreme and USB Drive

    Hello, It appears there are two hardware versions of the Airport Extreme base station - the UFO shaped one that I have and the flat rectangular version. I would like to know if it is possible to use my AEBS with an external USB drive. I have searched