Getting records based on date entered by the user

Gurus,
I have a valid to and valid from dates in ODS. The user is allowed to enter a date on the selection screen. If the user entered date lies in between Valid from and Valid to dates only these records need to be displayed in the report.
E.g.
ODS:
Valid From                   Valid to                       Functional Area
01/01/2009                  01/01/2099                             X
01/01/2010                  01/01/2011                             Y
01/01/2011                  01/01/2012                             Z
User Entered Date: 01/02/2010
Report Output:
X
Y
How do i do this? Appreciate your immedite assistance.
Thanks,
Ravi Ananthuni

Hi Ravi,
You can do this by using cust exit, but that would affect the query performance adversely.
I would suggest that you use condition in your report.
Include Valid to and valid from dates in your report layout. Make 2 replacement path type formula variables on these 2 dates.
And also the date you are entering in selection option, make it a formula variable ready for input.
Now make a CKF. In the calculation write:  (user date > valid from)AND(user date <valid to)*1.
And apply a condition to show only those rows where this CKF is 1.
The replacement path variables will work only when you have those 2 dates in the report layout. If you don't wanna do that , you can make 2 date type KFs and use them directly in calculation.
I hope this helps.
Best Wishes,
Mayank

Similar Messages

  • Get record based on date time

    HI
    Im creating a site that generates leads. When a lead is
    generated it will select a broker in the list based on certain
    criteria. The thing i need to do is to select that broker which was
    used the last.
    There is a datetime field in my database which is used with
    the createodbcdatetime function
    How can i do this
    Thanx
    Carly

    I am getting the following error
    ODBC Error Code = 07001 (Wrong number of parameters)
    [Microsoft][ODBC Microsoft Access Driver] Too few parameters.
    Expected 2.
    Hint: The cause of this error is usually that your query
    contains a reference to a field which does not exist. You should
    verify that the fields included in your query exist and that you
    have specified their names correctly.
    My code is
    SELECT b.brokerid, b.contactname
    FROM broker b
    WHERE b.dateandtimelastvisited = (SELECT
    MIN(b1.dateandtimelastvisited)
    FROM broker b
    WHERE b1.brokerid = b.brokerid)
    I have checked all the names and they are all correct

  • Is it possible to get the updated table records based on date & time.

    Is it possible to get the updated table records based on date & time in oracle.
    Thanks in advance.

    no, actually i am asking update records using 'UPDATE
    or DELETE' statement, but not insert statement.
    Is it possible?
    I think we can do using trigger on table, but problem
    is if i am having 20 tables means i have to write 20
    trigger. i don't want like this.Of course it's still possible, typically you'll find applications with a column LAST_UPDATE, probably a LAST_UPDATED_BY and so on column. You don't say what your business need is, if you just want a one of query of updates to particular records and have a recent version of Oracle, then flashback query may well help, if you want to record update timestamps you either have to modify the table, or write some code to store your updates in an audit table somewhere.
    Niall Litchfield
    http://www.orawin.info/

  • Data entered in the custom field in the SRM portal not getting saved..

    Hi Experts,
    I have added a custom field in Contract Screen of the SRM portal by adding the field as an append structutre in structure INCL_EEW_PD_HEADER_CSF_CTR.
    The custom field now appears in the header (basic data ) of the 'Process contract' screen.
    NOw It allows me to enter data in the custom field .
    The problem is ..
    When I  'CHECK' or "RELEASE'   the contract, the value entered in the custom field disappears..
    How do i capture the data entered in the custom field ...please HElp!!!
    Thanks in Advance.
    Vidya

    Hi Pradeep,
    Thanks for the reply!!
    We have upgraded our SRM system from 3.0 to 5.5
    I have added the custom field in structures INCL_EEW_PD_HEADER_CSF_CTR  and
    INCL_EEW_PD_HEADER_CSF  as the field has to appear in the basic data tab of 'Process Contract'.
    Regarding debugging:
    1. I tried to debug in BBP_DOC_CHECK_BADI by calling the FM BBP_PD_CTR_GETDETAIL. inside the badi and the parameter e_header of the function module contained the custom field but had no value...!!
    2. I tried to debug the badi BBP_CUF_BADI_2  method MODIFY_INPUT..
       The import variable iv_fieldname contains the field name amd the variable iv_value has the value entered in the custom field .........but another import structure ls_header also contains the custom field but no value....
    Method  MODIFY_INPUT has only one export parameter ev_value,,,,,,,,,,,,,,,,!!!!!!!!!!!!
    Edited by: vidya vidya on Apr 24, 2009 6:06 PM

  • Unable to email a document.  Keep getting error message:  Invalid Date Enter 2-digit month

    Unable to email a document.  Keep getting error message:  Invalid Date Enter 2-digit month
    Does not happen with all forms which emante from same USG webpage
    Any adivice?

    If i am using 11G andrtp is 11g but on rtp side if they configure SSL, is it mandatory to do it from our side also?No it not mandatory to enable SSL at your end however you have to configure identity and trsut at your end.
    Any update on my regular question(The main forum question)?You mentioned that you are posting message from 10g to 11g and as per log you are sending it to URL - https://dev-nog.server:443/b2b/transportServlet
    So few things which I see as a problem are-
    1. You should use URL https://hostname:soa_server_ssl_port/b2b/httpReceiver instead of https://dev-nog.server:443/b2b/transportServlet
    2. SOA server SSL port should be enabled (SSL should be enabled on SOA server)
    3. You should configure wallet at 10g side to contain trust cert of 11g server
    Regards,
    Anuj

  • Dates entred in my Calendar on the iPhone do not sync and then appear on iCloud on my Mac. Dates entered on the Mac sync perfectly OK on the iPhone Calendar. What is happening here?

    I enter dates and appointments on my iPhone Calendar but they do not sync with my iCal or iCloud Calendar on my Mac Pro. BUT dates entered on the Mac Pro do sync and appear on my iPhone Calendar. What am I doing wrong please? How do I resolve it?
    Everything synched fine before under Mobileme!

    Me too me too!  Please answer!

  • Library Update rqstd on Aperture 3.2; now won't open get msg "error opening data base for the library "~/Pictures/Aperture Library.aplibrary"   TIme machine won't load backup "error code -8003"

    Aperture working on OS 10.6.8 then Library Update rqstd on Aperture 3.2; said yes;
    now Aperture won't open,  get msg "error opening data base for the library "~/Pictures/Aperture Library.aplibrary"  
    TIme machine won't load backup "error code -8003"
    Tried reloading Aperture 3.2 but get same result.

    You’re running an outdated copy of Safari on your Desktop. That won’t work.
    In the Finder, select
    Go ▹ Applications
    from the menu bar, or press the key combination shift-command-A to open the Applications folder. Check that the Safari application is in that folder. If it is, use it, and delete the copy on your Desktop. Never move or copy built-in applications.
    If you've deleted Safari from the Applications folder, back up all data, then reinstall OS X. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.

  • I just discovered that data entered in the "Notes" application on my iPhone is syncing to the notes section in my yahoo mail account.  How do I prevent this from syncing?

    I just discovered that data entered in the "Notes" application on my iPhone is syncing to the notes section in my yahoo mail account.  How do I prevent this from syncing?

    Hi
    On your iPhone, go the settings app. Then select Mail, Contacts, Calendars on the left column. On the right column under Accounts select your Yahoo mail account. A popup with show up and then you have to turn the the Notes switch to the off position.

  • 1     Unable to retrieve the form values entered by the user from the xpath expression(with or without s

    1.1 Description of the Workflow
    We have designed a Workflow, which has an init form HighLevelQuestionnaire.
    1. The user attempts to start the workflow by submitting this form, which has an XML schema embedded.
    2. When user submits the data, we set workflow variables to fetch data from the init-form and all the values entered by the user are stored in the database.
    3. Based on the values, value of Risk Level is calculated to be either High or Medium, and user is routed to one of the two routes.
    4. The user QPAC is used to show the next form to the user.
    Another form has been designed called AssessRisk in which user is asked to confirm the Risk Level.
    5. At this point, we use Script QPAC to print the values in the log.
    1.2 Problem description
    1. In the Point No. 6 of the workflow, the values are not printed in the log. A blank space is printed instead.
    2. Initially, we embedded the schema in the form. But when values were not printed, we removed the schema. Even then it didnt work.
    1.2.1 User QPAC Specifications
    Properties of user QPAC used in Step 4 of the workflow
    Mappings Tab: -
    Input Variable --- No variable
    Template URL ----- Form11.xdp
    Output Variable ---- myform
    Myform is a form-variable, which has template URL as Form11.xdp
    1.2.2 Script QPAC
    1.2.2.1 With XML Schema embedded
    import com.adobe.workflow.pat.service.*;
    System.out.println("----------- High Level Questions -----------");
    System.out.println("--1- the RiskLevel is: " + patExecContext.getProcessDataStringValue("/process_data/myform/form-data/data/xdp/dataset s/data/RiskLevel/general/Risk_Level") + " @@@@@");
    Note:- Here RiskLevel is the schema root of myform and Risk_Level is the schema variable mapped with textfield on the form
    1.2.2.2 Without XML Schema embedded
    System.out.println("--1.1- the RiskLevel is: " + patExecContext.getProcessDataStringValue("/process_data/myform/form-data/data/xdp/dataset s/data/fields/Risk_Level") + " @@@@@");
    1.2.2.3 Conclusion
    In both the cases, a blank value is printed. In both the cases, we get some output which is when we use
    System.out.println("--1.1- the RiskLevel is: " + patExecContext.getProcessDataStringValue("/process_data/myform/form-data/data/xdp/dataset s/data ") + " @@@@@");
    In this case all the values are printed with space in between.
    This is the basic feature which has to be used while developing workflows.

    Hi
    You might want to try using VariableLogger, at:
    http://www.avoka.com/avoka/qpac_library.shtml
    It's a little more reliable than the script QPAC, especially if one of your xpath expressions is wrong.
    Please note that embedding the schema makes no difference in how the data from the form is stored. What makes the difference is whether your fields are bound to specify schema elements, or whether they use the "normal" binding.
    Howard

  • Test-OutlookConnectivity fails with '[Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in different Active Directory sites'.

    I have a two site DAG, and the command is running from the alternate site where the databases are not currently being hosted. The following command...
    Test-OutlookConnectivity -Protocol:TCP -TrustAnySSLCert:$true -MonitoringContext:$true
    ...errors with the following output:
    An error occurred while trying to access mailbox CurrentlyHostingMBServerName.InternalDomainName, on behalf of user InternalDomainName\extest_bb13200232474
     Additional information:
     [Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in different Active Directory sit
    es..
        + CategoryInfo          : OperationStopped: (Microsoft.Excha...onnectivityTask:TestOutlookConnectivityTask) [Test-
       OutlookConnectivity], CasHealthStorageErrorException
        + FullyQualifiedErrorId : F2F8AC0D,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
    I thought this command would work based on the 'AllowCrossSiteRpcClientAccess: True' option on the DAG.  The command works well if run a CAS server in the active DB site.

    Hi,
    Exchange 2013 users use Outlook Anywhere to connect to CAS server. You may run the RCA to test the connectivity:
    https://www.testexchangeconnectivity.com/
    Thanks,
    Simon Wu
    TechNet Community Support

  • Get current URL no matter who is the user

    Hi
    I'm creating a custom passord page using a Form based on procedure.
    How can I get current URL no matter who is the user ?
    I read previous message where it was recommneded to use WWPOB_PAGE$. Unfortunately, that table show the object compile under PORTAL30 user. We use another user to create or manage our pages.
    Any idea ?
    Thank
    Regis Levesque

    that's usually the root user - follow the instructions here to disable it. The same steps apply in Mavericks.
    OS X Mountain Lion: Enable and disable the root user

  • How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.

    How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.
    When I start a backup. Time Machine says "Oldest Backup: None; Latest Backup: None", so it seems like it should do a complete backup, but it only does a partial. 

    Hi I'd like to jump in here. Your app showed me this:
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 749.3 GB Disk used: 453.81 GB
              Destinations:
                        Plastic Wrapper [Local] (Last used)
                        Total size: 999.86 GB
                        Total number of backups: 64
                        Oldest backup: 2013-07-24 23:25:11 +0000
                        Last backup: 2013-11-17 01:40:47 +0000
                        Size of backup disk: Too small
                                  Backup size 999.86 GB < (Disk used 453.81 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
              /sbin excluded from backup!
              /usr excluded from backup!
              /System excluded from backup!
              /bin excluded from backup!
              /private excluded from backup!
              /Library excluded from backup!
              /Applications excluded from backup!
    Aside from the size of my backup drive, which I will increase at some point, I'd really like to have time machine backing up all system folders, especially Applications. How to I reset this hidden exclusions?
    Thanks,
    Darcy

  • ABAP - HR : Need macro or FM to get record based on changed on date (AEDTM)

    Hi,
    I am having the requirement to get record which changed on yesterday (for sy-datum - 1). That means if record is updated today, by using rp_provide_from_last I will get today's record. But i should get yesterdays record.
    we can get this by using select or loop or provide - endprovide. Taking performance issue in consideration, this statements are not allowed.
    So please provide me any macro or function module which we can retrive the record based on AEDTM.
    I am using PNPCE LDB and i need to extract data for PA infotypes.
    Thanks in Advance,
    Ravi Kumar

    Hi Ravi,
    There is no macro which can retrieve the record based on AEDTM. One more thing to say is statement provide ...endprovide statement can be used and there would be no performance issue if i am not wrong. Anyway try this code.
    tables: pa0001, pernr.
    infotypes : 0001.
    data : begin of itab occurs 0,
           pernr like pa0001-pernr,
           aedtm like pa0001-aedtm,
           end of itab.
    data : v_aedtm type pa0001-aedtm.
    start-of-selection.
    v_aedtm = sy-datum - 1.
    get pernr.
    provide * from p0001 between pn-begda and pn-endda.
    if p0001-aedtm = v_aedtm.
    move : p0001-pernr to itab-pernr,
           p0001-aedtm to itab-aedtm.
           append itab.
    endif.
    endprovide.
    end-of-selection.
    loop at itab.
    write :/ itab-pernr, itab-aedtm.
    endloop.
    Regards,
    Kranthi

  • Best way to create detail records based on data in the master record..

    Hi,
    I am using 11gr1p1 and ADF stack.
    I have a master detail relation between 2 records. I have EO and entity associations. I want to create a number detail records based on the data on the master record.
    For example
    I have a Stay Record which has begin and end date I need to create the DailyStay Record for each day for the range of begin and end date of StayRecord.
    Where should I do this? In EO implementation or in VO implementation.?
    Thanks

    Where should I do this? In EO implementation or in VO implementation.?If your child record should in no case be created without those default values, then EO.
    Otherwise, to increase reusability of your EO, then in the VO over the view link (i.e. other VO's would still be able to use your EO without having the child VO created with these defaults).
    This way your ViewObjects can also be used in a context where you don't want to copy from the masterFrank, If there's another UI flow that is so drastically different that it does not want things defaulted, then it probably needs a different VO altogether (on the same underlying EO though)

  • Populating parts of form based on Value entered in the first field

    Hello,
    I am trying to create a form, where user will enter the serial number of his equipment and I want him to click a verify button next to it.Upon clicking the verify button I want the Item Description field of the form to be updated ( this info is pulled from a backend MySql DB).Also, the text fields corresponding to the Equipment Site to be populated.After checking all the info, user should be able to click a submit button at the end of form and this information should be written to another table.I attached a Insert record server behaviour to form.Essentially, I want to attach a different action to both buttons on the form.In my view this is same a when we fill those registration form and based on our country, our state drop down gets populated.It seems this is doable, but I am not able to figure out how.I would really appreciate any help
    Thanks

    This is very simple if you understand PHP code. Basically, you give the two buttons different names, and use PHP conditional logic to control what happens. Call one button "verify" and the other "insert". If you use the POST method, you control the script like this:
    if (array_key_exists('verify', $_POST) {
      // create a recordset to retrieve the details ready for display
    } elseif (array_key_exists('insert', $_POST) {
      // insert the details in the the new table
    If you're not comfortable coding PHP yourself, the easy way to do it with Dreamweaver server behaviors is to use separate pages. In the first page, just create a form for the user to enter the serial number. Use the GET method to send the serial number to a separate page. In the new page, use the URL parameter containing the serial number to create a recordset to populate the insert form. Then apply an Insert Record server behavior using the POST method to insert the details into a new table.

Maybe you are looking for

  • Query Execution Plans Change between 2 servers even when we have same data.

    Hi Friends, Currently One of the Query which normally takes 15 seconds but it started taking 160 seconds.So same query was executed on the secondary site and the query returned in 15 seconds which is expected.Raised a call with ORacle and they are st

  • Catch exception and continue the execution

    Hi Team, I require the action(such as insert/Update/Delete) for each row of table/table variable and also Error/Exception details as new column if occured any. Please refer below sample input and output. i was using merge, when exception occurs it fa

  • Can threads be implemented as processes?

    Hi all, a project I'm working on has recently had a JVM added to it. The rest of the program is a regular single-threaded C written console application. The JVM has been added for using GUI (swing) components. The program runs on both Linux and Win32

  • Power Saving option After Upgrading from Anna to B...

    can any one tell me where i can find Power Saving option on Nokia E6 after upgrade from Anna to Belle , coz without power saving enable its giving me one whole day. waiting for any help 

  • Collab "Checked In By"

    Using PRC.Collaboration.Document namespace and IDocument interface with the 5.1 EDK & collab 4.0.2, is there a way to retrieve the ID of the user who last checked in a document (Checked In By)? I have retrieved the owner, checked in date, checked out