Enable "dynamic date calculation" variable type
When saving reporting date/period in a report variant, we may use "dynamic date calculation" to specific date as selection parameter. But the "Dynamic date calculation" is not visible in some ABAP reports - only "Table Variable from TVARVC" type is available for selection.
For those reports that are missing that variable type, how can we enable the "Dynamic date calculation" variable type to be visible?
Hi Paco:
Yes, they are z-reports, both have the same almost everything, created by the same ABAPer, for the same application SD, just grouping the data differently.
It seems a screen (#100?) is missing, In the old version, it's screen 100 where to activate the "D" and "B" variable types. Now it goes to screen 281.
Stacy
Similar Messages
-
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 AMActually 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 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 -
How to use Dynamic date calculation in some transactions.
Hello everyone.
I have to create some dynamic variants using the dynamic date calculation. The problem is that in some transactions it´s not possible to use some variables that can round a value. For example: in transaction /SAPAPO/MC90, I need to fix 3 months in the horizon like this: From date: 01.01.2009 To date 31.03.2009. The current month is 01.01.2009. Next month the current month will be february, so the horizon would be 01.02.2009 to 30.04.2009.
In 5.1 version, it´s impossible to fix the months, because the options that appear in the match code are:
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
Does anybody knows how to do this? This is happening in other transactions to.
Thanks a lot
Regards
AngelaI am not sure where you are looking for..but here is what I can do it in MC90 Tcode:
1. when you try to save the variant, in the variant screen check the two boxes under "Current date" field for Selection Variables attributes "L"
2. Then click on Selection variables option and click on the "D" variable so that it turns to green
3. Drop down in the first current date field, select "Current +/- ??? days. here if you want to start from today's date maintain 0 days
4. In the second Current date field maintain 90 days in "Current +/- ??? days.
5. save it
please let me know if I misunderstod the issue -
D: Dynamic date calculation
Hello,
In BEx, when creating a variant, is it possible to use "Selection variable = D: Dynamic date calculation"?
I have created a variable for 0calmonth and in the Variant Attributes screen, Selection variable field, the only option is T: Table Variable from TVARVC.
BW version 3.5
Thanks for any information you can provide.
MarkHi,
have a look at the below link.. ( they have mentioned the steps of customer exit variable fassigning for reporting agent)
https://websmp110.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700003598422003E
Regards,
Siva. -
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. -
Hi all,
Currently, i need to run a background PO report daily. As i only want today's PO data everytime the background job runs, i set the PO date dynamically using dynamic date calculation choosing current date, save it as a variant then schedule daily run.
Howerver, for the next run day, the report was ok but subsequent running, the report is not the current date data.
Any idea where i have miss out?
Kindly assist and advise, points will be rewarded.
Regards,
EricHi,
Thanks for your prompt reply.
I am looking for ways to create a variant with changing date for daily run so that i do not have to daily modify the date.
Regards,
eric -
Hi all
In Variants we can give dynamic date calculator to calculate date as we required. Does there is a option to add more selection option (ie if I have to add a selection last day of next month). Where I can do this
Please comment
With Regards
Aruncheck the LSVAVF01 program for enchancement. or dynamic date selection you can select " nth working day of current month " with calender option to select the last date of 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
-
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,
SreeIn 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.
-
Input data to variable type char
Hello,
i would like to know how to input data to Char
import java.util.Scanner;
Scanner sc = new Scanner(System.in);
x = sc.nextInt();
but, its not working on CharYou can also use
char c = sc.next("\\p{Alpha}").charAt(0);This accepts a single character, a-z or A-Z, and throws InputMismatchException for any other input.
If you want to change what is acceptable input, select the desired category from those listed in the Pattern class - or create your own.
Your use of "Char" leaves it unclear as to whether you meant the Character class, or the primitive char. I assumed the latter. -
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 -
I'm on ECC6.0, and looking to set up a dynamic date range in a variant.
The date range is a select-option on my selection screen.
I can easily setup the dynamic date for the 'low' value in the range,
but I can see no way to also declare a dynamic date in the 'high' value.
I also looked in TVARV maintenance and it doesn't seem possible there
either, as there's no way to declare variable values.
If I can't resolve this, I will have to change my program to include a
default high date and use that.
But even that may not work if we call the variant, which may overwrite
my default in the high value of the range with a blank value.
Does anyone know how to do this?
Thanks in advance for your help.Hi Jagan,
If you save the variant you can choose some options for the select-option. If you choose selection variabel type D (dynamic date calculation) you can choose out of several Names of Variables that provide for a LOW and HIGH value.
If you use type T, you can choose a variable that is stored in tabel TVARVC. You can add your own variable to table TVARVC using SE16.
Regards........
Chaitanya. -
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,
RonenIf 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 selection inactive
Hi,
I am not able to give dynamic date selection in a variant. (D: Dynamic date calculation).The traffic light is displayed in red and there is no options such as
current date etc. is there any need to do some settings to get these options.Hi,
have a look at the below link.. ( they have mentioned the steps of customer exit variable fassigning for reporting agent)
https://websmp110.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700003598422003E
Regards,
Siva.
Maybe you are looking for
-
WLS 6.1 The transaction is no longer active...
Hello guys, I have a litle problem. We have an application deployed on WLS 5.1. It is working perfect for more than an year now. We recently migrated to WLS 6.1, which went pretty painlessly. The only problem I figured out is a transaction timeout on
-
Using "Find my iPhone" I mistakenly touched either Erase or Lock! What now???
My friend seems to have Locked or Erased his iMac! When first started it asked for his PIN, but the iMac wouldn't respond to it. ('m now learning that the PIN that he used is the PIN to unlock his iPhone, as it didn't ask him to create a PIN.) Now wh
-
Strange bahavior seen in adf checkbox.
Hi! I am setting the disabled property of a checkbox by calling a method on a managed bean in this way: <af:selectBooleanCheckbox text="selectBooleanCheckbox 1" label="Label 1" binding="#{backing_TestingCheckbox.sbc1}" id="sbc1" disabled="#{sampleMB.
-
How to pass an internal table to "submit job"
Dear Expert, I use open_job & close_job to submit a background job. A text file is to be uploaded from local drive. Since we cant perform upload during the background, I will have to upload the file from local drive in foreground, and then submit to
-
Pre-Populate AD Groups upon Provisioning of AD User
I've been trying to figure out how to auto-populate groups in AD for users based on a single attribute in the OIM User Profile. For example, if a user's geographic code on the OIM User Profile is TX and he has an Administrator title, then I want that