In put variable to have default from date as current date..its urgent

query has input data as an interval it could be replaced with a single start end date parameters.only the start date needs a default value...
plz its urgent..
i will assign points...

Hi,
Steps to follow,
1) In bex, Create a new variable of 0Calday characteristic.
Set the following attributes:
Type of Variable: Characteristic Value
Variable name: ZCEMONT
Variable Description: Caldate
Processing by: Customer Exit (Drop down combo box)
Characteristic: Calendar date
Press Next
Variable Represents: Range Value
Variable Entry is: Mandatory
Check Ready for Input
And Press Next
Press Finish.
2) Transaction CMOD
Create a new project, maintain the short text, and assign a development class.
(It’s better to ask somebody senior in our project about this, because every project have one main project and development class)
If you have project say Zproject. Choose option components. Click Change.
Double-click on EXIT_SAPLRRS0_001.Then double-click on ZXRSRU01.
Enter the coding .Save and activate the coding.
INCLUDE ZXRSRU01 *
DATA: L_S_RANGE TYPE RSR_S_RANGESID. 'In global area
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT. 'In global area
DATA: zdate like sy-datum.
CASE I_VNAM.
WHEN 'ZCEMONT'.
IF i_step = 1.
zdate = 'your default value'.
l_s_range-low = zdate.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDCASE.
Activate the project. This is very important.
3) TO test now, use that variable ZCEMONT in query some where by going to BEx designer.save the query.Don;t run it.
4) First run it in RSRT(Tran code).
Hope i m clear.
Now your report
1)Place your Priority infoobject in rows
2)In column area in Bex, Right Click and New Structure.
3) Right click the New Structure->New Selection"DOWNTIME"->Drag your KF ZDOWNTIME
4) Now Create a New Formula and drag  DOWNTIME->
='DOWNTIME'<4
5) same for other two.
Regards,
San!
Message was edited by: San!
Message was edited by: San!

Similar Messages

  • Does iTunes offer a restore from other than current data on my pc?  I've lost all my pictures because of lack of disk space on my pc.

    Does iTunes offer a restore from other than current data on my pc?  I've lost all my pictures because of lack of disk space on my pc.

    Are you talking about restore of the iPhone from its backup, or something else? The first time you sync an iOS device on each calendar day iTunes will update the backup set for the device. If you remove data from the device and backup, then the backup of that data has gone. For this reason it actually makes sense to restore an iOS device periodically as, once used for a restore, the backup set is archived and a new one created.
    Ideally you would have backed up these pictures somewhere. If you enabled it, you may find pictures in your Photo Stream.
    In general you need to keep a backup copy of all your important files. iTunes will let you download most past purchases from the store but backing up other content is down to you. The user  Backup your iTunes for Windows library with SyncToy suggests a way to do this for iTunes, but the same tool can be used to preserve other folders of data.
    tt2

  • Why does old sale order (The deliver date before current date) show VSF (independent requirement) in MD04?

    Dear All,
    I face one issue, the old sales order (the delivery date before current date) has became VSF (independent requirement) in MD04, could someone let me know why and how to fix it?
    Take 01.09.2014 as example, we have one 50PC's sales order with delivery date as 25.08.2014, in MD04, the system will show two independent requirements, one is 50PC's customer order and another is 50PC's VSF.
    We are looking forward to your kind help and answer, thanks in advance!
    Best Regards,
    Gavin

    Hi Gavin
    If I understood the issue correctly, system is showing both the sales order and the PIR on the same date, right?
    If this is the case, it's probably a PIR consumption issue. Take a look on the following note, especially question 10:
    772856
    FAQ: Consumption of planned independent requirements
    BR
    Caetano

  • How to print previous date as current date

    Hi ,
    how  to print  previous data as current date in output  with out any changes....

    Hi Degala Hari Krishna,
      Can you explain clear.

  • Can a master data will have loading from more than one data source

    Dear gurus,
          I have a master data object which has every day loading from one particular data source. Now I got a requirement to load data from another data source. If we load data from more than one data source , will there be any problem with data? Will it accept loading from more than one data source.?
    Regards
    Rs

    Hi Ram,
    We can load the data to target morethan one datasource.Thats advantage in BI compare to BW. It will accept loading from more than one datasource.but you have to take care about characteristic and attributes are the same in both datasources like that.
    Regards,
    SVS

  • How to get the default date as current date in input filed in VC

    Hi
    In my VC application i have two date fields. we are allowing the end user to select the From Data and Todate though Data pickers, But the client asking to make the today's date as default date in Todate field , rather picking up from the data picker,
    Unless the  user wants change the todate from the current date. It should display today's date as default date.
    can any body tell me how to do it.
    Regards
    Vijay

    Hi All,
    I have an issue an implementing the "Exporting the Table data to Excel."
    My VC version is 7.0
    Portal version NW 2004s.
    By refering the following link, i have implemented Export To Excell functionality in VC.
    2) Another one that's in the Visual Composer WIKI:
    https://wiki.sdn.sap.com/wiki/display/VC/Exportingdatafrom+VC
    By refering to 7th page in the document. It is explained to add the data source object from the 'info' port and add the field called 'RAPTNAME'to the DATA source object.
    But the RFC object which i added to the story board, i havent find any 'info' port in my added RFC. But still i have added the data store object and added field. then
    copied the following given formula in the document in respective formula window ,Formula showin as valid. when i click on check button.
    copied formula :
    "pcd!3aportal_content!2fcom.sap.pct!2fplatform_a
    dd_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.b
    ex?QUERY=" & STORE@REPTNAME &
    "&BI_COMMAND_1-
    BI_COMMAND_TYPE=EXPORT&BI_COMMAND
    1-EXPORTFORMAT=XLS&BI_COMMAND_1-
    null="
    i am able to run the application. After i run the application . once i click on the button 'ExportToExcel' i am getting the following error.
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Could not find portal application com.sap.ip.bi.service.generic.
    Exception id: 05:32_01/05/07_0001_18800950
    See the details for the exception ID in the log file
    Can u please tell me what is the problem
    Regards
    Vijay

  • How to compare user entered date with current date

    Hi all
    my requirement is, user allowed select one date, in code i have compare this date with current day date. it should be 15days gap other wise display error message.
    I am worried about how to get current date in code. Is there any code to get current date. please reply me with code or mail me at [email protected]
    Thanx
    keerthi

    Keerthi,
    Use the method <b>getDifference()</b> of the DateHelper.java available here.<a href="http://www.koders.com/java/fid14A61FEB1B45A64E42E1DCAD7070B46AE46340BA.aspx">DateHelper</a>
    1. Create a new folder, say Util under your src folder. (com.xyz.util)
    2. Put this DateHelper.java file in that folder,(com.xyz.util) .
    3. Now, write an import statement for this java class in the required view.
    4. Use the getDifference() method of this class to the difference in days between two days.
    Or
    Simply use this code.
    // Get msec from each, and subtract.
    long diff = currDate.getTime() - selectedDate.getTime();
    int noOfDays = diff / (1000 * 60 * 60 * 24);
    where currDate is today's Date and selectedDate is the Date selected by the User.
    Bala

  • XSLT: Validate if date is before date of current date

    Hi everyone,
    we need to check condition in XSLT transformation that if a date is before the current date or not.
    its easy to do this in java but not finding anything to do this in xslt.
    If anyone knows this please provide any pointer.
    TIA,

    to put above question clearly:
    For example if i have a date say
         targetDate = 2015-03-02T00:00:00.000
    now i need to verify if this targetDate is before current date or not.
    If(targetDate>beforeCurrentDate)
         targetDate = targetDate - 1 Month

  • Billing date as Current date.

    Hi All.
    when user prepare billing documents on Sunday, the system by default pick billing date of Monday for orders prepared or changed on Sunday.This leaded to mismatch of actual dispatch qty and dispatches
    Is it possible to keep billing date - current date as default data in transaction VF01.
    Reg,
    Amol

    Amol Tamhane wrote:>
    > when user prepare billing documents on Sunday, the system by default pick billing date of Monday for orders prepared or changed on Sunday.This leaded to mismatch of actual dispatch qty and dispatches
    > Is it possible to keep billing date - current date as default data in transaction VF01.
    Hi Amol,
    I think you may actually be wanting to change the "Selection Date" not the billing date.
    The selection date is available by selecting Shhift+F7 from VF01.
    You can then select documents which should be billed tomorrow/Monday.
    Best regards,
    Glynn

  • Odd Date for Current Date and Time

    I am modifying a column in a list to get current date and time using =TODAY()+NOW() in the calculated field and get a time that is behind by 1 hour but the date is 4 months 114 years ahead (2128). How can I fix this field?

    http://sharepointsolutions.com/sharepoint-help/blog/2011/04/how-to-add-and-subtract-hours-and-minutes-from-date-and-time-fields-in-sharepoint-lists/

  • Auto change Posting date to current date in Service Entry on approval day

    Hi Guru
    The scenario is:
    User is creating a Service Entry (SE) ML81n
    The Posting date X is taken automatically as today's / sys date in SE
    The SE goes for approval in Approver's inbox.
    Approver is taken to SE when presses approval button on X+1 date i.e. the next day.
    In SE the posting date is still the same as X
    Posting Date automatically change to X+1 in SE.
    (I found that this issue does not have link to workflow,  i ts only in ML81n we need to look in. or there may be other opinion)
    Pl help in understanding to get this change automatically done.
    Best Regards

    There are two date fields in the accept data tab.
    1> Document date: The date at which the service entry sheet was created
    2> Posting date: When the entry sheet is created but not approved then
    document date and posting date are the same.The document date is updated only when the entry sheet is approved.
    If there are multiple levels of approval, the posting date will reflect the date last approval and will be updated with the date of final approval when the sheet is finally approved.
    Hope this has helped you !
    Regards,
    Aviator

  • In f150  can we give  run  date   as    current  date

    we  are  sap4.0  
    while  running   f150   while doing schduling i am getting  the  error
    error  within fmjobclose occured (jobf150  20071112-nf3-s)
    can anyone give  suggestions how to run  f150

    check the Payment terms properly and give the date more than wt u given in the payment terms date and it's not complusion u have to give the current date.
    try, all the best
    Regards
    Divya

  • Pre-populate data and current date only when it routes to that person

    Hi,
    Can  any one please advise how to pre-populate the manager's name when it routes to the manager but not when the user fills the form.
    Example: user fills the form and submit it to the manager, the process has the query to look up for the manager to route it to him for approve/deny. How can I have the manager's name to pre-populate so he/she does not have to type their name and current date to approve/deny the form.
    Thanks in advance,
    Han Dao

    Paul,
    If I have the codes to execute the WS at the initialize event then it does populate the manager info when the user fills the form but when I try to move the code to the pre-submit event which try to execute WS when it route to the manager. I know I did not do it right but have no idea how to make it work.
    Is there a way to execute the WS when it routes to the next person rather than when the user fills the form?
    Thanks,
    Han

  • Replacing net due date with current date in invoice document

    Dear all,
    We  are having a functionality of replacing the net due date in the current date  with reference to the Posting area entry. in the invoice document .Can anybody tell me where and in which event we can maintain this .
    Susmita

    The obvious answer here is to have payment terms which are due immediately, and then set the transaction to use the posting date as the baseline date - that is done in the main/sub definitions within the TE305 customizing.
    regards,
    bill.

  • Set List datefield to future date and disable all date behind current date?

    Is it possible to set date to future date (atleast 2 week) and all prior  date should be grayed out . User will not able to select behind current. 
    Is it possible with OOB option. JQuery work around also fine.
    ItsMeSri SP 2013 Foundation
    ItsMeSri SP 2013 Foundation

    FutureDate - datatype will be Datetype as Calculated column formula 'Today+14'
    please 'Propose as answer' if it help you, also de-mark it if it didn't. Thank you!
    Also Place a validation rule as below which will restrict all previous date
    [FutureDate] > (Today()+14)
    User cant save that item if future date is not greater that today play another 14 days.
    Hope this will help !
    please 'Propose as answer' if it help you, also de-mark it if it didn't. Thank you!

Maybe you are looking for