Current date - x in variant

Hi,
I want to use program RHALEINI (tcode PFAL) with a variant.
In the field "Data selection period from" I want to have a value like current date - x.
In the Variant Attributes I select "D" for Selection variable (Dynamic date calculation) and as Variable name I select Current date +/- 30.
Then I get the message "Lower limit of interval is greater than upper limit"
Could somebody help?
Thanks and regards
Patrick

Hi,
at the moment I have selected "Current date" for "Name of Variable" of the field "Data selection period from".
If I try to select for example "First day of previous month" nothing happens.
If I select "Current date - 30" I still have the same error message mentioned above "Lower limit of interval is greater than upper limit".
But the lower limit should be less than before.
I would be very thankful if someone could explain this behaviour.
It works in ERP 5.0 but it's not working in ECC 6.0.
Regards
Patrick
Edited by: Patrick Koehnen on Aug 28, 2008 3:28 PM

Similar Messages

  • Dynamic current date variant with static date

    I have a report that I want to execute with a variant that defaults dynamically to today's current date, but I also want to select based on if that date field is initial too.  In one execution.  So select record if date is either today's date (dynamically calculated) or date is initial.
    Anyone know how I can do that?
    Thanks so much
    Cathy

    hi
    Did you try to force value in the variant in the multiple value with a value equal to space? So it will be like default date as today's date and fixed values as space.
    Force value in the sense we use fixed values in the selection screen.
    If this is not working then do coding in infoset
    Br
    Vijay V

  • Dynamic variant creation, Current date "-NNNN" *(4 digit number)*

    Hi,
    Is there any way of creating "-NNNN (4 digit number)" for dynamic date calculation in variant variables?
    I need to set 4 digit number in the "DLFL to Change Date (Old ver: To Change date)" field but system only allow total 4 digit including +/-.   I'll be using the "Current date +/- ??? days" option to set date dynamically.
    In order to set deletion flag for PM orders older than 6 years, I need "Current date -2190".
    Or is there other way to set it as MONTH when calculating the change date?
    I'm using PM order initial archiving job whose report name is RIARCORV.
    Thanks in advance,
    Alex
    Edited by: Alex Kwon on Jul 16, 2009 2:44 AM
    Edited by: Alex Kwon on Jul 16, 2009 2:45 AM

    Alex,
    I dont think its possible to do the same using the variant functionality. You will have to do some workaround to accomplish the same by either using other fields like Order number.You could also look at enhancing the code implicitly in the RIARCORV program, if you are in ECC6.0 or above versions.
    Regards
    Narasimhan

  • Dynamic Variant -Current date  in selection screen - for batch jobs

    Hi Experts,
    My report runs in batch job with a variant, daily.
    One of the filed in selction screen should hv CURRENT DATE, with out providing as input explicitly by user.
    So, How Can I get it done?
    Its some thing with Dynamic variants + Selection Variables +  date selection, but, I forgot the navigation etc.
    pl. let me know
    thanq

    thanq.
    and pls. let me further clarify that,
    programitically am populating the date as current date minus 1 in the field of my_date in the selection screen.
    now, they wanna to run the report in back ground, daily.
    now, I followed ur tip/link and saved with_date_variant, fine.
    so, pls. let me know that,
    1) if the report runs in back ground tomorrow with with_date_variant(which is i created by seeing ur link), Is the selection screen my_date(prog. populates as June 5th) will be override with current date(i.e. June 6th)?
    In broad, Is the selection criteria wuld be over writes with the Dynamic varints?
    thanq

  • Variant must get the current date from the system.

    Hi All,
    I really appreciate your help on below please;
    I need to create a variant and schedule a report program once a day.
    But variant must get the current date from the system (sy-datum).
    The program should run for the values in the variant in schedule job run;
    Can I do this using SAP variants (for Report Program) and schedule the job.
    Many thanks
    Iver

    Standard functionality.
    http://help.sap.com/saphelp_nw70/helpdata/en/c0/98039be58611d194cc00a0c94260a5/frameset.htm
    Thomas

  • Create Variant for dynamic population of current date

    hi,
      How do i create a variant for a DATE to populate the current date in the selection screen?
       Please let me know
    Thanks in advance.

    Hi,
    Go to SE38..
    Press F8..
    Press save button..
    Give the variant name..and description..
    For the corresponding date column Check the check box under the column "L" which says selection variable..
    Press the selection variable button in the application toolbar..
    Click the hotspot Under the column D..Now it will be green..
    Press the drop down ...Choose the current date...
    Save the data and save the variant..
    Now if you choose that variant...The date will automatically be set to the current date.
    THanks
    Naren

  • Option to show values up to last closed fiscal period or up to current date

    Hello,
    How would I create a query that would ask if I want it to calculate values 'up to the current date' or for the 'latest closed fiscal period'.
    Currently I have setup a report, within which, has restricted key figures that will give the 'Period to date', 'Year to Date', and 'Last Year Year to Date' values for some RKFs, however, it would be very helpful if this report could be setup so that the user could choose whether the report provides:
    1. Values only through the last closed fiscal period
    or
    2. Values up to the current date.
    <b>For example</b> if we are in period 7 of 2006, the user could have the report show all values up to the last closed fiscal period, which in this case would be period 6 of 2006.
    Or the user could have the report show all the values up to the current date.
    Hopefully I have been clear,
    Thanks,
    Nick
    Message was edited by:
            Nick Bertz

    Nick,
        What is the problem you are facing? As San mentioned you can only report till Last Fiscal Period using Customer Exit Variables(Calculate Current Fiscal Period using Current Month and Fiscal Year Variant).
    Or as you mentioned you can create restricted Key Figures using Date or month (YTD etc)
    If i miss your requirement, please guide me.
    Regards,
    Nagesh Ganisetti.
    *Assign Points if it helps.

  • Dynamic creation of date in selection variant

    Hi All,
    I have a Z program for updating a field in BOM item. One of the input field in the report is "Valid From Date". Actually the current date is automatically fetched through a function module and it is defaulted in that field. 
    Our client is using selection variant for ease of use. The problem here is old date in the selection variant  is replacing the current date. I want current date to be created automatically during insertion of variant also. How can i solve this problem. Is there any selection variable inside the variant for dynamic creation of Date?
    Thanks
    Sankar

    As I know there is no setting for this. For any std or Z report variant function with L should act same way...anyway you discuss with your ADABer.
    See the help for variables
    Selection Variables                                                                               
    The following three types of selection variables are currently          
        supported:                                                                               
    o   Table variables from TVARV                                          
            You should use these variables if you want to store static          
            information. TVARV variables are proposed by default.                                                                               
    o   Dynamic date calculations:                                          
            To use these variables, the corresponding selection field must have 
            type 'D' (date). If the system has to convert from type T to type D 
            when you select the selection variables, the VARIABLE NAME field is 
            no longer ready for input. Instead, you can only set values using   
            the input help.                                                     
            The system currently supports the following dynamic date            
            calculations:                                                       
            Today's date                                                        
           From beginning of the month to today                               
           Today's date +/- x days                                            
           First quarter ????                                                 
           Second quarter ????                                                
           Third quarter ????                                                 
           Fourth quarter ????                                                
           Today's date - xxx, today's date + yyy                             
           Previous month                                                                               
    o   User-specific variables                                            
           Prerequisite: The selection field must have been defined in the    
           program using the MEMORY ID pid addition. User-specific values,    
           which can be created either from the selection screen or from the  
           user maintenance transaction, are placed in the corresponding      
           selection fields when the user runs the program.                                                                               
    The SELECTION OPTIONS button is only supported for date variables that 
       fill select-options fields with single values.                         
    i.e means we can do that with D also.

  • How to get list of orders for current date.

    Hi,
    My requirement is to get list of orders for the date on which order was created such that I don't have to change the date in my application.
    Every time I run my application it should generate orders created on that current date without manually giving current date.
    This has to be done directly using BAPI and without creating a RFC. 
    I tried with bapi " BAPI_ALM_ORDERHEAD_GET_LIST " using parameter OPTIONS_FOR_START_DATE  but there I can't enter sy-datum and hence, every time I hence to change the date.
    Please tell me if there is any possible way to get fulfil above requirement.
    Thanks.
    Shilpi Agarwal.

    Hi Shilpi,
    This looks simple to me.
    Just create a variant in IW38 with U_your UserId as shown in the picture (Dynamic date selection for Created On set to Current Date)
    The status settings obviously would be
    Jogeswara Rao K

  • Dynamic date selection in variants

    Dear Experts ,
    I require to make the dynamic selection for a date range in a particular report as under :
    From Date : Current date - 90 days
    To date : Current date - 60  days
    How can i achieve this in the variant ?
    Regards
    Anis

    this is an example on making a date field dynamic for transaction MICN, it is the same way for other transactions
    Create a variant by saving your selection.
    after clicking the save button, you are in the screen fro variant attributes.
    enter variant name and desciption
    Find the fields GIDAT and GBDAT.
    If you plan to run it e.g. every monday. then the monday will be your start date GIDAT and the next Sunday your to-date GBDAT.
    select GIDAT and find the column for selection variable, press F4 in that field and select D for dynamic selection.
    Then find field name of variable, press F4 and select current date.
    select GBDAT and find the column for selection variable, press F4 in that field and select D for dynamic selection.
    Then find field name of variable, press F4 and select current date +x days. then enter 7 in the pop-up.

  • Javascript code to add current date and time in a textfield on click of a button

    Hi,
    I have done a lot of googling .....But could not found a viable solution to populate a text field in LC Designer ES 8.2 and above at runtime with the current date/time. on click of a button. I need Javascript code and not formcalc.
    Please help .
    Thanks
    Kapil

    I have found a solution for you - 3 variants for you:
    Textfeld1.rawValue = util.printd("dd.mm.yyyy HH:MM", new Date());
    Textfeld2.rawValue = util.printd("dddd d. mmmm yyyy HH:MM ", new Date());
    Textfeld3.rawValue = util.printd("date{EEEE, D. MMMM YYYY} time(de){HH:MM:SS Z}", new Date(), true);
    I hope this is helpfull,
    Mandy

  • Dynamic Date Calculation for Current Date - 1

    I am trying to create a variant with a dynamic date calculation attribute.
    I am following the instructions as they are posted to the web but I get an error message.
    I want to get all data EQ to the current date -1
    In the object for selection screen I enter a D for Selection Variable, for Name of Variable I enter an I to include specific values and the option EQ for current date +/- ??? days.  Then I enter 1- for the number of days.  I have tried to enter this many times and in many ways but it doesn't work.  I keep getting this message "lower limit of interval is greater than upper limit"

    Hi,
    Welcome to SDN.
    Selection-screen has four values -
    SIGN
    OPTION
    LOW
    HIGH
    Pass your date value in the option low for the screen.
    Sign you have already pass as I and option as EQ.
    Regard,
    Amit
    Reward all helpful replies.
    Can you paste your code here.
    Message was edited by:
            Amit Khare

  • Problem with current date field...

    I want to display the current date and time, but when I change the data format in the binding tab to "Date and Time" and assign a pattern that includes date and time, all I get is the current date, NOT the time. TIA!

    I have tried applying these scripts in the initialize event to all manner of objects, text field objects, date/time objects, numeric objects, current date objects, and it shows nothing. If I could just edit the date/time format of the current date object when it is set to "Runtime Property-Current Date/Time" I MIGHT be able to use it. I really appreciate your help thus far. Would it be possible for you to share a pdf file that you've made where this works so I might disect it? No matter what pattern I specify in the "Field" palette, it shows it's own formatting.
    UPDATE: I did go back after trying it a few times to change the value after Page1 to match the name of my field.
    UPDATE 2: Here is a link to what I've done. Take a look and let me know what I'm doing wrong, or change it and share it back. Thanks so much for your help!!!
    https://www.dropbox.com/s/1so2hcao372k37z/Script%20Examples.pdf
    Vipin Bhargava wrote:
    I have found 3 more variants. You can write below code on initialize event. It will automatically display the current data & time during the preview
    1.   xfa.form.form1.Page1.TextField1.rawValue
    = util.printd("dd.mm.yyyy HH:MM", new Date()); 
    2.  xfa.form.form1.Page1.TextField2.rawValue = util.printd("dddd d. mmmm yyyy HH:MM ", new Date());
    3.  xfa.form.form1.Page1.TextField3.rawValue = util.printd("date{EEEE, D. MMMM YYYY} time(de){HH:MM:SS Z}", new Date(), true);
    Hope this helps,
    Vipin

  • Broadcast E-mail, online link to current data- Issue

    Hi team,
    i have set up the above mention settings in my IB settings, i am receiving the email,
    however i am receiving a very very long link in the email as shown below,
    "http://bomw064a.in002.siemens.net:8110/sap/bw/BEx?CMD=LDOC&DATA_PROVIDER_ID=D5UDW7VW2RZ1ZR6Z96FBTOY8X&VAR_NAME_1=0SCRMPRO&VAR_NAME_2=0SCRMPRO&VAR_NAME_3=0S_BUSP&VAR_NAME_4=0S_SSCC&VAR_NAME_5=0S_DOC_I&VAR_NAME_6=0S_DOCTY&VAR_NAME_7=0S_EPCNO&VAR_NAME_8=0S_USRID&VAR_NAME_9=0S_DVC_I&VAR_NAME_10=0S_DVCTY&VAR_NAME_11=0S_DVG_I&VAR_NAME_12=0S_DVGTY&VAR_NAME_13=0S_DEV_I&VAR_NAME_14=0S_LOC_I&VAR_NAME_15=0S_LOCTY&VAR_NAME_16=0S_GTIN&VAR_NAME_17=OS_PLO_I&VAR_NAME_18=OS_PLOTY&VAR_NAME_19=0S_EXDAY&VAR_NAME_20=0S_EXTIM&VAR_OPERATOR_1=EQ&VAR_OPERATOR_2=EQ&VAR_SIGN_1=I&VAR_SIGN_2=I&VAR_VALUE_LOW_EXT_1=AII_MATERIAL1&VAR_VALUE_LOW_EXT_2=AQUA002"
    is there any way by which this link could be shortened???
    kindy assist,
    Regards
    blusky

    Hi,
    Checkout this
    http://help.sap.com/saphelp_nw70/helpdata/EN/a5/359840dfa5a160e10000000a1550b0/frameset.htm
    Variable Assignment
    Ignore: When creating an online link, you can make a setting on the Link Creation tab page to define that the values for input-ready variables are not set. When the recipient opens the online link, the variable screen can appear, allowing the recipient to enter the required variable values. This is the case, for example, if the variable has the setting Mandatory, Initial Value not Allowed.
    Variable Assignment: You can create values for the BI objectu2019s input-ready variables (Query, Query View, Report, or Web Application). The BI object is precalculated using these variable values. These variable values are set whenever an online link is opened.
    Take from Variant: You can select from a variant for the BI object (Query, Query View, Report, or Web Application). The BI object is precalculated with the values of the variant. These variable values are set in accordance with the variant whenever an online link is opened.
    Variables can also be assigned from variants for workbooks. For more information about the settings on the Workbook Precalculation tab page, see Precalculating and Distributing Workbooks.
    If you have selected Online Link to Current Data as the output format, the variable assignment is appended to the URL. When the recipient opens the online link, the BI object is started with these variable values.
    When you precalculate a file, you can specify one or more variable assignments on the General Precalculation tab page. When you generate online links, you can assign only one variable.
    Regards,
    Senthil

  • NWP1 Current date

    Hi experts,
    Basis has recently change the time in the system to terminate daylight savings, after that, the date in transaction NWP1 that is setting in variant attributes as current date, instead of current day the system shows the date of a day before from 00:00 to 01:00 showing incorrect list of patients, after this time, the date is corrected.
    Sounds like a program error, or is there some extra configuration to make for this transacction in order to take the correct current date?
    The date in other transactions is ok, for example NR16.  ISH 6.0 Level 0018
    Thanks in advance.

    I found the answer to my issue. The initialization block used the following string:
    select JULIAN_DAY_NUM, YEAR_AGO_DT , ROW_WID
    from VALUEOF(OLAPTBO).W_DAY_D WHERE to_date(DAY_DT)=to_date(SYSDATE - VALUEOF(TIME_OFFSET))
    Apparently I did not define the OLAPTBO variable so it was not updating correctly. After I defined this variable, my current dates are now correct.

Maybe you are looking for

  • I can no longer type after typing a URL and autocomplete not finding a matching URL. How to fix that?

    After I open Firefox I start typing the URL. After each letter I see autocomplete suggestions. Imagine I type "g", then "o" (google is shown as autocomplete), but then I enter "a". Since I have no pages that begin with "goa", autocomplete is hidden a

  • About KES1 error

    Hi Friends,       I am getting one error in ABAP application program related to Controlling module error coming is as follows The current ABAP program "SAPLSVIM" had to be terminated because it has  come across a statement that unfortunately cannot b

  • InDesign Server crashes on PDF export

    I've narrowed the problem down to the PDF presets we have defined. We have two PDF Presets that we use with our InDesign Server, one for low quality and one for high quality. When exporting a document using our high quality preset, IDS will sometimes

  • WRT160NL - Connection drops, Reboots, USB performance

    WRT160NL - Connection drops, Reboots, USB performance  After reading many posts dating back several months regarding internittent connectivty drops, usb performance issues and users having to reboot there routers frequently with the WRT160NL, I was f

  • Re: Precompiling JSP with admin/managed servers

    Thanks, but I'm not doing any copying.           The admin/managed-server communication copies things to the managed server,           which then always recompiles the pages when hit.           -Greg           Check out my WebLogic 6.1 Workbook for O