Variable - Till end of the reporting period, First and last day of RP

Hello Experts,
We have query having three customer exit time variables, (Current Quater is 10/1/2011 to 12/31/2011)
1. Till end of the Reporting Quater - 1/1/1980..12/31/2011
2. Quater Begin Date - 10/1/2011
3. Quater End Date -  12/31/2011
Now, we want this time variables without Customer Exits. Is there any other way around to get this time variables wihtout customer exits ? Any ideas or suggestions ? Please help.
Many thanks in advance.
Sunil Patel.

say_me_sunil wrote:
Hello Experts,
>
> We have query having three customer exit time variables, (Current Quater is 10/1/2011 to 12/31/2011)
> 1. Till end of the Reporting Quater - 1/1/1980..12/31/2011
> 2. Quater Begin Date - 10/1/2011
> 3. Quater End Date -  12/31/2011
>
> Now, we want this time variables without Customer Exits. Is there any other way around to get this time variables wihtout customer exits ? Any ideas or suggestions ? Please help.
> Sunil Patel.
No sunil, if you want the report should change dynamically every quarter means you must have to use the variables,
otherwise you have to restrict the values manually for every quarter .
But you can use the APD to load data to some other DSO , from there you can report,
but while loading also you have to use the code..
so its better to use variable with customer exits.
Regards,
Ranganath

Similar Messages

  • Find the first and last day of week giving a certain date

    Hi,
    i have an application in wich the user puts a date, say today 2010-08-10 and i have to calculate first and last day of that week, in this case 2010-08-09 and 2010-08-15. How can i do this?
    Many thanks in advance,
    Nuno Almeida

    nfalmeida wrote:
    i have an application in wich the user puts a date, say today 2010-08-10 and i have to calculate first and last day of that week, in this case 2010-08-09 and 2010-08-15. How can i do this?First step is being sure that you know what a 'week' is.
    For example does it really start on monday? And will it always start on monday?
    And what day does the 'week' end on for 2010-12-29? In some businesses it will end on 2010-12-31 (friday)

  • How to find first and last day of last month?.

    Hello,
    I am using Crystal Report XI.
    Reports will be generated on first of every month for
    previous month. I want to find start and end date of previous month
    dynamic.
    For august, Start date is July 1st and End date July 31st.
    For September, start date is Aug 1st and Aug 31st.
    How can i get first of previous month as start date and last
    day of the previous month as end date?.
    Same kind of thing I want to do for future report ..find next
    month start date and end date.
    Thanks

    Adomacro,
    you could do a function, like this
    <cffunction name="getReportdates" returntype="struct"
    hint="Given an arbitrary month and year, the function returns a
    structure containing the first and last day of the previous
    month">
    <!--- Take current month and current year as the default
    --->
    <cfargument name="mnth" type="string" required="No"
    default="#monthAsString(month(now()))#">
    <cfargument name="yr" type="numeric" required="No"
    default="#year(now())#">
    <cfset firstDayOfGivenMonth = parseDateTime("1 " &
    arguments.mnth & " #arguments.yr#")>
    <cfset lastDayOfPreviousMonth =
    dateAdd("d",-1,firstDayOfGivenMonth)>
    <cfset numberOfDaysOfPreviousMonth =
    daysInMonth(lastDayOfPreviousMonth)>
    <cfset firstDayOfPreviousMonth =
    dateAdd("d",-#numberOfDaysOfPreviousMonth#,firstDayOfGivenMonth)>
    <cfset reportDates = structNew()>
    <cfset reportDates.firstDayOfPreviousMonth =
    firstDayOfPreviousMonth>
    <cfset reportDates.lastDayOfPreviousMonth =
    lastDayOfPreviousMonth>
    <cfreturn reportDates>
    </cffunction>
    <!--- Example usage --->
    <p>
    Given month: <strong>March
    2004</strong><br>
    begin date:
    <cfoutput>#dateFormat(getReportdates('March',2004).firstDayOfPreviousMonth,"d
    mmm yyyy")#</cfoutput><br>
    end date:
    <cfoutput>#dateFormat(getReportdates('March',2004).lastDayOfPreviousMonth,"d
    mmm yyyy")#</cfoutput><br>
    </p>
    <p>
    Given month: <strong>August
    2007</strong><br>
    begin date:
    <cfoutput>#dateFormat(getReportdates('August',2007).firstDayOfPreviousMonth,"d
    mmm yyyy")#</cfoutput><br>
    end date:
    <cfoutput>#dateFormat(getReportdates('August',2007).lastDayOfPreviousMonth,"d
    mmm yyyy")#</cfoutput><br>
    </p>

  • Getting first and last day of week

    Dear all .
    Is there any funcion module which gives first and last day of the current week .
    Eg . todays day is 15.11.2006
    start date of week : 13.11.2006
    end date of week : 19.11.2006
    in the same way I want how many days are there in month .
    Eg : for Nov month :
             30 days .
          for dec month 31 days .
    Thank you in advance

    Use FM GET_WEEK_INFO_BASED_ON_DATE
    Import parameters               Value    
    DATE                            15.11.2006
                                                                                    Export parameters               Value    
    WEEK                            200646   
    MONDAY                          13.11.2006
    SUNDAY                          19.11.2006
    Use FM HR_E_NUM_OF_DAYS_OF_MONTH
    Import parameters               Value     
    P_FECHA                         15.11.2006                                                                               
    Export parameters               Value     
    NUMBER_OF_DAYS                    30        
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Get First and last day of Month..

    Hi Friends,
    I am trying to fetch First and Last day of a month and would like to implement that in the following code:
    SELECT COALESCE(Date_A, Date_B, Date_C)
    FROM dual
    Here Date A and B are in Format of MM DD YYYY (March 14, 2008)
    and Date C is like MM YYYY (March 2008)
    How can I get the Date_C as March 1, 2008 OR March 31, 2008 format if Date A and B are NULL ?
    Thanks!
    Edited by: user11095386 on Apr 23, 2009 10:45 AM

    Hi,
    In my earlier message, I thought that you were starting with strings like '03 12 2009' and that you wanted to display them as 'March 12 2009'. If what you have is just the reverse, then just reverse the format strings in my first message. Add a comma, if you want one, in the appropriate format string.
    I believe this is what you want:
    COALESCE ( TO_CHAR ( TO_DATE ( Date_A, 'fmMonth DD YYYY'), 'MM DD YYYY')
             , TO_CHAR ( TO_DATE ( Date_B, 'fmMonth DD YYYY'), 'MM DD YYYY')
             , TO_CHAR ( TO_DATE ( Date_C, 'fmMonth YYYY'),    'MM DD YYYY')
             )Notice how, on the 3rd line, TO_DATE is called without DD in the format string:
    TO_DATE ( Date_C, 'fmMonth YYYY')When you do this, the day defaults to the 1st of the month, so this is all you have to do to convert the VARCHAR2 'March 2009' to the DATE 01-Mar-2009.
    If you want the last day of the month, not the first, when Date_C is chosen, then use LAST_DAY:
    COALESCE ( TO_CHAR ( TO_DATE ( Date_A, 'fmMonth DD YYYY'), 'MM DD YYYY')
             , TO_CHAR ( TO_DATE ( Date_B, 'fmMonth DD YYYY'), 'MM DD YYYY')
             , TO_CHAR ( LAST_DAY ( TO_DATE ( Date_C
                                              , 'fmMonth YYYY'
                 , 'MM DD YYYY'
             )

  • Get first and last day given month name with combobox

    hi guys ;
    I loaded to month name in combobox and I want to get first and last day by the name of month from selected Combobox
    So if I select to february than results get 01.02.2015 and 28.02.2015
    if select March than 01.03.2015 and 31.03.2015
    Thanks .

    Thank you for useful post , How to change Culturinfo as a Turkish Month name ?
    your's code is work if I use English month name But it was get error when use the turkish month name
    If you are running your application on a Turkish Windows you could use the System.Globalization.CultureInfo.CurrentCulture:
    int month = DateTime.ParseExact(monthName, "MMMM", System.Globalization.CultureInfo.CurrentCulture).Month;
    Or you could use create an explicit culture object like this:
    System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("tr-TR");
    int month = DateTime.ParseExact(monthName, "MMMM", ci).Month;
    Please remember to mark all helpful posts as answer to close your threads.

  • How to find first and last day of previous month?.

    Based on current month, I want to find start and end day of
    previous month.
    For example,
    For august, Start date is July 1st and End date July 31st.
    How can i get first of previous month as start date and last
    day of the previous month as end date?.
    Same way,
    i want to find start date of current month and end date of
    next month.
    Example:
    For august,
    i want to get start date, august 1st and end date : september
    30.
    How can i do this from current date or now().
    I am looking for best and easy way to find start and end
    dates..
    Thanks

    <cfset today = now()>
    <cfset firstOfThisMonth = createDate(year(today),
    month(today), 1)>
    <cfset lastOfNextMonth = dateAdd("d", -1, dateAdd("m", 2,
    firstOfThisMonth))>
    <cfoutput>
    today = #today#<br>
    firstOfThisMonth = #firstOfThisMonth#<br>
    lastOfNextMonth = #lastOfNextMonth#<br>
    </cfoutput>
    Edit - To find the start and end day of previous month, get
    the first of THIS month. Use Subtract 1 month ("m") to get the
    start date. Subtract 1 day ("d") to get the end date.

  • First and last day of current year as a date object

    Howdy...
    can someone please help me out... i need a fast way to get the first day of the current year as a date object and the last day of the current year as a date object...
    big thanks for any sample code...

    import java.util.Calendar;
    // snip
    Calendar firstDayOfYear = Calendar.getInstance(); // will initialize it with today
    firstDayOfYear.set(Calendar.DAY_OF_MONTH, 1);
    firstDayOfYear.set(Calendar.MONTH, Calendar.JANUARY);
    Calendar lastDayOfYear = Calendar.getInstance(); // will initialize it with today
    lastDayOfYear.set(Calendar.DAY_OF_MONTH, 31);
    lastDayOfYear.set(Calendar.MONTH, Calendar.DECEMBER);Rommie.

  • How to remove the characters from first and last position of a string?

    Hi all,
    I am creating an application where i am using vb script to export the data to excel.
    In the excel sheet most of the values are entered with double " quotes.
    so the entry looks like ""http://www.sap.com"".
    Notice that it is starting with "" and not " . so the vb takes it as a line feed and shows an error .
    It will be great if anybody can tell me how to remove these set of quotes ,so that the value should come as "http://www.sap.com" . A sample code wil be of great help.
    Thanks in advance,
    mahima.

    Hi,
    To modify you excel you have 2 options, 1) you can filter them in excel itself by using filter ...etc in excel itself. or 2) you can do it by using ABAP code.
    Below code may help you.
    Get the data from Excel to Internal table using FM :
    call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      exporting
        filename                = 'c:\temp\test.xls'
        i_begin_col             = 1
        i_begin_row             = 1
        i_end_col               = w_values
        i_end_row               = 10
      tables
        intern                  = t_alsmex_tabline
      exceptions
        inconsistent_parameters = 1
        upload_ole              = 2
        others                  = 3.
    Now replace all unwanted "" in internal table with space.
    replace all occurrences of '""' in itab-field with '   '.
    Again you can export to Excel using
      call function 'GUI_DOWNLOAD'
        exporting
          filename                = lv_file
          filetype                = 'DAT'
          append                  = ' '
          write_field_separator   = 'X'
        tables
          data_tab                = itab.

  • Get first and last day of the year

    and razm.date >= to_date('01.01.'||:VDATE||'', 'dd.mm.yyyy') AND razm.date <= to_date('31.12.2010.'||:VDATE||'', 'dd.mm.yyyy');
    but i get:
    ORA-01830: date format picture ends before converting entire input string
    01830. 00000 - "date format picture ends before converting entire input string"
    *Cause:   
    *Action:
    :VDATE is input param like 2010. I need to get data from range 1.1.2001 to 31.12.2010
    thx

    user13256715 wrote:
    and razm.date >= to_date('01.01.'||:VDATE||'', 'dd.mm.yyyy') AND razm.date <= to_date('31.12.2010.'||:VDATE||'', 'dd.mm.yyyy');ur making mistake in
    to_date('31.12.2010.'||:VDATE||'', 'dd.mm.yyyy');change it to
    to_date('31.12.'||:VDATE||'', 'dd.mm.yyyy');

  • When viewing a text conversation, how can I see the person's first AND last names?

    When I view my text "inbox", they are listed according to how I have each contact entered...for example John Smith. When I look within the text conversation with that person, at the top it only says "John". This is very frustrating. (I only recently upgraded to iOS 7 and have a feeling this is one of many things I'm going to resent.) Can't I express a preference for the full name to appear?

    Settings App > Mail,Contacts,Calendars > [scroll down to CONTACTS] > Short Name [turn off, or select another display option)]

  • FM for First and Last Day_Current Month

    Hello All,
    Inorder to update the TVARV table, two new variables were needed which will get the First and Last Day of current month.
    One FM i was able to find was BKK_GET_MONTH_LASTDAY which takes the Todays date and outputs the Last date of the month. IS there any FM for FIRSTDAY Current month....
    Regs,
    -PSK

    Hi Sravan,
    Following help may help you.
    FM - BUILD_PERIOD_TABLE
    code is mentioned below.
    data: it_cperiod type table of range_prds with header line,
    define one variable as range like -
    ranges: r_cperiod for sy-datum,
    CALL FUNCTION 'BUILD_PERIOD_TABLE'
        EXPORTING
          YEAR         = <current year>
        TABLES
          PERIOD_TABLE = it_cperiod.
      read table it_cperiod with key per_id = <current month>
      refresh r_cperiod.
      r_cperiod-sign = 'I'.
      r_cperiod-option = 'BT'.
      r_cperiod-low = it_cperiod-begda.
      r_cperiod-high = it_cperiod-endda.
      append r_cperiod.
    Now, you can see begin and end of moth in r_cperiod.
    Regards,
    Parag

  • Jbo:DataScroller - how to ensure 'First' and 'Last' action links appear

    I'm working in JDeveloper 10.1.3.5.0.
    I'd like to know if there's a way to ensure that the action links 'First' and 'Last' will appear, in addition to the 'Next' and 'Previous' ones (that is, assuming we're not already at the first or last range position).
    It seems as if the thing that determines whether or not they appear is the number of total range positions. I can't be certain, but it seems like the magic number is 1000. If there are fewer, then 'First' and 'Last' will appear, and if there are more, then they will not. It'd be great to be able to have control of this, though. Is it possible?
    Thanks
    Shea

    Encore is being phased out?  I would be surprised if Adobe did not offer some kind of DVD authoring solution in it's place.  I have not heard about this yet myself.
    I have a menu size issue because, despite my reported file size being under 4.7G, Encore continues to report a menu size problem.  Of course it doesn't say which menu or by how much it is exceeded.  When I build it to DVD it waits several hours before reporting that there is a space issue.  See below.
    There is a file called woodstock-1.mp4.  I can find no use of this clip at this point and it's not part of a timeline, yet Encore won't let it be deleted.  Encore reports it's still in use.  Surely there should be some way to track down any dependencies quickly.

  • First and Last Date.  Is is possible in Essbase?

    Hello All,<BR><BR>Here are the dimensions in my outline:<BR>- User<BR>- Application<BR>- Dates<BR>- Measures (Count, FirstLoginDate, LastLoginDate)<BR><BR>I am trying to create a report in Essbase that shows the first and last date that each user accessed each Essbase application. I created an ETL process that builds a relational table with one record for each unique combination of User/Application/Day where a user was logged into an application. This process gets its source data from the Essbase application log files. I am loading a count of 1 to each intersection of User/Application/Day. I also want to add the first and last day to the cube but can not figure out how.<BR><BR>1) Is there an easier way to get at the source data then the application log files?<BR>2) If the application log files are the way to go, how do I indicate in the cube what the first and last login days are for each combination of User/Application?<BR><BR>I was thinking of loading the serial dates to the FirstLoginDate and LastLoginDate measures. The trouble I am having is where to load the dates data. Do I load it to level 0 (individual dates) and then use time balance to get the dates up to the higher levels (month, year) or load it at the higher levels? If I should load it at the higher levels, do I assume correctly I will need to create another relational table with one record for each User/Application/Month and User/Application/Year that shows the first and last dates? Any other ideas?<BR><BR>Thank you in advance,<BR><BR>Bill Handelman<BR>847-989-1758<BR>[email protected]<BR><BR>

    While you may have natural ordering in your date dimensions, Essbase doesn't handle first and last dates well. The one area where ther is at least some funcionality in date manipulation is inattribute dimensions, however, the easy use there allows only one date attribute using normal date processing. It gets a great deal more complex using two dates.<BR><BR>Look up the DBAG references to the date type of attribute dimensions, you might find it a partial solution to your problem.<BR><BR>If you go the serial date method, load at level 0 and want to use time balance to bring the values up, you still need a time dimension. If I were designing something, I might use the first access date as a time dimension and the last access date in an attribute dimension, but I'm rambling rather than analyzing.<BR><BR>In any case, look at the date type attribute dimension as one possible option for your cube.

  • First and last analtic functions

    Hi
    I am trying to understand the functioning of first and last function. but getting not idea how they work.
    doc says
    FIRST and LAST are very similar functions. Both are aggregate and analytic functions that operate on a set of values from a set of rows that rank as the FIRST or LAST with respect to a given sorting specification. If only one row ranks as FIRST or LAST, then the aggregate operates on the set with only one element.
    Can anyone help me to understand this by an example as small simple one
    thanks
    Nick

    SQL> select max(sal) keep (dense_rank first order by empno) sal_max_first
      2       , min(sal) keep (dense_rank first order by empno) sal_min_first
      3       , max(sal) keep (dense_rank last order by empno)  sal_max_last
      4       , min(sal) keep (dense_rank last order by empno)  sal_min_last
      5    from emp
      6  /
      SAL_MAX_FIRST   SAL_MIN_FIRST    SAL_MAX_LAST    SAL_MIN_LAST
                800             800            1300            1300
    1 rij is geselecteerd.The order by clause orders the fourteen employees such that the first one is 7369 - SMITH and the last one is 7934 - MILLER. The expression returns the salary of SMITH (800) or the salary of MILLER (1300). The min and max are dummy since there are no ties when ordering by the primary key (empno).
    Regards,
    Rob.

Maybe you are looking for

  • Error while running a J2EE application on Oracle10gAS

    Hi, I am receiving an error when trying to run a J2EE application on Oracle10gAS. The application runs successfully on Oracle9iAS, but throws the following exception on 10g application server: <?xml version="1.0" encoding="UTF-8" ?> - <SOAP-ENV:Envel

  • Sherlock is messed up! Help

    Hi, I just started using Sherlock. I was on the other day messing with it, when all the icons (stocks, eBay, movies, etc.) dissappeared. Now nothing is in Sherlock. No channels, no toobar icons, nothing. I didn't mess with any of the preferences in i

  • Service order and Logistics Integration

    How to do service order and logistic integration for availability check and reservation of material

  • Problem In BAPI Call

    Dear All, error is generated while calling Following FM invalid parameter PO_ITEMS. SOURCE CODE IS AS BELOW.    DATA : BEGIN OF i_poitem OCCURS 0.         INCLUDE STRUCTURE bapiekpo. DATA : END OF i_poitem. PARAMETERS p_ebeln TYPE ekko-ebeln. CALL FU

  • Why don't google links work?

    Google search sometimes doesn't work. Links from google search do not open. This problem has existed since upgrade of foxfire 4. Java upgrade current also.