Key date issue

hello,
     I am having a scenario where I am having two Info objects 0VALIDFROM and 0VALIDTO date info objetcs. requirement is that if i give a key date. It should check both the dates in record and if it lies in between of 0VALIDFROM and 0VALIDTO date then it is displayed in Bex output.
Can you suggest how to achieve that.

Hello Vineet,
             I am pasting the code for your refernce. But i am getting while executing I am getting the  error.
ATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: l_t_var_range LIKE RRRANGEEXIT.
Case I_VNAM .
WHEN 'ZVLFRSLR'. " Valid From
IF I_STEP = 2.
READ TABLE i_t_var_range INTO l_t_var_range
WITH KEY
vnam = 'ZEDT1SIR'. " Key date Var
IF sy-subrc = 0.
l_s_range-sign = 'I'.
l_s_range-opt = 'LE'.
SHIFT l_t_var_range-low LEFT DELETING LEADING space.
l_s_range-low = l_t_var_range-low. " user entered value
" for End Date
APPEND l_s_range TO e_t_range.
ENDIF.
ENDif.
Valid To is set to >= Key Date formula variable ZEDT1SIR
WHEN 'ZVLTOSLR'. " Valid To
IF I_STEP = 2.
READ TABLE i_t_var_range INTO l_t_var_range
WITH KEY
vnam = 'ZEDT1SIR'. " Key Date Var
IF sy-subrc = 0.
l_s_range-sign = 'I'.
l_s_range-opt = 'GE'.
SHIFT l_t_var_range-low LEFT DELETING LEADING space.
l_s_range-low = l_t_var_range-low. " user entered value
" for End Date
APPEND l_s_range TO e_t_range.
ENDIF.
ENDIF.
Can you please suggest what is the issue. It is saying that no value can be derieved for variable ZVLFRSLR. Then it is disconnecting from BW. I have created key date varaiable with input from user entry with the same technical name.

Similar Messages

  • Data Issue

    Hi All ..
               We are facing one data issue DSO.  One record is worngly loaded with some project iD ( Ex record is having ID GE1234 insted of having LE4423) remaining details are same . we are loading the data furtherly to master data table from the DSO. if i try  for reporting for project id LE4423 ,information not avilable because it is heaving wrong ID,it is key also.But in the Source system (CFG) side Data is correct with ID LE4423.
             In update rule we are following one to one mapping for all infoobjects.My requirement is i need to have in my DSo LE4423 . I need to overwrite the record id GE1234 with LE4423 without affecting other fields in the record.
            Shall i load till PSA with the ID LE4423 ..then if load this single record to DSO will overwrite the GE1234 by choosing other field as key field.  but we are following one to one mapping in update rule.
    Please help me on this. i need to hev a correct id for record.
    Thanks ,
    Prem.

    You can use selective deletion to delete the record with Project ID = GE1234
    Load the data till PSA
    Load the data to DSO using selection Project ID = LE4423 in DTP from PSA.
    check in further data targets also for mismatch of data
    Hope it helps,
    Naveen Vytla
    Edited by: Naveen Vytla on Nov 18, 2008 10:49 AM

  • Crystal report -Subreports and BW key date

    Hope your in good spirits,  we had to install the SP 7 on bw for our webi reports to work, i have an issues here with Crystal reports
    I need to develope a crystal report with two BEx Queries as Data Sources, I suggested to use Subreports, where the promts of the reports can be linked, but i have a Keydates in these two Bex Queries which are poping up as two parameters when i run the report is there any way that you can link those to key dates,where the user can enter for one key date Parameter and the value is passed to the Sub report Key date  parameter, please help me

    >
    raj_4234 wrote:
    > Hope your in good spirits,  we had to install the SP 7 on bw for our webi reports to work, i have an issues here with Crystal reports
    >
    > I need to develope a crystal report with two BEx Queries as Data Sources, I suggested to use Subreports, where the promts of the reports can be linked, but i have a Keydates in these two Bex Queries which are poping up as two parameters when i run the report is there any way that you can link those to key dates,where the user can enter for one key date Parameter and the value is passed to the Sub report Key date  parameter, please help me
    did you manage get the solution, i also want to know how to share date parameter from subreport to main report?

  • Org unit Hierarchy structure between two  Key date s

    Hello Friends,
    We have an issue with displaying HR Org unit hierarchy structure between two calendar months.
    The BI Report has a selection parameter to select Org unit hierarchy , Calendar month From and Calendar month To
    The BI Report is to display the no.of sick absence days for employees in a chosen Org unit hier.
    Employee A had a sick absence of 5 days in the month 04.2011 in the Org unit X . The same employee had a sick absence of 4 days in 05.2011.The Org unit X then delimit in 05.2011 , the Org unit X is no longer in Org structure from 05.2011.
    When we run the report for 04.2011 to 04.2011 , the employee A is showing absence under Correct Org unit ie X with correct Org structure .
    When we run the Report for 05.2011 to 05.2011 , the employee A is showing absence under hierarchy Org unit Not assigned which is OK .
    But the issue is when we run the Report from 04.2011 to 05.2011 , The employee A absence days 9 (5 +4 ) showing under Not assigned Org unit hierarchy structure which is the latest Org unit .
    When I deactivate the Org unit hierarchy and choose tech name of Org unit , It is showing correct Org unit key
    But The user would like to see 5 days under org unit X and 4 days under Not assigned with Correct Org unit hier structure when we run the Report from 04.2011 to 05..2011 .
    We have a user Exit variable for the Key date in the Bex Report which seems to be taking only one date at any time .
    Is there any way to get the correct figures under Org unit hier structure where employee had absence in when we put range of calendar months on a selection screen ?
    Any advice appreciated.
    Thanks.

    Hi
    Yes, we can display the same by using time dependent hierachy's i.e. your org is converted to time dependent so that respective employee shows with respective of time.
    Regards
    Jagadeesh.M

  • Org unit Hierarchy structure  at Key date

    Hello Friends,
    We have an issue with  displaying HR Org unit hierarchy structure  between two calendar months.
    The BI Report has a selection parameter to select Org unit hierarchy , Calendar month From  and Calendar month To
    The BI Report is  to display the no.of sick absence days for employees in a chosen Org unit hier.
    Employee  A had a sick absence of 5 days  in  the month 04.2011  in the Org unit X .  The same employee had a sick absence of 4 days in 05.2011.The Org unit X then delimit in 05.2011 , the Org unit X is no longer in Org structure from 05.2011.
    When we run the report for 04.2011  to 04.2011 , the employee A is showing  absence   under Correct Org unit ie X with correct Org structure .
    When  we run the Report for 05.2011 to 05.2011 , the employee A is showing absence under  hierarchy Org unit Not assigned which is OK .
    But the issue is when we run the Report from 04.2011 to 05.2011 , The employee A absence days 9 (5 +4 ) showing under Not assigned Org unit hierarchy structure which is  the latest Org unit .
    When I deactivate the Org unit hierarchy  and choose tech name of Org unit , It is showing correct Org unit key
    But The user would like to see 5 days under org unit X  and 4 days under Not assigned with  Correct Org unit hier structure  when we run the Report from 04.2011 to 05..2011  .
    We have a user Exit variable  for  the Key date  in the Bex Report  which  seems to be taking only one date at any time .
    Is  there any way to get the correct figures under Org unit hier structure where  employee had absence in when we put range of calendar months on a selection screen ?
    Any advice appreciated.
    Thanks.

    Hi,
    You can try adding two more attributes to Org Unit as "Calender month from" and "Calender month to".
    In these attributes maintain the validity period for the corresponding master data.
    For example, in your case you can maintain the master data as:
    Employee | Org Unit | Calender month from |Calender month to | sick absence
    A | X | 4.2011| 4.2011 | 5 days
    A |    | 5.2011 | 05.2011 | 4 days
    And in report use variables for Calender month from" and "Calender month to".
    Hence, when user executes the report with selection as:
    Calender month from" = 04.2011
    "Calender month to"    =  05.2011
    The data will be read from master data based on these selections along with key date and report will show output as expected.
    Employee | Org Unit | Calender month from |Calender month to | sick absence
    A | X | 4.2011| 4.2011 | 5 days
    A |    | 5.2011 | 05.2011 | 4 days
    Hope this works for you.
    Regards,
    Geetanjali

  • Display key date of hierarchy in the query

    Hello,
    we have a query that uses a hierarchy with the time depending structure. The key date of this hierarchy has been restricted with a variable and can be entered by user in the query selection screen.
    Is there any way to display this key date variable in the query result ? Otherwise the users do not see the key date they had selected before.
    Thanks in advance !
    Regards
    Igor

    Hi Chandamita,
    Thank you so much for your quick response. I'm not sure if it will fix the issue because it has the same properties for other object which we do not encounter the issue.
    Thank you!

  • Unable to create BOMMAT IDOCs due to validity date issue

    Hello everyone,   (Posted in SAP-PP forum as well)
    I am having a unique issue with our Bills of Materials. After they are created and set to active, they have validity dates that go from 2001 to 9999. When I go to BD30 to distribute the BOM to the external systems I am getting the following error message:
    No bill of material exists on 08/25/2009 for 2557B27H02/FBLR/1/01
    Message no. BOM014
    Diagnosis
    You want to distribute BOM 2557B27H02/FBLR/1/01 via ALE. However, the BOM is invalid on 08/25/2009.
    System Response
    The system does not distribute the BOM.
    Procedure
    Check the BOM's validity.
    If you want to distribute all BOMs with the change status for another key date, enter another valid-from date on the initial screen.
    If you only want to distribute a certain BOM with the change status for another key date, enter another valid-from date or a change number on the selection screen.
    We get this for any BOM in this system.
    This is our QA environment and do not have this problem in our Development system. BD30 finds the BOM we specified but claims it is invalid on that date.
    We are trying to figure out if there is another status or approval step that I am missing here.
    SAP v4.7 level 19
    Thanks and points awarded for helpful answers!
    John

    Hi John
    Check you Material & Bill of Material in Table:  MAST & STKO whether they are valid or not .. Check valid from date in Bill of material
    Ramesh

  • Query key Date Variable not working

    Hi Folks -
         I am coming across an issue with which some of you might be able to help me. I have a time dependent master data object which I've marked as a datatarget and have created a report on it. I wanted to give the user an option of specifying the key date and hence have created a variable in the query properties for the key date. This variable is of the type SINGLE VALUE, MANDATORY, USER ENTRY and CAN BE CHANGED DURING QUERY NAVIGATION.
         Now my issue is that even though I enter a specific key date, the query is not pulling the records according to the key date. But instead if I use the option of specifying a particular date (instead of a variable in query properties), the query is running fine!!! Can someone please let me know why this is happening? Why is the query working fine when I mention a single constant value but not when I use a variable? Thanks for your help in advance.

    hi
    This clearly shows your variable is not working fine
    So in RSRT transaction debug using your variable
    See in every step whether the variable is working properly
    Assign points if useful
    Thanks
    N Ganesh

  • SAP BW Hiearchy Key Date Variables - Web Intelligence

    Hi,
    I have couple of issues / scenarios which are not working as expected. First, as I understand that hiearchy variables are supported by WebI.
    Scenario 1
    I have created a hiearchy key date variable within the report and made it optional. I run the report an no key date appears. It should appear. If I then make the hiearchy key date to mandatory I get a database error. Looks like there is a problem with hierarchy key date variables?
    Scenario 2.
    I change the hierarchy key date so it uses the key date of the query (so no longer a variable).
    As an example,I have employee "Employee X" assigned to "team A." This team moves from the Desktop team to the IT team on the 01.04.2011.
    IT
       A - 01.04.2011 -> 31.12.9999
    Desktop
       A - 01.01.2011 -> 31.03.2011
    I have a hiearchy variable so I can select a team as requied (using the object 0ORGUNIT) If I run the report using the key date 01.04.2011 the WebI report displays the current hierarchy nodes i.e.
    IT
       A
    and the data shows correctly,
    If I now re-run the report using the key date 01.03.2011 in the selection screen in the WebI report the following is still shown
    IT
       A
    If I select team A - no data is displayed. So it looks like via the use of the "Use query key date" for the hierarchy key date works but not in selection screen which is a problem.
    Is this a bug or am I doing something wrong?
    Thanks

    Hi,
    I have now got scenario 2 working - well I didnt do anything apart from run it InfoView and it is fine. But for some reason does not work in WebI Rich client - I will have a look into this furrher but am happy that it works in infoview. Sceanrio 1 is no working still I have run it in InfoView and get the error "A database error occured. The database error text is: Failed to execute MDX query. Reason: Specify a value for variable Hierarchy Key Date. (WIS 10901)" This hiearchy key date is th variable which I have created and assigend to the hiearchy so that a "hierarchy date" can be selected.
    +Scenario 1+
    +I have created a hiearchy key date variable within the report and made it optional. I run the report an no key date appears. It should appear. If I then make the hiearchy key date to mandatory I get a database error. Looks like there is a problem with hierarchy key date variables?+
    Any help is appreciated.
    Thanks.
    Edited by: Leo on Apr 25, 2011 4:20 PM

  • F.31 Open at key date

    Hi Guru's
    I have an issue with F.31
    The following are the selection field
    Credit Account
    Credit control Area
    checkbox checked for Overview list with Navigation
    Check box checked for Balance
    Check box checked for Special GL Balance
    Checked Dunning Area
    Selected Days in arrears X
    selected Open items
    Selected Intervals as Z02n (customized)
    Entered Open at Key date
    My issue is when I generated report it is defaulting to the current date rather the date mentioned in Open at Key date
    Can you please let me know why?

    Hi,
    What you mentioned option do it  (Before Executing ) Select the Save button.
    Give the Variant Name & Meaning Text.
    If any settings look the Object for Selection fields.
    Save the Varient.
    When you are executing the report Select the Get Varient Button beside the execute button.
    Select the Varient and Execute.
    OR
    Select the Lay out button and configure as you Require.
    OR
    Develop the New Report with ABAP'rs.
    Regards,
    Kishore K

  • Stock Report on Key date.

    Hi,
    I want to have a report which gives stock available on key dates. Is there any standard report available in sap.
    Thanks in advance
    VRH

    HI,
    Using T-code MB5B - Stock on Posting Date, the following input data to be given as follows.
    Company Code : ______
    Plant : _______
    Storage Location : ______ if required to be selected
    Selection Date : _________ to ___________ (Your key date from 01.10.2010 to 31.10.2010-report required period to be mentioned)
    Stock Type - selected Valuated Stock
    List of Scope click category and following options to be tick marked
    With Opening Stock Without Closing Stock
    With Opening Stock With Closing Stock, Changed
    With Opening Stock With Closing Stock, Unchanged
    Settings - Totals Only - Non Hierarchical Representation Layout /ZMB5B tick marked
    The above input data given & options are tick marked, Executed the report shown opening, Receipt,Issues,Closing stock, UOM, Opening value, Receipt Value, Issue Value, Closing Value, Currency in columnar (like Excel tabular format).
    Hope, it is useful for you.
    Regards,
    K.Rajendran

  • Eliminating/workarounding key date concept in Student File

    Hi,
    Short question: can I safely use a default key date of January 1, 1900 everywhere in Student File/Student Master data? with all organizational structure objects also created using this date?
    The rationale behind this decision is to reduce confusion for the end user, which I noticed is more than likely.
    A classical example is the possibility to version birth dates in Student Master Data even though logically this should be a single instance of data only. Ever. However, if we set the key date as "today" or the beginning of an academic period, any corrections would be seen as versions. This confuses the end user, which version is the current one and which one is merely a data correction (and shouldn't be visible at all).
    However, won't setting the key date to 1900 have unexpected complications somewhere else? One complication I already noticed was with creating faculty as HR personnel (they serve as advisors for students and are later assigned in Student File). Faculty birth dates are not allowed to be entered in this case because (I assume) the system thinks faculty can't be born later than the object created (although student birth dates are OK even though the corresponding objects were also created at January 1, 1900)
    Overall, is it possible to eliminate the key date concept from the Student File/Master Data completely? As it feels to do more harm than good.
    Janek

    Janek,
    Of course becasue there is validity dating of the data values, it is necessary to use a key date when you display/change the data.
    For the issue of fields like birthdate, you are right that any 'change' is pretty much a data correction.  It is not possible for a student to really have different brithdates that were valid for different periods!
    It really is something that users must be trained to do.  If they are doing a data correction, they should change the data from the first data 'period', rather than just as of the current date.
    Michael

  • How to make key date of query as transcation date in cube

    I am facing an issues in displaying the transaction data with time dependent master data.
    I want to set the key date of the query to go against the transaction date and diplay the respective master data.
    I read in other posts,
    that i cant use the user exit variable, because the exit is executed only once before the query run.
    The fllowing is the report i want to achive,
    customer|customer_grp-|date-|--|sale
    100-----|-sa|jan 1|--- 15$
    100-----|-ic|oct 1|--- 32$
    in the above scenario, customer_grp for cusotmer 100 is sa from jan - mar and
    customer_grp for cusotmer 100 is ic from apr - dec
    I have customer_grp as time dependent attribute of customer. when i execute the report with key date as ,nov 1st
    it displays as,
    customer|customer_grp-|date-|--|sale
    100-----|-ic|jan 1|--- 15$
    100-----|-ic|oct 1|--- 32$
    if key date is jan 1st it displays as,
    customer|customer_grp----|date-|--|sale
    100--|-sa|jan 1|--- 15$
    100--|-sa|oct 1|--- 32$
    let me know whether it is possible to achive this type of report
    -thanks in advance
    - points will be awarded for  inputs

    Hello,
    I have the same kind of requirement.
    Is it possible to assign a Date field from the cube to Keydate of the query so that the time-dep attribute value is properly displayed based on InvoiceDate of each record, not based on today(query keydate by default)?
    Otherway i can think of is to add a Char/KF to cube and insert the value using a query on Masterdata in update rules. How far this approach is recommended?
    Thanks in advance,
    vamsi.

  • Regarding the KEY DATE OF PRODUCTION VERSION

    Dear Guru's
    Client facing a issue like :
    They have master recipe which was created on say example: 01.01.2001 and they had changed "activity type" activity time" later on date for particular Production version P001.  & obviously Production version Valid from date is on  01.01.2001.
    But if he check the key date of particular version(P001), it shows the same date as 01.01.2001 & it will show only the recipe which was created on 01.01.2001.
    It is not showing any other changes which we did after 01.01.2001
    While transferring to APO, system is picking the Production version (P001) based on the key date 01.01.2001 & they are not getting the changes in that recipe while creating the order
    How can we resolve this issue Plz help.
    Thanks & Regards,
    Arvind S

    Thanks Krishnan,
    But when I createa  new formular variable, I have lots of options for varaibles.
    So, in the formula screen.
    Formula variables->New Formula variable - > Edit
    Then
    Processing by ->Replacement path ->ref characteristic date
    Then, on the replacement path tab:
    Replace variable with ->variable.
    Click on the box to search available variables to replace, and I have lots of options e.g.
    Current fiscal year (single value entry, mandatory)
    Approver
    Base budget
    etc.
    but not "key date of the query". It is not there?
    Any more help gratefully appreciated.

  • Reporting on key date

    Hi,
    Reprot requirement is to display values as on a key dates i.e. posting which had happend on a date.
    Issues- Cube aggregates key figures (from delta's) and publishes the final amount.

    Hi,
    The Key Date in the Query is used for displaying Time Dependent Master Data. So based on the User enltry of the dates, the valid master data for that particular time frame is retrieved. It is nowhere related to Transaction data in the Cube.
    Can you explain clearly what is your requirement??
    Regards,
    Ankit.

Maybe you are looking for

  • Returning my iPhone 5c?

    I purchased an iPhone 5c 8GB. I've had it for a little bit now and I was just waiting for my SIM card to get here. My SIM card got here today. I got everything set up only to find out that the phone doesn't hold all of my music and pictures. On my or

  • Phone stolen, is it possible to get my licence bac...

    Hi, my phone was stolen yesterday, so i bought a new one but i had a Nokia Maps licence for 1 year activated on it, is there a way i can get it back to activate it on my new phone? Thanks by advance and sorry for my bad english.

  • Help with delete duplicate locked files

    I'm kinda new at this so forgive me if I'm a bonehead. I made a contribute site, then wanted to disable check in check out. All the files have duplicate locked files remaining on server and they take eons to ftp. Is there an easy way to delete them a

  • Opening raw files in PSE5

    How do I open Canon EOS 7D raw files in PSE5?  EOS 400D raw files open fine, 7D raw files don't.

  • How to compare two Timestamps in java ??

    Hi , I have a class CurrentAddress, which is supposed to compare two TimeStamps of two address and store the current address I am not able to compare it using the < operator .How am I supposed to compare them ? Here is my code . Please reply public c