To get fiscal month and Fiscal month
Hello everyone,
Is there any function module which can give us fiscal year & fiscal month from normal year & month. If there is any then please tell me.
Vicky
Moderator message: FAQ, please search before posting.
Edited by: Thomas Zloch on Jan 21, 2012 8:54 PM
date questions are not allowed anymore in the forum as there are too many posts already from which you can search to get your result.. so please search.
Similar Messages
-
Getting the Month value and Name from the Ranges of the Date given input.
Hi Techies,
I am developing Monthly wise report in FICO. My Inputs are Company Code, Fiscal Year and Date Range. From the Date Range I have to get the month and Generate the Report.
For Ex:
BUKRS : 1000
GJAHR : 2009
FKDAT : 01.04.2008 to 01.04.2009
From the Above Date range how can I get the individual month names or periods. As per my Knowledge I can get the month value when the date is parameter but here the date is ranges. Is any code available for this ?
Thanks in Advance
Regards,
Muralikrishna Peravali.
Edited by: muralipsharma on Aug 31, 2010 10:30 AM
Edited by: muralipsharma on Aug 31, 2010 12:57 PMDATA: lv_dat TYPE dats,
lv_day TYPE c LENGTH 2,
lv_month TYPE c LENGTH 2,
lv_year TYPE c LENGTH 4.
DATA: lv_poper TYPE t009b-poper.
DATA: lt_poper TYPE TABLE OF t009b-poper.
SELECT-OPTIONS: so_dat FOR sy-datum.
break fis-kemmer.
lv_dat = so_dat-low.
DO.
CLEAR: lv_poper.
CALL FUNCTION 'FI_PERIOD_DETERMINE'
EXPORTING
i_budat = lv_dat
IMPORTING
e_poper = lv_poper
EXCEPTIONS
fiscal_year = 1
period = 2
period_version = 3
posting_period = 4
special_period = 5
version = 6
posting_date = 7
OTHERS = 8.
APPEND lv_poper TO lt_poper.
lv_day = lv_dat+6(2).
lv_month = lv_dat+4(2).
lv_year = lv_dat(4).
lv_month = lv_month + 1.
IF lv_month LE 9.
CONCATENATE '0' lv_month INTO lv_month.
ENDIF.
CONCATENATE lv_year lv_month lv_day INTO lv_dat.
IF lv_dat GT so_dat-high.
EXIT.
ENDIF.
ENDDO.
after that you have a list of all the FI periods in internal table LT_POPER.
get the idea? -
Adding reminders to my calendar items is no longer an option after the software upgrade. I also can't get to day and week view, only month view. What's a possible solution? I'm using Andriod version 4.4.2 with kernal 3.4.0.
@MaloneTP
Thanks for keeping me updated! Do you see the screen options displayed in the following link: http://bit.ly/T2koBL for changing the calendar view options in Kies Air? Also, let me know if you're able to add a Reminder by following these steps: http://bit.ly/T2l9dY. Keep me posted. Thanks!
AnthonyTa_VZW
Follow us on Twitter @VZWSupport -
How to get ONLY month and MONTH within date...
I have to convert something from sql server to oracle.
In SQL Server I have:
SELECT
TEXT_26 AS CostUnit,
MILESTONE_DATE AS ContractShipDate,
ACTUALFINISH AS ActualShipDate FROM PROJ_TASK
WHERE
TEXT_29='SHIP'
AND NAME NOT LIKE 'CMSB%'
AND NAME NOT LIKE 'CCFB%'
AND (MONTH(ACTUALFINISH) = MONTH(GETDATE()) - 1)All seems very simple SQL except I don't know how to convert that last line:
... AND (MONTH(ACTUALFINISH) = MONTH(GETDATE()) - 1)Basically Im just extracting the month so that I say the MONTH of the actual finish date is equal to the month of Today - 1. Meaning get the month for today (GETDATE() in sql server) and then subtract ONE month from it.
How can I do that line in oracle?
Thanks,
JonI generally find it simplier if one answers the question I posedYou need to realize that with free advice and help you get what you pay for. If you want people to run the statements for you then you should provide create table and sample data scripts.
Another alternative is
trunc(actualfinish,'mm') = add_months(trunc(sysdate,'mm'),-1)http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions201.htm#i79761
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions004.htm#i76717 -
To get first date and end date after entering any month and year
Hi,
I need to to get first date and end date of a month and year in yyyyMMdd format. I am reading month and year from a properties file. But I don't know how to get the first date and End date in given format. The properties file gives me just text. But I don't know how to get the date format using this. I need this urgently. Can anyone help me to get code for this?
I am reading the fields as,
Properties props = new Properties();
props.load(new FileInputStream("AnyMonthVolume.properties"));
String date_month = props.getProperty("date_month");
String date_year = props.getProperty("date_year");
Thanks.I know this has been posted a while ago but incase someone looking for it, here is the code to get the end of current month date.
Calendar cal = Calendar.getInstance();
cal.setTime(new java.util.Date());
cal.set(Calendar.DATE, 1); //set the date to start of month
cal.add(Calendar.MONTH,1);
cal.add(Calendar.DATE,-1);
System.out.println(cal.getTime()); -
Hello, I recently downloaded a trial version of Lightroom and then decided to get the monthly photoshop membership. Now, when I launch Lightroom, my choices are to enter a serial number to continue the trial. On the adobe website, it says "You can convert your trial to a Creative Cloud complete or single-app membership by purchasing on the Creative Cloud website. After you purchase your membership, your desktop product trial will automatically be licensed upon relaunch." But this is not the case. I do not want to risk losing my catalog and the work I have already done in Lightroom, so what should I do?
Chat Now button near the bottom for Activation and Deactivation problems may help
http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
OR
Asked to sign in after paying may help
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
or
http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
Membership and Payments http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html -
I purchased iphone 5 a month back... It get very hot and drained very quickly while playing games . What should i do ??
Take it in for service at your nearest Apple Store or authorized reseller.
-
Could some body help me:
I am try to get Date, Month and Year
I got stuck, Anyone help me this:
public class DateMonth
public static void main(String[] args)
toDay = new toDay("February 21, 2002");
dayofWeek = today.getDay();
System.out.println("Current month is " + toDay.getMonth());
System.out.println("Current day is " + getDate());
System.out.println("Current year is " + toDay.getYear());
toDay.setDate(toDay.getDate()+60)
System.out.println("Sixty days from now is ");
System.out.println(toDay);
}Try something like this:
import java.util.*;
public class DateMonth {
public static void main(String[] args) {
// Note: 0 = January
Calendar calendar = new GregorianCalendar();
System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR));
System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH));
System.out.println("DATE: " + calendar.get(Calendar.DATE));
System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH));
System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR));
System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK));
// 60 days from now
calendar.add(calendar.DATE, 60);
System.out.println("\nSixty days from now");
System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
System.out.println("DATE: " + calendar.get(Calendar.DATE));
System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
}Remember that January is 0!
Take a look at the GregorianCalendar class:
http://java.sun.com/j2se/1.3/docs/api/java/util/GregorianCalendar.html
Hope this helps!
DesQuite -
I have had my ipod nano 7th gen. for 2 months, and the left earbud no longer works. Can I get a replacement, and how do I go about it?
Or make an appointment at the Genius Bar of an Apple store
Apple Retail Store - Genius Bar -
I lost my iPod touch 32 GB a month ago, and today I got a new iPod touch 64 GB. While syncing it with itunes, I got my music library, books and purchased items back, but I didn't get my photos and videos.How can I get my old photos back in my new iPod?
Correct. When you update via iTunes all synced media that is not in your iTunes library will be lost.
As IO said before:
You can redownload most iTunes pruchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
I do not think it included audio books. -
How to get current month and last month dynamically??
how to get current month and last month dynamically
like
month = getCurrentMonth();
lastmonth = getcurrentMonth() -1;
please help
thankshi :-)
/* depracated but can be still useful */
java.util.Date dtCurrent = new java.util.Date();
int month = dtCurrent.getMonth();
int lastmonth = dtCurrent.getMonth() - 1;
System.out.println("* " + month);
System.out.println("* " + lastmonth);
/* better to use this one */
Calendar cal = new GregorianCalendar();
int imonth = cal.get(Calendar.MONTH);
int ilastmonth = cal.get(Calendar.MONTH) - 1;
System.out.println("*** " + imonth);
System.out.println("*** " + ilastmonth);
regards, -
Getting Day, month and year from Date object
hello everybody,
Date mydate = Resultset.getDate(indexField);
Now i would like to get day, month and year from mydate.
In another words, i'm looking for something equivalent to
mydate.getDay() as this method is deprecated.
Can somebody help me out please?
Thank you in advance,swvc2000,
Here is a sample class that demonstrates two ways in which to do this.import java.util.*;
import java.text.*;
public class DateSplitter {
public static void main(String args[]) {
/* even though your date is from a result set,
pretend the following date is your date that
you are using. The try catch block is used
because I hand-crafted my date using
SimpleDateFormat. Substitute your date.*/
Date yourDate = null;
try {
SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
yourDate = formatter.parse("05/06/2000");
} catch (ParseException e) { }
//the following gets the current date
Calendar c = Calendar.getInstance();
//use the calendar object to set it to your date
c.setTime(yourDate);
//note months start at zero
int month = c.get(Calendar.MONTH);
int year = c.get(Calendar.YEAR);
int dayOfMonth = c.get(Calendar.DAY_OF_MONTH);
System.out.println("Calendar Month: "+month);
System.out.println("Calendar Day: "+dayOfMonth);
System.out.println("Calendar Year: "+year);
System.out.println();
/* Simple date format can also be used to strip them
out of your date object. When you use it, notice that
months start at 1. Also, it returns string values. If
you need integer values, you will have to use
Integer.parseInt() as I did below. If you are
only concerned about the string values, just remove
the Integer.parseInt part. */
DateFormat formatter = new SimpleDateFormat("M");
month = Integer.parseInt(formatter.format(yourDate));
System.out.println("SDF Month: "+ month);
formatter = new SimpleDateFormat("d");
dayOfMonth = Integer.parseInt(formatter.format(yourDate));
System.out.println("SDF Day: "+ dayOfMonth);
formatter = new SimpleDateFormat("yyyy");
year = Integer.parseInt(formatter.format(yourDate));
System.out.println("SDF Year: "+ year);
}//end main
}//end DateSplitter classtajenkins -
Is there any way to access my old my Verizon account to retrieve old text messages from my own old account from 8 months ago? I am getting a divorce and I need info off of that account for my hearing to prove what he did.
What do you mean by "when I brought the messages up back in March"?
Were the messages on your phone? Simply because messages are on your phone does not mean they are still on Verizon's servers. You use internal phone memory to store messages on your phone. The messages do not stay on Verizon's servers until you delete them from your phone.
On the other hand, if you still have your phone and have not reset it since you stopped using it, the texts may still be on your phone. Good luck. -
Getting year, month and date
I am getting the current year, month and date as follows:
public void setDate(Date date) {
String strDate = "";
//year
Calendar cal = Calendar.getInstance();
cal.setTime(date);
strDate += cal.get(Calendar.YEAR);
//month
strDate += cal.get(Calendar.MONTH) + 1;
//date
strDate += cal.get(Calendar.DATE);
this.date = strDate;
}This gives me the date in teh format yyyymd.
i.e for Mar 5 2007, it returns 200735
How can it retrieve it in yyyymmdd format?
i.e. Mar 5 2007 must be 20070305use the function:
private String getTwoNumberFormat(int i){
if (i<10)
return "0"+i;
else
return ""+i;
}and then call
//month
strDate += getTwoNumberFormat(cal.get(Calendar.MONTH)+1);or use SimpleDateFormat :) -
When I look up the creation date for files on my Macbook (using "get info", or the information window in Iphoto) I get the date and month in brackets, but not the year. Why is this and how can I look up the year?
Does the Date Modified column in a window set to List view show the date correctly, or does it also display it incorrectly?
To add additional columns to a Finder (folder) window, with that window open and active open the View Options for it. You can do that by pressing Command-J or by selecting View Options from the View menu in the main menubar. -
How to get fiscal period based on date and Fiscal year?
Hi Guys,
Can anybody tell me how to get Fiscal period based on date and Fiscal Year or fiscal year variant?
Thanks,
Gopi.Hi,
Please refer the code below:
*: Report: ZFISCALYR :
*: Date : 2004 :
*: Description: Demonstrates how to return the corresponding fiscal :
*: year and posting period for a company code and posting :
*: date or posting date and fiscal year variant. :
REPORT zfiscalyr NO STANDARD PAGE HEADING.
TABLES: ekko.
PARAMETERS: p_bukrs TYPE ekko-bukrs,
p_bedat TYPE ekko-bedat.
DATA: gd_fiscalyr TYPE bapi0002_4-fiscal_year,
gd_fiscalp TYPE bapi0002_4-fiscal_period.
DATA: gd_fiscalyr2 TYPE T009B-BDATJ,
gd_fiscalp2 TYPE bapi0002_4-fiscal_period.
DATA: gd_periv TYPE t009-periv.
*START-OF-SELECTION.
START-OF-SELECTION.
* get fiscal year and period - (requires date and company code)
CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
EXPORTING
companycodeid = p_bukrs
posting_date = p_bedat
IMPORTING
fiscal_year = gd_fiscalyr
fiscal_period = gd_fiscalp.
* Alternative fiscal year function module
* - (requires date and fiscal year variant code from T009 table)
* gets first entry in fiscal year variant table (will need to choose
* correct one from table rather than just using first entry)
SELECT SINGLE periv
FROM t009
INTO gd_periv.
* get fiscal year and period
CALL FUNCTION 'DETERMINE_PERIOD'
EXPORTING
date = p_bedat
* PERIOD_IN = '000'
version = gd_periv
IMPORTING
period = gd_fiscalp2
year = gd_fiscalyr2
EXCEPTIONS
period_in_not_valid = 1
period_not_assigned = 2
version_undefined = 3
OTHERS = 4.
*END-OF-SELECTION.
END-OF-SELECTION.
WRITE:/ 'From function module: BAPI_COMPANYCODE_GET_PERIOD',
/ 'Fiscal year is:', gd_fiscalyr,
/ 'Fiscal period is:', gd_fiscalp.
SKIP.
WRITE:/ 'From function module: DETERMINE_PERIOD',
/ 'Fiscal year is:', gd_fiscalyr2,
/ 'Fiscal period is:', gd_fiscalp2.
Thanks,
Sriram Ponna.
Edited by: Sriram Ponna on Apr 17, 2008 8:59 PM
Maybe you are looking for
-
Window 8.1 won't download
I am tryin to download the app to upgrade my windows 8 to windows 8.1. I am using an HP Pavillion 2000. It starts the download then it tells me the app can not be installed error code 0x80240031. Please help! And thank you :)
-
MIGO - Excisable material Good receipt, hold button inactive?
While creating Goods receipt (MIGO) of excisable material - hold button is inactive. i want to hold the document.. plz help to resolve.. very urgently required. Award full rewards. Plz vijay.
-
How to determine main program name?
Hello Forums, I am working on a customer exit that is called by a function module and I would like to have a condition in my include that states if program_name = SAPLV56K . do logic in here. Endif. is it possible to determine the program name? tha
-
Needing to color correct a bunch of blue clips!
I recently did a shoot and the other shooter I hired gave me a bunch of blue video. What is the fastest way I can color correct those clips? I used a color corrector 3 way on those clips but it didn't really take the blue out. I then copied the setti
-
Hello I have to show the following table in a dashboard page with the rows as shown below. The content of the first column is the measure details and the second column is the actual value. row 1: Total Revenues for the current Year $12,150,000 row 2: