Latest record with a date

I have a table where I store records of files (not the files themselves, more like the meta data). The files are edited and the new version (which is a new record in the table) has a new date and report_number_version. I'd like to pull only the latest version of all the records. In other words, if my table looks like this:
ID report_Number_version Date
SAI0340 SAI0340_V1 01/01/2007
SAI0340 SAI0340_V2 01/02/2007
SAI0340 SAI0340_V3 01/03/2007
SAI0341 SAI0341_V1 01/06/2007
SAI0341 SAI0341_V2 01/09/2007
SAI0341 SAI0341_V3 01/10/2007
SAI0341 SAI0341_V4 01/12/2007
SAI0342 SAI0342_V1 01/18/2007
I'd like to get only these three records which are the latest versions of those three files:
ID report_Number_version Date
SAI0340 SAI0340_V3 01/03/2007
SAI0341 SAI0341_V4 01/12/2007
SAI0342 SAI0342_V1 01/18/2007
Thanks!

> analytics, yes. lag, no
3) The analytic function approach is likely to be much easier to understand and modify in addition to being more correct.
In my opinion, it is all about grouping here, instead of using analytic functions:
SQL> create table mytable
  2  as
  3  select 'SAI0340' id, 'SAI0340_V1' report_number_version, date '2007-01-01' mydate from dual union all
  4  select 'SAI0340', 'SAI0340_V2', date '2007-01-02' from dual union all
  5  select 'SAI0340', 'SAI0340_V3', date '2007-01-03' from dual union all
  6  select 'SAI0341', 'SAI0341_V1', date '2007-01-06' from dual union all
  7  select 'SAI0341', 'SAI0341_V2', date '2007-01-09' from dual union all
  8  select 'SAI0341', 'SAI0341_V3', date '2007-01-10' from dual union all
  9  select 'SAI0341', 'SAI0341_V4', date '2007-01-12' from dual union all
10  select 'SAI0342', 'SAI0342_V1', date '2007-01-18' from dual
11  /
Tabel is aangemaakt.
SQL> select id
  2       , max(report_number_version) keep (dense_rank last order by mydate) report_number_version
  3       , max(mydate) mydate
  4    from mytable
  5   group by id
  6  /
ID      REPORT_NUM MYDATE
SAI0340 SAI0340_V3 03-01-2007 00:00:00
SAI0341 SAI0341_V4 12-01-2007 00:00:00
SAI0342 SAI0342_V1 18-01-2007 00:00:00
3 rijen zijn geselecteerd.Regards,
Rob.

Similar Messages

  • How can I make a report of all records with the date in the last two weeks?

    Hi!
    I have records with a date field, I want to create a report that only includes records with a date which is within the last two weeks of the system date, is this possible? Surely this is a basic database function, I would have thought, but I can find no help about it and there's very little in Mac Help about doing anything other than simple stuff with reports.
    I'm not a genius with databases, so help with any required formula or what have you would be great!

    Hi Jonathan,
    Here's a formula you can use with the Match function. 'Date' is the name of the date field, which must be a "Date" type field.
    'Date'>NOW()-14
    Match will select (highlight) all records matching the query. You'll then need to use Organize > Hide Unselected to show only the matches.
    Unfortunately, I haven't found a way to make the NOW() function work in a Find request, and neither Match requests nor Hide Unselected can be included in a recorded search, either of which would reduce repeating the report to a one-button operation.
    Regards,
    Barry

  • Latest record with active flag 'Y' (if only N, select that record)

    Hi All,
    I am having some records in table emp and need to select one record per id, which meets following criteria:-
    (1) if there is only one record for given id, select them. eg- '0154', '0155'
    (2) if more than one record then
    (2a) select record with active_flag = 'Y'.
    (2b) if more than one record with flag 'Y', select latest record where flag = 'Y'. Max eff_date.
    Emp table:-
    with emp as (
    select '0066' id, 'ABC' name, 'Y' active_flag, to_date('01-01-2009', 'dd-mm-yyyy') eff_date  from dual union
    select '0066', 'PQR', 'N', to_date('01-01-2010', 'dd-mm-yyyy') from dual union
    select '0066', 'XYZ', 'N', to_date('01-03-2010', 'dd-mm-yyyy') from dual union
    select '0154', 'PQR', 'N', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
    select '0155', 'DEF', 'Y', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
    select '8686', 'THY', 'N', to_date('01-10-2010', 'dd-mm-yyyy') from dual union
    select '8686', 'QWE', 'N', to_date('01-01-2010', 'dd-mm-yyyy') from dual union
    select '8686', 'POI', 'Y', to_date('01-04-2010', 'dd-mm-yyyy') from dual union
    select '8686', 'MNB', 'Y', to_date('01-03-2010', 'dd-mm-yyyy') from dual
    select * from emp;
    Output records:-
    with emp_selected as (
    select '0066' id, 'ABC' name, 'Y' active_flag, to_date('01-01-2009', 'dd-mm-yyyy') eff_date  from dual union
    select '0154', 'PQR', 'N', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
    select '0155', 'DEF', 'Y', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
    select '8686', 'POI', 'Y', to_date('01-04-2010', 'dd-mm-yyyy') from dual
    select * from emp_selected;Request you to please look at it.
    Regards,
    Ritesh

    Thanks for posting the sample data and expected resutls in such a useful way. It makes life so much easier.
    Assuming that the only valid values in active_flag are Y and N, and that there are no nulls, then this is one way:
    SQL > with emp as (
      2   select '0066' id, 'ABC' name, 'Y' active_flag, to_date('01-01-2009', 'dd-mm-yyyy') eff_date  from dual union
      3   select '0066', 'PQR', 'N', to_date('01-01-2010', 'dd-mm-yyyy') from dual union
      4   select '0066', 'XYZ', 'N', to_date('01-03-2010', 'dd-mm-yyyy') from dual union
      5   select '0154', 'PQR', 'N', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
      6   select '0155', 'DEF', 'Y', to_date('01-05-2010', 'dd-mm-yyyy') from dual union
      7   select '8686', 'THY', 'N', to_date('01-10-2010', 'dd-mm-yyyy') from dual union
      8   select '8686', 'QWE', 'N', to_date('01-01-2010', 'dd-mm-yyyy') from dual union
      9   select '8686', 'POI', 'Y', to_date('01-04-2010', 'dd-mm-yyyy') from dual union
    10   select '8686', 'MNB', 'Y', to_date('01-03-2010', 'dd-mm-yyyy') from dual)
    11   SELECT id, name, active_flag, eff_date
    12   FROM (SELECT id, name, active_flag, eff_date,
    13                ROW_NUMBER() OVER(PARTITION BY id
    14                                  ORDER BY active_flag desc, eff_date desc) rn
    15         FROM emp)
    16   WHERE rn = 1;
    ID   NAM A EFF_DATE
    0066 ABC Y 01-JAN-09
    0154 PQR N 01-MAY-10
    0155 DEF Y 01-MAY-10
    8686 POI Y 01-APR-10If there could be nulls in active_flag, then you could use NVL to set the value to Y or N in the order by to sort it "correctly" based on your requirements.
    If there could be values other than Y and N, then use a case statement in the order by to fix the order to give preference to what you want.
    For example, if valid values could be Y, N, P and you wanted them selected in that order, then neither ascending nor descending sorts would be right, so you could do something like:
    ORDER BY CASE active_flag WHEN 'Y' THEN 1
                              WHEN 'N' THEN 2
                              WHEN 'P' THEN 3
                              ELSE 4 ENDJohn

  • Retriving records with the date and time stamp

    I need to get all the records that were update between 08:36:06 AM and 8:36:09 AM on the12/15/2009
    I am using this query it is giving me the right numbers (I think) because this condition GURMAIL_CPLN_CODE = 'UGAP', I would like something more
    precise using the date and time stamp with the dates
    12/15/2009 08:36:06 AM
    12/15/2009 08:36:07 AM
    12/15/2009 08:36:08 AM
    12/15/2009 08:36:09 AM
    select * from GURMAIL
    where
    PERMAIL_CPLN_CODE = 'UGAP'
    AND TO_CHAR(PERMAIL_ACTIVITY_DATE,'MM/DD/YYYYHH24:MI:SS AM') >= '12/15/2009 08:36%'Thank you

    Yes, but HH24 and AM cannot be used together:
    SQL> select to_date('12/15/2009 08:36:06 am', 'mm/dd/yyyy hh24:mi:ss am') from dual;
    select to_date('12/15/2009 08:36:06 am', 'mm/dd/yyyy hh24:mi:ss am') from dual
    ERRORE alla riga 1:
    ORA-01818: 'HH24' impedisce l'uso dell'indicatore meridianoUse this:
    select *
    from   gurmail
    where  permail_cpln_code = 'UGAP'
    AND    permail_activity_date between to_date('12/15/2009 08:36:06', 'mm/dd/yyyy hh24:mi:ss')
                                    and  to_date('12/15/2009 08:36:09', 'mm/dd/yyyy hh24:mi:ss')or this:
    select *
    from   gurmail
    where  permail_cpln_code = 'UGAP'
    AND    permail_activity_date between to_date('12/15/2009 08:36:06 AM', 'mm/dd/yyyy hh:mi:ss am')
                                    and  to_date('12/15/2009 08:36:09 AM', 'mm/dd/yyyy hh:mi:ss am')Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2009/12/18/table-elimination-oppure-join-elimination-lottimizzatore-si-libera-della-zavorra/]
    Edited by: Massimo Ruocchio on Dec 23, 2009 12:05 AM

  • Query to find the latest record with respect to the current status

    Dear gurus
    I have the following data in a table
    Customernum
    bkcode
    reqtdate
    Prevstat
    currstat
    The data will be like this
    CustomerNum bkcode reqdate prevstat currstat
    5900 1 03-Aug-12 0 1
    5900 1 06-Aug-12 1 0
    5900 5 22-Jun-12 0 1
    If a customer has an issue to solved, a record is added with bkcode , register date and currstat will be 1
    If the issue is resolved for the bookingcode,a new record is added, the currentstatus will become 0. and prev stat will show 1. Row no 1 and 2 reflects this case
    If this table is queried for finding the unresolved issues. the output should be only the Last row of the above example. since issue with bookingcode 1 has been resolved
    I have trying hard to get this thing confused what to use Lead or Max
    Kindly guide me

    Hi,
    one way here:
    WITH mytable(CustomerNum, bkcode, reqdate, prevstat, currstat)
    AS
       SELECT 5900, 1, TO_DATE('03-Aug-12', 'DD-Mon-YY'), 0, 1 FROM DUAL UNION ALL
       SELECT 5900, 1, TO_DATE('06-Aug-12', 'DD-Mon-YY'), 1, 0 FROM DUAL UNION ALL
       SELECT 5900, 5, TO_DATE('22-Jun-12', 'DD-Mon-YY'), 0, 1 FROM DUAL
    SELECT CustomerNum, bkcode, reqdate, prevstat, currstat
      FROM (SELECT a.*
                 , ROW_NUMBER() OVER (PARTITION BY CustomerNum, bkcode
                                           ORDER BY reqdate DESC) AS rn
              FROM mytable a
    WHERE rn=1
       AND currstat=1;
    CUSTOMERNUM     BKCODE REQDATE     PREVSTAT   CURRSTAT
           5900          5 22-JUN-12          0          1Regards.
    Al
    Edited by: Alberto Faenza on Dec 18, 2012 5:23 PM
    Changed again!! Previous logic was wrong

  • Summing on the latest record with MDX

    I'm trying use MDX to sum up the most recent [Employee Compensation].[Employee Scheduled Hours] member for each [Employee].[Employee] but in the context of the the current query. Employee Compensation is a type II dimension, and an Employee can change scheduled
    hours from week to week (but we just want to see the most recent). How can I roll this up properly in a calculated member? Sample data is like:
    EmployeeKey
    EmployeeCompensationKey
    DateKey
    100
    40
    20140101
    100
    20
    20140107
    200
    40
    20140101
    200
    30
    20140107
    In this case, if I roll up 2014 January, I would expect to see a sum of (20 + 30) =
    60 for the Employee Scheduled Hours. Please note, the EmployeeCompensationKey in the sample table is actually a surrogate key to the Employee Compensation dimension with the attribute of Employee Scheduled Hours. I've just put the member values
    here for simplification.
    I'm using the following MDX query, but this only works for certain scenarios. How would I set up this? I have a feeling the set I'm returning from TAIL function is probably the issue.
    SUM(
    EXISTING(DESCENDANTS([Employee].[Employee].[All],,AFTER)),
    STRTOVALUE(
    TAIL(
    NONEMPTY(
    [Employee Compensation].[Scheduled Hours].[Scheduled Hours],
    {[Measures].[Headcount]}),
    1).Item(0).NAME

    Dimensionality for the LASTNONEMPTY function is over the date/time dimension, so if an employee got several checks in the same day, it would sum up the measure for that employee for that day.
    I'd rather not have to create a new fact measure, but I suppose I'll look into using a windowing function or another alternative to populate the scheduled hours on only one of those one-to-many records at the same time. 
    One last idea is that, I know I can pull the tuple of last scheduled hour per each employees as so:
    DESCENDANTS([Employee].[Employee].[All],,AFTER)
    TAIL(TOPCOUNT(DESCENDANTS([Employee Compensation].[Scheduled Hours].[All],,AFTER),1,[Measures].[Headcount]),1).item(0)
    But I don't know how to extract from this tuple, just the set of employee scheduled hours portion...

  • [Solved] get records with a date of 11/6/2007 I have to add -1 [Solved]

    Hello - really simple question here, I think anyway.
    I have this line in my query -
    WHERE table2.trans_date_time BETWEEN :p_from_date -1 AND :p_to_date + 1
    Notice the -1 + 1, I had to put this in there because if I wanted all the records that have a date of 11/6/2007, and I enter 11/6/2007 and 11/6/2007 for the variables I get nothing back. But when I added the -1 + 1 it worked.
    Why is this? The table2.trans_date_time column is a DATE data type.
    Thanks!
    Message was edited by:
    computerGal

    Hello compterGal
    I agree with Boneist. What more your where clause statement example, will actually will return all records where the trans_date_time is between 10/06/2007 00:00 and 12/06/2007 00:00 inclusive. That is 2 days and 1 second's worth of data.
    A possible solution if you're looking just for records on a specific day in this senario, but also allow date range capabilities then the following where clause example would be suitable:
    WHERE trunc(table2.trans_date_time) BETWEEN :p_from_date AND :p_to_date
    If the query runs slowly and you have an 8i or later database you can use function indexing to help spead the query up.
    hope this helps.
    Cheers
    Q

  • To cature records with time & date

    Hi All,
    How to capture records within the time and date when runing the program in backgorund finish before end of day and after finish.
    Thanks,
    bala

    HI,
    What type of records you are looking to capture. Regarding to which module(ex: SD,FI).
    After executing the programs in any mode, you can identify the corresponding updated records information with enterted time & date in the specific table.
    Ex: in FI if we post any document the records time data information will be updated in entered time & entered date field in docment header table(BKPF).
    Provide us the detailed issue you are facing.
    BR,
    Rajani

  • Update Info record with PO data

    Hi,
    I have the material configured no purchase order unit of measure and Variable Purchase Order Unit Active with the value 1.
    When I create the first PO a Info record is created and in the general data the purchase order unit is set with one used on that PO.
    When I create a new PO the purchase order unit from the info record is copied to the PO. If I change that unit on the creation of the PO I would like to have it changed in the Info record but this is not the behavior. That field remains unchanged unless I change it manually in the Info record.
    Is there any standard way to make it updated with the creation of PO's?
    Thanks,
    Nelson Ribeiro.

    Hi,
    You can find control of info-update indicator  in following path, where it update automatically.You can set for own  data by assigning EVO with 01{Goto from menu bar---system-> user profile-->own data>Goto parameters---> enter parameter id as EVO parameter value as 01}
    SPRO> MM> Purchasing-> Environment  -> Define default values for buyers-->Settings for Default Values
    You can view Entries
    01     Default values for group 1
    02     Default values for group 2
    Regards,
    Biju K

  • How to get minimum of 3 identical records with different dates

    Hi All,
    Below is my query which gives me the data i want but it gives me a same claim number 3 times because those 3 records have HVAC in them but the comments date is different, So i would like to have one row returned with the min(commentdate).
    SELECT C.hsclaimnumber,
    COMMENTS.hsobjectid ,
    COMMENTS.hsnote as Comment,
    C.hsdatecreated,s.state_id,
    l.hslosstype,
    Comments.hsDateCreated AS CommentDate
    FROM hs_comments AS COMMENTS
    INNER JOIN
    hs_claim AS C ON COMMENTS.hsobjectid = C.hsclaimid
    inner join
    qx_states s on s.pkey = c.hslosslocationstate
    inner join
    [dbo].[hs_loss_type] l on C.hslosstypeid = l.hslosstypeid
    WHERE (COMMENTS.hsnote LIKE '%hvac%') and
    year(c.hsdatecreated) in (2014) AND (l.hslosstype = 'All other physical damage' or l.hslosstype ='Lightning (no fire)' or l.hslosstype ='Water')
    group by C.hsclaimnumber,
    COMMENTS.hsobjectid ,
    COMMENTS.hsnote ,
    C.hsdatecreated,s.state_id,
    l.hslosstype,
    Comments.hsDateCreated
    order by C.hsclaimnumber
    Can someone please help me with this?
    Thanks.

    Select * from (SELECT C.hsclaimnumber,
    COMMENTS.hsobjectid ,
    COMMENTS.hsnote as Comment,
    C.hsdatecreated,s.state_id,
    l.hslosstype,
    Comments.hsDateCreated AS CommentDate
    ,row_number() Over(partition by C.hsclaimnumber Order by Comments.hsDateCreated) rn
    FROM hs_comments AS COMMENTS
    INNER JOIN
    hs_claim AS C ON COMMENTS.hsobjectid = C.hsclaimid
    inner join
    qx_states s on s.pkey = c.hslosslocationstate
    inner join
    [dbo].[hs_loss_type] l on C.hslosstypeid = l.hslosstypeid
    WHERE (COMMENTS.hsnote LIKE '%hvac%') and
    year(c.hsdatecreated) in (2014) AND (l.hslosstype = 'All other physical damage' or l.hslosstype ='Lightning (no fire)' or l.hslosstype ='Water')
    group by C.hsclaimnumber,
    COMMENTS.hsobjectid ,
    COMMENTS.hsnote ,
    C.hsdatecreated,s.state_id,
    l.hslosstype,
    Comments.hsDateCreated
    ) T
    WHERE rn=1
    order by C.hsclaimnumber

  • How to delete a master record with transaction data?

    Hi,
        Iam able to delete master record(GL/Vendor/Customer)through OBR2 when there is no transaction data in those respective master records. Despite of clearing all open items in a particular vendor Account, Iam unable to delete that master record. Please suggest me how we can delete vendor master data having transactional data.
                               Thanks in Advance
    Regards,
    Satish

    Hi...
    Not sure whether this helps....you can mark the vendorrecord for deletion and later try to delete it.
    Logistics >> Materials management >> Purchasing >>
    (new menu) Master data >> Vendor >> Central >> Flag for deletion
    try using XK06/FK06
    Assign points if useful
    Regards
    Aravind

  • Shell Script- To FTP the latest file with the date stamp

    I have a Solaris 10 based system, where it generate some application files (multiple) in XML format and the file name comprises of the current date.
    File Format is as follows;
    CX-FIL-20070624000000-2-8452536d-000133.xml
    Where 20070624 repesents the curent date of the file
    I want to FTP these files to another server (Solaris 10 based Sun Machine) by comparing the file name with the current date.
    Please let me know how I can do this by using a shell script.

    Assuming you want to ftp the files with today's datestamp, you could match the files you want like so:
    CX-FIL-`/bin/date +"%Y%m%d"`*
    Use that in your script to generate the file list to be transferred...
    -Rob

  • Select records with a date greater than today

    Hi,
    I have a table that lists leases, and each lease has an expiration date (stored in three fields; EXPYR, EXPMN, EXPDA).
    I want to create a report that selects just those records that have an expiration date later than the date when the report is run.
    Any ideas?

    Jon,
    I'm assuming that the 3 fields are Year, Month & Day...
    Create a formula...
    Date(EXPYR, EXPMN, EXPDA)
    Then, for your record selection, create the following formula...
    {@DateFormula} > CurrentDate
    HTH,
    Jason

  • 2lis_02_scl extract records with wrong posting date for Good Receipts.

    Hi Experts,
    We are currently having issue of mismatch between BW Schedule Line data with R/3 values for the Goods Receipts posting date updating incorrectly in to BW.
    Example.
    In table EKBE purchase order history we have following records.
    MANDT EBELN        EBELP   ZEKKN VGABE GJAHR BELNR      BUZEI BEWTP BWART BUDAT      MENGE
    501   5600453404   00010   00    1     2010  5012473031 0001  E     101   23.01.2010        1.250,000
    501   5600453404   00010   00    1     2010  5012473031 0002  E     101   23.01.2010        1.250,000
    501   5600453404   00010   00    1     2010  5012473031 0003  E     101   23.01.2010        1.250,000
    501   5600453404   00010   00    1     2010  5012693310 0001  E     101   26.02.2010        1.250,000
    Which means we have on posting date of 23.01.2010 1250*3 i.e. 3750 quantity of Goods Receipts.
    However when we check the extractor we get multiple records in internal table C_T_DATA and in psa.
    Line BWV ETENR   SLFDT              MENGE    ROCA BEDAT                            BUDAT          EBELN
           ORG                                                        NCEL
    1     001     0001     20100125     3750.000          20100113     ZNB     F     00000000     5600453404
    2     001     0002     20100226     1250.000          20100113     ZNB     F     00000000     5600453404
    3     002     0001     20100125     3750.000     X     20100113     ZNB     F     20100123     5600453404
    4     002     0001     20100125     3750.000          20100113     ZNB     F     20100123     5600453404
    5     003     0001     20100125     3750.000     X     20100113     ZNB     F     20100127     5600453404
    6     003     0001     20100125     3750.000          20100113     ZNB     F     20100127     5600453404
    7     002     0001     20100125     3750.000     X     20100113     ZNB     F     20100226     5600453404
    8     002     0001     20100125     3750.000          20100113     ZNB     F     20100226     5600453404
    9     002     0002     20100226     1250.000     X     20100113     ZNB     F     20100226     5600453404
    As can be seen we have record no 8 for ETENR (Schedule line 1) with posting date 26.02.2010 and another record with posting date 23.01.2010.
    Since we are getting 2 records the record with incorrect posting date overwrites the record with correct one.
    Any idea if this could be a standard extractor problem or any other way to resolve this issue.
    Any help would be appreciated.

    First of all, are you using a staging DSO? (You should ideally)
    If yes, is it a Write Optimized DSO? (Again, this is ideal)
    If its a standard DSO, the values maybe over-writing upon activation.
    You have 3 records (quantity = 1250 * 3) that have been receipted on 23.01.2010, where Posting Date = 23.01.2010.
    You also have a record (quantity = 1250 * 1) that has been receipted on 26.01.2010. Posting date = 26.01.2010.
    Now, in RSA3 & in PSA you can see more records than intended.
    This is because you have before & after images. (ROCANCEL = X or blank).
    ROCANCEL = X --> Before Image (record before change)
    ROCANCEL = blank --> After Image (record after change)
    This is a standard property of the extractor.
    Now, we also have something known as BWVORG (Process Keys). Each process, i.e. creating a PO, Goods Receipt, Invoice etc.. have different Process Keys.
    Creation - 001
    Goods Rcpt. - 002
    Invoice - 003
    We can see that record 8, i.e. BWVORG = 002 (GR) has been modified on 26.01.2010.
    That is why there is before image and after image.
    Which one should be the correct posting date? 23.01.2010?
    Normally in a Write optimized DSO, you will have all the records (before and after images & others as well).
    I hope this helps.
    Please let me know if otherwise.

  • Any BAPI/Function Module for adding new record with dates in PA0027

    Hi all,
    I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
    In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
    thanks for ur time.
    Murali

    Hi Raj/Suresh thanks for ur answers.
    but i am having a problem,i gave this values.
    INFTY               -
                0027
    NUMBER              -
                00000010
    SUBTYPE             -
                010
    OBJECTID
    LOCKINDICATOR
    VALIDITYEND         -
                03/12/2006
    VALIDITYBEGIN       -
                03/01/2006
    RECORDNUMBER        -
                000
    RECORD              -
                P0027
    OPERATION           -
                CHK
    TCLAS               -
                A
    DIALOG_MODE         -
                0
    NOCOMMIT            -
                Y
    VIEW_IDENTIFIER
    SECONDARY_RECORD
    i am getting short dump saying that
    The source field is too short.
    The current program, "SAPLHRMM", tried to assign a field to a field symbo
    However, the field is shorter than the type of the field symbol, which
    is not allowed.
    The statement in question is in the form ASSIGN f TO <fs> CASTING or
    ASSIGN f TO <fs> with a field symbol that was created using the
    STRUCTURE addition.
    I tried  operation - Chage,Create (same thing for all inputs)
    is this correct funtion moduel for my requirment?
    what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
    Thanks for ur time.
    Murali.

Maybe you are looking for

  • Cant connect wifi or t mobile

    have stream 8 and cant connect to wifi or t mobile. two weeks old, worked fine till 2 days ago

  • Career with MDM

    Hi , I am having 4 years experience in SAP MDM. There is an opportunity for me to learn either Business Objects, ETL or XI Please suggest me which one to choose which will help for the career in MDM Regards, Antony

  • Intel usb 3,0 extensible host controller driver not working

    I have a hp envy sleekbook 6 1100se.  Im facing a problem with the driver of usb 3.0 extensible host controller 0100 microsoft. It says that the device cannot start. gives a CODE 10 error.  Im using windows 8. i've tried updating it and uninstalling

  • ALV print font control

    Hello, I have an ALV report with 10 columns. When I print the output, I get the output as a landscape (which is fine) but with very small font. I manually changed the print format from X_65_255 to X_58_170 and the print looked much better. I am wonde

  • Where is the Canada store support for Movies, TV Shows!?

    Really?! Its outrageous that I can't buy TV shows, Movies, or any of the extras that are on the American store because I live in Canada. Its ********. If there is any work around to this, please let me know. I tried making a separate apple ID but my