How to Search BPM Processes for a Given Date Range through a VC Report

Hi All,
We have a VC component build to view the BPM process information. Here we are supposed to provide a Date range option for searching the processes. But the Range search is not working.
I tried in below ways.
1. On Action Submit, I set the Occurance_D value as "=DSTR(@DATE_FROM,"M/D/YY")&" - "&DSTR(DADD(@DATE_TO,1,"D"),"M/D/YY")" it is working only if there are processes existing either on DATE_FROM or on DATE_TO, otherwise its not working.
Like, I have 5 processes triggered on Sep-5-2011, then if i give the Date Range as 9/5/11 - 9/11/11  or 9/1/11 - 9/5/11  it is working. But if I give 9/1/11 - 9/11/11 it is not working.
I tried this way as well.
=DSTR(@DATE_FROM,"M/D/YY")&" : "&DSTR(DADD(@DATE_TO,1,"D"),"M/D/YY") . Even this is not working.
Can some one please help.
Regards,
SrinivaS

Dear SrinivaS,
The main things you need to consider are:
- store your date value from the UI in a store
- the store gets used to submit a filter string in format (MM/DD/YY) to
BI_START_TIME_D.
If you follow http://help.sap.com/saphelp_nw72/helpdata/en/81/541300d147
41b39057c8ab3be61f7a/frameset.htm
you find that the process data source can be filtered in format  "9/9/11
- 9/12/11" for field BI_START_TIME_D and BI_END_TIME_D.
The trick is now at submission time to concatenate the strings
accordingly and submit to BI_START_TIME_D. Use the following dynamic
expression
=DSTR(store@START_DATE_FROM,"MM/DD/YY")&" - "
&DSTR(store@START_DATE_TO,"MM/DD/YY")
to format the string during submission. I was able to verify this on my
machine. I hope that also your locale settings work with this
implementation.
Find attached a link to a small sample application [(test_date.zip) |please find attached a small sample application (test_date.zip) which]which shows you the proper usage of a date picker in conjunction with the
process data source. Please import the zip file into VC and deploy it.
Best regards,
Ralf.

Similar Messages

  • Any FM to get count of each week day for the given date range

    Hi guys,
    Any FM to get count of each week day for the given date range?
    eg: If i give 14/07/2008 to 14/08/2008
    I need to find how many Mondays, tuesdays...sundays in this given date range.
    If not single FM is available, any logic that gives above result is also appreciated.
    Thanks,
    Vinod.

    hi Vinod,
    this is not a full solution, I just give you a basic idea:
    DATA : lv_start TYPE sy-datum VALUE '20080714',
           lv_end   TYPE sy-datum VALUE '20080814'.
    WHILE lv_start LE lv_end.
      CALL FUNCTION 'FTR_DAY_GET_TEXT'
        EXPORTING
          pi_date = lv_start.
    * IMPORTING
    *   PE_DAY_TEXT1       =
    *   PE_DAY_TEXT2       =
    *   PE_DAY             =
    * you have to summarize the output here somehow...
      lv_start = lv_start + 1.
    ENDWHILE.
    hope this helps
    ec

  • How to change bucket capacity for a certain date range (duration)?

    Hi,
    I need to update the bucket capacities of Resource at Vendor location in APO live cache for a particular period using BAPI_RSSRVAPS_CHANGEMULTI.
    Here I am executing BAPI by passing -
    Import Parameters:
    LOGICAL_SYSTEM
    COMMIT_CONTROL
    PLANNING_VERSION
    Tables:
    RESOURCE_HEAD
    (RESOURCE = Resource  " Test123
    LOCATION = Vendor Number/Loctaion
    CAPACITY_A = 5000.000
    NUM_OF_PERIODS = 001
    PERIOD = 02    " Day Wise
    UTIL_BUCKET = 100.000 )
    RESOURCE_HEAD_X
    (All corresponding fields X)
    RESOURCE_QUANMODEL
    (RESOURCE = Resource  " Test123
    VERSION = 01
    ENDDA = 02/25/2011
    BEGDA = 02/21/2011
    QUANMODEL = 8000 )
    RESOURCE_QUANMODEL_X
    (All corresponding fields X)
    [ I have a capacity variance:
    Resource = Test123; Capacity Varient = 01; Valid From = 02/21/2011
    Valid To = 02/25/2011; Bucket Util Rate = 100.000; Qty/Rate definition = 8000 ]
    Now, while I execute /SAPAPO/RES01 to display Capacity for that resource-Location-PlanningVersion, Its showing that 'Bucket Capacity' and 'SNP Bucket Capacity' get changed into 5000. But this change happend for all the days and not only for the duration I passed into Bapi (From BEGDA to ENDDA).
    How to change bucket capacity for a certain date range (duration)? Any help please.
    Thanks
    Roy

    I did it myself. Hence closing the thread.
    Solution:
    1. Get RESUID from /SAPAPO/RESKEY table by passing Resource as NAME.
    2. Call Function Module /SAPAPO/CRES_QUANPROF_UPDATE
    3. Call Function Module /SAPAPO/CRES_SAVE_FROM_BT
    For further help, change manually a single record in the 'capacity profile' in TXN /SAPAPO/RES01 and debug both the FM mentioned above.
    BR
    Roy

  • Name of users of a particular Tcode for a given date range

    Hi experts,
    I am making an alv where inputs will be
    1> T_code(as parameter)
    2> Date Range(as Select options)
    I have to display the following fields:::
    1> User name
    2> Frequency of use the Tcode for the given Date range.
    Please give me the tables where I can get the relation of those fields.
    N.B. I know the transaction AL08 and SM04.But it won't solve my purpose.
    Thanx in advance,
    Sourav

    >
    SOURAV PAUL wrote:
    > Hi experts,
    > I am making an alv where inputs will be
    > 1> T_code(as parameter)
    > 2> Date Range(as Select options)
    by creating the report As per your this requirement you need not to create any Bulk on your SAP.Just use STAD/STAT transaction they are availabe for this purpose.
    and more you may track by security log audit by SM20 get these details.
    i'm worried about tables which sre storing these details.

  • How to calculate a week & Month in given date range (not for sele-options)

    Hi ,
      I have defined 2 date parameters in sel-screen (Plz remember that date variable are not a SELECT-OPTIONS).  Now i want ot display week nos & monts in output.
          Ex: date1: 20080101 & date2: 20080229. then
                    weeks : 1, 2, 3,---9.
                    months: jan-08, feb-08.
    Plz help me with block of code or any FM.
    Regards,

    Hi Srikanth,
            The FM HR_99S_INTERVAL_BETWEEN_DATES   is doesn't existing, but there is a fm HR_MX_INTERVAL_BETWEEN_DATES but it returns no of Years & Days.
           But i found some FM which r returns no of months for given date range. but my requirement is, want to display the month no bw 1 to 12. (ex: dat1=15-03-2008 & dat2= 01-06-2008 then in month fields 03,04,05 & 06. ).
    Plz help me on this.
    -Regards.

  • Price change report for  a given date range in inforecords

    hi,
    Can any body suggest how we can get price changes in inforecords for given date range. is there any standard sap tcode or  fuction module.

    Hi,
    If you are referring to the changes in the condition record (for eg. for PR00), then you may go through the foll path:
    Execute VK13 for any condition type - once inside the detail screen, from the menu path, choose Environment -> Changes -> change report. This will take you to a new selection screen where you can define the period you want to see the change record as well as the condition type for which you want to track the changes. Beware, this is a complex report for SAP and it will take definitely longer time to complete. So, it is better to specify short time periods and specific condition types and execute this in background.
    Hope, this helps!
    S. Siva

  • How to get XLR to show BPs with no transaction data for a given date range

    Hi -
    I am building an XLR report that does a comparison of net sales data across two periods for a given sales employee's BPs.
    The report has the row expansion:
    FACT BPA(*) SLP(SlpName = "ASalesPersonNameHere") ARDT(Code = "ARCreditMemo", "Invoice") Group by BPA.CardName
    and column expansions:
    FIG(SO_TaxDate = @StartDate:@EndDate)
    and
    FIG(SO_TaxDate = @StartDate2:@EndDate2)
    where @StartDate, @EndDate, @StartDate2, @EndDate2 are parameters that define the two ranges of dates.
    The column formulas are, from left to right:
    =ixDimGet("BPA", "CardName")
    =ixGet("SO_DocTotal")      <-- filtered by column expansion for first date range
    =ixGet("SO_DocTotal")      <-- filtered by column expansion for second date range
    The report works fine except for one problem, I would like it to include BPs for which no transaction occurred in either date range as well.
    Any help is greatly appreciated!
    Thanks,
    Lang Riley

    Really appreciate your feedback!  Those are good suggestions. I should have mentioned that I had already tried both those suggestions.
    Removing FACT on BPA in this case ends up returning all the BPs and not respecting the SLP(SlpName = "aName") part of the query. 
    Using **, i.e., * or #NULL, makes no change in the resulting data in this case.  I had thought that ** would be the solution, but it didn't change the outcome.  I still have BPs for which when their sales employee is used as the filter and they have no transactions for either date range, and yet they still do not appear. 
    I should further mention that the IXL query, as it now stands, does return BPs for which one of the periods has no data, just not both, and I have verified that applicable BPs with no transaction data for both periods do exist in my data set.  It seems that perhaps the IXL query needs to be restructured?  Please keep the suggestions coming including how this query might be restructured if necessary.

  • Last Record Values for a given Date Range

    Hi, I have a unique requirement to process/report only the values of the last record found in a date range for a given set of characteristics.  The order would be by FISCPER.
    For example:  I have some data with 3 characteristics.
    STORE001 MATN001 2004001 100 PCS
    STORE001 MATN001 2004005 75  PCS
    STORE001 MATN001 2004006 80  PCS
    STORE002 MATN002 2003008 10  PCS
    STORE002 MATN002 2004001 15  PCS
    STORE002 MATN002 2004004 40  PCS
    A selected date range of 2003008 to 2004001 would result in the following records being processed.
    STORE001 MATN001 2004001 100  PCS
    STORE002 MATN002 2004001 15   PCS
    A selected date range of 2004002 to 2004006 would result in the following records being processed.
    STORE001 MATN001 2004006 80  PCS
    STORE002 MATN002 2004004 40  PCS
    How can I accomplish this at runtime?  Any ideas?

    Nope, it's not an inventory scenario.  It could be say the last status of a gas meter within a selected date range. 
    Any other ideas? 
    I've considered using VKF, but haven't figured out how this would work yet.  If I could modify the selected query data prior to query processing I might be able to number the records and then filter on that.....  Anyway I'm open to any suggestions or leads!
    I won't forget the points for anyone with a solution!
    Thanks!

  • Accounts without opportunities for a given date range

    Greetings report gurus,
    I am trying to develop a report that shows distinct account names that do not have any opportunities for a given period of interest. For example, I have one report that queries opportunities that closed during a given period of interest for a specific class of accounts. I would also like to be able to report on accounts associated with that specific class that did not have any opportunities on the board for a given time frame.
    Many thanks for your ideas,
    Dan

    Dan,
    You'd need to look at negative reporting for this, you can find it in the Knowledge Base. You need to write 1 report with the Accounts within your range minus Accounts with optys within your range.
    cheers
    Alex

  • How to see Control chart for a specific date range in QGC3

    Hi
    I am developing SPC for my client.I am facing one problem.
    I am using one control chart for all inspection lot for a particular MIC.Free inspection point is used in inspection plan.
    Control chart is used 516.(XMR chart)
    Now when i am calling control chart for MIC executing QGC3,chart is showing results since creation chart date to todays date.
    Now if i want to see chart for a particular period or date range,what is the procedure.
    Thanks in advance
    Nilanjan

    Hi,
    1. Even though when i give the Created on, and to date the system is displaying the report which is prior to the created on date.
    2. Similarly the report data is different when the field is maximum no of Hits is given. for example when i giving this field as 10, 20, 30, etc the report is showing only 10 line items. if i enter 50, 60 etc it is showing the list for half i given.
    Note that system is having more than 1000 line items to display..
    Regards,
    R. Loganathan

  • Get Months for the given date ranges on the Selection Screen

    Hello All,
    If I give Begin Date (Begda) and End Date (Endda) on the Selection Screen, I need to get all the months given in the selection screen ranges.
    Could any one please suggest me how to proceed further on this.
    Thanks in Advance
    Regards
    Yathish

    HI,
    Check this FM
    HR_99S_INTERVAL_BETWEEN_DATES  ---> this can help you it will return the month in this table MONTH_TAB
    HR_99S_MONTHS_BETWEEN_DATES

  • Fetching  Employee List  For  A WBS For A Given Date Range

    Hello Friends,
    I need to fetch  list of employees assigned for the WBS for  a particular month . The Transaction code is PPSM . Is there any standard report available. Otherwise any other way.
    Regards,
    Rohini.K.

    The standard report behind the t-code PPSM is RHSTRPF0.
    You may like to copy this report into a custom Z program using t-code SE38 and modify it according to your requirements with the help of an ABAP'er.

  • Sync with Outlook ONLY for a specific date range

    I have a Zire 31 that I'm syncing with Outlook via latest Palm Desktop/HotSync.   I did just install the latest conduit.
    I was getting several repeating calendar entries that were not syncing with the Zire (annual birthdays, etc.) - turns out that they did not have an "end-date" specified when created in Outlook.  Creating an end-date solved the problem.
    However - I would like to know if it is possible to specify a certain date range for the device to sync (e.g., sync calendar only for years 2007 through 2050, or in other words sync from 1 year ago to 50 years in future, etc...)
    I recall specifying this once years ago, but I may have been using a third party to sync with Lotus Notes at the time.  I'm wondering if this option is also available with syncing directly with Outlook using HotSync???  I can't imagine it's not, but I can't find where you specify it.
    One more interesting note:  while my Zire 31 had issues syncing those repeating calendar entries - my much older HandSpring Visor Deluxe syncs them no problem!  Go figure.
    Thanks much -
    Post relates to: Zire 31

    I'm not actually looking to purge old items.
    Rather - I would like to ONLY sync calendar entries between a specified range of dates.  For example - ONLY sync for calendar entries between Jan 1 2007 and Jan 1, 2050.
    the problem is that I have some repeating entries (birthdays, etc.) that are set up in Outlook with no end date.  Apparently Palm/HotSync is having trouble syncing these (they don't show up at all - for any year.)
    One resolution is to apply an end-date for each repeating calendar entry.  However, this is just another step my wife needs to remember to do.  If you happen to forget to to this, then Hotsync will ignore that entry.  Fine if you realize that's happening, but if you forget and forget to check - you won't even know it didn't sync!
    The other possible resolution is to only have HotSync sync for a SPECIFIC date range - one that does not presumably go to infinity.  That is my question - how does one sync ONLY for a specific date range.  Has nothing to do with purging old entries.
    Thanks!!
    Post relates to: Zire 31

  • How to query a item stock quantity for a given date

    Hi there,
    I need to query the stock quantity of an item for a given date. For example, i want to know how many pieces of A i have on stock at the 20th of march 2009.
    I know there is a report, but i need the value for a subquery.
    Regards Steffen

    Sorry Gordon,
    Your query is not wrong, far from me to insult your work. It does indeed make full sense if the business process allows the item description to change.
    If not, we can avoid a "inner join"  = smaller, cleaner and (theoritically) faster query
    Here is your code with the little review:
    SELECT T0.ItemCode, T0.Dscription, sum(T0.InQty - T0.OutQty) as 'On Hand'
    FROM DBO.OINM T0
    WHERE T0.DocDate <= '[%0]' and T0.ItemCode = '[%1]'
    GROUP BY T0.ItemCode, T0.Dscription
    Cheers
    tested on 2007 SP00 PL46

  • How to get start date of the period for a given date from cube

    I have a situation where i need to find the start day of the period for a given date. is there a way to know that. i want to use that in my report. i enter the date from my report(i have date parameter), depends on the date, i want to display the start day
    of the period. how can i write expression for that in my report?
    ram

    Hi ramprasad74,
    According to your description, you are using Analysis Services as a data source for the report, the cube has hierarchy: Fyear, FQuarter, FPeriod, fweek, Fdate. You want to add a date parameter to the report, after you changed value of the parameter, the
    report will return the first day of FPeriod.
    To achieve your goal, we need to add a parameter to the report, then use the parameter in mdx query. For detail information, please refer to the following steps:
    In the Report Data pane, right-click on a dataset created from a SQL Server Analysis Services data source type, and then click Query. The MDX query designer opens in Design mode.
    On the toolbar, click Design to toggle to Query mode.
    On the MDX query designer toolbar, click Query Parameters symbol. The Query Parameters dialog box opens.
    In the Parameter column, click <Enter Parameter>, and then type the name of a parameter.
    In the Dimension column, choose a value from the drop-down list.
    In the Hierarchy column, choose a value from the drop-down list.
    In the Default column, from the drop-down list, select a single value.
    Click OK. 
    In query designer dialog box, type the mdx query like below:
    with member [Measures].[FirstChild]
    as
    [Date].[Fiscal].currentmember.parent.firstchild.name
    select {[Measures].[FirstChild]} on 0,
    [Date].[Fiscal].[Date].members on 1
    from
    ( SELECT ( STRTOSET(@ParameterName, CONSTRAINED) ) on 0
    from
    [Cube]
    Here are relevant threads you can reference:
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/c7146ac3-40ea-4d53-b321-c707aebbd405/how-to-pass-date-parameter-to-mdx-query
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/fd12a865-bc90-4a65-af42-ce38a8cfa29b/pass-date-time-parameter-to-mdx-query-ssrs
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

Maybe you are looking for

  • Swipe on remote app just stopped working

    all of the sudden I can't swipe (go left, right, up and down) on remote app for my apple tv. I can tap, press menu, even type on youtube search but not swipe. I can see app on my Iphone is reacting to the touch when i try to swipe as it slightly chan

  • The file name is not valid. The file name is a device or contains invalid characters.

    Hi , I am getting below error in SSIS 2008 package when it is run through control-m The file name is not valid. The file name is a device or contains invalid characters. component "FF_SRC_InboundFidelityInputFile" (1) failed the pre-execute phase and

  • X1600 in the 15-Inch Vs. 17-Inch

    I've heard rumors that the video card in the 15-Inch MacBook Pro maybe slower than the one in the 17-Inch MacBook Pro. My question is: is that true? And if so, is it worth getting the 17-Inch for that reason? See, I personally want a fully loaded 15-

  • External Hard drives with ibook.

    okay, I have a 14" ibook G4. I also have 2 Windows PC's (1 Atlon 3.6GHZ, 4GB ram (for gaming) & a P4 2.8GHZ (for everyday use)) and i was wondering if i could get an EXTERNAL harddrive that will work for all my computers. I dont know anything about E

  • Why so big the delay in FMS3?

    Hello Community, I have been using a service of FMS 3 for a week and I have notice a BIG delay between the audio/video in the player and the source of information from the computer. We are talking about something like for example: You are playing Liv