How to Select in a query considering key date of time-dependent characteris

Hi, Everybody
I have a Infoobject called CONTROL. It can be tested during the year once, twice, three times,six times  or can be not Tested.
The Characteristic that contain the number of  test that the Control will be tested is time dependent.
For example, one control can have the charcteristic to test twice in a year. Then 31/10/2007 it can turn "not test".
I can have these records:
CONTROL   VALID INIT       VALID END     TEST  
   XYZ         01/01/2007       31/01/2007       TWICE
   XYZ         01/02/2007       28/02/2007       TWICE
   XYZ         01/03/2007       31/03/2007       TWICE
   XYZ         01/04/2007       31/10/2007       TWICE
   XYZ         01/11/2007       31/12/9999       NO TEST
I have a query that I should select the number of controls different of  "NO TEST" During the time selected.
For example, if I select Interval Time = 01/01/2007 to 31/10/2007, This record should be Counted, because it was to be tested during this period.
If I have selected Interval time = 01/11/2007 to 31/12/2007, it should not be selected because in this period, this control doesn´t able to be tested.
If I put filter restricting NO TEST, the query should check the time of validity, but when I do that, BW doesn´t accept that because I can´t restrict by Validate Date.
Anybody already had a problem like that?
I´d like suggestions to solve that or comments that could explain that.
Thanks a lot,
Elisabeth
Edited by: Elisabeth Umebara on Feb 2, 2008 12:21 AM

Hi, everybody.
I already solved this problem. Thanks a lot.
For this I selected the controls in a exit variable that should be selected in from table time-dependent  from infoobject. This solution ran just for BWD and BWQ, because there was a lot of data in BWP.
Then I made a first query that has selected the controls. After that, in the original query I defined the substitution path relating with the first query.
Thanks again,
Elisabeth

Similar Messages

  • Select key date of time-dependent hierarchy before select a hierarchy node

    Hello experts!
    I have a Web Application which has a selection on 0ORGUNIT (organizational unit). The selection is on hierarchy nodes and the hierarchy is time-dependent.
    Because of the time-dependency I have to give a key date for the hierarchy. But I want to select the key date at runtime/execution of the query and additionally I want to select the hierarchy node and other selection criterias.
    Maybe there is a solution to get all this in one pop-up or maybe in two or another solution how I can implement this requirement.
    Thanks for help!
    Peter

    Hey!
    You don't have to use the same presentation-hierarchy like  the selection-hierarchy is which you use for the variable. While presentation-hierarchy always has a key-date, the selection-hierarchy has none. So you see all values for selection but just this which are valid for the presentation-hierarchy are selected. And there is a warning which you can supress over RSRT.
    This solution works for our problem, maybe not for yours, don't know.
    Best regards,
    Peter

  • Bex query-KEY date for time dependent objects

    Hi
    I have one infoobject called 0customer that has one time dependent attribute .called status. I would know how the system works in the following senario for the a given key date(which in bex properties).
    question 1)
    customer todate          fromdate    status
    1            20071231     20070101     Y
    1            20081231     20080101      N
    1            20091231     20081101      X
    can the data in the infoobject be overlapped? is the 3 rd record is  valid in the above example - as months(11&12of2008)  overlapping with second record? ? pls advise
    question 2)
    customer todate          fromdate    status
    1            20071231     20070101     Y
    1            20081231     20080101      N
    1            20091231     20090101      X
    If the keydate is 20080201 which record will it return?would it return the record that has status 'N'?
    what does the keydate is compared against? is it with from date or todate or between fromdate and todate? does the query return only one customer record for a given customer when it runs in the query?
    Please advise.
    Thanks
    Vennela

    1) Normally you cannot activate the data with this constellation. If you have inconsistent master data you can repair with transaction RSRV.
    2) The system returns N for key data 20080201.
    Best regards
    Dirk
    Edited by: Dirk Herzog on Nov 19, 2008 1:16 PM

  • Key Date?  Time-Dependent Master Data

    I need a report on Employee Hires in a given interval (between 1/1/2008 - 12/31/2008). Therefore, I pass the time interval to the query.  However, I need master data as of the Hire Date of the Employee.  What type of variable should I pass in the query properties (as key date) so that it reads employee hire date during query runtime?
    Just FYI...Hire Date is a characteristic and displays on the report.  Different employees could be hired on different days in a given time interval.
    Best Regards,
    -Sonny
    Edited by: Sonny Mohnalkar on Jun 9, 2009 7:23 AM
    Edited by: Sonny Mohnalkar on Jun 9, 2009 7:24 AM

    Hi,
         For query key date you can only specify a single date( fixed value or single entry variable).
    So, your requirement cannot be acheived using key-date functionality as there might be different hire dates for different employees. The only way to acheive this is to identify the master data for each employee based on his/her hire date at query runtime using the concept of virtual characteristics. This is a bit complex and will affect the performance of the query. There is a SAP How-to-Document available which can help you. Also you can refer to the following link for some more information on implementation of virtual characteristics.
    Link: [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e051fda8-71a9-2a10-ac9e-8d17414a8c8c]
    On the other hand, your requirement can be easily realized in the case where you run the query only for a single date. In this case, you need to use a single entry variable instead of Interval variable. And use the same variable for Key date.
    Hope this helps you.
    Thanks ,
    Nithin reddy.

  • How do I stop my iPhone highlighting events dates any times?

    How do I stop my iPhone highlighting events, dates and times in web pages, notes and just about anything I do with text. I'm sure I have seen the setting somewhere. But can't find it now despite looking hard for it. I don 't see it in the iPhone manual either. Even worse than the existence of this intrusive highlighting is it's light yellow link colour that makes the text difficult to read.

    Settings> Mail, Contacts, Calendars> change the Sync setting in the Calendars section to All Events.

  • How to run recordset SQL query in FORM DATA event

    How can I run recordset SQL query in FORM DATA event upon clicking on Add button in the document?

    Hi Slamet,
    When you receive a form data event you have a class containing inside it a ObjectKeys xml info regarding the object added/modified,...
    With the objects keys you can then use the DI API method called GetByKeys to obtain the DI Object.
    There is some information about it in the SDK Help file, mainly in the "FormDataEvent" class definition:
    <i>The event provides the unique ID (BusinessObjectInfo.ObjectKey) of the modified business object. You can use the value of this property as an input parameter in the DI API DataBrowser.GetByKeys method to get a DI object.</i>
    Pay attention you don't have this information in the Before=True event of the Add as it is not yet in the database.
    Hope it helps
    Trinidad.

  • How to write a sql query to retrieve data entered in the past 2 weeks

    Hi,
    I have file names and last accessed date(java.sql.Date format) stored in my database table, I would like to know how I can write a query to get the name of files accessed in the past 2 weeks,I use open sql server at the back end.
    Thanks in advance.

    This has essentially nothing to do with JDBC. JDBC is just an API to execute the SQL language using Java and thus interact with the databases.
    Your problem is related to the SQL language, you don't know how to write the SQL language. I suggest you to go through a SQL tutorial (there is one at w3schools.com) and to read the SQL documentation which come along with the database in question. A decent database manfacturer has a website and probably also a discussion forum / mailinglist as well.
    I'll give you a hint: you can just use equality operators in SQL like everywhere. For example: "WHERE date < somedate".

  • How to make Select List Read only (Keep key Data)

    I'd like to make a select list read only when the screen is in maintenance mode because the select list value is part of the key.
    However, when I make the select list read only, the update fails because it appears making it disable lose's it's value.
    How can I make a select list read only and keep it's value for update.

    In HTML Header I have
    <script type="text/javascript">
    function Disable_List(pthis,hideitem)
    if ($x(hideitem).value == 'Y')
    {   $x(pthis).disabled = "disabled";
    </script>
    <script type="text/javascript">
    function Load_Start()
    Disable_Item('P5_SUBCODE','P5_XW_HAS_VALUE');
    Disable_List('P5_LTY','P5_XW_HAS_VALUE');
    </script>
    When I click apply changes, my Validation check that doesn't allow nulls in the "P5_LTY" fires saying the field can't be null. The select list is grayed out and I see the value, but the validation check thinks it's null.
    Edited by: spuchc on Jun 15, 2010 8:03 AM

  • How to select tree node with enter key instead of mouse click

    hia i have tree in forms 10g i can get node value when i click mouse on node but i want same with enter key which is not working any idea.
    thanx

    I'm afraid you have hit Bug 4509399
    If you have metalink access you should check Note:331369.1
    This bug has been around for the 10g R2 10.1.2.0.2 base release, which was propagated from Installing Patch 9.0.4.2 or from 10g R1 base release. You need to apply the latest patch or a one-off fix Patch 4509399
    Tony

  • How to select multiple substring in JTextarea at the same time?

    I want to select multiple substring in a jtextarea at the same time by select(start,end) method, turns out only the last substring is highlighted, how to implement my goal?

    jamesybaby wrote:
    What you got so far? A SCCEE would be nice?my aim is to search key words in jtextarea and highlight all matched result.
    package frame;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    public class FrmSelect extends JFrame {
        public FrmSelect() throws HeadlessException {
            setSize(800, 600);
            final JTextField tfKey = new JTextField();
            tfKey.setPreferredSize(new Dimension(200, 20));
            final JTextArea taContent = new JTextArea();
            JScrollPane jsp = new JScrollPane(taContent);
            tfKey.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    String key = tfKey.getText();
                    String content = taContent.getText();
                    String[] splited = content.split(key);
                    Pattern ptn = Pattern.compile(key, Pattern.CASE_INSENSITIVE + Pattern.MULTILINE);
                    Matcher matcher = ptn.matcher(content);
                    taContent.requestFocusInWindow();
                    while (matcher.find()) {
                        int start = matcher.start();
                        int end = matcher.end();
                        taContent.select(start, end);
            add(tfKey,BorderLayout.SOUTH);
            add(jsp,BorderLayout.CENTER);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setVisible(true);
        public static void main(String[] args) {
             new FrmSelect();
    }please copy below into the jtextarea and type key 'prop' in the jtextfield, press return.
    prop1adsfasfd
    prop2adsfasdfadsf
    prop3asdfasdfasdf

  • URGENT: How to selectively migrate composite instances and task data from one env to another

    Gurus,
    We've come across a situation whereby we need to migrate instance data (including Human Task related) of some specific composites from one environment to another.
    (Environment is equivalent here to a different domain installation on different physical server.)
    Is this possible in some standard way like using Oracle import-export utility or script?
    If not, how can this be achieved?
    Thanks in advance for any help you can provide on this.
    With regards-
    Ashish

    Hi,
    If your SharePoint environment supports InfoPath Forms, then you can customize the form and add rules to make the list items as read only when user A submits the form.
    you can then write a form load event to check the logged in user using username() function. This logic can be implemented in variety of ways, like setting a flag when User A submits the form, or storing user A username in a form variable etc., else comparing
    User A and User B values within form Load event.
    Another way of doing this is using Views or grouping all of the User A fields within a section etc.,
    The above would take care of Form logic, and for the workflow, you can use SharePoint designer to create a custom workflow, where it will run on onItemCreate and onItemChange events.
    The logic for workflow would be if the form Submitted for the first time, the workflow will start and send an email to User B, and when User B submits the Data then onItemChange change event will start the workflow to send an email to approver to approve
    the data.
    here are some links for your reference -
    http://office.microsoft.com/en-us/infopath-help/add-formulas-and-functions-in-infopath-2010-HA101821255.aspx
    http://office.microsoft.com/en-us/videos/video-create-an-approval-workflow-in-sharepoint-designer-2010-VA101897477.aspx
    http://blogs.technet.com/b/meacoex/archive/2010/11/01/get-manager-approval-in-sharepoint-designer-2010-step-by-step.aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How to select a single entry with latest date just LE system date?

    Hi all,
    Suppose there are 5 entries with first day (ertag) in table prow:
    01.05.2005
    01.06.2005
    01.07.2005
    01.08.2005
    01.09.2005
    Suppose system date (sy-datum) is 25.07.2005, I want a SQL that should select the third entry (01.07.2005).
    FYI:
    This SQL only selects the first entry:
    Select single * from PROW into corresponding fields of ITAB where ERTAG LE SY-DATUM.
    Could anyone help ? Thx.

    another option.
    data: first_day type sy-datum ,
          periv type T009B-PERIV ,
          poper type T009B-Poper ,
          year type T009B-BDATJ .
    data: iprow type standard table of prow .
    move: 'K4' to periv ,
          sy-datum+4(2) to poper ,
          sy-datum+0(4) to year .
    CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
      EXPORTING
        i_gjahr              = year
    *    I_MONMIT             = 00
        i_periv              = periv
        i_poper              = poper
    IMPORTING
       E_DATE               = first_day
    EXCEPTIONS
       INPUT_FALSE          = 1
       T009_NOTFOUND        = 2
       T009B_NOTFOUND       = 3
       OTHERS               = 4
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    select * from prow into table iprow where ertag between first_day and sy-datum .
    Regards
    Raja

  • How to select external drive that is not showing in Time Machine

    I have a WD My Cloud external drive. It shows in finder. However not in Tim Machine. How can I fix this so that it can be used for backups? Thanks.

    A Networked drive will never show in Disk Utility. Only locally attached drives show in DU.
    To my knowledge to use a Networked drive with Time Machine it has to be either a Apple Time Capsule or a external drive connected to an Apple Airport extreme router and formatted in the Mac OS X format or there are some other manufacturers that claim to have NAS boxes that are compatible with Time Machine.
    Any other drive connected to some other router will never be available as a TM backup drive. First most routers can't format and or read and write to a drive formatted in the Mac OS X format (Some can but I don't know which router they are). Even if it the router can read and write to a drive formatted in the Mac format Time Machine more than likely won't see it as a valid backup drive.
    You'll be better off conneting that drive directly to your Mac to use it as a TM backup drive.
    It will be much faster connected directly to the computer then doing backups to it over your network.

  • Can anyone please Tell me how to get a complete browser history including Date and TIME?

    I really need help finding out what time a website was visited that is in the browsers history. How can I get a complete browser history or set the iPhone to keep longer than a week. Is there a way to look back further than the dates shown? IOS there a app you can download that will keep track of safaris browser history and what time a site was accessed ? Thank you for your help:)

    Sorry, this just isn't possible.

  • How do I find the iCal backed up data in Time Machine?

    I've recently erased a calendar group that wasn't supposed to be erased. I tried using Time Machine to restore the data lost but can't seem to find it's location. Does anyone know where I can find iCal data in the hard drive so I can use Time Machine to restore the calendar group?
    Message was edited by: izzyQ

    The Time Capsule automatically scans to find the best available channel to use when it is powered up.
    You can see the channel that the Time Capsule is using by holding down the option key on your Mac while you click on the WiFi icon at the top of the screen.
    On the example below, the Time Capsule is using Channel 149 at the present time.

Maybe you are looking for

  • Import settings not saved

    I'm running iTunes 4.9.0.17 loaded from the disc that came with my Nano and have used all its functionality with no trouble until now. (I reverted to this previous version due to import problems with 6.0). I can change the import settings, but the ch

  • PROBLEM-ONE OR MORE FRAMES WERE DROPPED DURING PLAYBACK... HELP...

    Hallo... I am very new in the Final Cut Express... I import .MOV documents in my computer and then to a new Project in the FCE... I move to the viewer the pieces I want to create, then when I try to see them it reports me the PROBLEM " ONE OR MORE FR

  • Can I transfer a library between profiles

    I imported, tagged, labelled and sorted the photos up the wazooo .... but I want to consolidate user accounts now. How do I export the library in one account (with all metadata) so that I can put it into the other account's existing iPhoto library?

  • Why I can't open my ipad2?  Can't slide open !

    Why I can't open my ipad2?  Can't slide open !

  • HT1331 cant see disks in the airport extreme setup

    cant see disks in the airport extreme "partions" to set up, tried different disks, cables, restart, etc, bottom line the extreme does not see any attached external hard drives, any ideas? Cheers Michael