Current Financial Year
Hi All
how i know that which is the current financial year of particular company in which i am logged in?
Hi,
For that u need to use the company serrvice object, I guess the following sample could help u.
Dim oCompanyService As SAPbobsCOM.CompanyService
Dim oPeriodCategoryColl As PeriodCategoryParamsCollection
Dim oPerCategory As PeriodCategory
Dim oFinancePeriods As FinancePeriods
Dim oFinancePeriod As FinancePeriod
Dim i As Integer
Dim j As Integer
'get company service
oCompanyService = oCompany.GetCompanyService
'get Period Category Collection
oPeriodCategoryColl = oCompanyService.GetPeriods
'print all periods
For i = 0 To oPeriodCategoryColl.Count - 1
'get period category
oPerCategory = oCompanyService.GetPeriod(oPeriodCategoryColl.Item(i))
'print period category name
Debug.WriteLine(oPerCategory.PeriodName)
'get all finance periods (if the sub period isn't a year then it
'has more than one finance period, for example sub period month has 12 finance periods)
oFinancePeriods = oCompanyService.GetFinancePeriods(oPeriodCategoryColl.Item(i))
For j = 0 To oFinancePeriods.Count - 1
'get finance period
oFinancePeriod = oFinancePeriods.Item(j)
'print the period name
Debug.WriteLine(oFinancePeriod.PeriodName)
Next j
Next i
Hope it helps,
Vasu Natari.
P.S: For more informattion please check the DI help file
Similar Messages
-
Selecting Invoice (OINV) records from the current financial year
Hi Everyone,
I would like to select Invoices (OINV) from the current Financial Year. I am located in Australia and our financial year is measured from the 1st of July to the 30th of June.
Here is a pseudo - code sample -
SELECT T1.DocEntry, T1.DocNum, T1.DocDate
FROM AU.dbo.OINV T1
WHERE "CURRENT FINANCIAL YEAR"
Notice above that I would like to replace "CURRENT FINANCIAL YEAR" with an SQL code snippet that selects all dates from the beginning of the financial year (1/07/xx) to the current date.
Any help here will be greatly appreciated.
Kind Regards,
DavidHi Everyone,
Here is a code snippet that permits returning only values from the current financial year -
DECLARE @day nvarchar(2) = DAY(GETDATE())
DECLARE @currentMonthAndDay INT = CAST(CAST(MONTH(GETDATE()) as nvarchar(2)) + (REPLICATE('0', 2 - LEN(@day)) + @day) as int)
DECLARE @StartOfFinancialYear DATETIME
SET @StartOfFinancialYear = CAST(YEAR(GETDATE()) - CASE WHEN @currentMonthAndDay<701 then 1 else 0 end as nvarchar(max)) + '0701'
SELECT *
FROM AU.dbo.OINV T0
WHERE T0.DocDate >= @StartOfFinancialYear
AND T0.DocDate < DATEADD(yy, 1, @StartOfFinancialYear)
Many thanks to Faheem for providing the answer to returning only results from the current financial year, in this thread: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2edbe630-faca-4f94-a014-04f5a832f81d/returning-results-that-fall-within-the-current-financial-year?forum=transactsql
Kind Regards,
David -
Returning results that fall within the current financial year
Hi Everyone,
I am using MSSQL Server 2008R2 and I am interested in returning rows from a 'financial' table that fall within the current year (each row contains a 'Entered Date'). I am located in Australia so my financial year consists of all entries between the date
01/07/xx to the 30/06/yy.
Can anybody suggest some code, perhaps using the datediff() function, or other functions as required to achieve what I need?
Kind Regards,
DavidHi,
Try the Below Script.Hope it works
DECLARE @StartOfFinancialYear
DATETIME
-- This gets 1st April for the current year
SET @StartOfFinancialYear
= CAST(YEAR(GETDATE())
AS VARCHAR)
+ '0701'
SELECT
FROM
<YourTable>
WHERE DateField
>= @StartOfFinancialYear
AND DateField <
DATEADD(yy, 1, @StartOfFinancialYear)
-- less than 1st July NEXT year
Regards, PS -
Write up in Current financial year
Hi All,
We had done an unplanned depreciation in December and run depreciation also. Unplanned depreciation got posted. Now we want to reverse the unplanned depreciation by posting a write up in December only. System is throwing an error message saying "You cant post writeups". But if we try with some assets which are capitalised in last fiscal year, it is allowing writeups. Could someone tell me the wayout to post write ups for assets capitalised in current fiscal year?
Regards
SureshPaul is correct. Asset acquired in current fiscal year does not have Accum Deprec, so no write-up is possible. Workaround would be to create a custom t-type. copy paste your unplanned deprec t-type and make it a "Debit" transaction which will work as write-up. See if this works!
-
Hi
I'm using CR XI. I'm attempting to create a cross-tab report where:
Added Total
AF 12 23
F 15 30
CO 18 50
Where AF etc is the categoty of items, Added is the total count of previous finanical year(e.g. 1 July 2006 to 30 June 2007), Total is the total account of current finanical year.
The count is based on created_date field(e.g. ITD.DTE -- ITD is the table, DTE is the field).
Although I can at the moment only display the value correctly in "Added" column, if I tried to display the Total column, the two columns always have the same value.
How could I achieve the above desired results by using fomula? I would appreciate it very much if anyone could help me with this?
Thanks in advance
JSCreate 2 formulas, 1 for the previous year and 1 for current, similar to the following;
1) if date({Orders.Order Date}) in date(2003,07,01) to date(2004,06,30) then 1 else 0
2) if date({Orders.Order Date}) in date(2004,07,01) to date(2005,06,30) then 1 else 0
Add both of these formulas as the summarized fields in the crosstab -
Dear Sir,
Our company is presently following Financial Year Oct to Sep . Current Financial Year 2010 , started on Oct-2009 . Comapny has decided to change the Finacial Year from April To March . As per the decision , the Current Financial Year 2010 , will be of period Oct-2009 to March-2010 (6 month period) and will be closed on 31-Mar-2010 .
From April-2010 , new Finacial Year 2011 will start .
We are presently on ECC-6.0 and have Fixed Asset also implemented .
We request you to kindly guide us , as how should we go ahead to make these changes possible and what steps we need to follow to make the desired changes .
Kindly pl note that March-2010 closing will take some days and hence in April there will be situation when transaction are posted in FY-2010 and FY-2011 both .
We request you to pl help us .
Rgds
B MittalHello,
Adding further, check these also.
1 Maintain Activity prices - KP26
2 - Release of Standard Cost Estimate - CK40N
3 - MM period close and open - MMPV
4 - FI period open
5 - Parked documents to be posted - FBV0, MIRO
6 - Reposting of Inter Office CC - KB61
7 - Bank Reconciliation
8 - Update Section Code where missing - J1INPP
9 - Maintain GRIR clearing - F.13
10 - Provision for current month - FB50
11 - Depreciation entry - FB50
12 - Exchange rate - To be Updated
13 - Revaluation of foreign currency open items - F.05
14 - Recognition of Inventory at Bonded warehouse - FB50
15 - Maintain Statistical Key Figures - KB31N/KP46
16 - Variance Calculation of Process Orders - KKS1
17 - Settlement of variances - CO88
18 - Assessment cycles - Aux/WH CC to Main CC - KSU5
19 - Assessment cycles - Functional CC to SBU CC - KSU5
20 - Assessment cycles - SBU CC to COPA - KEU5
21 - Profit Center Reposting - 9KE0
22 - Balance Sheet Adjustment calculation - F.5D
23 - Transfer Profit Center to AR & AP - 1KEK
24 - Transfer Inventory to PCA - 1KEH
25 - Assessment Cycle - Dummy PC to SBU PC - 3KE5
26 - Check for "Delivery made, not Invoiced" - VF03
27 - Match GL and PCA - KE5T
28 - Match PCA and PA
29 - Top Down Distribution in COPA - KE28
30 - Reclassification of GL balances
31 - Balance Carry forward (Year End Only) - F.16
32 - PCA Balance Carry forward (Year End Only) - 2KES
33 - Transfer to FI - 1KE8
assign points if useful -
How to read data from Logical Database ADA for more than one financia year
Hi,
I need to read data from ADA logical database and ANLCV node for current financial year 2007 and for the next 3 years 2008, 2009, 2010. When I do this using program attached below, I receive only data for one year, which is entered at the selection screen in the field BERDATUM. How should I modify my program to read ANLCV node for more then one year ? Could anybody help me ?
Kind regards,
Zbigniew Debowski
REPORT ZWRZD075.
NODES: anlav, anlcv.
START-OF-SELECTION.
GET anlav.
WRITE:/ anlav-anln1, ' ', anlav-anln2.
GET anlcv.
WRITE:/ anlcv-kansw, ' ', anlcv-knafa, ' ', anlcv-gjahr.Hi!
Have you already tried your luck in Java Programming forum?
Regards,
Thomas -
EAM: Reinstatement of assets retired in previous Financial Year
Guys,
I have 19 assets all of them got retired in the month of Dec-2011 (Financial Year period 1-Jan-2011 to 31-Dec-2011). Now customer as on 1-Jun-2012 (Financial Year period 1-Jan-2012 to 31-Dec-2012 ) wants me to reinstate all of them back to Oracle. If I am not wrong, Oracle does not allow to reinstate assets in current financial year if they are retired in the previous financial year. Can you please enlighten me on it?
Thanks
SunilHi Rohit,
I had a similar requirement for Fixed Assets. The response from SAP was that this cannot be done for Assets Acquired in Current Fiscal Year and needs to be done manually. Version I was using was 2004A.
Have you been able to get a solution since?
Regards -
Surcharge 10% is not caluculating to some employees in financial year
hi experts,
surcharge is not caluculating to some employees in current financial year where i have chek and guideme
advance thanks
ramHi Friend...
First thing you should notice is period 000 is not valid or available in that Fiscal year variant K4.
My company has shortened the fiscal year and I encounter the exactly same message "SYST: Period 012 is not valid in financial year variant Z4" in a Finance Report eg. when calling the asset on the shortened fiscal year in the Explorer.
I would like you to seek the SAP note 123026 to check if it rectify the problem or if its not then you should understand that the new variant you have copied dosent have have base to bring data ...ie you need to create it in---> Maintain Fiscal Year Variant and Posting periods in SPRO settings in BI. Check if it works.
Thank you.
Sandhya -
Resetting a clearing document from a previous financial year - Vendor Payment
Finance team needs to reset a cleared item from a previous financial year. The cheque was
never presented. They are unable to create a new invoice to pay the vendor without this cheque going
through and being processed.
However, when using transaction code FBRA they receive an error message
"clearing document from alternative fiscal year-. Message no F5A258".There are two option
1. You Open the Close Period, or change the reversal code, which can allow alternative posting in the current period.
2. Go to the IMG - Controling - General Controlling - Change Message control. Give the message application area and then the number and turn it off. (Tcode : OBA5)
With regards,
Uttam Maity -
RetrorespectiveActivation of Multiple Form 16 in mid- of the financial year
Hi All,
We have mainatined TAN as per the company Code in feature 40ECC. Now we want to have multiple Form 16 if there is change in company Code of an employee for the financial year 2009.
We have not activated Multiple Form 16 Switch so far. Now in the last month of financial Year 2009 that in March'2010 (period 12/2009) we want to activate Multiple Form 16 switch from 01.04.2009. After activation Multiple form 16 Switch, we are planning to trigger retro for all employees from 01.04.2009.
But we are not very much sure what will be the impact of activating Multiple Form 16 switch now in the last period of the financial year.
Required your valuable inputs on this.
Thanks,
RavinderHi,
Check whether multiple Form 16 switch is active or not.
In case this is active, then the Form 16 will be generated as under:
Company A - showing earnings from 01.04.08 to 31.12.08 only
Company B - showing earnings from 01.01.09 to 31.03.09 as current earnings and from 01.04.08 to 31.12.08 as income from previous employment.
In case multiple Form 16 is not active, then the Form 16 that you are getting is correct. However, in this case you need not print the Form 16 of company A. Only the Form 16 from the company code where the employee belongs to as on 31.03.2009 (i.e. last day of the FY) will be printed. And in this case the Form 16 will include complete earnings from 01.04.2008 to 31.03.2009 as current earnings.
Hope this clarifies your query.
VK -
Date Range according to Financial year-end
Hi
I'm building this Discoverer report and one of my parameters is a LoV date field, which gives me a date range from Jan to Dec each year. Now my problem is, I want my date range to be as per our Financial Year End, which is from 01-Oct-03 to 30-Sep-04.
You'd find "<All>" amongst the range. This "All" currently indicates date between Jan 2003 - Dec 2003. Now I need to write a query/trigger that will put my date range to be between 01-Oct-02 to 30-Sep-03 recurring automatically after each Financial year-end.
ThanksHi,
Although I haven't tried it, you should be able to use a combination of hierarchies and alternative sorts to accomplish this.
How have you created your list of values? If your LOV is a list of months and years e.g. JAN-2003, FEB-2003 etc, you can create a alternative sort which will make OCTOBER the first month of the year - i.e. with value 1, and NOVEMBER = 2 and so on...
Sorry this is a bit vague. I will try and test tomorrow and see if it works, but this should be enough to give you an idea of how to progress. -
Hi
I'm building this Discoverer report and one of my parameters is a LoV date field, which gives me a date range from Jan to Dec each year. Now my problem is, I want my date range to be as per our Financial Year End, which is from 01-Oct-03 to 30-Sep-04.
You'd find "<All>" amongst the range. This "All" currently indicates date between Jan 2003 - Dec 2003. Now I need to write a query/trigger that will put my date range to be between 01-Oct-02 to 30-Sep-03 recurring automatically after each Financial year-end.
ThanksHi,
You might want to post the Q on Discoverer Forum also
Discoverer
Navneet. -
SYST Period 012 is not valid in financial year variant R2 Msg no;FGV003
Hi SAP Gurus,
I have encountered with an error as following :
SYST: Period 012 is not valid in financial year variant R2
Message no. FGV003
Our client following calendar year till December 2009. They want to change to April to March , from April 2010 . So we need to define a shortened fiscal year for January to March 2010 for 3 months.
One important thing is Depreciation should be calculated only for 3 months ie., from January 2010 to March 2010 for year 2010. For year 2011 u2013 April 2010 to March 2011 be calculated.
I have done the following settings :
Current fiscal year variant = K4, i.e. the standard variant with 12 periods (calendar year)
-the current fiscal year must be closed on 31.12.2009
-this change have to be done in the next month, i.e. on 01.01.2010
-on 1.1..2010 starts the new fiscal year 2010
-the fiscal year 2010 ends on 31.03.2010 and have 3 posting periods
1) Create a new Fiscal Year Variant for the shortened fiscal year u2013 e.g. "R2" (OB29).
2) R2 to be made Year Dependent. Current Period Configuration
Month Days Period Year Shift
1 31 1 0
2 28 2 0
3 31 3 0
4 30 4 0
5 31 5 0
6 30 6 0
7 31 7 0
8 31 8 0
9 30 9 0
10 31 1 +1
11 30 2 +1
12 31 3 +1
3) Company Code assignment (OB37): K4 to be replaced with R2 .
4) Controlling Area (OKKP): K4 to be replaced with R2.
5) Fiscal Year to be shortened for Depreciation Areas in Asset Accounting customization (OAYP).
6) Table T093C to be viewed to check whether the field XRUMPF (Shortened Fiscal Year) has been activated with u201CXu201D..(SE 11 Check Table) Done manually
Other Problem : 1. The system calculates deprecation for period 3 ( Full year deprecation) as seen from AW01n for one asset.
2. When I run AFAB for 2010 period 1 the error is displayed
SYST: Period 012 is not valid in financial year variant R2
Message no. FGV003
Please anybody help me in this issue .
SubbuHave you maintained the Year Shift Properly in OB29
For e.g if Financial Year is from July to June, year shift will be as follows:
Month Days Period Year Shift
1 31 7 0
2 29 8 0
3 31 9 0
4 30 10 0
5 31 11 0
6 30 12 0
7 31 1 +1
8 31 2 +1
9 30 3 +1
10 31 4 +1
11 30 5 +1
12 31 6 +1
Check also FI period and aseet periods are open through OB52 and AJAB -
BEX Error: SYST: Period 053 is not valid in financial year variant M2
Hi All,
We have a merchandising report which bring the data for current year and previous year. While I execute the data for Fiscal Year/Period - 011.2011, I get the output. But when I execute the report for Fiscal Year/Period - 012.2011, I receive the below error.
SYST: Period 053 is not valid in financial year variant M2
We have variants M4 and M2.
M4 is month wise where are M2 is weekly.
In table T009B, we have a record for week 053 for year 2011 whereas we don't have a record for week 053 in year 2010. This is obvious as there are only 52 weeks in 2010 but 53 in 2011.
I'm not able to track the exact reason for this error.Hi All,
Thanks for the reply.
I have tried maintaining entry for week 053 against year 2010 in T009B but this didn't work. I checked the 'Check Table' button for any dependencies and I saw T009 table.
I maintained the entry as below in T009 table and it worked. Can someone explain how this work?
Earlier entry for which I received the error:
Fi.Year Variant Year-dependent Posting period Special Periods Description
M2 X 052 00 Retail Calendar Weekly
Changed entry for which the error stopped appearing
Fi.Year Variant Year-dependent Posting period Special Periods Description
M2 X 053 00 Retail Calendar Weekly
Please help me understand so that if I transport the entry to Production, I don't face any serious issues.
Regards,
Murthy
Maybe you are looking for
-
Problem in sending IDOC to XI: status 30 in R/3
in a IDOC to file scenario, i m sending a MATMAS idoc from R/3 to XI, i m triggering it form we19, it shows a status 30 (IDOC ready for dispath(ALE service)), what shall i do to sent it to the target XI system
-
I'm running Mac OS X Server 10.5.1 on a mac mini "server" (2GHz, 2 GB RAM). Everything is working fine so far (AFP, DHCP, DNS, Firewall, NAT, Open Directory). The only problem is with the Print service : I've made a queue for our network laser printe
-
Foreign keys on cascade delete rules are not migrated
hello folks, i tried to migrate a database from sql server 2005 to oracle 10g express using SQL Developer 1.5.5 and noticed that the cascade delete option of the foreign keys was ignored by the tool. I'd like to know if it's a limitation of the tool
-
BAPI for Invoice parking & completion
Hi Friends, I want to make a BAPI for LIV park & complete option. I found the following : BAPI_INCOMINGINVOICE_PARK for Parking. BAPI_INCOMINGINVOICE_POST for Invoice Verification: Post Provisional Invoice BAPI_INCOMINGINVOICE_CREATE for Invoice Veri
-
10.1.2.0.2
Maybe i'm having a bad day, but I can't seem to find the release notes for the new version of the Application Server. I want to know what fixes are in this release. (10.1.2.0.2) Can someone help me out please?