Get Month & Quarter from Factory Calendar in SAP BI
Hi,
Requirement is how to get the month & quarter from the factory calendar in SAP BI.
lets say the day is 29.12.2008 , if we use this date in SCAL it comes into 2009.
Im getting the week as 01.2009 by using the Function Module DATE_GET_WEEK which is correct from where i can take week & the Year.
Now how to get the month & quarter, for the above date i need month as 01 & quarter as 01.
Please advice.
regards
Hari
Hi,
Please use the below code:
v_day = '20081229'.
*( Fiscal Variant)
v_fin = '10'.
Data : V_period(3) type c.
Data: v_year(4) type c.
call function 'DATE_TO_PERIOD_CONVERT'
exporting
i_date = v_day
i_periv = v_fin
importing
e_buper = v_period
e_gjahr = v_year
exceptions
input_false = 1
t009_notfound = 2
t009b_notfound = 3.
if sy-subrc = 0.
v_quart = v_period.
v_fiquart = ( v_quart - 1 ) div 3 + 1.
v_period = v_period.
endif.
-Vikram
Similar Messages
-
How to get month value from custom calendar without passing parameter from SSRS in MDX query
Could you please throw some light to achieve below requirement?
I need to filter the data between two periods dynamically . The date calendar here works differently(ex:-Date 26-Aug-2014 will fall in period 7 which is last date and 27-Aug-2014 will fall in period 8 and it is first date of period 8),so I cannot go
with system date period/Month. Date Hierarchy is like YEAR,QUARTER,PERIOD ,WEEK and DAY.
I cannot use SSRS for passing parameter. Requirement is to extract last 2 period of data dynamically in Power Pivot with MDX.
Thanks ChandanHi Chandan,
You might try something like this
Tail(null:
Extract(
StrToMember("[FYDay].[DATE].&[ + cStr(Format(Now(),"yyyy-MM-ddT00:00:00")) + "]")
*[FYDay].[DateHierarchy].[Day]
,[FYDay].[DateHierarchy]).parent.parent
,2)
What it is doing is multiplying Day by the current date, which returns a set of one date with cardinality of (Date,Day). The Extract is pulling out just the datehierarchy Day. the the Tail() is getting it and the previous day.
Hope that helps,
Richard -
Can't get SMS Reminders from Google Calendar on Samsung Keyboard
Hi, I would love to get SMS reminders from Google Calendar on my Samsung Keyboard basic phone I just bought but they are not coming through for some reason. I set up the phone with Google Calendar and they sent a text message verification text to my phone which I got. I entered verification number into Google and saved it. Google said I set up my phone successfully. But I receive no reminders. I checked my spam filters with MyVerizon but that looks good.
Any ideas?
Thank you for your time,
JonathanLet me add that I can use the webcal url published by MobileMe Calendar to
allow Evolution to 'see' and display my MobileMe calendar on my Fedora boxes.
So why is Google Calendar being so picky?
Jerry -
FM for getting MONTH name from DATE.
Hi all ,
We have a requirement to get Month name from the DATE,e.g IF date is 01/01/2008 we need a FM which can generate month name as 'JANUARY'.
\[removed by moderator\]
Thanks and Regards
Kiran
Edited by: Jan Stallkamp on Jul 30, 2008 4:26 PMHi,
Here is the code u required...
REPORT ZASHU_MONTH_NAMES_GET.
data:r_code type sy-subrc.
data:mnames type standard table of T247 with header line.
CALL FUNCTION 'MONTH_NAMES_GET'
EXPORTING
LANGUAGE = SY-LANGU
IMPORTING
RETURN_CODE = r_code
TABLES
month_names = mnames.
EXCEPTIONS
MONTH_NAMES_NOT_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write:/ mnames.
Thanks & Regards
Ashu Singh -
How to maintain TFACS table (Factory calendar) into SAP BI
Hi,
I deal with a daily stock infocube and I would like to set a flag when the warehouse doesn't work (on holiday).
to do this, I would like to use the factory calendar (TFACS), and I have 2 questions:
1) How to maintain the TFACS table into SAP BI ?
2) How to use the TFACS data into SAP BI ? In other words, How to convert the TFACS data values in date ?
Thx.
Radj.1.
rsa1(source-systems) --> right-click on the source system you load from --> transfer global settings --> flag 'factory calendar' and 'rebuild' or 'update tables'
2.
use function module DATE_CONVERT_TO_FACTORYDATE.
it returns workingday_indicator (initial if it's a worling day) that you can use as a flag, or it also returns the next working day.
you can use this function module in the transformation in the field routine of the flag...i think this is the best option.
M. -
"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 -
How to download factory calendar from R/3 to CRM
Hi,
I have tried to search some threads regarding this topic but not get any answers.
Can someone help me on steps on how to download the factory calendar from R/3 to CRM?
I have tried to do through request (R3AR2) but it did not recognize the table TFACD in R/3.
Quick replies are deeply appreciated.
Best Regards.Hi Angelo,
I did a little of Google on the Factory Calendar Stuff and got to know that you can Transport a Factory Calendar from one system to another. You can have a look at the Factory Calendar Customization from where you can the information about how to transfer it from one system to another. I have never worked in this but thought it might be a little help to you.
You can get the link to Factory calendar from the following --> SAP NetWeaver --> General Settings --> Maintain Calendar.
Also, have a look at the following links:
Download Factory Calendar R/3 to CRM
http://www.sapfans.com/forums/viewtopic.php?f=15&t=311887#p943078
Hope this will help.
Thanks,
Samantak.
Edited by: Samantak Chatterjee on Nov 6, 2010 8:21 AM -
Maintenance Order & Factory calendar
Hi,
How to Link Maintenance Order & Factory calendar so that when i execute the 'Cost Evaluation' table
S115, i will get cost for the maintenance order Activities for specified month based on factory calendar.
Pleaes Let me know.PeteA,
When i execute the maintenance Order in table S115 with input data fiscal year variant (Calendar Year 4/4/5) , Order type & Month (say 02.2009) system throws message "No table entries found for specified Key" .....
But when i execute the same table with all input data except fiscal year variant (Calendar year 4/4/5), system gives the output of my order type.
So i think Fiscal year variant should be maintained in Order. That procedure i want to know
(Note: In Work center "Capacity' Tab, we can only assign the factory calendar; Not fiscal year variant(4/4/5 year)
Pls let me know -
How to remove the Holiday calender from factory Calender
Hi All Good Morning,
I want to remove the Holiday calendar from Factory calendar,
I know the two ways to remove
1.Through request remove the Holiday calendar at DEV system, then move to production system.
Is there any impact on other calendar related settings If we move the request from DEV--> PROD System.
(My doubt is only changed settings will change or any other settings also get impact)
2.Directly change the settings through client open.
In this option we are able get the change option in Factory calendar at DEV and QAS systems but we are not able to get change option at PROD system.
Can any body help on this,which is the better way.
Regards,
Murali.Hi,
Many a times the holiday calendars are not in sync with DEV,QAS & PRD System,first check your system and see if they are in sync,
1-if they are in sync do changes in DEV and push request to PRD
2-if they are not in sync better do it on PRD Client,with help of your basis person,however before doing this kindly apprise your client of the same and then with his permission do it.
if HC are not in sync it may so happen that whatever is in DEV may get overwritten in QAS & PRD,hence check as suggested above and then do changes.
First remove(delete) HC from factory calendar and save
Salil -
Difference between Planning Calendar and Factory Calendar
Hi,
Can anyone clarify me how Planning Calendar is different from Factory Calendar?. When do we maintain Planning Calendar?. Does we need to follow any steps in configuring Factory Calendar?. Please explain in detail. Thanks for ur support.AS,
Can anyone clarify me how Planning Calendar is different from Factory Calendar?. When do we maintain Planning Calendar?. Does we need to follow any steps in configuring Factory Calendar?
I guess you must have overlooked the rules of engagement. It is customary in these forums for questioners to first perform basic research before posting any questions.
First, search in the forums (search box in the upper right of this page).
Next, check online help. This help is generic. For instance,
Planning Calendar
http://help.sap.com/saphelp_erp60_sp/helpdata/en/f4/7d25ea44af11d182b40000e829fbfe/frameset.htm
Factory Calendar
http://help.sap.com/saphelp_erp60/helpdata/en/2a/fa00c2493111d182b70000e829fbfe/frameset.htm
Next search in one of the standard online search engines (such as Google).
If you have performed all of these tasks, and studied all of the online help that is supplied for free by SAP, then consider posting a question to these forums.
If you are unwilling or unable to perform such research, then you should probably engage a consultant to assist you.
Best Regards & Good luck,
DB49 -
Factory calendar attached to reference objects
Hi,
While creating date types and date duration we can attach reference objects to them. But where do we see the time zones and the factory calendar settings maintained against a reference object?
Regards,
-SwetaHi Sweta
If you want to add company holiday to take in account while calculating End date then config for Factory calendar / Holiday
SAP Implementation Guide> SAP Web Application Server>General Settings-->Maintain calendar
Once u done with config, use FM BUSINESS_DATE_CREATE for End date creation.
I am still finding how to attach the FC to Reference object. If i get will post u again.
hope you able to get your result.
Thanks,
Deven
Do not forget to allocate points............. -
Set deadline according to factory calendar
Hi workflow experts,
I have 3 questions regarding deadline monitoring.
1. Is it possible to use bussiness days from factory calendar instead of calendar days for workitem deadline ?
2. Is there a FB for changing the deadline of a workitem ? I found only SAP_WAPI_GET_DEADLINES for reading the deadline.
3. what is the simplest way of repeating the modeled action ( in my case send a reminder mail) for overdue workitems every day after they got overdued ?
best regards
KerstinHi guys,
thank you. Seems nobody uses the built-in deadline handling because of its poorness ?
I have a simple task:
- monitor the deadlines of all user decision steps in my workflow ( based on working days)
- send a reminder email after the deadline is reached to the actor
- send an email every working day to the same actor until the workitem status is COMPLETED.
I would like to do this without a lot of additional modeling.
In sdn there are some other suggestions for repeated escalation to the same actor:
- delete the workitem and recreate it with new creation date to achieve a repeated escalation action triggred by workflow engine
User Decision - Deadline monitoring - Obsolete workitem
In How to Create General UWL Notifications the deprecated SWW_WI_CREATE is used where the LATEST_END_DATE is an import parameted.
I'm still not sure which is a simple and robust solution - may be I will use the deprecated FM too if there is no alternative.
regards
Kerstin -
Please help I am suddenly getting the following from my calendar The server did not recognize your user name or password for account “...” Make sure you enter them correctly.I have even tried changing the password and no luck. I depend on it syncing with mobile me and my phone and I need it for work.
I have been having the same issue but I think I fixed my problem. In iCal, click iCal, Preferences, Accounts and retype your password. That seems to have done the trick for me as far as I can tell.
-
Where do we use factory calendar
Hi All,
Can any one tell me where do we use factory calendar in SAP HR?
Thanks
VeerHi Veeresh
A factory calendar distinguishes between working days and non working days. It is company specific calendar. when you have entered an exception rule for non working days and have chosen factory calendar then you must enter the factory calendar relevant to your company.
Hope it helps.
Regards
Kasi
Note: Points are the best way to say thanks in SDN. -
Getting month from Calendar Year/month...
Dear All,
I'm using Webi 4.0 SP6 and I need to get months from Calendar Year/Month which I'm using in a query to display on Cross Table along with brands.
1. Is there any standard function available to convert Calandar Year/Month (Say: 201401 to Jan or January).?
2. How can I get month from Calendar Year/Month for cross-table?
I will appreciate your reply.
Many Thanks!!!
Tariq AshrafTariq,
Month = Substr([Cal Year];5;2)
Month Name = If Substr([Cal Year];5;2) = "01" then "Jan"
else if Substr([Cal Year];5;2) = "02" then "Feb"
else if Substr([Cal Year];5;2) = "03" then "Mar"
else if Substr([Cal Year];5;2) = "04" then "Apr"
else if Substr([Cal Year];5;2) = "05" then "May"
else if Substr([Cal Year];5;2) = "06" then "Jun"
else if Substr([Cal Year];5;2) = "07" then "Jul"
else if Substr([Cal Year];5;2) = "08" then "Aug"
else if Substr([Cal Year];5;2) = "09" then "Sep"
else if Substr([Cal Year];5;2) = "10" then "Oct"
else if Substr([Cal Year];5;2) = "11" then "Nov" else "Dec"
If you have data like 20140101 then simply use = formatdate([Date];"Mon")
Maybe you are looking for
-
Creative Cloud Schüler Edition nicht verfügbar?
Ich würde gerne die Creative Cloud benutzen. Ich wohen in Deutschland und habe bei Adobe auch angegeben dass ich 14 Jahre alt bin(was auch stimmt) Wenn ich dann aber in meiner Creative Cloud eingeloggt habe dann springt die Seite direkt zum letzten S
-
When I forward an e-mail from my iPad or iPhone, the pictures in the signature are sent as attachments. How can this be corrected?
-
Livecycle forms rendering issue with Adobe reader 10.1
Hi, I have designed a form in XFA 3.1 (Livecycle ES2 9.0). It works perfectly up to Adobe reader 10.0.3. Now when I am opening the form in Adobe reader 10.1.0 or above, the forms is showing some strange behaviors. 1. For some of the drop downs, the t
-
Report Painter question (FGI1) How to limit output up to a specified period
Hello I have a report painter question. I am trying to create a BS report using tcode FGI1 (FALGFLEXT), that lists out the BS values by month (Jan - Dec). But the problem I am coming across is, if I specify selection parameter 01 2008, the report als
-
Duplicate message, please see: Is Verizon getting rid of Unlimited? Message was edited by: Admin Moderator