Dynamic date variant

Hi Gurus,
I've a dynamic system date variant for my program, which runs in background. I have no issue with variant, it works fine. But when I went to job log to check the old jobs that has dynamic date variant, it always refer to current system date. Anybody can suggest me how to fix it to show the actual variant at the time of job run?
Regards, Raju.

The dynamic date overwrites the value that it was saved with at the time of processing.  What you see when you display it is the value at the time it was saved (the non-dynamic value).  There is no way to see the value at the time it was run.  At least not that I know.
You can however compute it if you know that the variant hasn't been changed since it was run.
Neal

Similar Messages

  • Dynamic Date Variant in SAP ver 3.1

    How to create a dynamic date variant in SAP ver 3.1 ?

    Hi,
    I guess that you know how manage dynamic dates in a variant. (Please, tell me if you need help about it)
    You can try with two DATUM type fields in the ABAP program. Fix the first one with a fixed date u201901.01.2009u2019 and the second one will be fixed with the dynamic date u2018Current Dateu2019
    Regards,
    OLA

  • Tricky dynamic date variant in ABAP query

    Hello All,
    In an abap query there is a date field in the selection screen with from & to values.
    I am trying to create a dynamic variant that will fill the following data into those fields:
    From date: will be left blank
    To date: will show today's date - 90 days
    For example, if today's date is 01/12/2006 the variant should fill the following data into the fields:
    From date: <blank>
    To date: 01/09/2006
    I have tried all the methods I know with dynamic dates calculation in the variant definition but did not manage to create such variant.
    Any help will be very appreciated and points would be rewarded generously !
    Thank you very much,
    Ronen

    If the "from" date is meant to be left blank (beginning of time) and the "to" date is some date plus or minus number of days from today, you use the "current +/- days" dynamic date calculation format as was mentioned earlier.  Likewise if the "from" date is some date plus or minus today's date, and the "to" date is infinity -- you only need the one Dynamic Date calculation.
    To do this, first don't think about this as a date range, think of your Dynamic Date calculation as if this were a single parameter and not a select-option.  You are really saying "my date is anything LT/LE this date" or "my date is anything GT/GE this date" -- not a range
    In the Save Variant screen, find the desired date select-option and:
    1. Choose in column "Selection Variable", a "D" (Dynamic date calculation)
    2. Use F4 in the "Name of Variable" column
    3. Find "Current date +/- ??? days" or "Current date +/- ??? work days" in the popup, as appropriate
    4. For "I/E" (include/exclude) column select as appropriate
    5. For "Option" column, choose "LE", "LT", "GE", "GT", "NE" as appropriate
    6. After clicking green check mark, enter your plus or minus days (and factory calendar if using work days).
    7. Finish saving your variant.
    8. You may not see your changes in your variant until you back all the way out of the variant and then redisplay it.  You'll see a greyed out date along with the symbol matching your choice (LT, LE, etc.)
    Unfortunately if you don't have infinity on either end of the date you are limited to 999 days differences as far as I am aware.  If that is the case you can populate TVARVC table with parameter or selection variables, maintain them with STVARV transaction by hand, or use an ABAP program in batch to regularly calculate the values.  Then you can reference the TVARVC values in your variant instead of the Dynamic Date calculation.
    If someone knows a way to bypass the use of TVARVC for date ranges that are more than 999 days apart please let me know.  TVARVC works well but it is extra effort whereas Dynamic Date calculation would be much easier to maintain if the date range could be made larger than 999 days.

  • Dynamic date variant in selection screen

    I have a selection option s_date in my program where I want to use the dyanmic variant with.
    it is a date range and for the lower range, I would like to have a static value of 04/01/2010 and for the higher range I want to have last date of the prev month.
    I see last date of the prev month in the drop down (F4) Dynamic table, but selecting that is overwriting the s-date-low instead of s_date-high. How can I use the dynamic variant for this ? Can i create my own custom drop downs for these dates?
    S_DATE      FROM  (_04/01/2010_)  TO (LAST DATE OF PREV MONTH)
    Thanks in advance..

    In variant you can specify dates dynamically.
    When you save a variant, system ask you enter variant name and Meaning. On the same screen you can specify these dynamic values.
    For the parameter/select-option where you want to specify dynamic value, press F4 on 'Selection Variable' column.
    Choose type of variable as 'D' (Dynamic date calculation).
    Press F4 on 'Name of Variable(Input only using F4) column and select 'Current date +/- ??? days' on next screen.
    On input screen enter -1.
    Repeat same for To Date' field.
    Prabhudas

  • Dynamic Date Variant for SAP Job

    Hi Guru
    We have a program to be ran in the Background .
    I am unable to create a Variant for Date ( Current year Jan 01st to  Current Date).
    Could you please advice how to create a Variant with Dynamic Date Calculation for above date range.
    Thanks in Advance.
    Thanks
    Ravi

    Hi,
    I guess that you know how manage dynamic dates in a variant. (Please, tell me if you need help about it)
    You can try with two DATUM type fields in the ABAP program. Fix the first one with a fixed date u201901.01.2009u2019 and the second one will be fixed with the dynamic date u2018Current Dateu2019
    Regards,
    OLA

  • Dynamic date in variant

    Hi,
    I need to create a dynamic date for my variant.
    Date will be the select option - The from date should be the current date and the to date should be current date + 30 days.
    When i am using the Selection variant and using the option D to calculate the current date+ 30 days. But that is getting stored in the from date but not in the to-date. My report will be running in back ground every day. So according to the requirment i need to have from date as current date and to-date as current date + 30 days.
    I cannot use the logic in initialization as the report will be running based on the variant saved.
    Thanks,
    Raju

    Hi Raj,
    I can think of one thing,
    just use parameters for start date and end date
    and then set the their values in the variant as follows,
    Press Save on the selection Screen and then put the name and short text then,
    in the very last box called "Selection screen objects 1000" check on the fourth check box "Selection variable" for both start date and end date.
    Then click on "selection Variable" Button on left hand top corner of the screen.
    Then click on the D: Dynamic date calculation the must turn Green.
    then click on the downward arrow that appears there you will have options to set the date.
    there choose current date for the start date and Current date +/- ??? days  for the end date.
    now while setting the end date it will ask you the number of days there you have to put 30(as it is your requirement) and SAVE.
    Then test it .
    otherwise you can go for this approach.
    Keep your date in select-options only and use the following option while selecting "Selection variables"
    "Current date - xxx,current date + yyy"
    Hope it helps you,
    Regards,
    Abhijit G. Borkar
    Edited by: Abhijit Borkar on Jan 7, 2010 7:31 AM

  • Fiscal Calendar in Report Variant Dynamic Date Calculation

    We are switching from the standard calendar to a 4/4/5 calendar for our fiscal calendar. We have a number of batch reports that use dynamic date calculation in the variant to get Month-To-Date or Previous Month date ranges. Is there a way to convert these variants to use the new FiScal calendar instead of the regular calendar?

    thanks to answer , praveen.
    I know, VARI has name of FM , but not has Calendar ID.

  • BMBC Dynamic Date selection Variant

    Hello Team,
    I want to create variant in BMBC -Batch Information Cockpit with Dynamic Date Selection. But it do not find the screen the to set-up variant attributes
    This is the field where I want to have dynamic date selection, 1st Day of the month to Last day of the month.
    Field name and program
    I am using SE80
    As you can see screen number 0100 is not showing up. and I have gone though all available screen but i could not find the field.
    Please advise if dynamic date selection for this field is possible at all or there is other way.
    Thanks

    I don't think that it is possible to have dynamic date selection here. The whole selection screen is just dynamic, it has only place holders and you define in customizing which field is on the selection screen.
    You actually save a selection variant via this extra big button for selection variants, which is quite different to the disc icon where you usually save your selection variants and where  you have the option to define dynamic date fields.

  • Dynamic date in the selection according to fiscal year variant

    Hi
    Is it possible to set dynamic date input parameter from the fiscal year variant sap table (OB29 transaction).
    For example when I run valuation (F.05) I want the value date input field to be the last day of the previous period.
    Thanks
    Ofer

    Hi,
    The dynamic dates on the selection parameters may come from the variant.
    You need to create the variants accordingly to your requirements and specify how the date on the selection screen has to be calculated.
    You have different options for this purpose.
    T     T: Table Variable from TVARVC
    D     D: Dynamic date calculation

  • Activating dynamic date calculation in variant

    Per the link below, I used to be able to activate "dynamic date calculation" in variant.
    <link to blocked site removed by moderator>
    Our system has been upgraded to 6.0 and now we do not the same variant attribues screen where I can activate the "D" variable.  It brings me to program/screen SA38/281. 
    Any suggestion how I may activate the "D" dynamic date calculation variable in a variant?
    Edited by: Thomas Zloch on Oct 14, 2011 11:34 AM

    Actually I meant the relevant code of your custom report, you just provided me with the info of the standard variant screen.
    You can go to SE38, enter your custom report name, display the code, and paste the definition of that parameter. (It would be something like
    PARAMETERS: P_DATEHG TYPE XXX_TYPE.
    What I am interested in is to know which data type is being used, since this functionaliy will only apply to date type fields. So, bottom line: this field must definitely be a date, which makes me think that either something has changed in the custom report or after the upgrade to ECC 6.0 this data type might have changed as well.
    Best regards.
    Edited by: Jose Maria Otero on Oct 14, 2011 5:26 PM

  • Dynamic Date calculation in Variants

    Dear SAP Guru's,
    I am creating variant for Planning Run by maintaining the . I n this, I want to select the horizon as from 1st day of next month and to date as last day of next month. But I am not finding the Last day os next Month in the F4 list.
    Please any one explain me the way of creating the "Last day of Next month".
    The available list is like below..
    Current Date
    Current date +/- ??? days
    current date +/- ??? work days
    First day of current month
    nth working day of current month
    First day of next month
    First day of previous month
    Last day of previous month
    Last Day of the Current Month
    How can I create, one more like 'Last day of Next month'?
    Regards,
    Sree

    In the dynamic date period selection options there is also an option for " (Beginning of mth-xx months, end of mth+yy months)"  You can double-click on this line and enter in a value for xx and yy.  If you enter "1" in for the yy value, then the end of the range should be the end of the next calendar month.

  • Variant with Dynamic Date Calculation

    I have a variant that includes a dynamic date calculation.  I'm using the Current day -1 date calculation. Does the dynamic date calcuation use the time zone of the system or the time zone designated on the user id for the calcuation?

    time zone of the system.. if you want to use the user time use Sy-timlo

  • Defining variant for report for job with dynamic date Gui 6.40 patch 21

    The system does not take over my choice for the dynamic date.
    I choose in the variant-attirubute-screen for a certain parameter: "type selection variable": D and then in the column "name of the variable" > I choose via F4: current date +/- days. OK and then I fill in 1 or 1- or whatever.  The system however does only react with the message "Upper date of the interval is > than upper date". It does not matteer what I choose.
    In the initialization I do not have any initialization of that parameter.
    I connot save the variant.

    Go through this link...
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802cfc454211d189710000e8322d00/frameset.htm
    In this page
    ABAP Workbench tools -->
                      VARIANTS  -->
                            VARIABLE VALUES IN VARIANTS.
    Hope this helps u a lot...
    reward if it helps u...
    sai ramesh.

  • Program to regenerate user variants for dynamic date selection!

    Hello all:
           We upgraded to ECC6.0 from 4.6C and there are some variants that user created in 4.6C in which they set dates like date = date - 1day something like that (basically dynamic date selection). These variants are not working in ECC6.0 unless the user clicks on the variant button and resaves it!! Does anyone know if there is any SAP program  that I can run that does this automatically? Rewards assured.
    Thanks.
    Mithun

    Thanks for the reply Rob. We already ran RSVARDOC_610! Is there any specific program just for the issue I am having?
    Thanks.
    Mithun

  • BEX to allow for the dynamic date on a variant as is the case with ABAP

    Hi All,
    I have doubt that where we are able to use dynamic date for BEX date variable?
    In normal ABAP program,We have option to get dynamic date for date field parameters.Like that can we have dynamic date for BEX date variable.
    Please let me know.
    Thanks in advance for your help,
    Bandana.
    Edited by: Bandana Baghel on Jul 3, 2009 10:44 AM

    Hi Bandana,
    When you say dynamic date, are you refering to the system date on which the BEx query run?
    If so, there are SAP Exit variable available which can be used to retrieve system date at run time.
    Try using 0DAT variable which will return the system date at run time.
    Regards
    Amit Roy

Maybe you are looking for

  • Standard IDOCS, Programs for posting FI & bank related data.

    Hi, (1)Are there any idocs available for posting FI documents, Vendor master? (2)Are there any outbound idocs, programs for sending data to banks. EG:positive pay etc? Kindly reply to these questions. Correct answer will be awarded points. Regards, A

  • Black Screen when trying to install Windows 7 via Bootcamp

    Have seen many similar questions with not one solid answer.  I have a brand new 17" MacBook Pro with the regular 750 gig grive and a 200 something gig ssd primary drive. Running the latest version of OS X of course. Updated all of my software and the

  • 3rd party plugins not working after archive and install

    hi, i have a few 3rd party plugins in my logic pro, such as all the native instruments, waves diamond, ik multimedia plugins, atmosphere and a few more, i was getting an error on my g5 when i tried to run diskwarrior from the disk. it was the kernal

  • Mac book pro 2009 having trouble detecting drive

    I just got this macbook pro and put a 320 wd hard drive in. Problem is it doesn't always detect the new drive when I boot up and if I go to unmount it to format it stopps detecting it. I am 90% sure it's the hard drive cable I just wanted advice befo

  • Need information about t-code SCAT

    Hi All,          I need information about t-code *SCAT.*          I dont know any thing about this transaction. I need information about how to use. What for we will use. Basis people how they can use this SCAT t-code.          Try to help me out in