Key date display.

Hi
Our report displays data according to key date given in the variable.
When a user enters a key date, the report displays the following data
col1=keydate sales
col2= MTD
col3=YTD
Here our requirement is when a user gives keydate and execute, The key date shuld be displayed in the report. Is it possible in report to display the keydate.
REgards
Annie

i am not sure if any other better way exists.. but we have done as below
create a formula variable(IX_KEYDT) - customer exit varibale with date dimension, and in the exit, make it as a copy of ur key date.
CASE i_vnam.
WHEN 'IX_KEYDT'.
IF i_step = 2.
  LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = '0P_KEYDA'.
   CLEAR l_s_range.
    l_s_range-low    = loc_var_range-low.
    l_s_range-sign   = 'I'.
    l_s_range-opt    = 'EQ'.
    APPEND l_s_range TO e_t_range.
    EXIT.
   ENDLOOP.
endif.
endcase.
create a new column - selection - just drag drop ur formula variable..
*'0P_KEYDA' is the technical name of key date.
hope it helps

Similar Messages

  • Open orders display in BEX report based on Key date

    Hello All,
    I have a requirement:
    We have an existing report which needs to have input selection as Key Date.
    The report should display the Open orders based on the key date mentioned.
    For Eg: if an item A was Opened on 20th Sept, 2010 and now CLEARED and if I run the ECC report today and mention the key date as 20th Sept, 2010, then the report will show me the item A status as OPEN
    Plz help me with the logic for the same at the earliest
    Tthanks..
    Sneha

    Hi Sneha,
    I assume you have open and crear dates in your query. So put an open date in your query filter and restrict it as less then Key date variable(which is a variable of type user-input on 0calday), then create another variable that feeds from keydate variable (it can be a replacement path or simplest user-exit).
    Note: the another variable is needed because as far as i can remember you cant use the same variable to restrict two different chars in the same query/anyway test if it's not possible - then create another variable as i mentioned.
    Take Cleardate in your query filter and restrict it as more than keydate variable andr # (not assigned). (in case if it hasnt been creared at all yet at the key date time)
    Pls let me know if this was helpfull

  • FBL5N - cleared document display by 'Open at key date'

    We are on ECC 6.0 and have recently upgraded from SP9 to SP15 in Financials. The users are saying that the report S_ALR_87012198 (which works the same way as FBL5N transaction) is now displaying the cleared documents differently.
    For example, we have the following documents:
    - invoice (RV) with posting date 11/01/09 and clearing date 11/20/09;
    - payment (DZ) with posting date = clearing date = 11/20/09.
    When the users run the transaction or report for Cleared Documents by using Clearing Date 11/20/09, both documents are displayed. However, when the users run the transaction for Cleared Documents by using 'Open at Key Date' 11/20/09 then only invoice (RV) is displayed.
    The documentation suggests that 'open at key date' should include items that are open before or on the 'key date'. Also our users are saying that it used to display both documents with 'Open at Key Date' before the service pack upgrade, but, unfortunately, we're unable to verify this.
    Could someone with lower version please verify how 'open at key date' option works for cleared documents? And is there any documentation that explains this?
    Thank you.

    >
    NSRobert wrote:
    > as the standard sap doesnt display the cleared and open items on "Open at key date"
    Thanks for your reply. Just to clarify - there are two 'Open at key date' fields in FBL5N. First field pertains to the 'Open documents' radio-button and second field - to the Cleared documents radio-button. When the users choose 'Cleared documents' and fill in the second 'Open at key date' field, they expect to see the items that are currently closed, but that were open on the specified key date. And SAP does, indeed, display them, just in a rather strange manner (it seems that DZ document is never "open", according to the screen's logic).
    It seems that we'll need to write to SAP for clarification, but I was hoping that someone could at least verify whether this, in fact, has anything to do with the support packs.

  • 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!

  • APD query key date with variable for time dependent MD display attributes

    Hello,
    In a APD I use a query as a source with a query key date that is filled with a customer exit variable.
    When I run the query as a user, the time dependent MD display attributes look fine. However, when I use the query in an APD, I get no values for the time dependent display attributes.
    Any suggestions?
    Thanks

    Hi,
    Try to run query using RSCRM_BAPI Tcode, this you can also schedule in background
    Thanks
    Reddy

  • Display dropdown by key data with sorting

    Hi,
    My requirement is to display dropdown by key data with sorting getting this data from XML in KM.
    Tell me different possibilities to sort the data.
    Regards,
    surya.

    Hi,
    Use DropDownByIndex instead of DropDownByKey
    Create a node with a attribute for eg. Colors node with Color attribute and add the values in the elements of the node, Bind attribute to DropDownByIndex UI.
    Create a custom comparator class like below
    import java.util.Comparator;
    import com.sap.tc.webdynpro.progmodel.api.IWDNodeElement;
    import com.sap.tc.webdynpro.progmodel.repository.enums.WDComponentLifecycleEnumInfo;
    public class CustomComparator implements Comparator {
         String attribute;
         public CustomComparator(String attrib) {
              this.attribute = attrib;
         public int compare(Object o1, Object o2) {
              try
                   IWDNodeElement units1 = (IWDNodeElement) o1;
                   IWDNodeElement units2 = (IWDNodeElement) o2;
                   return units1.getAttributeAsText(attribute).compareTo(units2.getAttributeAsText(attribute));
              catch (Exception e)
                   e.printStackTrace();
              //arbitrary order
              return 1;
    Once you read values in the Colors node, call the sortElements method of the node as below to sort the elements of the node
    wdContext.nodeColors().sortElements(new CustomComparator("Color"));
    Regards,
    Amol

  • Is there a list of open items at key date per customer?

    Hello,
    In FBL5N you can get a list of open items for a customer at some specific date.
    I'm looking for a summarized list that would give me a list of sums  of open items for some customer per day, so I would see for example for one month what was the sum of open items for this customer on each day.
    Is there already some similar report in SAP?
    Thanks and best regards,
    David

    Hi,
    I still don't think we understand each other.
    If I run FBL5N I have option to select:
    - Items that are or were open at the key date are displayed on one date
    - All items posted on the posting date specified fromde date1 to date2.
    - Items that were cleared at the clearing date specified
    I would like a list of all items from option 1 (Items that are or were open at the key date are displayed on one date) so items that are or were STILL open and not yet cleared on one date, but not just for one date but for more days.
    If I use your suggestion I get what items opened or cleared on one day not how many items were still open on particular day.
    So a list of how many opened items were there at the day, and notjust items that were opened on that day but also all previous items that were not yet cleared at that day.

  • Key DAte

    Hi ,
    We ahve a Key date option in BEX Query designer i am assigning an Customer Exit variable to that key date which based on calander day. In the same Query iam using another customer exit which should be depend on the above Key figure can anyone will let me know how to do this..
    means in CMOD i wrote a program for both the variable key date variable is converting fiscal year to date and month and after that second variable need to be exeucted
    Note to both the customer exit iam passing the same variable..
    Thanks

    Hi Srinivas,
    I am creating a reprot which is based on fiscal year period and the customer want to display the data based on periods.
    Means if they select the period as 007.2008 then
    Column 1 should display the data 001.2008 to 003.2008 and
    column2 should display teh data 004.2008 to 006.2008
    column3 should disply the data 007.2008
    how to go head and their is the column where i ahve to disply current fiscal year data..
    Thansk

  • Function module for GL account open items at a key date

    Is there a function module for "GL account open items at a key date" similar to following for customer and vendor accounts?
    BAPI_AR_ACC_GETOPENITEMS Customer account open items at a key date
    BAPI_AP_ACC_GETOPENITEMS Vendor account open items at a key date
    If not, please suggest any alternatives. I am looking to capture the output of FBL3N (GL account line item display) in a program.
    Thank you in advance.
    Prasanna Pujari

    hi,
    please go through the below link i think it will help u.
    http://sapfunctional.com/FI/GL/Balance.
    Regard
    Abhishek Tripathi

  • 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

  • Key date not work in query on infoset

    hi experts,
    i have a infoset, which includes a time-dependent infoobject eg.0employee and an ods eg. ods1
    i set the ods time-dependent by setting from ods1-field1 to ods2-field2, and link the 0employee to ods1.
    then i create a query on the infoset and set a key date in the query, eg20061231.
    but the query result goes wrong, the key date doesn't work, the result shows below:
    employ1 1000.12.31-2008.01.01   $123 (this record is right,because i want the key date to be 20061232)
    employ1 2008.01.02-9999.12.31   $123 (but this record should not be displayed)
    i haven't set any field in infoset to be key date, just set the "from" and "to".
    pls help and thanks a lot!

    Hi
    Check the link.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/11/723c3b35703079e10000000a114084/content.htm
    Chandu.

  • Current User & Key Date in Web Reports

    Hi,
    I want to default the current user name & current date (could be different from the varaible key date) in the header or footer of the web report. I tried text elements in the web template where we can default only the variable values entered by the user, or general text which include above two texts along with many other details which are not required by me. I have also tried text variable in the query properties in vein. Could someone give some tips, please.
    I have a formula variable "Current Calender Day". How I can create a text variable from this ?
    Thanks & regards,
    Sheeja.
    PS: I'm a functional guy, so kindly explain in detail if any EXit coding is involved.

    Hi Sheeja,
    If ur looking this option for a web template then please follow below steps for current user name & current date :
    1. Create a Text web item present under the Miscelaneous Tab of web items.
    2. In its properties tab Tick 'Display Text only'.
    3. Select General Text elements For text binding option (Present in Data binding)
    In general text Elements option:
    Make a binding with a data provider.
    For user name select - Current user
    For Current date - Select Last Refresh options.
    Try this, hope this will  help to u.
    Thanks !

  • Date range for key date in hierarchy

    Dear Friends,
    Is there a work around for single key date restriction for time dependent hierarchy.Bcos i can only select one key date in teh report for my hierarchy so that it will take that hierarchy which falls in this date and display the result accordingly.
    But is there a way to select the date range for key date so that more than one hierarchy can be used to display my report accrding to the time range.
    Say,i have 4 hierarchies (time dependent) like v1,v2,v3,v4 and v5 for jan 08,feb 08,mar 08,apr 08 & may 08 respectively.
    In my report,i want to display the result for the time interval say mar to May.
    So my report should diplay the result according to the 3 different hierarchies for the time period i.e.v3,v4&v5.
    How do i acheive this.
    Thanks.
    ragu

    Hi
    I think we may do with the Char with text with replecement path.
    take time char as Calmonth and set the offet value as -1 and -2 and design the report and use the hierarchies in that query.
    Am not surt it willwork but better to try with this.

  • How to filter the data displayed in a datatable

    Is there a way to populate a datatable so that the data displays in a column only when it is different than the previous rows. For example if I have a List of InventoryItems that have properties State, WHouse, Widget, Count.
    And I want to display them something like this:
        GA    WH1    Widg1      255
                     Widg2      566
                     Widg3      999
              WH2    Widg1      100
                     Widg4       55
        FL    WH5    Widg1      687
              WH6    Widg5      566I hope the formatting comes out correct. The GA & FL should be in the first column. WHX in the second, WidgX in the third, and the count in the fourth.
    I hope someone has an idea how I can achieve this effect.
    Thanks

    Yes, binding to the rendered property the way you suggested should do the trick.
    FYI, here's an example that illustrates how the <if> component in JSFTemplating works:
    <foreach key="key" list={"A" "B" "C"}>
        <!if !(#{key} = B)>
            <staticText value="Not B, it's '<b>#{key}</b>'</br>" />
        </if>
    </foreach>If you cut / paste that code into a file called test.jsf and run it in a JSFTemplating enabled application (follow the directions on the www site to run the demo app, drop it in that app), it will show values not equal to 'B" (A and C). FYI (#2): the <staticText> component above has a short cut syntax, so it could also be written:
    <foreach key="key" list={"A" "B" "C"}>
        <!if !(#{key} = B)>
            "Not B, it's '<b>#{key}</b>'</br>
        </if>
    </foreach>FYI (#3): You can use any #{} you want in the <if> condition and can form complex boolean equations.
    Good luck!
    Ken Paulsen
    https://jsftemplating.dev.java.net

Maybe you are looking for

  • Songs not showing up in Artists section

    A few artists of mine will not show up in the Artists section of the iPod, but their albums will show up in the Albums section. When I play the album, the artist is displayed correctly on the Now Playing screen. How can I correct this so that the son

  • Problem while installing account enrollment template

         Hello,      I've benn facing a serious problem for a week while installing account enrollment template.      System Environment is like this:           -     Windows Server 2003 Enterprise Edition           -     Microsoft SQL Server 2005 SP2   

  • Veriface 3 and windows 7 rc login problem

    I have u110 notebook, Veriface 3 doesnt work on the windows 7 login screen... its shows veriface login window and trying to connect a webcam then its shows only black screen in the veriface login window... But when i login manually then veriface appl

  • Motion blur keyframing?

    when adding a motion blur to a clip is there a way to keyframing it? In other words taking the blur up and down only on certain parts of the clip?

  • To view deleted mat doc

    Hi, How to view  if the material document is cancelled in MIGO? Arati.