Increasing the date range in generic search

Hello,
Is there an easy way to increase the date range in generic search to more than 1 year (the last year option in the dropdown)?
Our release is ecommerce 7.
Many thanks
Stefan

Check if the BAPI is able to give results for more than a year. If thats possible, add new select options to the jsp of the search view.

Similar Messages

  • MDM ABAP API query to pass the date range

    Hi
    I want to retrieve certain data from MDM repository based on filter criteria by date stamp.
    Not sure how to do it to pass the select option value in the query.
    select-options: s_cdate for sy-datum obligatory .
    DATA  wa_query     TYPE mdm_query.
    DATA: v_search_date1    TYPE MDM_CDT_DATE_TIME.
    data: v_datestamplow1   type string.
    data: v_datestamplow    type TZNTSTMPL.
    concatenate s_cdate-low '000000' into v_datestamplow1
    v_datestamplow  = v_datestamplow1.
    clear wa_query.
        wa_query-parameter_code = 'Changed_On '.             "Field code ( Field name )
        wa_query-operator = 'EQ'.
        wa_query-dimension_type = mdmif_search_dim_field.    "Field search
        wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date  serach
    I am able to get the data when I just pass the low value from selecct option.  But I dont how  to pass the date range.
       v_search_date1-CONTENT = v_datestamplow.
        ET REFERENCE OF v_search_date1 INTO wa_query-value_low.
        APPEND wa_query TO gt_query.
      CALL METHOD cl_api->mo_core_service->query
          EXPORTING
            iv_object_type_code = 'Vendors'
            it_query            = gt_query
          IMPORTING
            et_result_set       = gt_result.
    II could see the below operator types . Although EQ says "Like standard select-options parameter" not sure how to pass the value.
    EQ     Equal to (like standard select-options parameter)
    NE     Not equal to (like standard select-options parameter)
    LT     Less than (like standard select-options parameter)
    LE     Less than or equal to (like standard s-o parameter)
    GT     Greater than (like standard select-options parameter)
    GE     Greater than or equal to (like standard s-o parameter
    SW     Starts with (MDM specific parameter)
    Thanks,
    Krishna.

    Hi,
    To get the date range for select options, pass the low value with 'GE' operator and another query option with 'LE' operator for high value.
    select-options: s_cdate for sy-datum obligatory .
    DATA wa_query TYPE mdm_query.
    DATA: v_search_date1 TYPE MDM_CDT_DATE_TIME.
    data: v_datestamplow1 type string.
    data: v_datestamplow type TZNTSTMPL.
    concatenate s_cdate-low '000000' into v_datestamplow1
    v_datestamplow = v_datestamplow1.
    clear wa_query.
    wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
    wa_query-operator = 'GE'.
    wa_query-dimension_type = mdmif_search_dim_field. "Field search
    wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
    GET REFERENCE OF v_search_date1 INTO wa_query-value_low.
    APPEND wa_query TO gt_query.
    concatenate s_cdate-high '235959' into v_datestamphigh1
    v_search_date2 = v_datestamphigh1.
    clear wa_query.
    wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
    wa_query-operator = 'LE'.
    wa_query-dimension_type = mdmif_search_dim_field. "Field search
    wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
    GET REFERENCE OF v_search_date2 INTO wa_query-value_low.
    APPEND wa_query TO gt_query.
    CALL METHOD cl_api->mo_core_service->query
    EXPORTING
    iv_object_type_code = 'Vendors'
    it_query = gt_query
    IMPORTING
    et_result_set = gt_result.
    Thanks.

  • Increase the number range of characteristic

    hi while browsing the ODS i get this error message "Characteristic 0IOBJNM: Status of number range BIM9999991 is too small by 00000000000000000404"
    can any one tell me how to increase the number range of characteristic.
    i m uploading a date field in the date infoobject-keyfig which contains value "01.01.0001".is the date value is a problem area.
    any suggestion
    gaurav

    After Performing RSRV as per suggestion,and after fetching the data into query i m facing this error
    This report displays the details of consumer address details. The data is successfully browsed from data tgt browser in ODS.while creating the reporting and query it gives me these 3 errors.
    Note: Z_CRDAT is key fig of date type / ZADD_ODS is the ODS .
    1. Error in SQL Statement: SAPSQL_FIELDLIST_SUM_TYPE /BIC/Z_CRDAT
    2. System error in program SAPLRSDRC and form RSDRC / FORM DATA_GET_ODS
    Message no. BRAIN299
    Diagnosis
    This internal error is a targeted termination since the program has an incorrect status.
    Procedure
    Analyse the situation and inform SAP.
    3. System error: RSDRC / FORM DATA_GET_ODS ERROR IN RSDRO_READ_ODS_DATA ZADD_ODS 99
    Message no. DBMAN100
    Diagnosis
    A system error with the following parameters has occurred in the data
    Manager:
    Parameter 1 = &v1&
    Parameter 2 = &v2&
    Parameter 3 = &v3&
    Parameter 4 = &v4&
    does any one suggest me something
    gaurav

  • Creation of internal table dynamically based on the Date Range entered

    Hi SAPgurus,
    I have been facing one issue i.e creation of internal table dynamically based on the date range entered in the selection screen. For example the date range I am giving as 06/2006 to 08/2006, it should display the Fieldcatelog dynamically, this part i have completed but the only issue I am facing is to populate the sales data into that fields.
    Right now my program is displaying the ALV like this.
    Ex:
    <b>CSR    District   06/2006  07/2006  08/2006  totals</b>      
    Shiva      New York                             10.00
    Shiva      new york                             30.00
    Shiva      new york                             40.00
    but it should display like this
    <b>CSR    District 06/2006 07/2006 08/2006 totals</b>
    Shiva  New York  10.00   30.00 40.00
    80.00                 
    Please help me in this scenario, how to acheive like this..
    Thanks & Regards,
    Sivaram Kandula

    Hi Sivaram,
                 I also got the same requirement . i saw rich and your code whatever you have uploaded.i have created dynamic internal table but i am facing the issue to populating the data to my dynamic internal table.
    Sivaram, can you please explain your code after this.
    *<dyn_table>
    *tab_item.
      LOOP AT tab_item.
        ASSIGN COMPONENT 1 OF STRUCTURE <dyn_wa> TO <dyn_table>.
        ASSIGN COMPONENT 2 OF STRUCTURE <dyn_wa> TO <dyn_table>.
    *    <dyn_wa> = tab_item-bztxt.
    *    <dyn_wa> = tab_item-total.
    *    APPEND <dyn_wa> TO <dyn_table>.
    **    <dyn_wa> = tab_item-total.
    **    ASSIGN tab_item-bezei  TO <dyn_wa>.
    *  APPEND <dyn_table>.
      ENDLOOP.
    how you are puting the loop at tab_item. but tab_item is already commented.
    can you send me the code after that.
    i am sending some part of my code.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
       EXPORTING
         it_fieldcatalog = gt_fCAT1
       IMPORTING
         ep_table        = new_table.
    ASSIGN new_table->* TO <dyn_table>.
       create data new_line like line of <dyn_table>.
       assign new_line->* to <dyn_wa>.
    select vbeln
            fkart
            vkorg
            vtweg
            fkdat
            spart
            fksto
            from vbrk
            client specified
            into table gt_vbrk
            where mandt = sy-mandt
            and fkart in ('ZF5','ZFR')
            and vkorg = '1100'
            and vtweg = '20'
            and fkdat in s_fkdat
            and spart = '06'
            and fksto = ' '.
       if gt_vbrk[] is not initial.
      select  vbeln
              fkimg
              prsdt
              netwr
              matnr
              arktx
              werks
              mwsbp
              from vbrp
              client specified
              into table gt_vbrp
              for all entries in gt_vbrk
              where vbeln = gt_vbrk-vbeln
              and werks in s_werks
              and matnr in s_matnr.
      endif.
    select mnr ltx spras from t247
    into table it_t247
    where spras = 'E'.
    data: lv_month1 type vbrp-prsdt,
           name1(3) type c,
           s_month type string,
            s_month1 type string,
             s_month2 type string.
    *      lv_netwr1 type vbrp-netwr,
    *          lv_mwsbp1 type vbrp-mwsbp.
          loop at gt_vbrp into gs_vbrp.
            gs_final2-matnr = gs_vbrp-matnr.
            gs_final2-arktx = gs_vbrp-arktx.
            gs_final2-fkimg = gs_vbrp-fkimg.
           lv_month1 = gs_vbrp-prsdt.
            read table it_t247 into wa_t247 with key mnr = lv_month1+4(2).
            if sy-subrc eq 0.
            name1 =  wa_t247-ltx.
            endif.
             concatenate  name1
                       lv_month1(4) into s_month SEPARATED BY '_' .
             CONCATENATE S_MONTH 'QTY' INTO S_MONTH1 SEPARATED BY ''.
              CONCATENATE S_MONTH 'VALUE' INTO S_MONTH2 SEPARATED BY ''.
             gs_final2-month = s_month.
              lv_netwr1 = gs_vbrp-netwr.
            lv_mwsbp1 = gs_vbrp-mwsbp.
            gs_final2-MONTH_QTY = S_MONTH1.
            GS_FINAL2-MONTH_VAL = S_MONTH2.
            gs_final2-value = lv_netwr1 + lv_mwsbp1.
           append gs_final2 to gt_final2.
           clear: gs_final2. "lv_name2.
           endloop.
           if gt_final2[] is not initial.
             sort gt_final2 by matnr month ascending .
             loop at gt_final2 into gs_final2.
            gs_final2_01 = gs_final2.
         collect gs_final2_01 into gt_final2_01.
        endloop.
           endif.
       ENDIF..
    Regards
    Ankur

  • Can I use SYSDATE in the WHERE clause to limit the date range of a query

    Hi,
    Basicaly the subject title(Can I use SYSDATE in the WHERE clause to limit the date range of a query) is my question.
    Is this possible and if it is how can I use it. Do I need to join the table to DUAL?
    Thanks in advance.
    Stelios

    As previous poster said, no data is null value, no value. If you want something, you have nvl function to replace null value by an other more significative value in your query.<br>
    <br>
    Nicolas.

  • To check the date range

    Hi,
    I have a table that records the leave for employees. Like employee id , leave start date, leave end date and total hours. I need to find out , if the start date or end date was on weekend , or if the date range includes weekends . And there is one more table that stores public holidays. I also need to check if the leave start date or end date was on the public holiday or the range includes any public holidays.
    Thanks

    Hi,
    Assuming the time of day for all the dates involved is the same (e.g., if they are all TRUNCated DATEs, where the time is 00:00:00), that leave_start_date <= leave_end_date, and that the weekend consiists of Saturday and Sunday, you can do something like this:
    SELECT     leave_start_date
    ,     leave_end_date
    ,     CASE
             WHEN  TRUNC (leave_start_date, 'IW')     < TRUNC (leave_end_date + 2, 'IW')
             THEN  'Includes Saturday or Sunday'
             ELSE  'No weekend'
         END              AS weekend
    ,     CASE
             WHEN  EXISTS (
                              SELECT  1
                        FROM    holiday_table
                        WHERE   holiday_date BETWEEN m.leave_start_date
                                              AND       m.leave_end_date
             THEN  'Leave includes at least 1 holiday'
             ELSE  'No holidays'
         END          AS holiday
    FROM     leave_table     m
    ;This does not depend on your NLS settings.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for both tables, and also post the results you want from that data, as Andy requested.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • How to use SQL to display Datethat falls between the date range

    Hi,
    I'm figuring out how do i use SQL to select data
    that falls between the date range stated
    (for eg. 19/02/1955 to 19/02/2003)
    I've tried :
    sql="Select * From StudentRecords WHERE DOB BETWEEN #" jTextField21.getText() "#" +" And " +"#" +jTextField22.getText;
    Using BETWEEN statment , but Between Statement isn't doing what i want..
    even those out of range are displayed... any ideas how??
    Thank yOU in advance!

    oracle:
    sql = "Select * From StudentRecords WHERE DOB between TO_DATE('07/04/2003','dd/mm/yyyy') and TO_DATE('08/04/2003','dd/mm/yyyy')";

  • Get the date range

    Hi,
    There is a requirement that we need to get date range.This date range will be arrived at using the function module BKK_GET_PRIOR_WORKDAY. The factory calender id is GB. It should return the date range. Therefore, for weekends the date range will be Saturday, Sunday and Monday.  The date range will change based on holidays that exist in the holiday calendar.
    Now my question is how to calculate that there are two days between friday and monday.
    Please help.

    Hi Nishigandha,
    If i am correct you need the number of days between two dates
    ex:
    date1: 04/06/2009
    date2: 12/06/2009
    you need the number of days??
    then probably check this Fm out:
    SD_DATETIME_DIFFERENCE this is a function module which gives the difference in Days and Time for entered two dates
    P.S Additionally  Chk this out:
    /people/mustafabaris.gunes/blog/2009/03/16/calculating-number-of-working-days-in-query-level
    Hope its useful
    Thanks and Regards
    Srikanth.P
    Edited by: SRIKANTH P on Jun 4, 2009 2:33 PM

  • How to get the date range for a given fiscal period.

    Hi All,
    There is two fields (select options) on my selection screen
    1. Fiscal Year
    2. Fiscal Period.
    I just want the date range between the given year and period on selection screen.
    Thanks,
    Gaurav Mittal

    Check FM's FIRST_DAY_IN_PERIOD_GET and LAST_DAY_IN_PERIOD_GET.

  • Phone went through wash and everthing is now working except for the data.  Phone keeps searching...

    My phone went throught the wash and everything is now working except for the data.  It keeps searching...

    You can try getting a new microSIM for it. How long did you let it dry?

  • Equium A100: How can I increase the WLan range

    Hi,
    I have an Equium A100 and wondered if I can increase the wi-fi range with any form of add on or accessory ??
    I have to balance my notebook on the windowsill of my flat to pick up my nearest "hot spot".
    Any ideas ??
    Thanks.
    Gus

    Hi
    You can increase the WLan range and the performance but you will need an additional Wlan antenna.
    For example like this [external Wireless USB Adapter|http://www.wirelessnetworkproducts.com/index.asp?PageAction=VIEWPROD&ProdID=1624]
    On [this page |http://www.wirelessnetworkproducts.com/index.asp?PageAction=Custom&ID=21 ] you can find also some tips and useful explanation about stronger WLan range:
    How about a litte movie ;)
    Check the Youtube for; How to Increase Your Wi-Fi Signal. Its nice and sometimes unbelievable ;)
    http://www.youtube.com/watch?v=LY8Wi7XRXCA

  • Hi, I have a Powermac with Mavericks and an iPhone 5S. I just recently switched from Verizon with unlimited downloads to limited of 500mb per month. I just purchased a Powerlink Outdoor Plus which is supposed to increase the network range for over 1 mile

    Hi, I have a Powermac with Mavericks and a recently purchased iPhone 5S. I just  switched from Verizon with unlimited downloads to limited of 500mb per month, so I purchased a Powerlink Outdoor Plus which is supposed to increase the network range for over 1 mile. I am still getting the same distance range with my iPhone with the Verizon router. I was wondering if I need to make adjustments in the Network Settings. Does anyone know about this particular subject?
    Thanks,
    Kevin

    Okay, I'll admit I don't know much about your configuration. A standard cellular package for a cellphone means you get your signal from a tower somewhere.  It won't have anything to do with a router which will be a WiFi connection from a router.  If you're talking about that, the Powerlink appears to be a directional antenna.  You should get better transmission/reception in the direction it is pointed, but likely worse in other directions than if you were using an omnidirectional antenna.  I presume you have it all hooked up correctly so the router is actually using the Powerlink antenna.
    By the way, those distance ratings are always exaggerated.  Maybe you'd get 1 mile if there was only dry air between you and the antenna and no trees, buildings, etc., and that would probably be just barely getting a signal.  You should see improvement but don't go to a coffeeshop 1 mile away in a city and expect to see your router.  We have a directional antenna on the roof of our house that looks like a satellite dish and I barely pick up the wireless service node a block away (with apartment buildings in between).  Thre may also be a difference between using it to send a signal and receiving a signal.  You might even need two, one at each end, to get 1 mile.

  • ICal sync- alert says will delete all past entries- Yes, I have my Keep Appointments set to "forever" AND I've tried changing the date range in desktop mgr- HELP

    I just did the update for the software on the 8530.  This is a new problem since the update.  I cannot lose my old entries, so I am unable to sync at all now until Blackberry addresses this bug.
    I have read through all of the "fixes" but none of them work.
    My Keep Appointments setting has always (and I verified is still) set to "forever"
    I went into the advance settings on the MAC desktop software from Blackberry and tried changing the date range to the suggested 14 days past and 365 days future.  I even tried changing the past days parameter to "1" in hopes it would simply ignore old entries... It still wants to delete 435 past entries.
    I have to keep these.
    Help, Blackberry!  Your "update" to the software is overriding my settings and has made the sync function unusable.

    Christina,
    Thanks for the reply. I unchecked all calendars in iCal and synced and it still gave me the same notice. So then I went into the iTunes window and checked the sync only certain calendars box (instead of the all calendars box) and left all the calendars unchecked and clicked apply but when I click on sync it automatically reverts to all calendars.
    When you say you unchecked all calendars did you mean in iCal? And what did you have your iCal settings at in your iTunes sync window?
    I appreciate your help,
    Andrea

  • 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

  • I want to print a calendar by specifying the date range

    I want to be able to print from ICal in a 4 week block but not by month. Our calendar is updated regularly and I want to be able to print out the forward 4 weeks, not this month which gives me dates already past.
    And I do not want to print out 4 individual weeks.
    I know how to print Month and Week but these don't do it for me.
    How can I specify a date range?
    Cheers
    Rusty

    Hello @jgolf ,
    I would like to direct your attention to the following post by PrintApper .
    HP Apps Service Retired on several printers
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

Maybe you are looking for

  • How to Get QuickTime movie file from DVD disc Video_TS Audio_TS ?

    5/6/2009. I have a DVD with a Video_TS and an Audio_TS folders. How can I create or transfer this into a QuickTime movie file? With iMovie? With Roxio/Toast Titanium ? (what editions?) For recording DVDs, I have a LaCie accessory d2 DVD-RW for DVDs a

  • Building fault tolerance into Oracle Reports

    I have a report that I am working on in Developer 2000 that loads images from a filepath stored within my database. This works great but the report bombs out if the image does not actually exist or the filepath is wrong. While the obvious solution is

  • FRM-40039 cannot attach the libray C:\ORA902\forms90\webutil

    I have this mistake, when try to run my forms, I compile de forms is OK. This forms try user the library Webutil, is the first time I try use. I use the forms version 9.0.2.10. and webutil version 1.0.6. I use the manual Oracle Forms Developer Webuti

  • Title number when played does not match button number . . .

    How do I adjust the "Title" number when authoring so when the finished DVD is played the Title number matches the button number (and the logical sequence) on a menu? Thanks. Roy

  • Quality Inspection (Third Party)

    Hi Is Possible  capturing third party inspection ( Quality Level If We are moving material one Location to Other Location Quality Inspection need to be done suppose if the materials is moving to Exports) Regards,