Fiscal date DD-MON and year end looking forward
Trying to figure out the best way to look forward to the new year and back to the old year when comparing sysdate to a table column fiscal that is formatted DD-MON. The process works perfectly during the year, since is uses current year when comparing data. But at the end of the year, we do not see anything past 12/31 or before 1/1 in a new year. Any ideas? I was thinking of declaring a couple of values and based on sysdate Sep, Oct, Nov, Dec to add 1 year to Fiscal months Jan, Feb, Mar, Apr so they appear as the next year and vice versa for the first months of a new year, subtract one year from the fiscals to indicate previous year. Has anyone worked on something like this in the past?
Look in to this, i am substituting values for the year, so you will get idea.
The fisccal date you have is month end all the time or it is all the dates?
SQL> ed
Wrote file afiedt.buf
1 WITH T AS
2 (SELECT '01-DEC' dt FROM dual
3 UNION ALL
4 SELECT '05-JUL' FROM dual
5 UNION ALL
6 SELECT '10-JAN' FROM dual
7 UNION ALL
8 SELECT '30-MAR' FROM dual
9 )
10 --ens of data
11 SELECT TO_DATE(dt||'-'||&y,'DD-MON-YYYY') fisc_date,
12 TO_DATE(dt||'-'||&y,'DD-MON-YYYY')+180 NEW_DATE,
13 ADD_MONTHS(TO_DATE(dt||'-'||&y,'DD-MON-YYYY'),6)
14* FROM T
SQL> /
Enter value for y: 2008
old 11: SELECT TO_DATE(dt||'-'||&y,'DD-MON-YYYY') fisc_date,
new 11: SELECT TO_DATE(dt||'-'||2008,'DD-MON-YYYY') fisc_date,
Enter value for y: 2008
old 12: TO_DATE(dt||'-'||&y,'DD-MON-YYYY')+180 NEW_DATE,
new 12: TO_DATE(dt||'-'||2008,'DD-MON-YYYY')+180 NEW_DATE,
Enter value for y: 2008
old 13: ADD_MONTHS(TO_DATE(dt||'-'||&y,'DD-MON-YYYY'),6)
new 13: ADD_MONTHS(TO_DATE(dt||'-'||2008,'DD-MON-YYYY'),6)
FISC_DATE NEW_DATE ADD_MONTH
01-DEC-08 30-MAY-09 01-JUN-09
05-JUL-08 01-JAN-09 05-JAN-09
10-JAN-08 08-JUL-08 10-JUL-08
30-MAR-08 26-SEP-08 30-SEP-08
Similar Messages
-
Dear All,
I have date column.I have to display Month name and Year.
E.g
NOV 2011
DEC 2011
How will get this could you pls send me Syntex
ThanksHi Govind,
There are many ways to do,
1. you can use evaluate function to do that.
2. simple and better way is to overide the date formate of thet coloumn with the custom and then type MMM YYYY
Hope this helps you... -
Mid year go live and year end go live
Hi Experts,
What is the difference in configuring Mid year go live and year end go live What are difficulties we face in mid year go live.
thanks & Regards.
Akhilhttps://forums.sdn.sap.com/click.jspa?searchID=21620306&messageID=6587485
you go live on the SAP payroll system in the middle of a financial year, you have an option to transfer your legacy data into the SAP payroll system.
The system provides the schema INLK for transferring your legacy data. For this purpose, you need to perform the following IMG activities:
Define the payroll periods for which you want to transfer the legacy data. For more information, refer to the IMG under Payroll India -> Legacy Data Transfer -> Define Periods for Import
Define the type of data you want to import. For more information refer to the IMG under Payroll India -> Legacy Data Transfer -> Define Pay Elements for Import
Upon execution along with the payroll driver, the schema INLK formats the information defined in the above tables as payroll results and stores the values in the database table PCL2.
For more information on the Legacy Data Transfer functionality, refer to OSS note number 506128. -
I want to keep date special month and year.
I want to keep date special month and year.
Example in sqlplus
insert into area(input_time) values(to_date('MAR-04','MON-YY'));
and select
select input_time from area;
the result
01 MAR 2004
in Oracle
01-MAR-2004 12:00:00 AM
I don't keep day, but I want to keep month and year.
Can you do?
Thanks.An Oracle date column must contain a date down to the second. If you don't specify a day or a time, it will default to the first of the month and midnight.
If you want a column to only contain values at the beginning of a particular month, you can create a CHECK constraint that verifies that
input_time = trunc( input_time, 'MM' )Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Month end and year end closings
hello guys,
Can anyone explain me about the series of steps that we have to do for month-end and year-end closings (FICO).
Thanks in advance..Hi,
Below are the month end activities
1. Recurring Documents.
a) Create Recurring documents
b) Create Batch Input for Posting Recurring Documents
c) Run the Batch Input Session
2. Posting Accruals or Provisions entries at month end
3. Managing the GR/IR Account-Run the GR/Ir Automatic Clearing
4. Foreign Currency Open Item Revaluation-Revalue Open Items in AR.AP
5. Maintain Exchange Rates
6. Run Balance Sheets Run Financial Statement Version
7. Reclassify Payables and Receivables if necessary
8. Run the Depreciation Calculation
9. Fiscal Year Change of Asset Accounting if it is year end
10. Run the Bank Reconciliation
11. Open Next Accounting Period
Assign points if useful
regards
genie -
Month end and Year end Activities
Hi All,
What are the month end and year end activities are involved and how will they happen????
regards
vasanthaHi Vasantha,
Month-End Closing
http://help.sap.com/saphelp_erp60_sp/helpdata/en/96/8b3c2d43ce11d189ee0000e81ddfac/frameset.htm
Year-End Closing
http://help.sap.com/saphelp_erp60_sp/helpdata/en/96/8b3c2d43ce11d189ee0000e81ddfac/frameset.htm
Some of the Month-End Activities
- Open and Close Posting Periods
- GR/IR Clearing
- Adjustments in G/L, AR and AP accounts
- Foreign Currency valuation for Exchange rate fluctuations
- Transfer Postings to Reconciliation accounts from CO module
Some of the Year-End Activities
- Balance sheet adjustments
- GR/IR Clearing
- Adjustments to special Posting periods at year end
- Balance Confirmations for AR and AP accounts
- Run Balance Carryforward program for G/L, AR, AP accounts at year end or first day of next year
- Generate Financial statement for the current year
Best Regards,
Mohan.
Edited by: krishna on Dec 18, 2008 12:01 PM -
Month end closing and Year end closing
Hi,
Does anyone have a list of t-codes to be run for month end and year end closing. I want to know what all steps are done for month/year closing.
We are only using FI,CO and MM and no other SAP modules.
Thanks,
ShrutiHi,
The Month end Activities are as follows
Clearing the open items of vendor, customer
Clearing the suspense account regularly
All the Expenses Including the prepaid expenses have to be booked..
Intercompany Balances Should be Zero
Depreciation Run.
Recuring Entries.
Park documents to be posted(FBVO)
Accural and referal in any differneces.
GR/IR Clearing Transaction (Tcode-F.13)
Bank Reconciliation(Comparing the Company Books and Bank Statements)
Exchange rate to be updated
Revaluation of foreign currencyopen items(F.05)
Order Settlements.
Distribution Cycle
Assesment Cycle(KSU5)
Transfer the Inventory to Profit center(1KEH)
Match GL and PCA(KE5T)
MM period Close and Open (Tcode MMVP)
FI Period Open(Tcode OB52).
CO period Closing
Year End Process
All the Month end Activities should be Carried Out.
Balance Carried Forwarded to next year(F.16)
PCA Balance Carried Forward(2KES).
Carry forward the Vendor,Customer and Asset Balances
(Unless Dep is posted for all the months the assets can not be Closed)
Copy the No Ranges to new year
Open the Next year period(OB52)
I Hope this is Helpful,
Assign the Points.
Regards,
Padma -
Month-end and year-end valuation differences!
Hı Friends,
What are the differences between Month-end and year end valuation in the system?
Thank you!Yes
For example
31.12.2010
Dr/Cr Forex loss/gain a/c
Cr/Dr B/s adjustment a/c
01.01.2011
Dr/Cr B/s adjustment a/c
Cr/Dr Forex loss/gain a/c -
Month end accural and Year end accural processings.
Hi Experts,
Can you please give me an idea about month end accural and year end accural proecess in payroll?? What are the responsibilities of functional consultants in accural processing??
Thanks,
Kanna.Hi,
The purpose of the accrual process is to recognize payroll costs in the month in which they were incurred, i.e. when the employee actually performs the work.
This accrual process will result in a more accurate presentation of monthly and year-end payroll expenses and liabilities.
The accrual is calculated in HRMS and posts an entry in FI (debit department payroll expense and credit accrued liability) to account for the portion of earnings owed but not paid at month end.
The accrual is calculated as follows:
The system determines the fraction of the payrolls that were earned but not physically paid in the current month. This amount is calculated based on the number of days in each payroll that were earned in the month, as a fraction of the total number of days in each payroll (10 days for all biweekly payrolls). If an entire payroll was earned and not paid, then the fraction would be 1 (ie.100% accrual). Some months may have to accrue a fraction of one payroll, other months we may accrue more than one payroll.
~BiSu -
Open documents and year end closing.
Hi experts,
I would like to know if it is necessary to close all open documents before we start the year end process.
Since practically it is not possible to close all open documents.
here open documents refer to Purchase orders, GRPO's, Sales orders, deliveries etc.
kindly suggest.hi ajith,
Purchase orders,sales order won't have any impact on accouting which will only
effect ordered,committed quantities.
GRPO can be kept open in case when there is orginal bill is yet to be sent by vendor.
Production orders which are open(ie) production completed - should be closed atleast
before year end so that it can't avoid unnessary WIP variance posted in next fiscal year,
because production orders will post JE's only on Actual Closing Date.
Jeyakanthan -
FI-AA : Problem in Depreciation Run and Year end closing.
i am doing asset year end closing and new fiscal year open, i followed the steps as followings..
Step 1 Did depreciation run using T-code AFAB- no error
step 2 checked depreciation run in AFAR was correct(no error)
step 3.did actual run of new fiscal year open using tcode AJRW.
step 4 : did actual fiscal year closing t-code AJAB.
but now the problem is still i am not able to see any asset reports when open the report meg. says "fiscal year change not done for company code xxxxx"
problem due to is any patch need to be executed? or due to any other application error?, pls advice to solve this my issue.
with best regards,Hello
Choose Periodic processing ® Fiscal year change.
Enter the company code and the new fiscal year.
Choose Program ® Exec. in background.
Process the assets with errors that were identified during the fiscal year change (Tools ® Assets with errors).
Reg
*Assign points if useful -
Month end and year end procedure
hi experts,
can any one help me for year end and month end procedure
correct answers will be duly rewarded
thanks in advancehi,
Month end closing Activities
1. All the expenses including amortization, prepaid expenses, Preliminary expenses and accruals have been booked.
2. Complete Bank Reconciliation
3. Make sure that Sum of Inter company balances is Zero
4. Suspense Accounts should be cleared regularly.
5. Ensure that all documents related to MM & SD have been entered in system.
6. Ensure that all billing documents are released to accounting.
7. Calculate Overheads on all process Orders (CO43)
8. Technically complete all process orders, which are fully processed (CORM).
9. Calculate Variance (KKS1)à (Relevant only if Standard cost is calculated).
10. Settle all process orders, which are technically complete (CO88).
11. Close All settled Process Orders
12. Close MM period (Transaction Code: MMPV).
13. Carry out GR/IR clearing (F.13) transaction
14. Depreciation Run (AFAB) has been carried out for the month
15. Close FI Posting period after the month end closing activity is over.
Year end closing Activities:
1. Calculate production work in progress on process orders which are not technically complete.
2. Carry out Assessment cycle for Cost Centers.
3. All month end closing Activities should be carried out.
4. Carry Forward Balances to next year
(With TC: F.16 we can carry forward the balance to next year.
With TC: OBH2 copy the number ranges to next year
Open next year periods by selecting the Posting Period Variant.
Then test by posting the transaction in F-02)
thanks
sai krishna -
How do I sort a bunch of date by week number and year? I have a bunch of date in the format IW-YYYY such as
45-2010
46-2010
47-2010
48-2010
49-2010
50-2010
51-2010
52-2010
01-2011
02-2011
If I sort by week, I get the following which is not what I want. I want the above.
01-2011
02-2011
45-2010
46-2010
47-2010
48-2010
49-2010
50-2010
51-2010
52-2010
Thanks,
SMdo you happen to have the underlying dates as well as the iw-yyyy format? If so, then it's just a matter of:
order by trunc(actual_date_col, 'iw')If not, then you're going to have to do:
order by to_number(substr(date_in_iw_format_col, 4)), to_number(substr(date_in_iw_format_col, 1, 2))eg:
with sample_data as (select '45-2010' date_in_iw_format_col from dual union all
select '46-2010' date_in_iw_format_col from dual union all
select '47-2010' date_in_iw_format_col from dual union all
select '48-2010' date_in_iw_format_col from dual union all
select '49-2010' date_in_iw_format_col from dual union all
select '50-2010' date_in_iw_format_col from dual union all
select '51-2010' date_in_iw_format_col from dual union all
select '52-2010' date_in_iw_format_col from dual union all
select '01-2011' date_in_iw_format_col from dual union all
select '02-2011' date_in_iw_format_col from dual)
select *
from sample_data
order by to_number(substr(date_in_iw_format_col, 4)),
to_number(substr(date_in_iw_format_col, 1, 2));
DATE_IN_IW_FORMAT_COL
45-2010
46-2010
47-2010
48-2010
49-2010
50-2010
51-2010
52-2010
01-2011
02-2011 -
Aggregated data for quatrter and year
Hi,
I have created a input schedule by using any by any template, I have account on row and time dimension on column, I input some test data for each month for some accounts, it work ok and I send the data successfully.
I create another report using Evdre with the row and column structure, I set both member set as "SELF AND DEP", however, when I run the report, I notice that the Quarter data and the year data is not correct, For example, Q1 data should the summary of Jan,FEB and MAR, instead it show the same data as MAR, while the year data show the same data as Q4.
Anybody know hot to fix this?
ThanksI did another test as following:
I copy a appshell from SAP standard AppShell, I generated some test data for each month using input schedule, then I build a evdre report, it work perfect,if i choose PERIODIC, I get the quarter and year data summary the month or quarter, if I choose YTD, I get the year to date data,
then I copy the my master data to replace the orginal master data, I generated some test data, this time the report only show the YTD data no mater I choose PERIODC OR YTD for measure in CV. This is verystrange. -
Determining last date if period and year are given
hi,
what is the code if the period and year are given and to print the last date of that particular period and
year.suppos period is perio = '2006002'
Data sdate type sy-datum.
Data edate type sy-datum.
mm = perio+5(2).
yy = perio+0(4).
concatenate yy mm '01' into sdate.
call function 'SG_PS_GET_LAST_DAY_OF_MONTH'
exporting
day_in = sdate
importing
last_day_of_month = edate.
edate is your lst day of that period month.
\[removed by moderator\]
Regards
Rajesh
Edited by: Jan Stallkamp on Jul 21, 2008 2:35 PM
Maybe you are looking for
-
How to get audio and video in one file
hi...I am "premiere beginner user" and I have a simple question , I think..:)...Every time when I am trying to export media out from my premiere (using media encoder) I get video file and some audio files, but what I need is only ONE file, that conta
-
ABAP Proxy Generation -- Objects can be created only in SAP Package
Hi, I am trying to generate ABAP Proxies. When i create a proxy for an interface(EMP_DETAILS_MI--outbound in my case), and assign it to package(created by developer), a pop comes up saying "Object can only be created in SAP package". When i try to co
-
Software RAID (level 0) with Timemachine Backup
Hi I am in the process of ordering a Mac Pro (two 2.26GHz Quad Core, 12GB) and will be using four 1.5TB Seagate Barracuda hard drives. I have read many posts on these discussion pages relating to RAID, etc but can't seem to find an answer to my query
-
MI31 Process (Physical Inventory) In the Background
Hi Gurus, My question is how to find in an easy way the inventory document number created when I process the batch input in the background with MI31. Thanks Joules
-
How to work with embeded query
I have the below query and I embeded a query within a query and I am just wondering if I could you the field from the embeded query to display the out put? select c.iplineno, c.bidprice, b.vendor, v.vnamel,l.lcontid, t.datelet, func_get_county_name (