Data changed based on current date  in Bex

Hi Gurus,
   Hope you are all doing good ! I have a scenario in queries in Bex. When the query is executed the current system date must be captured and the data must be divided by the count of the previous months.
   For instance if the query is executed today the data must be divided by 1 ( for  jan)
   if it is executed next month, then the data muset be divided by 2 ( jan + feb ).
   Is there any COUNT variable in Bex ? Any idea how this could be done?
  Points would be assigned for sure.
Regards,
Sunitha.R

Sunitha,
    You should create a variable which is not user entry and user exit as processing type. Based upon the date entered you should write code in CMOD to derive the figure with which you can divide the amount.
The logic can be something like this:...
If the user enters     period like 02.2207(feb 2007), then you can pass value as 2 for the variable newly created. This is a simple code which can be written easily if you have ABAP knowledge.
Try it out.....

Similar Messages

  • When I move a file the date changes to the current date

    I have old files that I moved from a pc to a jump drive then to my mac. It seems like sometimes the modified date seems to change on its own. Sometimes it changes the update date if a file is renamed, but sometimes all it takes is moving the file.
    It frequently happens when I move pictures.
    Any ideas?
    Thanks

    Trash Permission Error
    Trash Permission Error (2)

  • How to suppress a row based on current date -  at query level?

    In an Bex query report i have suppress rows based on current date.
    There is no current date available in query.
    there is a date field in the query.
    If by chance the date in that field is lesser than current date, I have to suppress that row.
    How can this be achieved?

    What is the code ofr creating a variable to get values >= to current date?
    I have implemented the following code which is not working.
    data L_S_range like line of E_T_range[].
    CLEAR L_S_RANGE.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'GE'.
    L_S_RANGE-LOW = SY-DATUM.
    APPEND L_S_RANGE TO E_T_RANGE[].
    Actually i have written in class, which will be inherited in superclass.
    Edited by: akshara20 on Feb 2, 2011 1:21 PM

  • I have Elements 11. Sometimes, if I edit a photo in Elements Editor, the date gets changed to the current date. Why does that happen? It doesn't happen all the time, so I can't isolate the cause. Any ideas?

    I have Elements 11. Sometimes, if I edit a photo in Elements Editor, the date gets changed to the current date. Why does that happen? It doesn't happen all the time, so I can't isolate the cause. Any ideas?

    I have Elements 11. Sometimes, if I edit a photo in Elements Editor, the date gets changed to the current date. Why does that happen? It doesn't happen all the time, so I can't isolate the cause. Any ideas?

  • I have microsoft word for for my Mac book pro. When I open saved letters /documents on word the date automactically changes to the current date. How do I stop this happening? Many Thanks

    I have microsoft word for for my Mac book pro. When I open saved letters /documents on word the date automactically changes to the current date. How do I stop this happening? Many Thanks

    I suggest you post your qeustion on the Microsoft Mac forums as it's their software you're having issues with and that's where the MS experts hang out
    http://answers.microsoft.com/en-us/mac

  • Copying files to my MBA Early 2011, 10.6.7 changes their 'date modified' to the current date. It happens only to some of the files copied. Any idea what my be causing it. Never had this problem before, on othe macs I have owned.

    Copying files to my new MBA (early 2011) running 10.6.7 results in their 'modification date' to change to the current date. Any idea what may be causing it. It happens only to some of the files (there is no pattern to it.). I have not seen it previously in many other macs I have owned.

    Hi all
    I am bumping this thread again because I can't believe that I am the only one experiencing this issue. At times it is costing me hours repeatedly copying files until eventually the date doesn't show as modified.
    I thought I had cracked it earlier by changing the Sharing & Permissions settings, and applying to enclosed items the ability for Everyone, Me and Staff fo have Read & Write permissions - but that doesn't seemed to have changed much.
    Copying in smaller batches helps sometimes, but then other times it makes no odds, and the Date Modified date shows as the original date for a few seconds, only to change to today's date. Driving me nuts because there is no pattern to it.
    Files which I have copied and show their original modified date, when moved to a subfolder, then have their date changed to today!!! Copying other files into the folder results in files that were previously OK having their Date Modified changed!
    Am I on the only one?

  • FM to get previous sunday date based on current date(SY-DATUM)

    hi all,
    Is there any function module to get the previous sunday date based on current date(sy-datum)?
    Regards,
    Kapil Sharma

    Hi Kapil,
    You can follow the logic below:
    data:
    l_date like sy-datum, **TODAY
    l_date2 like sy-datum, **Previous Sunday
    data:
    l_daynr like HRVSCHED-DAYNR.
    *Get today's date
    l_date = sy-datum.
    *Gey today's day (Monday, Tuesday, etc.)
    CALL FUNCTION 'HRIQ_GET_DATE_DAYNAME'
    EXPORTING
    langu = 'EN'
    date = l_date
    IMPORTING
    daynr = l_daynr.
    CASE l_daynr.
    *If it is Monday
    WHEN 1.
    -Subtract 2 days for the previous Sunday
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 2
    IMPORTING
    ed_date = l_date2.
    *If it is Tuesday
    WHEN 2.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 3
    IMPORTING
    ed_date = l_date2.
    *If it is Wednesday
    WHEN 3.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 4
    IMPORTING
    ed_date = l_date2.
    *If it is Thursday
    WHEN 4.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 5
    IMPORTING
    ed_date = l_date2.
    *If it is Friday
    WHEN 5.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 6
    IMPORTING
    ed_date = l_date2.
    *If it is Saturday
    WHEN 6.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 7
    IMPORTING
    ed_date = l_date2.
    *If it is Sunday
    WHEN 7.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 8
    IMPORTING
    ed_date = l_date2.
    ENDCASE.
    Regards,
    Dilek

  • FM to get the previous sunday date based on current date(sy-datum)

    hi all,
    Is there any function module to get the previous sunday date based on current date(sy-datum)?
    Regards,
    Kapil Sharma
    Moderator Message: Basic date related questions are not allowed
    Edited by: Suhas Saha on Sep 19, 2011 11:39 AM

    Hi,
    There are function modules to find out the current day of the week depending on sy-datum. These are as below:
    1. DATE_COMPUTE_DAY - Returns a number indicating what day of the week the date falls on. e.g. Monday is returned as a 1, Tuesday as 2,...., Sunday as 7.
    2. RH_GET_DATE_DAYNAME  - Returns the day based on the date provided, e.g. Monday, Tuesday,..., Sunday.
    Using any of the above, if you can find out the current day, then you can calculate and compute the date of the previous Sunday.
    My observation is that using the first FM might make the calculation simpler.
    Hope this is of help to you.
    Regards,
    Shayeree

  • Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive but many are not showing up in Aperture.

    Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive with import date not created date, but many of these same files are not showing up in Aperture. Sometimes the clips actually show up with the current import but take on the video information from a previously imported file.

    It was suggested I move this question to IPhoto or IMovie which I did. 
    Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
    I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier!

  • How change the Date parameter based on server date

    Hi,
    We are using Query browser to connect to Bex Query.In BEx Query we have a date prompt which is mandatory.So by using Query prompt selector the dashboard has been created.But in our scenario the date has to be picked up from current system date/Server date and it has to change automatically when ever the dashboard has been opened.How to achieve this.
    Regards,
    Venkat

    Using the query prompt selector, the date will be listed in the drop down box. Here you can see only the date available in the server. Use the "Insert selected items" option you can pass the current date using =today() function.
    But the pain behind using the query prompt selector on date you have scroll a lot to search for a specific date, on this case i would suggest you to take the calender component to trigger the query. You have the same flexibility to pass the current date in this component.

  • Date change based on time of day...

    Hello All,
         I am new to Java and creating stamps in Adobe. I have been requested to create a stamp that puts the date based on the current date and time. Anything that is stamped after 3:00pm needs to show the bussiness day. Based on the dynamic stamps default in acrobat I am able to create the a stamp with the current date but can not figure out how to create the IF/Then statment to test for the current time and adjust the to the new date if needed. Please help!
    Current Sript:
    event.value = (new Date()).toString();
    AFDate_FormatEx("mmm dd, yyyy");
    event.value = "Date " + event.value;
    Thanks!
    William

    I've done exactly this for a client of mine last year, although it was not on BC (but it wont matter). It was for a childrens character series, we had 4 times of the day and even seasons where the website would change colors, get lighter and darker (sun cycle) and play different sounds (frogs at night, birds during the day).
    Just have 2-3 different CSS files and load each one according to the time of day or handle everything in Javascript.
    PM me and I can give you the URL of the site I am talking about.

  • How to schedule the webi report based on data changes in the report data

    Hello,
    I want  to schedule a webi report based on data change in a column in the report.
    The scenario is something like below:
    1. If a data of a particular column changes from 2 to 3 than I would like to schedule this report and sent it to users mail box.
    I know how to apply alerts or schedule a report or data tracking for capturing changes in the report but I dont know how to schedule the report only for data changes.
    Anybody done this before.
    Thanks
    Gaurav

    Hi,
    May be these links can help you:
    http://devnet.magicsoftware.com/en/library?book=en/iBOLT/&page=SAP_R_3_Master_Data_Distribution_Defining_Change_Pointers.htm
    SEM-BCS: Load from data stream schedule
    Attribute Change Run

  • PowerShell Script to Delete Files Based on Current Date

    I know by using Get-Date PowerShell will look at the current date.  I would like to make a very basic PS Script which will delete a file older than 8 days based on the current day.  I believe using a if/then function will be necessary. 
    I am very new to scripting so Im not sure how the syntax is written.  All help appreciated.

    Yes, use -Recurse to get subfolders too:
    $Folder = "C:\Users\Me\Backups"
    Get-ChildItem -Path $Folder -Recurse |
    Where { $_.LastWriteTime -lt [DateTime]::Today.AddDays(-8) } |
    Sort LastWriteTime |
    Remove-Item $_ -Force -Confirm:$false
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • Change Formula Field Current Date

    Can someone show me how to change the current date and subtract by 1 year. Ex: Current Date - 1 I would like to take the value of the current date 20090318 and change its value to 20080318
    Thabks for your help.
    Jim Dyer

    Hi
    Create a formula field and put the below formula:
    Year(datefield) - 1;
    Hope this helps!!
    Regards
    Sourashree

  • Last month end date based on current date

    Hi,
    How to show last month end date based on the current date.
    Eg:
    Current date = "08/26/09"
    Var- Last Month End Date = "07/31/09" etc...,
    Please help me how to get it...
    Thank You!

    Good to hear that it worked for you. but not for me.
    I tried like this:
    1st::
    1. var1= ToDate("06/30/09","MM/dd/yyyy")
    2.Var2= RelativeDate([Var1];-DayNumberOfMonth([Var1]))
    result: 5/30/09
    2nd:
    RelativeDate('6/30/2009';-DayNumberOfMonth('6/30/2009'))
    result: 5/30/09
    Am working on SAP OLAP cubes.
    Please help me where am going wrong....
    Thank You!

Maybe you are looking for

  • W520 i7-2860QM with 2 memory modules and CPU-Z Reporting them as Slots 1 and 3?

    Is this normal for CPU-Z (1.59, 1.60, 1.61) to report a matched kit pair of properly populated memory modules as Slots 1 and 3 in "dual" mode?   One is under the keypad in the upper slot #0 while the other is in slot #1 under the chasis on the left c

  • How do I get aniweather back on the bottom of my screen?

    After downloading Firefox 4 my Aniweather extension/add-on (??) now appears at the top of my browser and I would like to move it back to the bottom. I tried using the suggestions I found on the help page but that did not help. Aniweather did not appe

  • I have been on hold for over 2 hours!

     I haven't had HD channels for 3 days.  I have refreshed my set-top box multiple times.  This is ridiculous!  I will switch back to Comcast this weekend if I don't get resolution to this problem. Solved! Go to Solution.

  • Double Tapping causes my mouse pointer to shift or move.

    I am new to Mac. I got a WHITE macbook 13" about three weeks ago and while I am learning to switch from PC to Mac I found out about the great options the trackpad can offer to make my switch easier, BUT I have noticed "and this is very annoying to me

  • Ordering Address vendor used instead of Alternate Payee

    Has anyone ever run into the problem that an ordering address vendor was used instead of the alternate payee vendor number. Both numbers were the same except for the second digit. That is how the keying error occurred. The problem is that the orderin