Current Calender month in Varient
Hi all,
I'm running abap program where the input has Calender month (MM/YYYY). So i have created the varient where this calender month selection will always be the current month whenever this program executes. Say for eg. if i'm running today it is 02/2008, if im running next month it is 03/2008. How can i define this in variant's Selection Variable. The type of the calender month is char6. the Calendar month is mandatory to execute this program, this to automate the process, as not to change variant values periodically each month.
Thanks
Sreedh
hi,
Step 1: Go to transaction SE38 to specify the Program name and select u2018Variantu2019 radio button and u2018Displayu2019.
Then it will lead you to next screen u2018ABAP:Variants u2013Initial Screenu2019 as shown below: Specify the variant which needs to be created or changed.
Step2: Specify all those values which are static on the selection screen in this step. Then click u2018Variant Attributesu2019 to define selection variable for u2018Date Createdu2019 on the selection screen.
Step 3: In this step, provide suitable meaning for the variant. As we need to define selection variable for u2018Date createdu2019 item on selection screen, check the box under L
Step 4: In the previous step, select u2018Selection Variablesu2019 on the menu. It leads to the next screen as shown below. As we have decided to create selection variable for u2018Date createdu2019 item only, in this screen you get to see the variable as u2018Date createdu2019. Here you are provided with three options.
T: Table variable from TVARV
D: Dynamic Date Calculation
B: User defined Variables.
From the provided options as per our requirement select u2018Du2019 option. This can be done by clicking the Traffic lights under u2018Du2019as shown below to know that the particular option is selected.
Now click the black arrow and you will be prompted with search help of different formulas for the selection variable.
Step 5: Find the suitable formula as u2018Current date u2013 xxx, current date + yyyu2019 and select it. This will lead you to the next screen to enter the values for xxx and yyy. So, provide values as 15 for xxx and 0 for yyy. Save the variant and this will conclude the creation of dynamic variant with the help of selection variable. This variant can also be used in the background jobs.
i tried pasting the link but some issue is ther..open google and type how to make dynamic variant in sap see the first result...its very useful
Similar Messages
-
Derive quarters using Calender month range as input
Hi Gurus,
In a particular query, the mandatory input is 0calmonth range. Variable used is 0CALMONS.
Users enters 24 months i.e 02/2006 - 02/2008 as an input and during runtime,Key figures data should display in quarters.
I have 10 Key figures( Inventory) in Rows and calender/month in free chars.
Can you please help me getting this?
Plz tell me the steps from variable creation and writing code in cmod.
Thanks in advance.
Priya
Sample format -
Quarter - Feb 2006 - Mar 2006 April 2006-June 2006 Jul2006-Sep - 2006 etc
Inventory 100 50 100
Projected 100 50 50
Receipts 50 100 50Hi,
I have added 0CALQUARTER to my cube and pulled that information into the report.
Since I am pulling current Inventory information, I need only last month of that quarter information only.
means, I want to display only March Inventoty in QRT1 and june Inventoty in QTR2
How can I achieve that?
Currently it is pulling this way...
Ex: Jan Feb mar Qtr 1 April May Jun Qtr2
Inventory 10 20 30 60 5 10 20 35
But I wanted to have like this ..
Ex: Jan Feb mar Qtr 1 April May Jun Qtr2
Inventory 10 20 30 30 5 10 20 20
Thanks for your help
Priya -
Display of calender month text instead of values in BEx report.
Hi,
I have calender months in the reporting columns, values of these reporting columns are dynamic in reports. We need to replace these values with text of the calender months. I have seen it at some places but do not remember how to do it now.
Can some one has idea on this, will update on this post please.Hi
if you want to display in columns along with the data then right click and select properties and the select the disply as Text .
If you want to display in the header go the properties and in the header (Title area where u provide desxcription) instead of ur description enter the text variable &0T_CMONV& or you can select the text variable from the list .
Regards
Ram -
How to set current year,month as default value in combo box
hi, im newbie of xcelsius user
i realize that hv a issue that display combo box base on year & month
let said
<b><u>step 1</u></b>
I create excel data like this
<b><u>year___ </u> </b> | <u><b>month_ </b></u> | <u><b>Product</b></u> | <u><b>revenue</b></u>
02-04-09 | 02-04-09 | a | $4,154
03-04-09 | 03-04-09 | b | $6,813
04-05-09 | 04-05-09 | a | $9,875
05-06-09 | 05-06-09 | b | $6,813
06-04-10 | 06-04-10 | a | $6,813
07-04-10 | 07-04-10 | b | $9,875
08-06-10 | 08-06-10 | a | $9,875
22-06-10 | 22-06-10 | b | $6,813
<u><b>Step2</b></u>
Then i go format cell to format/custom date to year & month
Eg1: Year u2013> 02-04-09 convert to u2018YYYYu2019 (2009)
Eg2: Month u2013> 02-04-09 convert to u2018mmmmu2019 (April)
So output like this
<u><b>year</b></u> | <u><b>month</b></u> | <u><b>Product</b></u> | <u><b>revenue </b></u>
2009 | April | a | $4,154
2009 | April | b | $6,813
2009 | May | a | $9,875
2009 | June | b | $6,813
2010 | April | a | $6,813
2010 | April | b | $9,875
2010 | June | a | $9,875
2010 | June | b | $6,813
But the problem is when i insert to combo box,use u201Cfilter Row u201D, i excpectation will display only 2009,2010
But Actual display the Year in combo box is duplicated :'(
so any solution ? and then only how to set current year & month as default value :'(
thanks,
regards
s1
Edited by: Leong Pui Kee on Feb 25, 2011 5:25 AM
Edited by: Leong Pui Kee on Feb 25, 2011 5:36 AMhi,
your created data
step 1
I create excel data like this
year___ | month_ | Product | revenue
02-04-09 | 02-04-09 | a | $4,154
03-04-09 | 03-04-09 | b | $6,813
04-05-09 | 04-05-09 | a | $9,875
05-06-09 | 05-06-09 | b | $6,813
06-04-10 | 06-04-10 | a | $6,813
07-04-10 | 07-04-10 | b | $9,875
08-06-10 | 08-06-10 | a | $9,875
22-06-10 | 22-06-10 | b | $6,813
In this, year and month both are same data, make the diffent data like year 2009, 2010 And month Jan, Feb, March, ...Etc
and also one more check you formulas on month and year, select correct source data, destination data for compoonent..
OR
from above, to create a date column and convert date-->year, date--> month and Explore it.
All the best,
Praveen -
"Current Calendar Month" vs. "Current Calendar Day (SAP Exit)-1" why this?
Hi,
we are looking at a situation regarding Yerterday's data against MTD for the same restricted key figure. The believe is that MTD(Jan 10) less MTD(Jan 9) should be equal to Yesterday(Jan 9) i.e. yesterday's data, assuming today is Djan 10 2007.
Unfortunately it is not happeing like that. Any ideas as to what may be going on?
"Yesterday" is the key figure is restricted by
"Calendar day" restricted on "Current Calendar Day (SAP Exit)-1"
"MTD" is restricted on
"Cal. Year/Month 0CALMONTH" restricted on "Current Calendar Month 0CMONTH"
Shouldn't the Yesterday and the difference between MTD as described above be the same?
If not, how should the time char be handled to get what I am looking for?
ThanksHI,
thanks for the example ... let me correct what you did not get:
Using your exmple,
MTD(Jan 10) = 1500
MTD(Jan 9) = 1400
Therefore, MTD(Jan 10) - MTD(Jan 9) = 1500 -1400 =100
But on Jan 10, when I say Yesterday, I am referring to Jan 9 = 600
Why is Yesterday, calculated based on the cummulative difference of the two MTDs not equal to the raw Yesterday?
This is where the confusion is. Somebody got the report for MTD(Jan 9) and noted the number down. Then on the next day got the report for MTD(Jan 10) and noted the numberber down. When she takes the diffference and get 600, she expects that when she compares it to the Yesterday's data she gets the same numbers. Why is it that also in your example it does not happen that way.
Thanks -
Please see this scenario
I have data coming from my ODS into a cube. The data is based on periods (ie no date). My reporting requirements are monthly.
I woudl like to leave the ODS alone but create a time conversion from the update rules to convert from Period to Calender Month. I have tried using the FISCPER_CALMONTH in the update rules but i keep getting an error saying Formula element is not allowed here in the section where I put the year.
Is there any other way for this to be done?
I would also like the 4 special periods to be considered.
ThanksHi,
I donot understand why are you using the Year in that formula .You need to use <i>Fiscal year period</i> time characterstic (may be use need to use Fiscal year variant also) in that update rule formula.
With rgds,
Anil Kumar Sharma .P -
Start date End date of the current Calendar month
Hi All,
How can we get the Start date of the Current Calendar month and the End date of the current Calendar month , when we given certain date in the selection screen.
For Eg : In the Selection screen if I give date as Todays date 04042008, we should be getting the Start date of the month as 01042008 and End date of the month as 31042008.
Any pointers will be much appreciated.
Regards
Rohini.Hi,
Please refer the code below:
CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = sp_gjahr
* i_monmit = gp_monat
i_periv = 'K4'
i_poper = sp_monat
IMPORTING
e_date = gv_firstday
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
"Last day of the period
CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = sp_gjahr
* I_MONMIT = gp_monat
i_periv = 'K4'
i_poper = sp_monat
IMPORTING
e_date = gv_lastday
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Thanks,
Sriram Ponna. -
LOV custom sorting in prompts for calender month
Hello Everyone,
I want to do sorting in prompts in webi for Calender Month in the form (Jan,Feb,Mar....)
Whereas, it comes alphabetically As (Apr,Aug and so on....) i want to know that can we find the solution for the same.
I also want to know if yes can we do it in webi itself or we will have to do it on Information Design Tool?Hi Foram. I, too, am using HANA as my backend. Here's one way you can sort your data-driven prompts that appear in Web Intelligence:
Open your business layer within the Information Design Tool.
Verify that the column to be displayed in the Webi prompt (e.g., "Month") has been defined in your business layer.
Select the "Parameters and Lists of Values" button.
In the "List of Values" frame, press the down arrow and then select "List of values based on business layer objects".
Give the the list an intuitive name; e.g., "Month LOV".
On the Definition tab, press the "Edit Query..." button.
Drag the column to be displayed in the Webi prompt (e.g, "Month") to the Result Objects frame.
Press the "Sort dialog..." button.
In the Sort dialog box, press the "Insert Sort Object" button.
Select the column to sort on; e.g., "Month" and then press the OK button.
Verify the sort type; e.g., "Ascending".
Press the OK button.
Press the Preview button to confirm the results.
Save and publish the universe to your repository.
Open your Webi report.
Enter into Design mode.
Open the Query Panel.
Select the appropriate query.
In the Query Filters frame, select the prompt (e.g., "Month") and press the "Show prompt properties" button.
In the Prompt Properties dialog box, in the Prompt Properties frame, make sure "Prompt with List of Values" is selected.
Press the OK button.
Press the Close button.
Press the Refresh button.
Confirm that the prompt (e.g., "Month") is sorted properly.
Hope this helps!
Chris -
Default iCal Display to Current Day/Month?
Whenever I open iCal on Yosemite 10.10.1, it by default displays the last month/day I was viewing when previously exiting the app. Is there any way to have iCal display the current day/month by default at launch?
In case anyone else is looking for a solution to this, I'm come up with a temporary hack. It is a shell script that clears out the most recent calendar view, which results in the Calendar app opening to the current day/month. I've setup a crontab job to run the script every 10 minutes. It's not a perfect fix, but it does the job just fine.
The script/terminal command:
/usr/bin/defaults delete com.apple.iCal "CalFirstVisibleDate"
To install a crontab job which runs the script periodically (every ten minutes in this case), insert the following line into your crontab config (run crontab -e from terminal):
*/10 * * * * /usr/bin/iCalDateReset.sh
This assumes that you have installed the script as /usr/bin/iCalDateReset.sh -
How Do I Link To The Current Date/Month In iCal?
I have a link on my website which points to a published iCal calendar. The link remains static, for instance, I created the link in January, and it pointed to the January view of the calendar.
Now that its February, I'd like the link to point to the February month view (and so on throughout the year), but it remains linked to January.
How do I make the link dynamic so that it points to the current month/date? Thanks in advance.
G5 Dual 2.0 Mac OS X (10.4.4)JFKrohn, Welcome to the discussion area!
To get the current month, use a link like this:
http://ical.mac.com/WebObjects/iCal.woa/wa/default?u=UserName&v=1&n=CalendarName.ics
Where
UserName = .Mac user name
CalendarName = name of published calendar -
Can't view current billing month broadband data us...
Hi there,
I guess I must be missing something but I can't seem to access information about my current data usage levels for broadband in the MyBT site anymore? I used to be able to check how much data I've used by going to the 'Usage & Analysis' section - I'd be shown a green bar representing how many Gb of data I've used so far in the given billing period. However, on navigating to that part of the site I'm now shown a screen stating 'There was no chargeable usage in that period' for my previous billing month, but I am not able to select the dates for this billing month.
When it was working I found this feature very useful as I've been burned in the past by going over my limit and have recently changed my tariff to provide me with an increased allowance; I don't want to go over this level (40Gb/month) and so being able to check how much I've used is really helpful. When I went over my limit BT said that there are easy ways to check my usage - it seems this is no longer the case?
Can anyone provide instructions on how to access this information?
Thanks,
Dan
Solved!
Go to Solution.Log into MyBT and click on the "My services" horizontal tab (below the "Welcome to My BT" banner). Click on the "Broadband" vertical tab on the far left. In the "Manage your broadband services" section click on "View your broadband usage". It displays only the current month.
Peter -
Fiscal period to calender month FM
Hi Friends,
Is there any function module to pass the fiscal period and fiscal year value and get calender date, month and year.
Thanks & Regards,
Vallamuthu.mHi,
There are FMs for fetching first and last day of fiscal period.
* This Function Module will get Start date based on the Period, Year and
* Fiscal Year Variant
CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = rlv_gjahr
i_periv = rlv_periv
i_poper = rlv_poper
IMPORTING
e_date = lv_mfdate
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4.
* This Function Nodule will get End date based on the Period, Year and
* Fiscal Year Variant
CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = rlv_gjahr
i_periv = rlv_periv
i_poper = rlv_poper
IMPORTING
e_date = lv_mldate
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4.
Ganga -
Current date month year in flex
can anyone let me know how to get current system date in flex
and how to compare seleted date and system date in flex
thanks in advancebelow is the example code which get the date, month and year
when you try to access the month it return less than one (if you try to get the month when the month is set to jan it return zero ) while displaying we need to increment as months starts from one
import mx.controls.Alert;
public function init():void
var dt:Date= new Date();
Alert.show("date : "+dt.getDate().toString()+"\nmonth : "+Number(Number(dt.getMonth().toString())+1) +"\nYear : "+dt.getFullYear().toString());
if this post answers your question or helps, please mark it as such -
Customer Exit variable to display the current Year/Month by default.
Hi Experts,
I need to create a variable on the object 0CALMONTH that needs to display the current Month/Year by default when the query is run.
Can anyone please help with the ABAP code that is required for the creation of this Customer Exit Variable?
Thanks
AravindHi,
try this , just copy and paste in your Editor,
Data: Year(4) type c,
month(2) type C,
date(6) type c.
IF I_STEP = 1.
CASE I_VNAM.
WHEN 'VAR_X'.
l_s_range-low = sy-datum+0(6).
l_s_range-opt = 'EQ'.
l_s_range-sign = 'I'.
year = l_s_range.
l_s_range-low = sy-datum+4(2).
l_s_range-opt = 'EQ'.
l_s_range-sign = 'I'.
month = l_s_range.
concatenate year month INTO date separated BY '/' .
Append date to e_t_range .
ENDCASE.
ENDIF.
Thanks,
JACK -
We currently have verizon for four devices: two smart phones, one dumb phone, and a home wifi device. Unlimited text and calls, with 10GB data sharing on all devices. We have the wifi device because we live part of the year in NC, the other part in our RV. So we need the flexibility of moving our wifi with us without being chained to a contract at one address. However, FaceTime and Skype eat up a HUGE portion of our 10GB. We really love FaceTime or Skype because our daughter and grandkids live overseas.
Yeah I know there are tons of free wifi places but their home is 9 hours ahead of our timezone, so it is not always that easy to find one that is open and not noisy when they are all awake.
I noticed on our home wifi device we are paying $30/month for voice and data, i.e. home phone and internet. Since we have cell phones, we do not have a home phone so I am not sure why we are paying for a home phone service. Couldn't I just change that device plan to be internet only? Saves me $10/month
Maybe you are looking for
-
Dear all, I am new to this community even though I have been a Apple user for years, so please forgive me if this question is not in the right section. Has anyone encountered drastic shorter battery life both on iphone 5 and ipad since updating to iO
-
Apple Mail in repair- Send computer and power cord?
MY MBP battery has needed to be replaced for a couple of months now and I have finally decided to get it fixed. I called Apple and am getting the box to mail my computer. On the phone I was told to send both my computer and my power cord. Why is this
-
Hi all, I have a new netweaver 7.0 with BI installation running on a sandbox server. Everything seems to be running fine. Logon languages work fine for me when using BeX web, protal, or other CRM, etc functions. However when I login and use the Pla
-
Difference in PO creation in Classic v/s Extended Classic
Hi all, Can anyone tell me in details what is the difference in PO creation in Classic v/s extended classic scenario technically e.g. BAPI,FM etc? What are the main settings which determine whether PO needs to be created in SRM(local PO) or backend E
-
I'm having issues installing Acrobat X Pro, Can I get some help?
Hello, I read the thread Acrobat X Pro Installer Rolls Back in Windows 7 64-bit And I need help applying the solution. I don't know how to run the command. I have an acrobat X Pro CD with a serial number key to install the program but the program doe