Query output based on date - Oracle 8i

I am trying to write a very simple query to output data based
on date ranges, but I keep encountering an error.
When I do this statement:
select * from my.table
where startdate > '2008-01-01'
I get this error:
[ODBC][Ora]ORA-01861: literal does not match format string
When I format the select statement this way:
select * from my.table
where startdate > #2008-01-01#
i get this error:
[ODBC][Ora]ORA-00932: inconsistent datatypes: expected DATE
got NUMBER
Currently using CF8, and what I believe is Oracle 8i. I have
tried formatting this data in many other ways, but can't get it to
work. I know that when I query the database via access, it has no
problem returning results with the SQL date formatted like
#01/01/2008#

You can use the Oracle to_date() function to convert your
string to a date/time object:
select * from my.table
where startdate > to_date('2008-01-01', 'YYYY-MM-DD')
Or, since you are using an ODBC connection to Oracle, you can
try using the ColdFusion CreateODBCDate() function:
select * from my.table
where startdate > #CreateODBCDate("2008-01-01")#
Or, as already suggested, use cfqueryparam with the
appropriate CFSQLType, such as
CF_SQL_TIMESTAMP instead of CF_SQL_INTEGER like you are
attempting to do.
You can't use a "string" date value against a date/time
column in an Oracle query, as it won't perform an implicit type
conversion.
Phil

Similar Messages

  • Query output based on the date range ...

    Hi All,
    I have an issue related to the jump query, main query based on the time frame. For Example if he selects Sold_To : 6895 for the Calday 10/01/2007 – 01/31/2008 and when jumps to jump query , the jump query should display the data based on the input given in the main query. That is it should show the data individually for four months.
    Expecting the reply from your side...
    Thanks in advance…
    Regards,
    Sruthi

    Sruthi,
    Make sure that u have those 3 fields in 2nd Query and CALDAY with Variable.
    Create settings in RSBBS.
    Click on ASSIGNMENT DETAILS tab
    CALDAY  >  Type = Variable  > Selection Type = Selection/Single value/Multiple single values ( same like ur first query )
    All other fields ( 3 na ) > Type = Generic
    Click on Continue / Save.
    If you need more info...if possible come to yahoo chat my ID is [email protected]....and am online now.
    Regards,
    Ramkumar.

  • Need to delete few rows in the query output based on some condition

    Hi all,
    My  requirement is
    Period    KF1      KF2      KF3
    09 ........10......  20.......   30
    08........  5......    -2....      .33
    08......    5......    -1......     37
    If i restrict for period 08 in the query,the output should be
    Period    KF1      KF2      KF3
    08......     5......     -2.....      33
    08......     5.....      -1......     37
    Note that here KF3 is not cummulative....i have used <=period in the restriction

    Hi,
    As i said when i restrict the period to 08,instead of getting output
    Period KF1 KF2 KF3
    08...... 5...... -2..... 33
    08...... 5..... -1...... 37
    i am getting it as
    Period KF1 KF2 KF3
    08...... 5...... -2..... 3
    08...... 5..... -1...... 4
    But i need to get the value as
    Period KF1 KF2 KF3
    08...... 5...... -2..... 33
    08...... 5..... -1...... 37
    Let me know if it is still confusing

  • Plan query output based on Characteristic Relation.

    Hi Experts,
                       I have a requirement to display all the characteristic relationships which are defined based on DSO for a Real time Infocube when we execute the query with the help of web template. Can anyone put some light on this.
    Regards,
    Shashi.

    Hi.
    Could you plz more clarify you requirement ?
    You want to create any help query based on DSO of char rel ?
    Regards.

  • Formatting Output Based on Data in TVARVC

    Hi Guys
    In the below program I need to highlight lines of output where the plant complies to the rules green and those that do not in red in a variant called check plant.
    Here are the values.
    S    0000 I    EQ   1000
    S    0001 I    EQ   3000
    S    0002 I    BT   2000                                          2500
    S    0003 I    BT   6100                                          6150
    S    0004 E    EQ   2300
    S    0005 E    EQ   6101
    I have tried to achieve this in the code below but it doesn't work properly some plants are highlighted green when they should be red and vice versa. Please could you help me with the correct logic.
    REPORT  ZTREVOR_CHECK_VARIANT message-id ZTREVOR_MSG_CLASS1.
    data: it_makt type standard table of makt,
          wa_makt type makt,
          it_mard type standard table of mard,
          wa_mard type mard,
          it_t001w type standard table of t001w,
          wa_t001w type t001w.
    Data: it_mard_distinct type standard table of mard,
    v_werks type werks,
    v_matnr type matnr.
    data: it_tvarvc type standard table of tvarvc,
          wa_tvarvc type tvarvc.
    CONSTANTS : C_VARNAME TYPE rvari_vnam value 'CHECK_PLANT'.
    select-options : s_matnr for v_matnr no intervals no-extension,
    s_spras for wa_makt-spras no intervals no-extension.
    AT SELECTION-SCREEN.
      SELECT single matnr from mara into v_matnr WHERE matnr in s_matnr.
      IF sy-subrc IS NOT INITIAL.
        MESSAGE w000 with s_matnr-low display like 'I'.
        ENDIF.
    start-of-selection.
    select * from makt into table it_makt where matnr in s_matnr and spras in s_spras.
    select * from mard into table it_mard where matnr in s_matnr.
    select * from tvarvc into table it_tvarvc where name = C_VARNAME.
    end-of-selection.
    IF it_mard is not initial.
    sort it_mard by werks.
    LOOP AT it_mard INTO wa_mard.
        IF wa_mard-werks NE v_werks.
          APPEND wa_mard TO it_mard_distinct.
        ENDIF.
        v_werks = wa_mard-werks.
      ENDLOOP.
    select * from t001w into table it_t001w for all entries in it_mard_distinct where werks = it_mard_distinct-werks.
    endif.
    write : at / 'Material' color col_positive,
      10 'Description' color col_positive,
      30 'Plant' color col_positive,
    60 'Plant Name' color col_positive.
    LOOP AT it_mard_distinct into wa_mard.
      READ table it_makt into wa_makt with key matnr = wa_mard-matnr binary search.
      READ table it_t001w into wa_t001w with key werks = wa_mard-werks.
    READ TABLE it_tvarvc into wa_tvarvc with key low = wa_mard-werks.
    if wa_tvarvc is not initial.
    FORMAT color = 5.
        else.
          FORMAT color = 6.
        endif.
      write : at / wa_makt-matnr,
      10 wa_makt-maktx,
      30 wa_mard-werks,
      60 wa_t001w-name1.
      endloop.

    you are crosschecking with TVARVC the wrong way.
    At least you cant check for equality.
    See in tvarvc there are not only single variables (parameters), but also ranges (select-options).
    I assume the small list in the top of your post is an excerpt of your TVARVC entries for plant checks.
    As you can see there are select option using option BT (between)
    when you select on tvarvc with LOW field you will never get those which are between the customized entries.
    what you need to do is select your TVARVC entries, make a range out of it and check your plant like following:
    loop at it_mard_distinct into wa_mard.
      If wa_mard-werks IN range_plants.
        colour green.
      else.
        colour red.
      endif.
    endloop.
    hope you could follow me.

  • To download the query output to falt file

    Hi all,
    i have a query which i know will give more than 65k records as the output for a selection.
    i cannot run this query in excel due to its limitation.
    if i run on web i cannot download this as downloading is happening to excel file only.
    The customer ideally wants to download the query result to a text file(csv,tab-delimited etc) which inturn it will upload to MS-Access.
    How do i achieve this?
    SAP has given response use try using these options:
    1.open interfaces to receive the output of a query via the MDX language.
    2.open hub tool as it is designed for big amounts of data.(i suppose this is not possible as i want to download query output not the data target contents)
    how do i achieve my scenario with option 1?
    Are there any alternatives??
    Any useful help will be rewarded.
    Regards,
    Dhanya.

    hi vivek,
    thnks for the useful reply.
    i have some problem with my ID,hence loggin in through my coleague's ID.
    i will assign u points as i get logged in.
    I did as u said by downloading it to unconverted format.
    the file got download to a text file.where the output has
    1.header rows(10 lines almost)
    2.the values r coming in single quotes e,g:
    '144000023073      'TAAS SETTLEMENT CONV 738 '19333000   '30.09.2006          '0.000
    how can i remove all this?
    Regards,
    Dhanya
    I

  • How to calculate a boolean based on data from a table fed by a BI Query

    Hi Gurus,
    I am currently struggling with the following issue:
    - I have a query in my VC model wich returns 4 ratios
    - I put the result of the query in a table in the VC model
    - then, I added a column in the table. this column is a boolean which should be true if the value of one of my 4 ratios is not 0, otherwise, it is false
    - I want that boolean to be "updatable" by the users.
    I tried to define the default value of the boolean based on the value from the signficant ratio... no luck
    I tried to change the value from the configuration tab of the column, but then I can not update afterwards....
    Has anyone ever seen that issue and found a solution ?
    Thansk for your help
    PY

    Hi Deep!
    Thanks for your feedback! I felt a bit alone in my world before you answered
    Your idea is great and it would work if I hadn't to display the data with a hierarchy.
    Actually, the only thing I did not mention is that we are posting data against fiscal period, and we are budgeting for the next 10 years (no comment on that, and the precision we could reach ). So, to display the information we are using a cusomized hierarchy on 0FISCPER using 0FISCYEAR.
    So when I used your option, the hierarchy has been deactivated on the table. But to be sure I correctly implemented your proposition, here are the steps we used :
    1) connect the query output port "data" to the share
    2) add the boolean in the share
    3) map the boolean with the rule based on the data coming from the query
    4) connect the share to the table.
    Note that we the current version we use of VC I am not able to edit the field mapping between the share and the table...
    Did I miss something ?
    If yes, could you drive me to the correct procedure ?
    If no, would you have any idea ? I already tried to change the default value of the field in the "define Data" maintenance popup of the table. I also tried to assign a value to the boolean based on the Action option of the column used in my condition...
    Thanks for your help
    PY

  • Different output of same query in SQL Server and Oracle

    I have two tables table1 and table2
    --table1 has two columns c1 int and c2 varchar. there are not constraints added in it. it has data as given below
    c1     c2
    6     d
    5     j
    102     g
    4     g
    103     f
    3     h
    501     j
    1     g
    601     n
    2     m
    --table2 has only one column c1 int. there are not constraints added in it. it has data as given below
    c1
    6
    1
    4
    3
    2
    now when i run below given query in sql server and oracle it gives me different result
    select *
    from table1
         inner join (SELECT ROW_NUMBER() OVER (order by c1 ASC) AS c1 from table2) table2 on table2.c1=table1.c1
    sql server output
    c1     c2     c1
    1     g     1
    2     m     2
    3     h     3
    4     g     4
    5     j     5
    oracle output
    C1 C2 C1
    5 j 5
    4 g 4
    3 h 3
    1 g 1
    2 m 2
    If you notice the first column in both output. It is sorted in sql server and not in oracle.
    Why it is behaving differently in oracle? Is there any way I can solve this in oracle?
    Thanks,
    Jigs

    It is NOT behaving "differently" in Oracle; you just haven't specified an order that you expect your results to be in, so you're going to get output in whatever order the database fancies displaying it (ie. no guarenteed order). This is an artifact of how the database chooses to put together the data, and different databases (or even datasets within the same database) can and most likely will behave differently.
    Even SQL Server won't guarentee to always get your data in an ordered fashion if you exclude the order by clause, even if you think it has always output the data in an ordered fashion.
    Your solution is to add an order by clause, in BOTH databases, to force the order of the output data.

  • Query based on date partition

    Hi,
    I am trying to output only a successful job during the past 24 hrs of each day. If there is job that has an outcome of a success and a failure within the last
    24 hrs for each day, I want to only output the successful one. If there are no success for the same job, I will output the last attempted failed job.
    Here are my columns:
    current output:
    JOB_ID     JOBDATE               GROUP     PATH          OUTCOME          FAILED     LEVEL     ASSET
    3400908     7/27/2012 10:01:18 AM     polA     target1          Success          0     incr     clone1
    3400907     7/27/2012 10:01:09 AM     polA     target1          Failed          0     incr     clone1
    3389180     7/23/2012 10:01:14 AM     polA     target1          Failed          1     incr     clone1
    3374713     7/23/2012 10:01:03 AM     polA     target1          Success          0     incr     clone1
    3374712     7/22/2012 11:24:32 AM     polA     target1          Success          0     Full     clone1
    3367074     7/22/2012 11:24:00 AM     polA     target1          Failed          1     Full     clone1
    3167074     7/21/2012 10:01:13 AM     polA     target1          Success          0     incr     clone1
    336074     7/21/2012 10:01:08 AM     polA     target1          Success          0     incr     clone1
    desired output:
    JOB_ID     JOBDATE               GROUP     PATH          OUTCOME          FAILED     LEVEL     ASSET
    3400908     7/27/2012 10:01:18 AM     polA     target1          Success          0     incr     clone1
    3374713     7/23/2012 10:01:03 AM     polA     target1          Success          0     incr     clone1
    3374712     7/22/2012 11:24:32 AM     polA     target1          Success          0     Full     clone1
    3167074     7/21/2012 10:01:13 AM     polA     target1          Success          0     incr     clone1
    Here is a code I am trying to use without success:
    select *
    from
       (selectjob_id, jobdate, group, path, outcome, Failed, level, asset,
              ROW_NUMBER() OVER(PARTITION BY group, path, asset ORDER BY jobdate desc) as rn
                   from job_table where jobdate between trunc(jobdate) and trunc(jobdate) -1 )
       where rn = 1
       order by jobdate desc;Thanks,
    -Abe

    Hi, Abe,
    You're on the right track, using ROW_NUMBER to assign numbers, and picking only #1 in the main query. The main thing you're missing is the PARTITION BY clause.
    You want to assign a #1 for each distinct combination of group_id, path, asset and calendar day , right?
    Then you need to PARTITION BY group_id, path, asset and calendar day . I think you realized that when you named this thread "Query Based *on date partition* ".
    The next thing is the analytic ORDER BY clause. To see which row in each partition gets assigned #1, you need to order the rows by outcome ('Success' first, then 'Failed'), and after that, by jobdate (latest jobdate first, which is DESCending order).
    If so, this is what you want:
    WITH     got_r_num     AS
         SELECT  j.*     -- or list columns wanted
         ,     ROW_NUMBER () OVER ( PARTITION BY  group_id     -- GROUP is not a good column name
                                   ,                    path
                             ,             asset
                             ,             TRUNC (jobdate)
                                   ORDER BY          CASE  outcome
                                                 WHEN  'Succcess'
                                         THEN  1
                                         ELSE  2
                                             END 
                             ,             jobdate     DESC
                           )      AS r_num
         FROM    job_table  j
         WHERE     outcome     IN ('Success', 'Failed')
    --     AND     ...     -- Any other filtering, if needed
    SELECT     *       -- or list all columns except r_num
    FROM     got_r_num
    WHERE     r_num     = 1
    ;If you'd care to post CREATE TABLE and INSERT statements for the sample data, then I could test it.
    It looks like you posted multiple copies of this thread.  I'll bet that's not your fault; this site can cause that.  Even though it's not your fault, please mark all the duplicate versions of this thread as "Answered" right away, and continue in this thread if necessary.
    Edited by: Frank Kulash on Jul 28, 2012 11:47 PM
    This site is flakier than I thought! I did see at least 3 copies of this same thread earlier, but I don't see them now.

  • Sql query to fetch data based on date conditons

    Hi All,
    We have to schedule a script that runs at 1:00 AM from Monday to Friday.
    The script will run a  sql query  ,that will fetch the data from sql database 2008 based on the below conditions.
    Case 1: If date = current Date then retrieve the data of the previous Date.
    Case 2: If date = Monday then retrieve the entries of Friday ,Saturday and Sunday.
    Please help us on how we can achieve this.
    Thanks

    Hi,
    Are you asking about Patrick's
    solution?
    If so I highly recommend NOT to use this solution. PLease read LMU92's
    and
    Visakh16's responses.
    Why not to use it?
    1. This solution is not deterministic!
    A deterministic algorithm is an algorithm which, given a particular input, will always produce the same output. This solution give different values for different setting! It is depending for example on "SET LANGUAGE" value
    As mentioned above if you try to use any other languge then English then this query will not work since you will never get the value "Sunday"
    2. Moreover! Even if you are using "SET LANGUAGE 'English'" then this
    solution depend on "SET DATEFIRST" and only take into consideration that the value can be 1 or 7, using any other value you will get that @weekendDateMod is null!
    What can you use?
    let's test some value first to get the solution yourself. We know that we don't care about "SET LANGUAGE" since I will not use any language dependency but we need to examine "SET DATEFIRST". Try to change the value from 1 to 7 and check
    the value of this query
    SET DATEFIRST 1 -- Change this value from 1 to 7!
    DECLARE @Sunday DATE = '2014-08-03' -- This is Sunday
    DECLARE @Munday DATE = '2014-08-04' -- This is Munday
    SELECT DATEPART(DW,@Sunday),DATEPART(DW,@Munday), @@DATEFIRST
    Can you see the behavior ?
    The results are hidden here (select the text and you will see them)
    DATEFIRST___Sunday_______Monday
    1___________7___________1
    2___________6___________7
    3___________5___________6
    4___________4___________5
    5___________3___________4
    6___________2___________3
    7___________1___________2
    assuming you did the exercise above yourself, then  you can now think now what is the filter that you need...
    You can use a filter on those two parameters together using "where DATEPART... and @@DATEFIRST...) or using one combine check. Can you think how?
    Notice that this value is always 2 on Monday! Regarding our setting
    (DATEPART(DW,@CurrentDate) + @@DATEFIRST) % 7
    Please Don't Go Down Before YOu Understand!
    Now we can go to the solution
    * I really hope that you read all and did the small exercise yourself! You can not become a developer by copy answers, and this is the reason that from the start I only gave you tha way and not the final query!
    DECLARE @CurrentDate DATE = '2007-08-20' -- This is only for testing since you should use the function GETDATE() instead
    DECLARE @MinDateToFilter DATE
    SET @MinDateToFilter = CASE
    WHEN ((DATEPART(DW,@CurrentDate) + @@DATEFIRST) % 7) = 2 THEN DATEADD(DAY,-4,@CurrentDate)
    ELSE DATEADD(DAY,-1,@CurrentDate)
    END
    SELECT *
    FROM sales.salesOrderHeader
    WHERE orderDate > @MinDateToFilter
    I hope this was useful :-)
    [Personal Site] [Blog] [Facebook]

  • Query to split one row to multiple based on date range

    Hi,
    I need to split single row into multple based on date range defined in a column, start_dt and end_dt
    I have a data
    ID      From date             End_dt                measure
    1        2013-12-01         2013-12-03            1
    1        2013-12-04         2013-12-06            2
    2        2013-12-01         2013-12-02            11
    3        2013-12-03         2013-12-04          22
    I required output as
    ID      Date                      measure
    1        2013-12-01              1
    1        2013-12-02              1
    1        2013-12-03              1
    1        2013-12-04              2
    1        2013-12-05              2
    1        2013-12-06              2
    2        2013-12-01             11
    2        2013-12-02             11
    3        2013-12-03             22
    3        2013-12-04            22
    Please provide me sq, query for the same
    Amit
    Please mark as answer if helpful
    http://fascinatingsql.wordpress.com/

    Have a calendar table for example and then probably using UNION ALL from date  and stat date JOIN the Calendar table
    SELECT ID,From date  FROM tbl
    union all
    SELECT ID,End_dt FROM tbl
    with tmp(plant_date) as
       select cast('20130101' as datetime)
       union all
       select plant_date + 1
         from tmp
        where plant_date < '20131231'
    select*
      from  tmp
    option (maxrecursion 0)
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    The query is re-issued as a flashback query and the client process can continue to fetch from the cursor. This is described in the Net Services Administrators Guide, the section on Transparent Application Failover.

  • Query based on date

    Have you guys ever tried to write a query based on CMP?
    The EJB QL is:
    select object(a) from ActionItems as a where a.duedate = ?1
    When I deployed it to OC4J, I got the following error:
    Error compiling D:\oc4j903\j2ee\home\applications\biogen/biogen.jar: Error trans
    lating EJBQL: Invalid type for expression (a.dueDate = ?1)
    EJB QL statement : 'select object(a) from ActionItems as a where a.dueDate = ?1'
    EJB QL method : public abstract java.util.Collection ActionItemsLocalHome.findByDueDate(java.sql.Date) throws javax.ejb.FinderException
    Auto-deploying file:/D:/oc4j903/j2ee/home/applications/biogen/biogen/ (Assembly
    had been updated)...
    So, any query that is based on date will not work for OC4J, is this a bug or what?
    Thanks for the reply.
    Jingzhi

    I would post this question (and your date range question) to the J2EE group. More J2EE/EJB specific questions are answered there.
    To my understanding the standard ejb2.0 specification is weak in date comparisons for queries. I believe you need to add your date queries to your application server specific orion-ejb-jar.xml file. I'm not sure of how, I would post that question to the J2EE forum, or look it up in the 9ias documentation.
    -Mark

  • Select Query Based on date condition

    Hi ,
    Is it Possible.
    i want to run select query based on date condition.
    Eg...
    if the date between 01-jan-01 and 01-jan-05 then
    select * from table1;
    if the date between 02-jan-05 and 01-jan-08 then
    select * from table2;
    Becaz i have data in 2 diffrent tables , based on the date condition i wnt to run the select statement to diffrent tables.
    i dont want plsql here Just SQL needed.
    thanks,
    -R
    Edited by: infant_raj on May 5, 2009 11:48 PM

    Helo Kanish,
    this is not the one i was asking..
    wht i mean was .
    i use bind variable to get date while running the select statement , once i get the date then i want to choose any one of the table to run select query.
    EG..
    select col1,col2 from table1 where date between only if 01-jan-01 and 01-jan-05;
    select col1,col2 from table2 where date between only if 02-jan-05 and 01-jan-08;
    Run any one of the two . not all
    thanks,
    _raj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Adding new records in output based on extracted data

    Hi Experts,
    Good day!
    I'm still having a problem with my material hitorical data project. I have a requirements in our historical data of material price which adding data that are not existing based on data extracted from standard tables such as A004 and KONP.
    Now, i need to use the VALIDFROM (DATAB) as well as VALIDTO(DATBI) value as basis for the latest price.
    To make it more clear, see the example below:
    Extracted data:
    Material Number Valid From Valid to Price
    100101 01/01/2008 02/01/2008 100.00
    100101 02/02/2008 04/02/2008 100.00
    100101 04/03/2008 08/01/2008 200.00
    100101 08/02/2008 01/31/2009 300.00
    100102 05/02/2008 07/01/2008 10.00
    100102 07/02/2008 10/31/2008 15.00
    100102 11/01/2008 01/31/2009 20.00
    Output:
    Material Number Calmonth Price
    100101 01/2008 100.00
    100101 02/2008 100.00
    100101 03/2008 100.00
    100101 04/2008 200.00
    100101 05/2008 200.00
    100101 06/2008 200.00
    100101 07/2008 200.00
    100101 08/2008 300.00
    100101 09/2008 300.00
    100101 10/2008 300.00
    100101 11/2008 300.00
    100101 12/2008 300.00
    100101 01/2009 300.00
    100102 05/2008 10.00
    100102 06/2008 10.00
    100102 07/2008 15.00
    100102 08/2008 15.00
    100102 09/2008 15.00
    100102 10/2008 15.00
    100102 11/2008 20.00
    100102 12/2008 20.00
    100102 01/2009 20.00
    Text that are in bold are the added data. What is the best code to do with this?
    How can i come up with this output? Help me please guys....
    Thanks and Godbless,
    nips
    Edited by: Nips on Jan 18, 2009 4:23 AM

    hi,
    I havenot created such program before but i think the logic shud work.
    I have refined the logic take a look at it.
    DATA: d1 like sy-datum VALUE '11012008', "dates in internal format
          d2 LIKE sy-datum VALUE '01012008', "dates in internal format
          mon TYPE i,
          v_mon TYPE i,
          v_year TYPE char4
          v_date type char6.
    CALL FUNCTION 'MONTHS_BETWEEN_TWO_DATES'
      EXPORTING
        i_datum_bis         = d1
        i_datum_von         = d2
      I_KZ_INCL_BIS       = ' '
    IMPORTING
       E_MONATE            = mon
    IF mon > 0.
    v_mon = wa1-validfrom+0(2).
    v_year = wa1-validfrom+4(4).
    ENDIF.
    do mon times.
      CONCATENATE v_mon '/' v_year INTO v_date.
    wa2-matnr = wa1-matnr.
    wa2-calmonth = v_date.
    wa2-price = wa1-price.
    append wa2 to itab2.
    v_mon = v_mon + 1.
    enddo.
    endloop.
    кu03B1ятu03B9к

Maybe you are looking for

  • Bit of a story but need help !!

    right so the story is that one day i was walking and fell and my ipod flew out of my pocket and landed on the road , the bottom part of my headlhones broke off and now its stuck in the ipod - i think the part is called a jack im not so sure . also th

  • SSIS XML Task: data from Variable Option NOT Working

    hi this is the scenario: n number of XML files get delivered everyday XML files need to be transformed using an XSLT transform XML files get stored in table ImportedFile under XMLFile column (XML Type) We then create a SSIS package that does the foll

  • Re: Report painter - Creation of Profit center report (New GL enabled)

    Hello all, I am trying to create profit center report using report painter. I am trying to create formula variable to show the cumulative values for the elements assigned to the profit center.  I want to get values for cumulative period ie for eg if

  • Importing website from mobileme

    Hi I have recently reformatted my hard drive, and have have lost my site file in iweb. my page is still up on mobile me, is there a way to import my site so that i don't have to recreate it?

  • Auto-stacking by millisecond intervals

    This has probably been requested already, but I can't find it. Can we add support for auto-stacking by intervals of less than a second? I think milliseconds would be fine but microseconds would certainly cover all sins. I'm thinking that this would b