Date range in the view

Hi Team,
I created one sales report but here my requirement is it as to show the date range i.e (1-07-2012 To 30-07-2012) in the title view.
Is this possible by using variables can any one send clear steps how to achieve this.
Thanks,

Hi User,
May i know how did you created the sales report.
You said that you dont have any date range or date fields in your tables/report.
Then, what are the results... how do you know for which date range did you created the report ?
Is it default report which generated for the entire database without selecting dates ?

Similar Messages

  • Report with date range where the daily customer receipt profit centre wise

    Hi Experts,
    Could you please suggest me is there any developed  standard report or t-cod eis available  with which i can get date range where the daily customer receipt profit centre wise can be obtained............
    Thanks in Advance........
    Santosh Gupta...

    Hi:
              For this purpose you can develop Z report. There is no such standard report for it. Copy FBL5N to make a Z copy of it and use the table FAGLFLEXA for each document posted in BSEG/BKPF. You can also make use of BTE 1650.
    Regards

  • Need JavaScript for Sharepoint Designer 2010, to show a Pop-up to all the users between date range and the redirect the site

    Dear all,
    I am very new to Sharepoint designer 2010. Its better to say, i am just stepping in.
    I have sharepoint site which is accessible for all the users to update few information. But i want this site not to be accessible during a date range, say from 15th to 20th of every month.
    I am planning to have something like this: If any user tries to access this sharepoint site between 15th to 20th date range of everymonth, then the browser must show an pop-up alert saying "This site is not accessible during this date range" and Redirect
    this sharepoint site to someother site (Say http:// somesitename.xx.com) immidiately.
    I know very little about how to add Javascript in sharepoint webpart.
    Please provide the Javascript or any best alternate solution to my concern.
    Thanks in advance.

    Hi,
    From your description, my understanding is that you want to redirect sharepoint site to another site between 15th and 20th every month.
    I agree with what Sudip says. If you still want to use JS code,You could try these steps
    below:
    Open your site with SharePoint Designer.
    Click Master Pages in left navigation.
    Find file v4.master, and backup it(it is very important).
    Right click your v4.master,
    choose "Edit File in Adavance Mode".
    Add the code below into the <head/> tag.
    <script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script><script
    type="text/javascript">
    $(document).ready(function(){
    var today = new Date();  
    var day = today.getDate(); // get current day
    var id = _spPageContextInfo.userid; // get the id of current logon in user
    var boolFlg = false;
    $.ajax({
       url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/SiteGroups/GetByName(\'"+"sharepoint Owners"+"\')/Users", //get users in a specified group can access the sharepoint site from 15th to 20th every
    month
       type: "GET",
       headers: {"accept": "application/json;odata=verbose"},
       success: function (data) {
          if (data.d.results) { 
             var src = data.d.results;
             for(var i = 0; i < src.length; i++){
                if(src[i].userid==id){ //check the logon in user in  the specified group or not
                   boolFlg = false;
                   break;
             if(!boolFlg){
                if(day <= 20 && day >=15){
                    alert("This site is not accessible during this date range"); // alert the message
                    location.href = "http:// somesitename.xx.com"; // redirect to another site
       error: function (xhr) {
          alert(xhr.status + ': ' + xhr.statusText);
    })</script>
    Best Regards
    Vincent Han
    TechNet Community Support

  • Get Months for the given date ranges on the Selection Screen

    Hello All,
    If I give Begin Date (Begda) and End Date (Endda) on the Selection Screen, I need to get all the months given in the selection screen ranges.
    Could any one please suggest me how to proceed further on this.
    Thanks in Advance
    Regards
    Yathish

    HI,
    Check this FM
    HR_99S_INTERVAL_BETWEEN_DATES  ---> this can help you it will return the month in this table MONTH_TAB
    HR_99S_MONTHS_BETWEEN_DATES

  • Dynamic date range in the variant

    Hi,
    We have a background job that is scheduled to run on every 25th. One step of the job has a selection screen which has a Payment date range which is to have the dates 25th of previous to the 24th of the current month.
    So every month this needs to be updated dynamically. For ex: If I look at the variant of the step of the job in period 04 the date should be "03/25/2010 to 04/24/2010". If I look in Period 05 then it should be "04/25/2010 to 04/25/2010".
    Can anyone tell me if this can be achieved through a variant or does this have to be put in the code?
    Regards,
    raj/

    You can create a dynamic variant using STVARV following the steps in the given link...
    http://wiki.sdn.sap.com/wiki/display/ABAP/Creatingdynamicvariantusingtable+TVARV
    Now, the values in TVARVC need to be updated for each period. It can be done scheduling a separate BDC program, which runs for each period and updates the values. So, your date values will be changed for a new period by the background job and program variant wil pick up automatically the values from TVARVC. Check this link, which depicts a similar kind of requirement.
    Re: Update TVARVC Table Dynamically
    You can also calculate the values in intialization event each time the program runs as suggested by Sumit. But, if you need a variant then it won't help. The advantage with TVARVC is you can maintain different set of variants with different values.

  • Passing the Date range within the query

    Hi ,
    In my query , I have two date characteristic, and while doing the selection I have to do selection on only one date field.
    This selection is a date range selection , So I have used a selection variable for this.
    Can anyone please let me know if it is possible to pass the selection range to other variable. Is it possible to use Customer exit to pass the complete range.
    Thanks
    Altair

    Hi,
    You can do it in the user exit.And that is the only approach to transfer the values of one variable to other variable .
    Search this forum for the code. you will find  lot of postings.
    With rgds,
    Anil Kumar Sharma .P

  • Customer exit variable for date range for the last day

    Hi,
    If user enters date ranges in variable
    suppose user enters 9/1/2010 to 9/15/2010 and we have to calculate currency conversion based on last day i..e 9/15/2010 . 08
    2)User input is date range 08/01/2010 to 08/30/2010
    I need from the customer exit 08/30/2010 (on last day) to calculate currency conversion.
    Can anyone help me with ABAP code to achieve this customer exit?And please tell me how to proceed step by step
    Sridhar

    create a variable to enter date range (ZDATE1)
    create a key date variable(ZDATE2) with processing type customer exit, should not be ready for input.
    In the exit ZXRSRU01 write below code.
    DATA: l_s_range TYPE rsr_s_rangesid,
          loc_var_range LIKE rrrangeexit.
    WHEN 'ZDATE2'.
        IF i_step = 2.
           read table i_t_var_range INTO loc_var_range
                    with key vnam = 'ZDATE1'.
            CLEAR l_s_range.
            l_s_range-low = loc_var_range-high.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
        ENDIF.

  • Duplicate date datas (rows) from the view

    Hi friends,
    My purpose is to get the duplicate date datas from the view.
    The following select (1) works well (according to the employee_id). But, the select (2) doesn't work when want to get the duplicate date datas from the view and it gives me an error such as: ORA-00979: not a GROUP BY expression.
    Can you please help... Thanks in advance!
    --- 1 ---
    SELECT   id,
               state,
               insert_timestamp,
               update_timestamp,
               update_status,
               staff_including_date,
               company_name,
               position,
               position_name,
               release_date,
               notes,
               update_user_id,
               employee_id,
               fk_org_structure_id,
               fk_staff_position_id,
               fk_document_id,
               document_date,
               document_number,
               d_order_date,
               fk_activity_operation_type,
               activity_operation_name,
               fk_military_type,
               military_type_name,
               fk_activity_type,
               activity_type_name
        FROM   fhn_staff.v_fs_labor_activity
       WHERE   employee_id = :p_employee_id AND state = 1
    ORDER BY   fk_activity_type, staff_including_date, id;--- 2 ---
    SELECT id,
             state,
             insert_timestamp,
             update_timestamp,
             update_status,
             staff_including_date, COUNT (staff_including_date),
             company_name,
             position,
             position_name,
             release_date,
             notes,
             update_user_id,
             employee_id,
             fk_org_structure_id,
             fk_staff_position_id,
             fk_document_id,
             document_date,
             document_number,
             d_order_date,
             fk_activity_operation_type,
             activity_operation_name,
             fk_military_type,
             military_type_name,
             fk_activity_type,
             activity_type_name
        FROM fhn_staff.v_fs_labor_activity
       WHERE state = 1
    GROUP BY staff_including_date
      HAVING COUNT (staff_including_date) > 1
    ORDER BY fk_activity_type, staff_including_date, id;

    The first four columns? What about the other ones as well.
    If you to fetch a different set of columns than you want to group on, then you should look at an analytic function, i.e
    COUNT(*) OVER (PARTITION BY... )Assuming that you do only want to group by the date (seems a bit odd but I know nothing about what you're trying to do with your data), then it sould be something like this:
    SELECT *
    FROM (
    SELECT id,
             state,
             insert_timestamp,
             update_timestamp,
             update_status,
             staff_including_date, COUNT (*) OVER (PARTITION BY staff_including_date) cnt,
             company_name,
             position,
             position_name,
             release_date,
             notes,
             update_user_id,
             employee_id,
             fk_org_structure_id,
             fk_staff_position_id,
             fk_document_id,
             document_date,
             document_number,
             d_order_date,
             fk_activity_operation_type,
             activity_operation_name,
             fk_military_type,
             military_type_name,
             fk_activity_type,
             activity_type_name
        FROM fhn_staff.v_fs_labor_activity
       WHERE state = 1)
    WHERE cnt  > 1
    ORDER BY fk_activity_type, staff_including_date, id;

  • Display of date range in the top-of-page of report

    have a question like this.
    i have a date range selection on the selection screen where the user will enter the range from this to this.
    now whatever period he will enter,that range should be displayed on the output of the report in the top-of page.
    can we do like this.
    plz explain.
    thanks!

    Hi,
    Use the below logic.
    data:      events      type  slis_t_event,
          event       type  slis_alv_event,
          heading     type  slis_t_listheader,
          hline       type  slis_listheader,
    start-of-selection.
    "get the data into the internal table and fill your fieldcatalog table.
    then fill the event ... ie top of page like this.
      CLEAR event.
      event-name = slis_ev_top_of_page.
      event-form = form_name.
      APPEND event TO events.
    then fill the comments to display in the top of page event.
    DATA: text(50).
      CLEAR hline.
      hline-typ  = 'H'.
      hline-info = "report title".
      APPEND hline TO heading.
      CLEAR: hline,text.
      read table s_pernr index 1.
      IF s_pernr-low IS NOT INITIAL.
        WRITE: 'Sal Code:' TO text.
        WRITE: s_pernr-low TO text+15.
      ENDIF.
      IF s_pernr-high IS NOT INITIAL.
        WRITE: 'to' TO text+25.
        WRITE: s_pernr-high TO text+28.
      ENDIF.
      hline-typ  = 'S'.
      hline-info = text.
      APPEND hline TO heading.
    and then...
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = sy-repid
         it_fieldcat                       = ist_fcat[]
          it_events                         = events[]
        TABLES
          t_outtab                          = ist_main[]
       EXCEPTIONS
         program_error                     = 1
         OTHERS                            = 2
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    and then create a subroutine for top of page.
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary       = heading[]
          I_LOGO                   =
          I_END_OF_LIST_GRID       =
          I_ALV_FORM               =
    ENDFORM.                    "TOP_OF_PAGE
    regards,
    Santosh Thorat

  • Addition of  Start & end date fields in the View 'My team's open leads' .

    Dear all,
                 I want to add Lead Sart date & Expected  End date in the personalize list of view 'My team's open Leads' in the Overview page of Lead management
      I tried it by changing the field name in PDVField as                                           LEAD_DATE_START/visibility=false ' for start date in the detailed view of I view ' 'My team's open leads'.But it is not reflecting in Personalize list of fields.
    Can any body give solution to this ASAP as it is high priority requirement.
    Maximum points would be rewarded for solution.
    Regards,
    Basavaraj V.Patil

    Hi,
    I have a similar problem.  There appear to be some configurable attributes in the iview such as 'PDVField' and 'Column'. The PDVField attribute contains values such as 'QUAL_LEVEL_MAN_TXT/visibility=true'. When running the iview, this field is visible. However when I change this setting to false, the field is still visible. There is a PDVCachingOn field and this I have set to false however this also seems to make no difference.
    Regarding the 'column' field, I have no idea what can be done here as the initial value is blank.
    The suggestion in the post above requires customising the standard iView. That may be the case, but clearly the purpose of these 'configurable' attributes does not seem to be very clear.
    Mr.T

  • How can we restrict the date range in the date picker

    While selecting any date a pop up date picker appears. In this date picker the users can select any future dates which can be 30-40 yrs ahead. How can customize this date picker so that the users are not allowed to slected date beyond certain range. ...??

    Hi user570596,
    I think there is no method to actually restrict the date picker popup, but you can use the ApexLib Framework (http://apexlib.sourceforge.net/) to define a min/max value for your date field. This will prevent the user from submitting the page when the date value is outside the defined range.
    See http://inside-apex.blogspot.com/2007/03/min-max-value-validation-in-browser.html
    for details.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • Date Range in the last year

    Hi,
    I know this must be basic. I have searched the forum and I have expiremented but I can't come up with the answer And I'm not much of a coder...
    I have a date field and I need the records to be selected for any date in the past year. In the Select Expert there are many choices for "is in the period" but none of them actually give me the previous 12 months.
    Any help would be great!
    Thankyou.
    Chuck

    Hi Chuck, that is what Carl has given you.
    {db.date} in dateadd("yyyy", -1, {?date}) to {?date}
    dateadd ("yyyy", -1, {?date})
    will date the date you provide in your parameter and subtract one year.
    Dateadd, could subtract, or add, months, days, years....  so by putting the "yyyy" you
    are telling it to use years.
    Anyway, this should give you exactly one year ago from prompted date, to prompted date.
    HTH
    Jon

  • Given various date ranges, count the occurrences of dates in PL/SQL

    i have a table of employees that have a start date and end date on a project. Some employees end date is null because they are still working on the project. So I want to find for each day in JAN, how many people on working on the project.
    So I generate the dates JAN 1 - 31 with this:
    Declare
      days DATE := To_Date('01-JAN-11','dd-mon-yy');
    BEGIN
      FOR days IN 1..31
      LOOP
        Dbms_Output.Put_Line(TO_CHAR(days ,'dd-Mon-yy'));
        days  := days  + 1;
      END LOOP;
    END; For employee X (ID 123), his start date is 1st and end date is 4th. So I use this query to list the dates he worked on (Jan1 jan2 jan3 jan4):
    DECLARE
    da Number;
    days Date;     
    sta emp.start%Type;
    BEGIN
    Select end-start+1
    Into da
    From emp
    where emp_id = 123;
    Select start
    Into sta
    From emp
    Where emp_id = 123;
      days  := To_Date(sta,'dd-mon-yy');
    FOR i IN 1..da
      LOOP
        Dbms_Output.Put_Line(TO_CHAR(days ,'dd-Mon-yy'));
        days  := days  + 1;
      END LOOP;
    END;Now the problem I am having is trying to do a for loop to check the work days from each employee in the table. I guess I need to iterate over the employee IDs. The above code, I entered the empoyee ID myself to find his work days, but I am trying to loop over all the employees to find and count the days. Any help on this part?
    Ultimately I am trying to get this:
    Day Count
    Jan 1 5
    Jan 2 3
    Jan 3 1
    Jan 31 5

    select  project_id,
            dt,
            nvl(count(emp_id),0)
      from  employee_projects,
            (select date '2010-12-31' + level dt from dual connect by date '2010-12-31' + level <= date '2011-01-31')
      where dt between start_date(+) and nvl(end_date(+),sysdate)
      group by project_id,
               dt
    /SY.
    Edited by: Solomon Yakobson on Jan 18, 2011 5:01 PM

  • Date range error when viewing items purchased on ipad from PC

    When I'm on my PC and open iTunes and sort by date, the latest date to show up is 2011 but I have purchased many items on my ipad since then.  I don't know what happened and why it won't show my recent purchases.  Any suggestions????
    Karen

    You will get a second message saying you won't be charged but if you're concerned, just download a free app, any one will do, first to your iPad, then try to transfer it to your PC. Presumably it won't transfer so then download it again directly through iTunes on your PC and try to transfer again.
    Oh one more thing: did you register your iPad during the initial setup sync? iTunes should have asked you if you wanted to register the iPad now or later. If you picked later, maybe the iPad isn't being recognized by iTunes as an authorized device. I'm not sure my speculation is right because if that were the case, I don't think you should be able to transfer apps from PC to iPad but you can do that. But I'm just throwing out ideas. If you haven't registered the iPad yet, maybe go ahead and do so.
    Message was edited by: Peter Lee
    Message was edited by: Peter Lee

  • Cannot query on a date range (where the date is in a varchar format)

    Hi All
    Here is my SQL query:
    select unique(a.SAP_PO_NUMBER), a.ISSUE_CODE, a.PO_CREATION_DATE
    from sspe.vendor_purchase_order a
    where a.po_creation_date between to_date('2007-02-01', 'yyyy-mm-dd') and to_date ('2007-08-01', 'yyyy-mm-dd')
    and a.ISSUE_CODE like 'OK%'
    the po_creation_date field is a varchar(12) field and i get the following error:
    ORA-01861: literal does not match format string.
    Appreciate any help
    Gautam

    Try this
    <p><font face="Courier New" size="2">select <br>
    DISTINCT(a.SAP_PO_NUMBER),<br>
    a.ISSUE_CODE,<br>
    a.PO_CREATION_DATE<br>
    from <br>
    sspe.vendor_purchase_order a<br>
    where <br>
    TO_DATE(a.po_creation_date,'<DATE_FORMAT>')<br>
    between<br>
    to_date('2007-02-01', 'yyyy-mm-dd') and<br>
    to_date('2007-08-01', 'yyyy-mm-dd')<br>
    and <br>
    a.ISSUE_CODE like 'OK%'<br>
     </font></p>
    Good Luck

Maybe you are looking for