Dynamic variant real execution value

Hi, Experts!
I would like to know if there is any parameter that fixes the values attributed to a dynamic variant during the execution of a job.
Just to make it clearer, I´ll explain the real situation we face here: We have a job XXX that uses a variant YYY.  In this variant there´s a period of dates that is calculated dynamicaly (current date - 5 and current date + 2).  The problem is that when I look at SM37 in a given day, the values I see there are calculated based on the current date, not the date the job ran the last time.
Thanks in advance!
Aylton

Hello
As far i know, in dynamic variant config, it will always show the current date when you try to view the old dated job tooo.
The reason is that the variant will get updated with the latest job run.
Hope it hepls....reward points.

Similar Messages

  • Variable values of  dynamic variants

    Hello all,
    For dynamic variants we use variable like  RV_ACTUAL_PERIOD ,  RV_ACTUAL_YEAR etc .  They all are part of TVARVC table .
    But how we set values for these variables ?
    Is there any SAP Program which updates their value periodically , some Macro or what , I am really confused .
    Please help me out .
    Thanks.

    Go to SE11 and do a where-used on table TVARVC. This will list all the programs that update TVARVC. If you don't find a program for the variables you are interested in, then you'll need to write one.
    matt

  • Variants, Dynamic Value, Dynamic Variants

    How do I create a dynamic variant in ECC 6.0. I'm aware of the steps in 3.X and 4.X environments. Any help will be highly appriciated. Thanks in advance.

    Please find below procedure to define the dynamic variant in ECC6.0
    Step 1:  Go to SE38, Enter the program u2013 RBDAPP01 (Program to process inbound IDocs) and click on execute button.
    Step2: Enter message type u201CMATMASu201D and Click on the save button
    Step 3: To create dynamic value for Created on field, Click on Selection variable for u201CCreated Onu2019 Filed
    The F4 for the selection variable shows the following options.
    T u2013 Table Variable for TVARVC
    D u2013 Dynamic data calculation.
    Select D u2013 Dynamic data calculation.
    Step 4 : Click on u201CName of the Variable (Input only Using F4) column row for the u201CCreated onu201D field.
    F4 option for the u201CName of Variable u201Cprompts to select I/E, Option & Variable Name.
    Choose the variable name as u201CCurrent data u2013xxx,Current data + YYYu201D and click on ok button.
    Following screen prompts to enter the value. Enter u201C7u201D for the u201Ca values for xxxu201D and 0 for u201Ca value for yyyu201D. As shown in below screen.
    Save the variant.
    Go back to report selection screen and select variant name as created above.

  • Dynamic variant create for select option High value

    Hi ,
    I would like to set a dynamic variant for Date filed in selection screen as lower limit as 01/01/2009 and Last day of previous month as hiher limit. For examplae: Lower limit = 01/01/2009 and higher limit as 02/28/2011.
    Please help me in creating dynamic variant as mentiond above.
    Thanks & Regards,
    Venkat N.

    Hi,
    Thank you for your reply and could you please provide if you have any code.
    Thanks & Regards,
    Venkat N.

  • Using dynamic variants in ABAP

    Hi,
    I have an issue. I want to use dynamic variants in my program. On the selection screen of my program, I have a parameter called Planning date which takes in the current week of the year as input value, i.e lets say today we are Monday 14th of May 2007, so the current week is 20. I want to make this parameter dynamic, i.e to change automatically so that next week the value is week 21.
    Also is setting dynamic variants version dependent? My version is 5.0 SR1 and I don't have the option of save my variant using the 'D' traffic signal.
    Please help me out.
    Thanks

    Hi,
    you can fill your parameter in the initialization event of your report. In order to get the week you can use the function DATE_GET_WEEK.
    Kostas

  • Dynamic Variant for Background Programs

    Hi,
    On a Std program, I have two parameter Settlement Period and Settlement Year.
    I want to run this std program in the background with VAriant.
    The values in these variable should change automatically for every new period/fiscal year.
    I tried to user Selection variable. But no success. May be I am doing something wrong.
    Can anyone suggest any solution??
    - Harshad

    Hi Harshad,
    Once u enter the values you require on the selection screen and click on the SAVE button to save a variant, the Variant attributes screen comes up where you can provide a variant name and description.
    On this screen there is a column called "Save field wthout values". If you check this option then the values to which the selection screen variables are defaulted will change dynamically.
    So basically you have to default the selection screen new period/fiscal year in your program to the present values using a function module which im sure your using(if you need it ask me). Once you default them while saving the variant check the "Save field without values" check box against those fields.
    Hope this helps you. Please award points if it does.
    Regards,
    Ganesh
    Message was edited by:
            Ganesh Chilakapati

  • How to set a dynamic variant for date in select-options in the upper field

    Hi  Variant experts Good Evening!
           I have the following problem while setting up a dynamic varinat .
    Ex: select-options: dat for sy-datum.  
    I am able to save the lower limit as a dynamic value but not able to save the upper values as dynamic in the select-options. Could any of you please help me in this.
    Regards
    Ravi.

    i hope dynamic variant concept is not there,
    but u can use the fn module DYPRO_GET_VALUES  and
    DYNPRO_SET_VALUES
    DYNPRO_GET_VALUES gets the values in the screen,
    DYNPRO_SET VALUES sets the values.
    first get the values, compare and set the values as u want

  • Dynamic variant calling multiple screens

    Hi all,
    The concerned issue is that i am trying to execute a report( which on execution throws a selection screen) from a program using 'submit' statement passing a variant. along with it iam creating a dynamic varinat using FM RS_CREATE_VARIANT, the variant is being made, but on execution , the program throws an error meassage " invalid variant called'.
    This is because the varinat is calling multiple screens , although only one screen number is passed in teh FM,( screen no 0170).
    Please tell me the possible solution fr this .
    Cheers,
    Thanks in advance.

    Hi,
    first try to pass only the static variant with the submit statement and c whether its working properly.
    and than check for dynamic variant..
    c the difference and let me know what happens ??
    thanks
    ravi aswani

  • Dynamic variant calling multiple selection screens

    Hi all,
    The concerned issue is that i am trying to execute a report( which on execution throws a selection screen) from a program using 'submit' statement passing a variant. along with it iam creating a dynamic varinat using FM RS_CREATE_VARIANT, the variant is being made, but on execution , the program throws an error meassage " invalid variant called'.
    This is because the varinat is calling multiple  screens , although only one screen number is passed in teh FM,( screen no 0170).
    Please tell me the possible solution fr this .
    Cheers,
    Thanks in advance.

    Hi,
    first try to pass only the static variant with the submit statement and c whether its working properly.
    and than check for dynamic variant..
    c the difference and let me know what happens ??
    thanks
    ravi aswani

  • Dynamic variant date range

    Hi experts,
    i need to create dynamic variant for date range (so_date-low, so_date-high): sy-datum-1.
    that will bring the data in the report for yesterday.
    How can i do this?
    i know how can i make variant for so_date-low
    i dont know how can i do that on so_date-high.
    thanks,
    Michal.

    1. Execute the report and you will get your selection screen then press save
    2. system will take u to variant screen , select the line of your date select-options field from the list and scroll right
    3. double clik on "selection variable " column and select "D"
    4. double clik on "Name of variable" last column and select "Current date - xxx,current date + yyy" system will provide you popup with "Enter a value xxx" and "Enter a value for yyy" and enter value 1 in xxx and 0 in yyy
    and save the variant . now your S_DATE_LOW will be system date - 1 ie yesterdays date

  • Dynamic variant

    hi all,
      i created a report and that report has to be execute in back ground daily with variant,but my report contains some date field, so i need to change the date value in that varient,how can i do it.How can i create dynamic variant,could you please help me.
    regards,
    Bujji.

    Hi Murali,
    You can do this in the variant itself.
    Please follow these steps
    1. Enter the values in the selection screen
    2. Save the variant using the SAVE button
    3. In the next screen for the date variable select the 'Selection variable' checkbox (L) and click on the button 'Selection variable' in the toolbar.
    4. Now you will see this variable in the next screen with 3 types of buttons. Click on the middle button (ie. D - Dynamic date calculation).
    5. Click on the down arrow button and select the option 'Current Date'.
    6. Save the variant.
    Kindly assign points if this is helpful.
    Cheers
    Vinod
    Message was edited by: Vinod C

  • Dynamic Variant for Date filed

    Hi All,
    I need to create a dynamic variant for date fields for standard report.
    in date Low field...value will be harcoded as '01.01.2011' and S_Date-high date field should be current date - 1.
    I dnt want to go for code in report to handle this.
    I tried with many option but could not able to see up the dates like as above.
    Kindly help.
    Piyush

    Hi,
    try this code
    data prevday like sy-datum.
    SELECT-OPTIONS s_date for sy-datum DEFAULT '20110101'   .", sy-datum-1.
    INITIALIZATION.
    AT SELECTION-SCREEN OUTPUT.
    *  S_DATE-HIGH = PREVDAY.
      prevday = sy-datum.
    s_date-high = prevday.
    modify s_date index 1.
    Hope the help
    Edited by: j.ortiz on Jan 27, 2011 3:01 PM

  • Dynamic Variant for Report

    Hi,
    How to put current date in report output through variants.
    I should not use events, when user selects variants then i should place the current date in my selection-screen.
    help full information will be appreciated.

    Hi Rams,
    U have to create a dynamic variant for this.
    Fallow these steps.
    1. Fill all the selection screen values including date(Current date).
    2. Save it as variant(ctrl+S), give variant name and description.
    3. In the same screen u can see some check boxes corrosponding to each selection screen parameter.
    Now for the date field select the check box under
    L Selection variable and then press the push button selection variables in the tool bar.
    4. Now u will get the date range in the next screen.
    5. Here press the yellow light under D, it will become green colour.
    5. Next press drop down(Small arrow pointing down at the end of date)
    6. Now u will get a list of options for calculations.
    7. Here select current date.
    8. Now save the variant.
    This completes setting up of dynamic variant.
    Now when ever u select this variant it will populate the selection screen with current date and remaining fields with the data u save while creating the variant.
    Hope this will solve ur problem.
    Thanks,
    Vinod.

  • BEx Broadcasting through e-mail, using dynamic variant

    Dear SAP Gurus,
    I'm new to SAP-BI, I came across the following situation:
    I've a query based on which the reports are being generated.
    My client wants to broadcast it every month, as they don't have any portal, so it has to be done through e-mail.
    the query has 3 system variable which are FISCALYEAR and CALDAY, i dont remember 3rd.
    So, I've to create DYNAMIC VARIANT, I tried the following procedure but its not working.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9075b11a-6e43-2c10-b7be-cfa0e97ec0cc?QuickLink=index&overridelayout=true
    please help me.

    Hi shivsam  ,
    1. What you need is dynamic filling the variant value.
    2. In transaction SE38 enter the variant name
    3.choose the attributes  button.
    4. Here you can set the field to u201Cselection variable.u201D
    5.Then you can define something like  SY-DATUM(4)  for fiscal year and in the same way for calday SY-DATUM+6(2) .
    Hope this will help .
    Regards,
    Jaya Tiwari

  • Dynamic variants for a background job

    Hi,
    I need to set up a background job for a dynamic variant. To elaborate my selection screen has date ranges which need to change dynamically , if the job is secheduled on weekly basis the selection date range should change automatically in the variant. I got to know that the same is possible through the table TVARV. Can I know about the method of setting up the same?
    Thanks,
    Shailaja

    You can set a dynamic date to today date or some other date without using the table TVARV.
    To set the dynamic date:
    Save variant on the selection screen.
    In the vairant screen, press F4 against your field in the column "Selection Variable"
    Select D here.
    In the column Name of the variable, press F4 to have the list of the possible rules.
    Here you can select "Current date - xxx,current date + yyy" if you want to have certain period.
    When you select this system will pop up to put the values for XXX and YYY.
    Say for last 7 days, you can set the values XXX as 7 and YYY as0.
    But the best way is to change the program, if possible, and fill the select option in the intialization event.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • Level based measure and AGO function

    Hi, I've a TIME fact table with a single dimension (TIME_DIM) and a single measure (WORK_DAY). WORK_DAY is 1 if the day is a working day, otherwise it is 0. This way I can get the number of working days by month, quarter and year. (TIME is a logical

  • Auto-login then Fast User Switch out?

    I've got a few programs (e.g. Chronosync) that need to launch as a user upon login. I need these to launch at boot time. Of course, I could auto-login to this account, but that would leave the machine sitting there with an admin account logged in (so

  • GRC App Names

    So from my understanding... Risk Analysis and Remediation = Compliance Calibrator Compliant User Provisioning = Access Enforcer Enterprise Role Management = Role Expert Superuser Privileged Management = Firefighter This might be a silly question but

  • Newbie to Java

    I'm writting a program for school and I know the answer is simple(I hope) I just can't see it. I'm using TextPad and I've been able to debug my programs with no problem - until now. Here's the error I get: unexpected type required : variable found :

  • Error in Initial Load of Products from ECC to CRM

    Hi ,     Im getting below errors In initial load of MATERIAL from ECC to CRM. <b>Data cannot be maintained for set type COMM_PR_MAT Data cannot be maintained for set type COMM_PR_UNIT Data cannot be maintained for set type COMM_PR_SHTEXT</b> <b>My An