Mater Table

Hi,
May i know the Table Name where the changes in the master data like Vendor Mater ( belonging to a purchase group, i.e. changes in LFM1) are stored. Since LFM1 only stores creation data, i need change data too.
Although cdhdr and cdpos are maintained, but they are very lengthy to read, takes a lot of time. Apart from them, i think, there are tables who records the changes in masters (vendor master to be specific).
Thanx,

well , i used cdhdr to get the changed item details..
Regards,
Naveen Vishal

Similar Messages

  • Please help on mater data tables

    Hi, gurus,
         I need to create an infoobject with more than 100 attributes in it, and there are more than tens of millions  of records to load into this mater table.
        Does it work?
        thanks a lot.

    Technically speaking yes its possible. but you should check the infoObject first and study it a bit more in business context before taking a decision to go for it.
    Try comparing with some standard ones.. i believe there must be some close matches available.
    Hope this helps.
    Cheers,
    Sumit

  • Relationship between tables while using inner joins.

    Hi,
    I had a few clarifications on "inner joins", and as i was going through the forum, i came across two points,
    1. In one of the threads it said " inner joins is applicable for tables that have a parent child relationship.
    2. In another thread it said " inner join is established from master table (the table on the left) to the transcation table (the table on the right)".
    I have two clarifications based on the above points.
    1. Is it necessary that the tables on which im performing an inner join should have a parent-child/children relationship or is it enough that the tables just have a common field.
    2.  Also is it necessary that the master table should come first, (or can i use any child table from where i can fetch the records when there is a mater table in my report) as shown below.
    Eg: select * <fields> from <master table> inner join <table> on <field> into <itab>.
    Edited by: Narayananchandran on Dec 27, 2010 12:31 PM

    have two clarifications based on the above points.
    1. Is it necessary that the tables on which im performing an inner join should have a parent-child/children relationship or is it enough that the tables just have a common field.
    2. Also is it necessary that the master table should come first, (or can i use any child table from where i can fetch the records when there is a mater table in my report) as shown below.
    Eg: select * <fields> from <master table> inner join <table> on <field> into <itab>
    1) NO
                      2) NO

  • Problem while adding a new field to a Z-table

    My attributes are mater table with maintenance allowed and taken APPl0 as data class.
    Now i am trying to add another field to this table and it says you have no authorizations in the log.
    I checked in SU53, actiity is 42 there...
    how can i no wether i have authorizations 2 chg a table or not?if this is the case, it should pop-up a msg when we go for a chg mode itself.. right???
    any clues guyz what shud i do?
    regds
    kiran

    Hi,
    Do u want to know about the authorization means go to table maintenance generator first.
    Now get the authorization object of your table.
    Goto transaction SU21.
    List of object class will be displayed.
    Double click the object class BC_A.
    Now a list of object will be displayed.
    Double click the object S_TABU_DIS (Table Maintenance)
    U will find wat all fields used in tht, ACTVT is the field which specifies the activities of ur table.
    Reward mark if this is useful.
    Ram.

  • Primary Key Materlized View and primary key in master tables

    We are using Oracle 11g2 and I created a materlized view on several master tables. The master tables all have primary key, but I did not include all primary key columns in the defining query.
    According to Oracle Manual e10592 Specify WITH PRIMARY KEY to create a primary key materialized view. This is the default ....
    The master table must contain an enabled primary key constraint, and the defining query of the materialized view
    must specify all of the primary key columns directly.My MV created OK and works. My question is what can be the impact on my MV? Could it hit the performance. It takes 40 minutes for the MV to be created and 5 minutes to refresh for single row insert in each mater table. I would like to see it refresh in seconds.

    Retrieving rows from the mview is purely a function of the number of rows and indexing on the mview itself. Refreshing the mview wall time depends on the quality of the query used to refresh the mview. Whether you include PKs from the source table in the mview is of little, or no, consequence here. What matters is the execution path of the refresh query. Is there proper indexing on the underlying tables to support the joins. Did you use mlog$_s to enable fast refresh - are mlog$_s even usable for your mview. There are a number of possible causes to your problem and we do not have enough information to make an estimate of the problem.
    BTW, if the mview could refresh in seconds w/o mlog$_s, you probably do not need an mview.

  • Master tables  & fact tables

    Hi
    Can anyone explain the following in detail.
    Mater tables an fact tables are linked with Dim id's.
    Fact table and dim tables are linked with Sid id's or Sid keys.
    Thanks in advance
    Satya

    Hi Satya,
    The Fact table and Dimension tables are linked through the Dim Ids. The Dim Id, as the key of a Dimension table, represents a unique combination of char values in that Dim. These DIM Ids then combine to produce a unique combination in the Fact table of the cube.
    Each char value stored in teh system is assigned a Sid, and in a dimension table the unique combination of Sids (depending on the char values in the data records) creates a DIM id.
    Take a look at this link:
    https://media.sdn.sap.com/html/submitted_docs/Best_Practices/BW/documentation/Multi-dimensional_modeling_EN.doc
    Hope this helps...

  • Doubt about table locks

    i have a master table from which many other child tables take data for various summarizations. I have a cron tab in unix which calls oracle stored procedures to populate each of these tables in a sequential manner. For example table 1 starts getting populated at 6 am and is reading data from master table and the process goes on till 8 am. If another table 2 starts getting populated at 7 am and has to get data from the same rows as table 1 is reading . Will table 2 be able to access the mater table entirely without missing any rows?
    Thank you

    Given we have no version number and no code we have no way of knowing what you are or are not doing. Not even whether foreign key constraints exist. Thus no help is possible based on what little you've posted.
    The one bit of advice I will give is that I have not found a valid reason to use a *NIX cron job in a decade. Assuming a currently supported version of the product throw it away and use DBMS_SCHEDULER.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Replication Multimaster tables

    Hi all,
    Simply Question:
    I have two tables that second one is clone of the first; so I have two tables that they are a copy of each other.
    I want to replicate all changes of first into the second and all changes of the second to the first, so triggers forbiden.
    I am thinking about replacing one of the tables for a materialized view of the other table with reflresh on commit so all changes of the mater table would propagate to the MV.
    But my question/trouble is how to propagate the changes from the MV to the master table.
    Any Ideas?
    Thanks in advance

    So if your web application is write in this way that they directly manipulate two tables with identical data you must do a little cheat.
    Don't create MV but create view on master table as 1:1.
    Then create instead of trigger for insert,update and delete on view and this trigger do nothnig.
    Suppose than view name is my_view triggers code will be following
    create or replace trigger tg_donothing instead of insert or update or delete on my_view
    begin
    null;
    end;
    /So now when web aplication perform DML against master table DML is performed. When web aplication perform the same operation on my_view DB do nothnig.
    There could be only one problme if web aplication cechk SQL%ROWCOUNT to know how many rows was affected and compare it with SQL%ROWCOUNT against real table.
    Edited by: spajdy on Oct 21, 2009 10:51 AM
    Edited by: spajdy on Oct 21, 2009 10:52 AM

  • Reconcillation report for controlling

    My requirement as follows.
    this is a report for developing reconcillation statement for a company.
    i created program as per requirement it is not executing becasuse of  COEP table taking much time for executing.
    any body have reconcillation report with sourcode kindly forward me.
    TECHNICAL SPECIFICATIONS FOR RECONCILIATION REPORT
    SELECTION SCREEN:
    COMPANY CODE:  T001-BUKRS
    FISCAL YEAR         :  BKPF-GJAHR
    PERIOD                :  BKPF-MONAT
    OUTPUT FORMAT:
         PARTICULARS     AMOUNT
    A     TOTAL OF FI P/L ACCOUNTS     
    B     LESS: TOTAL OF FI P/L ACCOUNTS NOT FLOWN TO CO (including VVGK values)     
    C     TOTAL OF FI P/L ACCOUNTS FLOWN TO CO     
    D     TOTAL OF COST VOLUME (MAT+ FEK+MGK+WVK)     
    E     LESS : TOTAL OF RECONCILIATION ITEMS (ITEMS APPEARING ONLY IN CO - FOR E.G. ED,CC ETC)     
    F     (D) – (E)     
         RECONCILIATION -
    ( C ) = ( F )     
    START OF FIELD A
    TABLE : SKB1 (G/L Account Master Table)
    INPUT :  BUKRS (Company Code)
    SAKNR - NUMBER RANGE  4* (G/L Account No.)
    OUTPUT : SAKNR (G/L Account No)
    Result : This step will provide a list of Expenses G/L Accounts
    TABLE : GLT0 (G/L Account Balances table)
    INPUT :  BUKRS (Company Code)
    SAKNR - NUMBER RANGE  4*) (G/L Account No.)
    DRCRK = S (Debit / Credit Indicator)
    RYEAR =  GJAHR (Fiscal year)
    OUTPUT :  HSL0*( * -PERIOD ENTERED IN SELECTION) [G/L Account Balance Amount field in the Table]
    SORT AND SUM  SAKNR WISE WHILE DISPLAYING IN THE REPORT
    Result : This step will provide balances for the list of the  expenses G/L accounts fetched from table SKB1 for the company code, fiscal year and period mentioned in the selection screen
    LIST OF EXPS. G/L ACCOUNTS WITH VALUES AND THEIR TOTAL– LIST A
    TOTAL OF ABOVE LIST = FIELD A
    The List Is To Be Displayed In The Report On Double-Clicking On The Total (Field A)
    END OF FIELD A----
    START OF FIELD B
    TABLE    : SETLEAF (Table for values in a group)
    INPUT     : SETCLASS = 0102 (Code for Cost Element groups)
    SETNAME = FIXED, VARIABLE (Cost Element group names)
    OUTPUT :  VALFROM, VALTO (Cost Element from & to)
    Result : This step will provide a list of cost elements within the cost element groups – Fixed and Variable
    TABLE    : COSP (Cost Accounting postings)
    INPUT     :  GJAHR (Fiscal year)
    KSTAR = VALFROM TO VALTO – SETLEAF (Cost Elements range)
    VRGNG = COIN (CO Business transaction type)
    BEKNZ   = D (Debit / Credit indicator)
    OUTPUT :  KSTAR (Cost Element), WKG0( -PERIOD ENTERED IN SELECTION) [Amount field in the table]
    Result : This step will provide a list of Cost Centre values used for calculating Activity rate and Overheard rates)
    LIST OF COST ELEMENTS WITH VALUES AND THEIR TOTAL – LIST B
    COMPARE LIST A WITH LIST B FIND RECORDS THAT DON’T MATCH
    MAKE A LIST OF UNMATCHED RECORDS (FOUND ONLY IN LIST A) AND THEIR TOTALS – LIST C
    TABLE    : SETLEAF (Table for values in a group)
    INPUT     : SETCLASS = 0101 (Code for Cost Centre groups)
    SETNAME = JL-VVGK (Cost Centre group name)
    OUTPUT :  VALFROM ( COST CENTRE)
    Result : This will provide a list of Cost centers in the JL-VVGK cost element group
    TABLE    : COSP (Cost Accounting Postings)
    INPUT     : OBJNR   = CONCATENATE ‘KSKBX’ TO SETLEAF- VALFROM WITH SPACE, (OBJNR = Object Number)
    GJAHR (Fiscal year)
    VRGNG = COIN (CO Business transaction type)
    OUTPUT :  WKG0( -PERIOD ENTERED IN SELECTION) [Amount field in the table]
    Result : This will provide a list of Cost centers values in the in the JL-VVGK cost element group
    LIST OF VVGK COST CENTRES WITH VALUES AND IT’S TOTAL – LIST D
    ADD LIST C WITH LIST D THE TOTAL OF WHICH IS EQUAL TO FIELD B
    Result : This will provide the costs which are not used to apply Activity Rates and Overhead Rates on the products
    The Lists (List C & D) are To Be Displayed In The Report On Double-Clicking On The Total (Field B)
    END OF FIELD B----
    START OF FIELD C
    SUBTRACT FIELD B FROM FIELD A WHICH IS EQUAL TO FIELD C (NO LINE ITEMS REQUIRED)
    END OF FIELD C----
    START OF FIELD D
    TABLE    :  AUFK (Header table for Orders)
    INPUT     :  KOKRS = KBX (Controlling Area)
    BUKRS = SELECTION SCREEN (Company Code)
    AUART = RM01 (Order Type)
    OUTPUT :   OBJNR (Object Number)
    Result : This will provide a list Product Cost Collector Numbers
    MAT :
    TABLE    :  COSP (Cost Accounting Postings)
    INPUT     :  OBJNR-AUFK (Object number fetched from AUFK table)
    GJAHR = SELECTION SCREEN (fiscal year)
    WRTTP = 4 (Value type for Actuals)
    KSTAR = 41261 TO 41265 (Cost elements range)
    BEKNZ = D (Debit / Credit indicator)
    OUTPUT :  KSTAR (Cost Element), WTG00X (Amount field in the table), OBJNR –CONCATENATE (Object Number)
    Result : This will provide the MAT costs applied to the products through Product Cost Collectors - MATLIST
    FEK :
    TABLE    :  COEP (Cost Accounting Postings)
    INPUT     :  KOKRS = KBX (Controlling Area)
    PERIO = SELECTION SCREEN (Period)
    OBJNR-AUFK (Object Number fetched from AUFK table)
    GJAHR = SELECTION SCREEN (Fiscal year)
    KSTAR = 430001 TO 430010 (Cost Elements range)
    BUKRS = SELECTION SCREEN (Company Code)
    OUTPUT :  KSTAR (Cost Element), WTGBTR (Amount field), OBJNR –CONCATENATE (Object number)
    Result : This will provide the FEK costs applied to the products through Product Cost Collectors - FEKLIST
    MGK :
    TABLE    :  COEP (Cost Accounting Postings)
    INPUT     :  KOKRS = KBX (Controlling Area)
    PERIO = SELECTION SCREEN (Period)
    OBJNR-AUFK (Object Number fetched from AUFK table)
    GJAHR = SELECTION SCREEN (Fiscal year)
    KSTAR = 410001 (Cost Element)
    BUKRS = SELECTION SCREEN (Company Code)
    OUTPUT :  KSTAR (Cost Element), WTGBTR (Amount field), OBJNR – CONCATENATE (Object Number)
    Result : This will provide the MGK costs applied to the products through Product Cost Collectors - MGKLIST
    WVK :
    TABLE    :  COEP (Cost Accounting postings)
    INPUT     :  KOKRS = KBX (Controlling Area)
    PERIO = SELECTION SCREEN (Period)
    OBJNR-AUFK (Object Number fetched from AUFK table)
    GJAHR = SELECTION SCREEN (Fiscal year)
    KSTAR = 410015 (Cost Element)
    BUKRS = SELECTION SCREEN (Company Code)
    OUTPUT :  KSTAR (Cost Element), WTGBTR (Amount field), OBJNR – CONCATENATE (Object Number)
    Result : This will provide the WVK costs applied to the products through Product Cost Collectors - WVKLIST
    TOTAL OF MAT – WTG00X, FEK - WTGBTR, MGK - WTGBTR, WVK – WTGBTR = FIELD D
    The Lists  are (MATLIST, FEKLIST, MGKLIST, WVKLIST) To Be Displayed categorically In The Report On Double-Clicking On The Total (Field D)
    END OF FIELD D----
    START OF FIELD E
    TABLE    :  COSS (Cost Accounting Postings)
    INPUT     :  KOKRS = KBX (Controlling Area)
    GJAHR = SELECTION SCREEN (Fiscal year)
    WRTTP = 4 (Value type for Actuals)
    KSTAR = 44951 TO 44958 (Cost Elements range)
    VRGNG = COIN, RKU1, RKU3, (CO Business transaction type)
    BEKNZ = D (Debit / Credit Indicator)
    OUTPUT :  KSTAR (Cost Element), WTG00X (Amount field)
    Result : This will provide the costs posted only through Controlling (not FI, MM, SD, PP) which are used to calculate Activity rates and Overhead rates applied to the product – EDCCLIST
    The EDCCLIST Is To Be Displayed In The Report On Double-Clicking On The Total (Field E)
    END OF FIELD E----
    START OF FIELD F
    SUBTRACT FIELD D FROM FIELD E WHICH IS EQUAL TO FIELD F (NO LINE ITEMS REQUIRED)
    END OF FIELD F----
    I have return code like as follows.
    *& Report  ZCO_RECONCILIATION_REPORT                                   *
    REPORT  zco_reconciliation_report  NO STANDARD PAGE HEADING
                                    LINE-COUNT 60 LINE-SIZE 180.
    TABLES : t001.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : p_bukrs  LIKE t001-bukrs MEMORY ID buk ,
                 p_year   LIKE glt0-ryear MEMORY ID gjh ,
                 p_period LIKE bkpf-monat .
    SELECTION-SCREEN END OF BLOCK b1 .
    DATA : BEGIN OF it_skb1 OCCURS 0,
           saknr LIKE skb1-saknr ,
           END OF it_skb1.
    DATA : BEGIN OF it_glt0 OCCURS 0,
           racct LIKE glt0-racct ,
           hsl01 LIKE glt0-hsl01,
           END OF it_glt0.
    DATA : BEGIN OF it_glt0_sum OCCURS 0,
           racct LIKE glt0-racct ,
           hsl01 LIKE glt0-hsl01,
           END OF it_glt0_sum.
    DATA : BEGIN OF it_setb1 OCCURS 0,
           valfrom LIKE cosp-kstar,                " setleaf-valfrom,
           valto   LIKE setleaf-valto,
           END OF it_setb1.
    DATA : BEGIN OF it_setb2 OCCURS 0,
           valfrom LIKE setleaf-valfrom,
           objnr LIKE coss-objnr,
           END OF it_setb2.
    DATA : BEGIN OF it_setd OCCURS 0,
           valfrom LIKE setleaf-valfrom,
           objnr LIKE coss-objnr,
           END OF it_setd.
    DATA : BEGIN OF it_sete OCCURS 0,
           valfrom LIKE setleaf-valfrom,
           objnr LIKE coss-objnr,
           END OF it_sete.
    DATA : BEGIN OF it_cospb OCCURS 0,
           kstar LIKE cosp-kstar,
           wkg001 LIKE cosp-wkg001,
           END OF it_cospb.
    DATA : BEGIN OF it_cossb OCCURS 0,
           objnr LIKE coss-objnr,
           kstar LIKE coss-kstar,
           wkg001 LIKE coss-wkg001,
           END OF it_cossb.
    DATA : BEGIN OF it_bkpf OCCURS 0,
           belnr LIKE bkpf-belnr,
           END OF it_bkpf.
    DATA : BEGIN OF it_cossd1 OCCURS 0,
          objnr LIKE coss-objnr,
           belnr  LIKE bseg-belnr,
           wkg001 LIKE coss-wkg001,
           END OF it_cossd1.
    DATA : BEGIN OF it_cossd2 OCCURS 0,
           objnr LIKE coss-objnr,
           kstar LIKE coss-kstar,
           wkg001 LIKE coss-wkg001,
           END OF it_cossd2.
    DATA : BEGIN OF it_cosse OCCURS 0,
           objnr LIKE coss-objnr,
           kstar LIKE coss-kstar,
           wkg001 LIKE coss-wkg001,
           END OF it_cosse.
    dATA : itab_period TYPE string .
    DATA : BEGIN OF it_cospb_sum OCCURS 0,
           kstar LIKE cosp-kstar,
           wkg001 LIKE cosp-wkg001,
           END OF it_cospb_sum.
    DATA : BEGIN OF it_cossb_sum OCCURS 0,
           kstar LIKE cosp-kstar,
           wkg001 LIKE cosp-wkg001,
           END OF it_cossb_sum.
    DATA : BEGIN OF it_cossd1_sum OCCURS 0,
           kstar  LIKE cosp-kstar,
           wkg001 LIKE cosp-wkg001,
           END OF it_cossd1_sum.
    DATA : BEGIN OF it_cossd2_sum OCCURS 0,
           kstar LIKE cosp-kstar,
           wkg001 LIKE cosp-wkg001,
           END OF it_cossd2_sum.
    DATA : BEGIN OF it_cosse_sum OCCURS 0,
           kstar LIKE cosp-kstar,
           wkg001 LIKE cosp-wkg001,
           END OF it_cosse_sum.
    DATA : BEGIN OF it_unmatch OCCURS 0,
           kstar LIKE cosp-kstar,
           wkg001 LIKE cosp-wkg001,
           END OF it_unmatch.
    DATA : BEGIN OF it_merge OCCURS 0,
           kstar LIKE cosp-kstar,
           wkg001 LIKE cosp-wkg001,
           END OF it_merge.
    DATA : BEGIN OF it_merged OCCURS 0,
           kstar LIKE cosp-kstar,
           wkg001 LIKE cosp-wkg001,
           END OF it_merged.
    DATA : BEGIN OF it_field OCCURS 0,
           fielda TYPE p DECIMALS 2,
           fieldb TYPE p DECIMALS 2,
           fieldc TYPE p DECIMALS 2,
           fieldd TYPE p DECIMALS 2,
           fielde TYPE p DECIMALS 2,
           fieldf TYPE p DECIMALS 2,
           END OF it_field.
    DATA : v_fielda TYPE p DECIMALS 2,
           v_fieldb TYPE p DECIMALS 2,
          v_fieldc TYPE p DECIMALS 2,
           v_fieldd TYPE p DECIMALS 2,
           v_fielde TYPE p DECIMALS 2,
          v_fieldf TYPE p DECIMALS 2,
           v_objnr LIKE coss-objnr,
          v_kstar LIKE cosp-kstar,
           v_field(1).
          yr(4),
          mon(2),
          day(2),
          v_date LIKE sy-datum,
          v_date1 LIKE sy-datum,
          flag1 TYPE c ,
          flag2 TYPE c ,
          flag3 TYPE c ,
          flag4 TYPE c,
          flag5 TYPE c.
    data : begin of iaufk occurs 0 ,
           objnr like aufk-objnr,
           end of iaufk .
    DATA : BEGIN OF IFEK OCCURS 0 ,
           KSTAR LIKE COEP-KSTAR,
           WTGBTR LIKE COEP-WTGBTR,
           OBJNR  LIKE COEP-OBJNR,
           END OF IFEK.
    DATA : BEGIN OF IMAT OCCURS 0 ,
           KSTAR LIKE COSP-KSTAR,
           WTG001 LIKE COSP-WTG001,
           WTG002 LIKE COSP-WTG002,
           WTG003 LIKE COSP-WTG003,
           WTG004 LIKE COSP-WTG004,
           WTG005 LIKE COSP-WTG005,
           WTG006 LIKE COSP-WTG006,
           WTG007 LIKE COSP-WTG007,
           WTG008 LIKE COSP-WTG008,
           WTG009 LIKE COSP-WTG009,
           WTG010 LIKE COSP-WTG010,
           WTG011 LIKE COSP-WTG011,
           WTG012 LIKE COSP-WTG012,
           WTG013 LIKE COSP-WTG013,
           WTG014 LIKE COSP-WTG014,
           WTG015 LIKE COSP-WTG015,
           WTG016 LIKE COSP-WTG016,
           OBJNR LIKE COSP-OBJNR,
           END OF IMAT.
    data : begin of imgk occurs 0 ,
            kstar like coep-kstar,
            wtgbtr like coep-wtgbtr,
            objnr   like coep-objnr,
            end of imgk.
    data : begin of iwvk occurs 0 ,
            kstar  like coep-kstar,
            wtgbtr like coep-wtgbtr,
            objnr  like coep-objnr,
            end of iwvk.
    AT SELECTION-SCREEN.
      PERFORM validity.
    START-OF-SELECTION .
      PERFORM get_period.
      PERFORM fill_skb1.
      PERFORM get_aufk .
      perform get_COEP .
      PERFORM GET_MGK.
      perform get_wvk.
      PERFORM fill_it_glt0.
      PERFORM fill_it_glt0_sum.
      PERFORM fill_set.
      PERFORM fill_cospb_cossb.
      PERFORM sum_cospb_cossb.
      PERFORM fill_cossd1_cossd2.
      PERFORM sum_cossd1_cossd2.
      PERFORM fill_cosse.
      PERFORM sum_cosse.
      PERFORM fill_it_unmatch.
      PERFORM fill_it_merge.
      PERFORM fill_it_merged.
      PERFORM fill_it_fieldb.
      PERFORM fill_it_fieldc.
      PERFORM fill_it_fieldd.
      PERFORM fill_it_fieldf.
      PERFORM display.
    PERFORM fill_it_fielde.
    TOP-OF-PAGE.
      PERFORM header.
    AT LINE-SELECTION.
      PERFORM list_display.
    *&      Form  VALIDITY
          text
    -->  p1        text
    <--  p2        text
    FORM validity .
      SELECT SINGLE bukrs FROM t001 INTO t001-bukrs WHERE bukrs = p_bukrs.
      IF sy-subrc NE 0.
      ENDIF.
    ENDFORM.                    " VALIDITY
    *&      Form  FILL_SKB1
          text
    -->  p1        text
    <--  p2        text
    FORM fill_skb1 .
      SELECT saknr FROM skb1 INTO TABLE it_skb1
               WHERE bukrs = p_bukrs
               AND   saknr LIKE '000004%' .
      SORT it_skb1 BY saknr.
    ENDFORM.                                                    " FILL_SKB1
    *&      Form  FILL_IT_GLT0
          text
    -->  p1        text
    <--  p2        text
    FORM fill_it_glt0 .
      CASE p_period.
        WHEN '1'  OR '01'.
          SELECT racct hsl01
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '2' .
          SELECT racct hsl02
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '3' .
          SELECT racct hsl03
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '4' .
          SELECT racct hsl04
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '5' .
          SELECT racct hsl05
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '6' .
          SELECT racct hsl06
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '7' .
          SELECT racct hsl07
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '8' .
          SELECT racct hsl08
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '9' .
          SELECT racct hsl09
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '10' .
          SELECT racct hsl10
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '11' .
          SELECT racct hsl11
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '12' .
          SELECT racct hsl12
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '13' .
          SELECT racct hsl13
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '14' .
          SELECT racct hsl14
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '15' .
          SELECT racct hsl15
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
        WHEN '16' .
          SELECT racct hsl16
                 FROM glt0
                 INTO TABLE it_glt0
                 FOR ALL ENTRIES IN it_skb1
                 WHERE racct = it_skb1-saknr
                   AND   bukrs = p_bukrs
                   AND   drcrk = 'S'
                   AND   ryear = p_year.
                  AND   rtcur = 'INR' .
      ENDCASE.
      SORT it_glt0 BY racct.
    ENDFORM.                    " FILL_IT_GLT0
    *&      Form  FILL_IT_GLT0_SUM
          text
    -->  p1        text
    <--  p2        text
    FORM fill_it_glt0_sum .
      SORT it_glt0 BY racct.
      LOOP AT it_glt0.
        it_glt0_sum-racct = it_glt0-racct.
        AT END OF racct.
          SUM.
          it_glt0_sum-hsl01 = it_glt0-hsl01.
          APPEND it_glt0_sum.
          CLEAR it_glt0_sum.
        ENDAT.
      ENDLOOP.
      LOOP AT it_glt0_sum.
        AT LAST.
          SUM.
         it_fielda-fielda = it_glt0_SUM-hsl01.
          it_field-fielda = it_glt0_sum-hsl01.
          APPEND it_field.
        ENDAT.
      ENDLOOP.
    ENDFORM.                    " FILL_IT_GLT0_SUM
    *&      Form  fill_SET
          text
    -->  p1        text
    <--  p2        text
    FORM fill_set .
      SELECT valfrom valto FROM setleaf INTO TABLE it_setb1
                          WHERE setclass = '0102' AND
                                setname IN ('FIXED', 'VARIABLE') .
      SORT it_setb1 BY valfrom .
      SELECT valfrom FROM setleaf INTO CORRESPONDING FIELDS OF TABLE it_setb2
                         WHERE setclass = '0101' AND
                               setname = 'JL-VVGK'.
      SORT it_setb2 BY valfrom .
      SELECT valfrom FROM setleaf INTO CORRESPONDING FIELDS OF TABLE it_setd
                          WHERE setclass = '0102' AND
                                setname IN ('FBK', 'MAT').
      SORT it_setd BY valfrom .
      SELECT valfrom FROM setleaf INTO CORRESPONDING FIELDS OF TABLE it_sete
                          WHERE setclass = '0102' AND
                                setname = 'CO-RECON'.
      SORT it_sete BY valfrom .
      LOOP AT it_sete.
        CONCATENATE 'KSKBX' it_sete-valfrom INTO v_objnr SEPARATED BY space.
        it_sete-objnr = v_objnr.
        MODIFY it_sete.
      ENDLOOP.
      SORT it_sete BY valfrom .
      LOOP AT it_setb2.
        CONCATENATE 'KSKBX' it_setb2-valfrom INTO v_objnr SEPARATED BY space.
        it_setb2-objnr = v_objnr.
        MODIFY it_setb2.
      ENDLOOP.
      LOOP AT it_setd.
        CONCATENATE 'KSKBX' it_setd-valfrom INTO v_objnr SEPARATED BY space.
        it_setd-objnr = v_objnr.
        MODIFY it_setd.
      ENDLOOP.
    ENDFORM.                    " fill_SET
    *&      Form  fill_cospb_cossb
          text
    -->  p1        text
    <--  p2        text
    FORM fill_cospb_cossb .
      CASE p_period.
        WHEN '1' .
          SELECT kstar wkg001 FROM cosp INTO TABLE it_cospb
          FOR ALL ENTRIES IN it_setb1
                       WHERE kstar = it_setb1-valfrom
                       AND   gjahr = p_year
                      AND     vrgng = 'COIN'
                      AND     beknz = 'S'.
          SELECT objnr kstar wkg001 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '2' .
          SELECT kstar wkg002 FROM cosp INTO TABLE it_cospb
           FOR ALL ENTRIES IN it_setb1
                        WHERE kstar = it_setb1-valfrom
                        AND   gjahr = p_year
                       AND     vrgng = 'COIN'
                       AND     beknz = 'S'.
          SELECT objnr kstar wkg002 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '3' .
          SELECT kstar wkg003 FROM cosp INTO TABLE it_cospb
          FOR ALL ENTRIES IN it_setb1
                       WHERE kstar = it_setb1-valfrom
                       AND   gjahr = p_year
                      AND     vrgng = 'COIN'
                      AND     beknz = 'S'.
          SELECT objnr kstar wkg003 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '4' .
          SELECT kstar wkg004 FROM cosp INTO TABLE it_cospb
          FOR ALL ENTRIES IN it_setb1
                       WHERE kstar = it_setb1-valfrom
                       AND   gjahr = p_year
                      AND     vrgng = 'COIN'
                      AND     beknz = 'S'.
          SELECT objnr kstar wkg004 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '5' .
          SELECT kstar wkg005 FROM cosp INTO TABLE it_cospb
          FOR ALL ENTRIES IN it_setb1
                       WHERE kstar = it_setb1-valfrom
                       AND   gjahr = p_year
                      AND     vrgng = 'COIN'
                      AND     beknz = 'S'.
          SELECT objnr kstar wkg005 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '6' .
          SELECT kstar wkg006 FROM cosp INTO TABLE it_cospb
            FOR ALL ENTRIES IN it_setb1
                         WHERE kstar = it_setb1-valfrom
                         AND   gjahr = p_year
                        AND     vrgng = 'COIN'
                        AND     beknz = 'S'.
          SELECT objnr kstar wkg006 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '7' .
          SELECT kstar wkg007 FROM cosp INTO TABLE it_cospb
           FOR ALL ENTRIES IN it_setb1
                        WHERE kstar = it_setb1-valfrom
                        AND   gjahr = p_year
                       AND     vrgng = 'COIN'
                       AND     beknz = 'S'.
          SELECT objnr kstar wkg007 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '8' .
          SELECT kstar wkg008 FROM cosp INTO TABLE it_cospb
           FOR ALL ENTRIES IN it_setb1
                        WHERE kstar = it_setb1-valfrom
                        AND   gjahr = p_year
                       AND     vrgng = 'COIN'
                       AND     beknz = 'S'.
          SELECT objnr kstar wkg008 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '9' .
          SELECT kstar wkg009 FROM cosp INTO TABLE it_cospb
          FOR ALL ENTRIES IN it_setb1
                       WHERE kstar = it_setb1-valfrom
                       AND   gjahr = p_year
                      AND     vrgng = 'COIN'
                      AND     beknz = 'S'.
          SELECT objnr kstar wkg009 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '10' .
          SELECT kstar wkg010 FROM cosp INTO TABLE it_cospb
           FOR ALL ENTRIES IN it_setb1
                        WHERE kstar = it_setb1-valfrom
                        AND   gjahr = p_year
                       AND     vrgng = 'COIN'
                       AND     beknz = 'S'.
          SELECT objnr kstar wkg010 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '11' .
          SELECT kstar wkg011 FROM cosp INTO TABLE it_cospb
          FOR ALL ENTRIES IN it_setb1
                       WHERE kstar = it_setb1-valfrom
                       AND   gjahr = p_year
                      AND     vrgng = 'COIN'
                      AND     beknz = 'S'.
          SELECT objnr kstar wkg011 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '12' .
          SELECT kstar wkg012 FROM cosp INTO TABLE it_cospb
           FOR ALL ENTRIES IN it_setb1
                        WHERE kstar = it_setb1-valfrom
                        AND   gjahr = p_year
                       AND     vrgng = 'COIN'
                       AND     beknz = 'S'.
          SELECT objnr kstar wkg012 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '13' .
          SELECT kstar wkg013 FROM cosp INTO TABLE it_cospb
          FOR ALL ENTRIES IN it_setb1
                       WHERE kstar = it_setb1-valfrom
                       AND   gjahr = p_year
                      AND     vrgng = 'COIN'
                      AND     beknz = 'S'.
          SELECT objnr kstar wkg013 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '14' .
          SELECT kstar wkg014 FROM cosp INTO TABLE it_cospb
         FOR ALL ENTRIES IN it_setb1
                      WHERE kstar = it_setb1-valfrom
                      AND   gjahr = p_year
                     AND     vrgng = 'COIN'
                     AND     beknz = 'S'.
          SELECT objnr kstar wkg014 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '15' .
          SELECT kstar wkg015 FROM cosp INTO TABLE it_cospb
          FOR ALL ENTRIES IN it_setb1
                       WHERE kstar = it_setb1-valfrom
                       AND   gjahr = p_year
                      AND     vrgng = 'COIN'
                      AND     beknz = 'S'.
          SELECT objnr kstar wkg015 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
        WHEN '16' .
          SELECT kstar wkg016 FROM cosp INTO TABLE it_cospb
           FOR ALL ENTRIES IN it_setb1
                        WHERE kstar = it_setb1-valfrom
                        AND   gjahr = p_year
                       AND     vrgng = 'COIN'
                       AND     beknz = 'S'.
          SELECT objnr kstar wkg016 FROM cosp
                           INTO TABLE it_cossb
                           FOR ALL ENTRIES IN it_setb2
                            WHERE objnr = it_setb2-objnr
                             AND  vrgng  IN ('COIN','RKIV')
                            AND   gjahr = p_year.
      ENDCASE.
      SORT it_cospb BY kstar.
      SORT it_cossb BY kstar.
    ENDFORM.                    " fill_cospb_cossb
    *&      Form  SUM_COSPB_COSSB
          text
    -->  p1        text
    <--  p2        text
    FORM sum_cospb_cossb .
      LOOP AT it_cospb.
        it_cospb_sum-kstar = it_cospb-kstar.
        AT END OF kstar.
          SUM.
          it_cospb_sum-wkg001 = it_cospb-wkg001.
          APPEND it_cospb_sum.
          CLEAR it_cospb_sum.
        ENDAT.
      ENDLOOP.
      LOOP AT it_cossb.
        it_cossb_sum-kstar = it_cossb-kstar.
        AT END OF kstar.
          SUM.
          it_cossb_sum-wkg001 = it_cossb-wkg001.
          APPEND it_cossb_sum.
          CLEAR it_cossb_sum.
        ENDAT.
      ENDLOOP.
      SORT it_cospb_sum BY kstar.
      SORT it_cossb_sum BY kstar.
    ENDFORM.                    " SUM_COSPB_COSSB
    *&      Form  fill_it_unmatch
          text
    -->  p1        text
    <--  p2        text
    FORM fill_it_unmatch .
      LOOP AT it_glt0_sum.
        READ TABLE it_cospb_sum WITH KEY kstar = it_glt0_sum-racct.
        IF sy-subrc NE 0.
          it_unmatch-kstar = it_glt0_sum-racct.
          it_unmatch-wkg001 = it_glt0_sum-hsl01.
          APPEND it_unmatch.
          CLEAR it_unmatch.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " fill_it_unmatch
    *&      Form  fill_it_merge
          text
    -->  p1        text
    <--  p2        text
    ----

    We can't really tell without seeing the code. Would you post it please? (Just the portions that are overly slow.)
    Rob

  • How to get field values in ALV based on user provided input

    Hi,
    In my ALV grid, I have 2 fields:
    1. Material ID
    2. Material Description
    When user provides input to Material ID field, the material Description field should get populated immediately.
    Note: Curretly I am able to do it based on the sy-ucomm = 'Enter', i.e. when the user presses "Enter" outside the ALV grid, I retrieve Description from Mat Table and populate this in Mat_Desc in ALV grid.
    I want to do the same operation whenever tab is pressed (not when user presses enter outside the ALV grid).
    Please provide your inputs for this.
    Thanks & regards,
    Ravish

    Hi Ravish,
    Check <b>BCALV_TEST_GRID_F4_HELP</b> program for F4 help on ALV Grid.
    Thanks
    Venkat.O

  • Filtering values in Matrix

    Hi All,
    We have a UDO with three tables. In fact it contains a Mater table, a child table and child to child. But in UDO we defined the  third table as a child to master itself.
    We created a  form in which we have header part for master table and two matrix for child tables.
    The problem we facing is that  when user selects a record in first matrix, he should be able to enter data related to that row in the second matrix. When he moves to the next row in first matrix, second matrix should hide existing data and should be ready to accept data related to current row in first matrix without loosing the earlier entered data related to first row. The same should happen while updation also.
    Please help
    Thanks in Advance
    Ajith G

    Hi Satish,
    This is Toms on behalf of Mr Ajith. on the above query.
    The functionality is like this:
    We want to create an Item Property master screen.
    Defining new properties and its applicability to Item Groups and  its values
    applicable to each Item Group.
    Property:.......Item group...........Values
    Colour.........   Refrigerator.........Silver
    .. ...........................................Steel
    .. ...........................................Red
    .. ...........................................Grey etc.
    .....................TV.... ................Black
    ..............................................Silver etc.
    Here, Item Groups are in the 1st matrix, and Applicable Values corresponding to the Property is in the 2nd matrix.
    There are 3 tables, one for the property, other one for the Applicable Item groups
    and the third one for the applicable property values corresponding to each Item group.
    Regards,
    Toms
    Edited by: TomsPA on Jan 29, 2010 1:27 PM

  • Query mode in forms

    Hi, (anyone please help me out)
    I have two blocks namely recmast and recdet blocks. Recmast block deals with mater table for customer receipts and recdet block deals with corresponding invoices that are applied against the money receipt for a customer.
    I did the following steps and was facing problem.
    1. created master block for receipt master table (MRNO, MRDT,MRVAL,CCODE,STATUS) these are fields.
    2. Created detail block for receipt details (mrno, invno, invamt) these are fields in the database table. But in the block I have some non data base fields also.
    3. When I select the customer in the master block all the unpaid invoices are listed in the deails block (invno, invdt, invamt, balamt, amtpaid col with initial value as zero).
    4. As and when I select the invoices using check bok the money receipt value is getting adjusted and we can do so as long as the balance available reaches zero amount.
    5. When I save, I should save the master block fields (database fields) which I working fine.
    6. While saving I want to save only invoices which are adjusted against the receipt and not unchecked invoices.
    Here both are database block only. I have achieved it using database block for master table and content block for details table. While saving I am able to achieve my target. But I am facing a problem while querying. When I query the record I should view both master details and corresponding invoices which are originally adjusted against the receipt. This I am simulating from oracle apps (here invoices are separately shown when we click the "application" button only).
    Please help me out.
    Regards,
    Chandra sekar
    Message was edited by:
    user519600

    Hi,
    what I have understand from your question is you want to save only those record which are being updated by user, for that you can either user "update changed columns only" option of the block, or you can have an "Pre insert" trigger in which you can write you saving logic and that will override forms default saving logic,
    and other thing is if you dont have detail block as database block you cannt query it by the default way, then you can populate it by manual coding i.e. make a cursor and populate it.
    www.startwithoracle.com

  • Logical Data Modellin

    Dear All
    Could you explain about Logical Datamodeling using Explain Plan and TKProf.
    When we will for Outerjoin in real time applications..
    Thanks and Regards
    B.Rangarajan[b]

    not sure what you are asking in the fast part.
    but here is an example for outer join.
    drop table master
    create table master
    (id number primary key
    ,name varchar2(256))
    insert into master values(1, 'Accounts')
    insert into master values(2, 'Sales')
    drop table detail
    create table detail
    (id number primary key
    ,ename varchar2(256)
    ,masterid number references master)
    insert into detail values(1,'Scott',1)
    now when you perform an equi join on the two tables
    to get the employee and the department name in which
    he is working, you get only one record with the below query.
    set linesize 100
    column dname format a32
    column ename format a32
    select name dname , ename
    from master,detail
    where master.id=detail.masterid
    You will not get the sales record from the mater table becuase there
    are no corresponding records for this in the child table.
    But when you also want to display the departments which does not
    have employees then the outer join comes into picture.
    set linesize 100
    column dname format a32
    column ename format a32
    select name dname , ename
    from master,detail
    where master.id=detail.masterid(+)
    Now you should get sales records also in the results.
    the plus is added towards the detail table becuase the
    records are missing in that table.

  • Use of af:panelCollection with Master Detail

    Hi,
    I am using Master Detail Top Bottom Template. Also for these tables I wanted to use af:panelCollection. But when I add an af:panelCollection to my table ( Master Table), Master Detail functionality of these tables go away. As in on clicking on any row in the Mater Table, row in the Detail table does not change accordingly.
    Is there any way out of this?
    Thanks in advance.
    Regards
    Chitrangad

    Note, that PanelCollection is a naming container. So if you have wrapped your table in a PanelCollection you will have to add PanelCollection's ID to master table's ID when refering the master table as a partial trigger for the detail one. For example, if the value of detail table's partialTriggers attribute has been <tt>partialTriggers="::masterTable"</tt> now it should become <tt>partialTriggers="::pnlColl:materTable"</tt> (supposing that PanelCollection's ID is <tt>pnlColl</tt>).

  • Primary Key / Foreign Key relationship

    Hi Folks,
    I have a MASTER_TABLE which has master values . This table has two fields, STATUS & STATUS_TEXT,  Key field is STATUS.
    This is a check table for another table INSTANCE_TABLE which also has field STATUS; this is not a key field though.
    The requirement is: If I  attempt to delete a STATUS value from MASTER_TABLE, it should not allow me if there is any record in INSTANCE_TABLE which has the same STATUS value. Is there a way to establish such a relationship between the two tables?
    Thank you for the help!
    Sid

    Hi Friend,
    Only through table Maintaince only it can be acheived , by table relatio it can not be  .
    because as you know the  non primary key cannot be be  check table field  .means
    In Mater table STATUS is primary key so you are  making it as check table field to  Insance table  STATUS Field.
    But  in Instance table is not a primary key so , without primary key you will not be able to  do the foriegn key relation to the master table ,so that  it will not be check table becs of that they check will not happen for your  scenario  . to acheieve this you need to either make your STATUS field in Instance table also as primary key and  do the foerign key relationship with  Master table  .
    Or else  write an event in the table maintainance  .
    Regards,

Maybe you are looking for

  • While trying to access  i phone through pc (windows 7 ) showing error 'you do not have permission to access this device '

    while trying to access  i phone through pc (windows 7 ) showing error 'you do not have permission to access this device ' And while trying  to unlock screen after lock , slide not working 'slide to unlock'

  • Issue with SAP MII Batch RDS

    Hi We are deploying the SAP MII Batch manufacturing Rapid deployment solution.After deploying the package and  setting up all the config guide, we have following concerns. 1. The orders are coming in operator dashboard but can not see work instructio

  • Publisher Stalls during page navigation

    I'm experiencing an unusual problem with my BI Publisher 11g instance. Sometimes it will take a page a lengthy amount of time to load or even respond. I have check the logs and do not see anything unusual. I'll be happy to provide additional details

  • Missing column at the end of report in Crystal report server 2008 VI

    When we run the reports in Crystal report server 2008 VI, for some reports we see the last column is missing some characters. I have few reports that show numbers with decimals at the end of the report, but in CMC it cuts the number at the start of t

  • Trying to copy object bus1001006

    I am trying to crate a workflow for material change for that I need to copy object BUS1001006 while creating a container , I am getting an error message staying ‘Object type 'ZRSP1001' is not defined’ please guide me what could be cause of it