Tables of FF68

I am Trying to print a check list after feeding through T code ff68, but the problem is iam getting all the information but not the customer information. Can any body tell in which table the information is stored before posting to Accounts.After posting to accounts the information we can get from BSEG etc. Please advise.
Thanks.

hai...
This table will be updated when, Account Posting is done. Before that I want.
Thanks
K Hari Shankar

Similar Messages

  • What are the Manual check Deposit Tables and  Fields(FF68)

    Hi Gurus,
    I have reqirement to get get Details about  SlipNO,Cheque NO,Cheque Date,Posting Date,
    Party code,Bank key,Currency ,Amount,Bank Account,Value Date,Entry Date,Banker's name.
    could u help me
    Thanks in Advance
    Sivakumar.

    Hi,
    Yes it doesn't.  Where do you store this information when you are posting in FF68, can you tell me the field names or where exactly do you see these fields.
    For check deposit, you can design your own layout and field text in the layout will not be exactly what you will see in the table.  I think that must be the case in your scenario. 
    Suggest look at the layout configuration from Transaction code OT45, open the variant you use (you can find that from the FF68 screen, menu option Settings --> specifications).
    Also, pick one already posted check deposit in FF68 and look for the values you are interested in for that statement in tables FEBKO and FEBEP.
    There are other tables in Banking but I do not think they would be of much use like FEBCL, FEBRE and FEBVW.  FEBVW will give you the bank name where you are depositing the slip.
    Cheers.

  • Table where Manual Check Posting via FF68 is stored

    Hello Colleagues
    I have posted a Manual Check via T.Code FF68. Is there a Table where I can see the below fields for the Check that I have posted.
    1. Check No.
    2. Check Issuer.
    3. Check Amount
    I have gone thru Table PCEC and FKKCR but could not find all of the above 3 fields.
    Pls let me know if  you know any other Table displaying all 3 above.
    Thanks in Advance
    Regards
    Amarnath.R

    Hi Amarnath,
    I do not know that the tables you are looking for, but this is what i normally do to find out the tables related to a transaction.
    1. create 2 GUI session, and then turn on the trace, ST05
    2. make sure you select the 'Activate Trace with Filter'
    3. enter your userid, and click continue.
    4. switch to another GUI session, and do your transaction
    5. switch back to the previous session, and select 'Deactivate Trace'
    6. select 'display trace'.  look for the OPEN operation and see the table names.  then use se11 to check the table.
    I hope you can try this method for what you need.

  • FF68 house bank and account id detail update - table

    Hi,
    we are doing the process of FF68 for customer incoming payment. here i need to know which table house bank, account id and check number will update.
    govind

    Hi, FEBEP,

  • Error in T-code FF68

    Dear Senior's,
    I am trying to upload a chequ entry thru FF68. The settings which I have done in specifications are:
    Check mark on int. bank determination
    Start Variant "1000 Check Deposit"
    Customer Matchcode ID "D"
    Processing Type 4
    The cheque entry window:
    Bank Account number     1234567891011           G/L Account       110009      Cocode       xyz           Crcy     INR
    Amount        CNO          Customer            Bank Key                   Bank Account no.                 Doc No.
    10000            1               300001               HDFC/123456            1234567891011                    100000048/ 0040000083
    Document number 100000048 has been taken from T-code FBL5N
    Documnet number 40000083 is billing document number
    I have tried Bank key as characters and numbers both but the error is same
    I have tried document number and billing document number both but the error is same.
    The error which I am getting while posting the cheque entry is:
    Posting Ar                       Error         Total       Total debit
    Bank Accounting              1               1             10000
    *Bank Accounting             1               1             10000
    Bank Accounting           1               1             10000
    Sub ledger accounting      1               1             10000
    *Sub ledger accounting     1               1             10000
    sub ledger accounting   1               1             10000
                                         2               2             20000
    Kindly rectify the error and please guide me how to find this error.
    Regards,
    Anand Malu
    Jr. SAP Consultant
    Edited by: genius_anand on Oct 9, 2009 8:40 AM
    Edited by: genius_anand on Oct 9, 2009 8:44 AM
    Edited by: genius_anand on Oct 22, 2009 9:13 AM

    Hi poonam,
    we are giving the data in sproxy in 200,it is getting updated in table. But when we checking in SMQ2 , it showing error

  • User Exit for FF68 to modify the bank deposit slip

    Hi ,
    I am searching for a user exit on FF68-to modify the bank deposit slip.
    Users want to print the cheque deposit slip grouped by the bank/branch and the cheque number.
    currently it is not grouping them even they have the same cheque number
    i am a bit new to enhancements, and user exists
    I searched the cmod and vmod but could not find smthing useful
    Can you please help?
    Thank you

    hi Shailaja
    thank you very much for your help
    i checked it via smod
    It says Transfer Additional Data in Finnish TITO Format.
    do you know what steps to follow to make the change?
    i am new to this
    as far i read i need to change this exit -change the table
    but how to link this with the code?
    does the ff68 knows that exit already?

  • Modifying Transaction FF68(URGENT)

    Dear All,
      I need to add a new field in screen 8000 of Transaction FF68. I made another transaction YFF68 and added that field.
    When am running SM35(for yff68) , it calls FB01 where there is a field called Account(RF05A-NEWKO) which gets value in the initial screen. But not after the main screen.
    The field is same in the follow up screen.
    Can anyone pls guide me how to solve this issue ?
    Awaiting your soonest response.
    Pradipta K. Mishra

    Hi Pradipta,
    I am having the bdc for a similar transaction FBV1.
    Here as you said, we are having the posting key and the account number in the first screen, though its needed in the next screen.
    I am sending you a part of the bdc code for that.. Hope that it will be useful.
    DATA: BEGIN OF infile OCCURS 0,
      rec_type(01)                  TYPE c,
      post_key(02)                  TYPE c,
      fill_01(08)                   TYPE c,
      accnt(10)                     TYPE c,
      fill_02(04)                   TYPE c,
      amount(16)                    TYPE c,
      business_area(03)             TYPE c,
      fill_03(06)                   TYPE c,
      special_gl(01)                TYPE c,
      fill_04(05)                   TYPE c,
      order(10)                     TYPE c,
      fill_05(25)                   TYPE c,
      text(50)                      TYPE c,
      fill_07(65)                   TYPE c,
      due_on_date(8)                TYPE c,
      dollar_amt                    TYPE p DECIMALS 2,
      sort_field(13)                TYPE c,
      fill_06(05)                   TYPE c,
    END OF infile.
    FORM process_infile.
    This routine loops through the Infile Table created from the input
    file and creates the appropriate BDC transactions necessary to
    input the data into SAP
      MOVE: 0 TO sy-subrc.
      SORT infile BY business_area amount post_key.
      LOOP AT infile.
        PERFORM create_bdc.
      ENDLOOP.
    Handle the last break occurring because at end of file
      IF abend_job = false.
        MOVE: true TO eoj.
        PERFORM format_scrn_0300_last.
        PERFORM insert_bdcdata.
      ENDIF.
    ENDFORM.
    FORM create_bdc.
    Include logic applicable to Interface that is necessary to format
    the necessary BDC screens.
      sy-subrc = 0.
      IF new_bdc EQ true.
        PERFORM open_bdc.
        IF abend_job = true.
          EXIT.
        ENDIF.
      ENDIF.
      IF first_time = true.
        CLEAR ba_cnt_tab.
        PERFORM format_scrn_0100.
        PERFORM format_break_fields.
      ELSEIF infile-business_area NE prev_business_area OR
           detail_rec_cnt = 500.
        PERFORM format_scrn_0300_last.
        PERFORM insert_bdcdata.
        IF abend_job = false.
          MOVE: true TO bdc_tab_created.
          PERFORM format_scrn_0100.
          PERFORM format_break_fields.
        ENDIF.
      ELSE.
        PERFORM format_scrn_0300_detail.
        PERFORM format_break_fields.
      ENDIF.
      IF abend_job = false.
        IF first_time = true.
          MOVE: true          TO bdc_tab_created,
                false         TO first_time.
        ENDIF.
      ELSE.
        EXIT.
      ENDIF.
    ENDFORM.
    Format Break Fields
    FORM format_break_fields.
    This form format fields necessary for breaking logic and postions
    the BA_CNT_TAB at the Business Area being processed.
      MOVE: infile-business_area TO prev_business_area,
            infile-post_key      TO prev_pk,
            infile-amount        TO prev_amount,
            infile-dollar_amt    TO prev_dollar_amt,
            infile-order         TO prev_order,
            infile-text          TO prev_text,
            infile-due_on_date   TO prev_due_on_date.
    ENDFORM.
    format screen 0100
    FORM format_scrn_0100.
    This form contains the logic to create screen 0100
      sy-subrc = 0.
      IF ba_cnt_tab-business_area NE infile-business_area.
    Position BA_CNT_TAB at business area currently processing.
        LOOP AT ba_cnt_tab.
          IF ba_cnt_tab-business_area = infile-business_area.
            EXIT.
          ENDIF.
        ENDLOOP.
      ENDIF.
      PERFORM dynpro_saplf040_0100 USING infile-post_key infile-accnt.
    ENDFORM.
    FORMAT SCREEN 0300 FOR LAST DETAIL
    FORM format_scrn_0300_last.
    This form formats the last detail screen 0300 and a phantom entry
    if needed.  Screen 0002 is also formatted for each 0300.
      ADD: prev_dollar_amt TO phantom_accum,
           1               TO detail_rec_cnt.
      IF prev_dollar_amt GT 0.
        ADD: prev_dollar_amt TO amt_debit_added.
      ELSE.
        ADD: prev_dollar_amt TO amt_credit_added.
      ENDIF.
      IF detail_rec_cnt LT ba_cnt_tab-rec_cnt.
        IF phantom_accum LT 0.
    Reverse posting key since being posted as an offset to the accumulated
    Amount.
          MOVE debit_pk40 TO posting_key.
          num_data = phantom_accum * -1.
        ELSE.
          MOVE credit_pk50  TO posting_key.
          num_data = phantom_accum.
        ENDIF.
        PERFORM dynpro_saplf040_0300 USING prev_amount prev_text
          prev_due_on_date posting_key phantom_accnt ' '.
        IF prev_pk = '40' OR
           prev_pk = '50'.
          PERFORM dynpro_saplkacb_0002 USING
            prev_business_area prev_order.
        ENDIF.
        MOVE: num_data TO char_data,
              posting_key TO prev_pk.
        PERFORM dynpro_saplf040_0300 USING char_data '' '' '' '' ''.
        PERFORM bdc_value USING 'BDC_OKCODE' post.
        PERFORM dynpro_saplkacb_0002 USING prev_business_area ' '.
      ELSE.
        PERFORM dynpro_saplf040_0300 USING prev_amount prev_text
          prev_due_on_date '' '' ''.
        PERFORM bdc_value USING 'BDC_OKCODE' post.
        IF prev_pk = '40' OR
           prev_pk = '50'.
          PERFORM dynpro_saplkacb_0002 USING
            prev_business_area prev_order.
        ENDIF.
      ENDIF.
      CLEAR:       detail_rec_cnt,
                   phantom_accum.
    ENDFORM.
    FORMAT DETAIL FOR SCREEN 0300
    FORM format_scrn_0300_detail.
    This FORM formats screen 0300 for a detail record along with its
    screen 0002
      ADD: prev_dollar_amt TO phantom_accum.
      PERFORM dynpro_saplf040_0300 USING prev_amount prev_text
        prev_due_on_date infile-post_key infile-accnt infile-special_gl.
      IF prev_pk = '40' OR
         prev_pk = '50'.
        PERFORM dynpro_saplkacb_0002 USING
          prev_business_area prev_order.
      ENDIF.
      IF prev_dollar_amt LT 0.
        ADD: prev_dollar_amt TO amt_credit_added.
      ELSE.
        ADD: prev_dollar_amt TO amt_debit_added.
      ENDIF.
      ADD: 1               TO detail_rec_cnt.
    ENDFORM.
    Dynpro for program SAPLF040  Screen 0100
    FORM dynpro_saplf040_0100 USING post_key post_accnt.
    This FORM formats SCREEN 0100
    This PERFORM is done once for each screen.
      PERFORM bdc_dynpro USING 'SAPLF040' '0100'.
    This PERFORM is done as many times as there are fields to be
    populated for the screen being processed.
      PERFORM bdc_value  USING 'BKPF-BLDAT' header-doc_mdy.
      PERFORM bdc_value  USING 'BKPF-BUDAT' header-post_mdy.
      PERFORM bdc_value  USING 'BKPF-BLART' header-doc_type.
      PERFORM bdc_value  USING 'BKPF-BUKRS' header-company_code.
      PERFORM bdc_value  USING 'BKPF-MONAT' header-period.
      PERFORM bdc_value  USING 'BKPF-WAERS' header-currency.
      PERFORM bdc_value  USING 'BKPF-XBLNR' header-reference_doc.
      PERFORM bdc_value  USING 'BKPF-BKTXT' header-text.
      PERFORM bdc_value  USING 'RF05V-NEWBS' post_key.
      PERFORM bdc_value  USING 'RF05V-NEWKO' post_accnt.
      PERFORM bdc_value  USING 'RF05V-NEWUM' infile-special_gl.
    ENDFORM.
    Dynpro for program SAPLF040  Screen 0300
    FORM dynpro_saplf040_0300 USING amount text due_on_date
                                    post_key post_accnt special_gl.
    This FORM formats SCREEN 0300
    This PERFORM is done once for each screen.
    IF prev_pk = '01' OR prev_pk = '11'.
        PERFORM bdc_dynpro USING 'SAPLF040' '0301'.
        PERFORM bdc_value USING 'BSEG-ZLSCH' pymnt_mth.
        PERFORM bdc_value USING 'BSEG-ZLSPR' pymnt_blk.
      ELSEIF prev_pk = '09' OR
         prev_pk = '19'.
        PERFORM bdc_dynpro USING 'SAPLF040' '0303'.
        PERFORM bdc_value  USING 'BSEG-ZFBDT' header-doc_mdy.
      ELSE.
        PERFORM bdc_dynpro USING 'SAPLF040' '0300'.
      ENDIF.
    This PERFORM is done as many times as there are fields to be
    populated for the screen being processed.
      PERFORM bdc_value  USING 'BSEG-WRBTR' amount.
      PERFORM bdc_value  USING 'RF05V-NEWBS' post_key.
      PERFORM bdc_value  USING 'RF05V-NEWKO' post_accnt.
      PERFORM bdc_value  USING 'RF05V-NEWUM' special_gl.
      IF text NE space.
        PERFORM bdc_value USING 'BSEG-SGTXT' text.
      ENDIF.
      IF due_on_date NE space.
        PERFORM bdc_value USING 'BSEG-ZFBDT' due_on_date.
        PERFORM bdc_value USING 'BSEG-VALUT' due_on_date.
      ENDIF.
      IF no_ba_flg = 'N'.
        IF prev_pk = '09' OR
           prev_pk = '19' OR
           prev_pk = '11' OR
           prev_pk = '01'.
          PERFORM bdc_value USING 'BSEG-GSBER' prev_business_area.
        ENDIF.
      ENDIF.
      PERFORM bdc_value USING 'BSEG-ZUONR' assign_text.
    ENDFORM.
    Dynpro for program SAPLKACB  Screen 0002
    FORM dynpro_saplkacb_0002 USING business_area order.
    This FORM formats SCREEN 0002 WHICH IS A POP-UP SCREEN
    THAT DOES NOT APPEAR DURING ON-LINE PROCESSING
    This PERFORM is done once for each screen.
      PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
    This PERFORM is done as many times as there are fields to be
    populated for the screen being processed.
      IF business_area NE '700'.
        PERFORM bdc_value  USING 'COBL-GSBER' business_area.
      ENDIF.
      IF order NE space.
        PERFORM bdc_value USING 'COBL-AUFNR' order.
      ENDIF.
    ENDFORM.
    BDC Dynpro
    FORM bdc_dynpro USING pgm scrn.
    This FORM formats the transaction that tells the BDC which screen is
    to be populated.
      CLEAR bdc_tab.
      MOVE: pgm             TO bdc_tab-program,
            scrn            TO bdc_tab-dynpro,
            begin           TO bdc_tab-dynbegin.
      APPEND bdc_tab.
    ENDFORM.
    BDC Value
    FORM bdc_value USING field val.
    This FORM tells the BDC which field is to be populated and the value
    to use.
      CLEAR bdc_tab.
      MOVE: field           TO bdc_tab-fnam,
            val             TO bdc_tab-fval.
      APPEND bdc_tab.
    ENDFORM.
    INCLUDE zi000002.
    Regards,
    Susmitha

  • User id who has posted FF68

    Hi all,
    Can anybody tell in which table will I get the user-id who has posted the documents through FF68 transaction. I also wanted the details like to which customer the document has posted etc.
    Regards,
    Praveen

    Don't be lazy and ask for table names in this forum.  Use ST05 and find them yourself.

  • FF68 Check Deposit : How to use this transaction ?

    Hi,
    i try to use Tcode FF68 for Check Deposit but after entering the required information i don't get an FI document (i save but i have one line item in debit).
    Please What does this transaction do exactly ? is there any others transactions related to FF68 that i must use too ?
    Or i need to do some IMG points before to use it ?
    Please help
    Regards

    Ok, ok - so I have updated the function and it compiled, fine, but now nothing is returned, I thought that a number was returned ?
    CREATE OR REPLACE function Y775.compression_ratio (tabname varchar2)
    return number
    AUTHID CURRENT_USER
    is
    pragma autonomous_transaction;
    -- sample percentage
    pct number := 0.000099;
    -- original block count (should be less than 10k)
    blkcnt number := 0;
    -- compressed block count
    blkcntc number;
    begin
    execute immediate ' create table TEMP_UNCOMPRESSED pctfree 0
    as select * from ' || tabname ||
    ' where rownum < 1';
    while ((pct < 100) and (blkcnt < 1000)) loop
    execute immediate 'truncate table TEMP_UNCOMPRESSED';
    execute immediate 'insert into TEMP_UNCOMPRESSED select * from ' ||
    tabname || ' sample block (' || pct || ',10)';
    execute immediate 'select
    count(distinct(dbms_rowid.rowid_block_number(rowid)))
    from TEMP_UNCOMPRESSED' into blkcnt;
    pct := pct * 10;
    end loop;
    execute immediate 'create table TEMP_COMPRESSED compress as
    select * from TEMP_UNCOMPRESSED';
    execute immediate 'select
    count(distinct(dbms_rowid.rowid_block_number(rowid)))
    from TEMP_COMPRESSED' into blkcntc;
    execute immediate 'drop table TEMP_COMPRESSED';
    execute immediate 'drop table TEMP_UNCOMPRESSED';
    return (blkcnt/blkcntc);
    end;
    /

  • MB5B Report table for Open and Closing stock on date wise

    Hi Frds,
    I am trying get values of Open and Closing stock on date wise form the Table MARD and MBEW -Material Valuation but it does not match with MB5B reports,
    Could anyone suggest correct table to fetch the values Open and Closing stock on date wise for MB5B reports.
    Thanks
    Mohan M

    Hi,
    Please check the below links...
    Query for Opening And  Closing Stock
    Inventory Opening and Closing Stock
    open stock and closing stock
    Kuber

  • Error while dropping a table

    Hi All,
    i got an error while dropping a table which is
    ORA-00600: internal error code, arguments: [kghstack_free1], [kntgmvm: collst], [], [], [], [], [], [], [], [], [], []
    i know learnt that -600 error is related to dba. now how to proceed.
    thanks and regards,
    sri ram.

    00600 errors should be raised as service request with Oracle as it implies some internal bug.
    You can search oracle support first to see if anyone has had the same class of 00600 error, and then if not (and therefore no patch) raise your issue with Oracle.
    http://support.oracle.com

  • Logical level in Fact tables - best practice

    Hi all,
    I am currently working on a complex OBIEE project/solution where I am going straight to the production tables, so the fact (and dimension) tables are pretty complex since I am using more sources in the logical tables to increase performance. Anyway, what I am many times struggling with is the Logical Levels (in Content tab) where the level of each dimension is to be set. In a star schema (one-to-many) this is pretty straight forward and easy to set up, but when the Business Model (and physical model) gets more complex I sometimes struggle with the aggregates - to get them work/appear with different dimensions. (Using the menu "More" - "Get levels" does not allways give the best solution......far from). I have some combinations of left- and right outer join as well, making it even more complicated for the BI server.
    For instance - I have about 10-12 different dimensions - should all of them allways be connected to each fact table? Either on Detail or Total level. I can see the use of the logical levels when using aggregate fact tables (on quarter, month etc.), but is it better just to skip the logical level setup when no aggregate tables are used? Sometimes it seems like that is the easiest approach...
    Does anyone have a best practice concerning this issue? I have googled for this but I haven't found anything good yet. Any ideas/articles are highly appreciated.

    Hi User,
    For instance - I have about 10-12 different dimensions - should all of them always be connected to each fact table? Either on Detail or Total level.It not necessary to connect to all dimensions completely based on the report that you are creating ,but as a best practice we should maintain all at Detail level only,when you are mentioning any join conditions in physical layer
    for example for the sales table if u want to report at ProductDimension.ProductnameLevel then u should use detail level else total level(at Product,employee level)
    Get Levels. (Available only for fact tables) Changes aggregation content. If joins do not exist between fact table sources and dimension table sources (for example, if the same physical table is in both sources), the aggregation content determined by the administration tool will not include the aggregation content of this dimension.
    Source admin guide(get level definition)
    thanks,
    Saichand.v

  • Rendering xml-table into logical filename in SAP R/3

    Hi,
    I am trying to translate an xml-table with bytes into a logical filepath in SAP R3.
    Do I have to use the method gui-download or shall I loop the internal xml-table?
    When I tried to loop the xml-table into a structure, and then transfering the structure into the logical filename, I get problems with the line breaks in my xml-file. How do I get the lines to break exactly the same as I wrote them in my ABAP-code?
    Edited by: Kristina Hellberg on Jan 10, 2008 4:24 PM

    I believe you posted in the wrong forum.
    This forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
    Ludek

  • Can you check for data in one table or another but not both in one query?

    I have a situation where I need to link two tables together but the data may be in another (archive) table or different records are in both but I want the latest record from either table:
    ACCOUNT
    AccountID     Name   
    123               John Doe
    124               Jane Donaldson           
    125               Harold Douglas    
    MARKETER_ACCOUNT
    Key     AccountID     Marketer    StartDate     EndDate
    1001     123               10526          8/3/2008     9/27/2009
    1017     123               10987          9/28/2009     12/31/4712    (high date ~ which means currently with this marketer)
    1023     124               10541          12/03/2010     12/31/4712
    ARCHIVE
    Key     AccountID     Marketer    StartDate     EndDate
    1015     124               10526          8/3/2008     12/02/2010
    1033     125               10987         01/01/2011     01/31/2012  
    So my query needs to return the following:
    123     John Doe                        10526     8/3/2008     9/27/2009
    124     Jane Donaldson             10541     12/03/2010     12/31/4712     (this is the later of the two records for this account between archive and marketer_account tables)
    125     Harold Douglas               10987          01/01/2011     01/31/2012     (he is only in archive, so get this record)
    I'm unsure how to proceed in one query.  Note that I am reading in possibly multiple accounts at a time and returning a collection back to .net
    open CURSOR_ACCT
              select AccountID
              from
                     ACCOUNT A,
                     MARKETER_ACCOUNT M,
                     ARCHIVE R
               where A.AccountID = nvl((select max(M.EndDate) from Marketer_account M2
                                                    where M2.AccountID = A.AccountID),
                                                      (select max(R.EndDate) from Archive R2
                                                    where R2.AccountID = A.AccountID)
                   and upper(A.Name) like parameter || '%'
    <can you do a NVL like this?   probably not...   I want to be able to get the MAX record for that account off the MarketerACcount table OR the max record for that account off the Archive table, but not both>
    (parameter could be "DO", so I return all names starting with DO...)

    if I understand your description I would assume that for John Dow we would expect the second row from marketer_account  ("high date ~ which means currently with this marketer"). Here is a solution with analytic functions:
    drop table account;
    drop table marketer_account;
    drop table marketer_account_archive;
    create table account (
        id number
      , name varchar2(20)
    insert into account values (123, 'John Doe');
    insert into account values (124, 'Jane Donaldson');
    insert into account values (125, 'Harold Douglas');
    create table marketer_account (
        key number
      , AccountId number
      , MktKey number
      , FromDt date
      , ToDate date
    insert into marketer_account values (1001, 123, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('27.09.2009', 'dd.mm.yyyy'));
    insert into marketer_account values (1017, 123, 10987, to_date('28.09.2009', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
    insert into marketer_account values (1023, 124, 10541, to_date('03.12.2010', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
    create table marketer_account_archive (
        key number
      , AccountId number
      , MktKey number
      , FromDt date
      , ToDate date
    insert into marketer_account_archive values (1015, 124, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('02.12.2010', 'dd.mm.yyyy'));
    insert into marketer_account_archive values (1033, 125, 10987, to_date('01.01.2011', 'dd.mm.yyyy'), to_date('31.01.2012', 'dd.mm.yyyy'));
    select key, AccountId, MktKey, FromDt, ToDate
         , max(FromDt) over(partition by AccountId) max_FromDt
      from marketer_account
    union all
    select key, AccountId, MktKey, FromDt, ToDate
         , max(FromDt) over(partition by AccountId) max_FromDt
      from marketer_account_archive;
    with
    basedata as (
    select key, AccountId, MktKey, FromDt, ToDate
      from marketer_account
    union all
    select key, AccountId, MktKey, FromDt, ToDate
      from marketer_account_archive
    basedata_with_max_intervals as (
    select key, AccountId, MktKey, FromDt, ToDate
         , row_number() over(partition by AccountId order by FromDt desc) FromDt_Rank
      from basedata
    filtered_basedata as (
    select key, AccountId, MktKey, FromDt, ToDate from basedata_with_max_intervals where FromDt_Rank = 1
    select a.id
         , a.name
         , b.MktKey
         , b.FromDt
         , b.ToDate
      from account a
      join filtered_basedata b
        on (a.id = b.AccountId)
    ID NAME                     MKTKEY FROMDT     TODATE
    123 John Doe                  10987 28.09.2009 31.12.4712
    124 Jane Donaldson            10541 03.12.2010 31.12.4712
    125 Harold Douglas            10987 01.01.2011 31.01.2012
    If your tables are big it could be necessary to do the filtering (according to your condition) in an early step (the first CTE).
    Regards
    Martin

  • Can not insert/update data from table which is created from view

    Hi all
    I'm using Oracle database 11g
    I've created table from view as the following command:
    Create table table_new as select * from View_Old
    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)
    Anybody tell me, what's happend? cause?
    Thankyou
    thiensu
    Edited by: user8248216 on May 5, 2011 8:54 PM
    Edited by: user8248216 on May 5, 2011 8:55 PM

    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)so what is wrong with the GUI tools & why posting to DATABASE forum when that works OK?

Maybe you are looking for

  • Web streaming issue (Absence of flash player)

    Hi, i'd like to know before buying this handset if Nokia are planning to somehow resolve the users inability to stream the majority of online video on this device?. It appears the standard & generic response on the subject is that it's down to websit

  • Download for mod_plsql?

    Am I missing something? I want to set up Oracle HTTP server, but already have an Apache2 installation (part of ZendCore) All I think I need is the mod_plsql - where can I find this? One other thing, I downloaded the DBA Toolbar, what is the point? Yo

  • HT201317 i lost my photo stream, can i get it back ?

    can i get back my lost photo stream or album , i did not make back up ever ?

  • How to resize Tabs, Menu bar and Bookmarks Bar 36.0, no "userChrome.css" file help?

    So I lost my profile when FF updated, and had to create a new one. From what I can tell, to do what I want to do I need a Chrome Folder inside the new profile folder. There was none, so I created one. I also created a .css file named exactly how I pu

  • How do I activate Macromedia Studio 8

    How do I activate Macromedia Studio 8.  The legacy activation (Error: Unable to Activate | Macromedia products) seems to apply only to Macromedia Studio MX and MX 2004, but not to Studio 8.