Variable for budget from starting to previous fiscal year?
Hi experts,
The requirement i got in my report to calculate Budget upto previous fiscal year.
For ex: If my project starts on Nov 2004 , then i want to calculate for the year Nov 2004 to Mar 2008.
I tried for variable Cumulate to last fiscal yeard
Hi,
Here I'm giving the code to get Months based on System date, so you change this code to as per your requirement.And if any use input variable is there then you need to use ....
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZVARAIBLE'.
ENDLOOP.
Note: So by using this variables you need to restrict your Keyfigures with offset values.
* First Month Of Current Fiscal year comment*
WHEN 'FMYEAR'.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = sy-datum
* I_MONMIT = 00
i_periv = 'V3'
IMPORTING
e_buper = zbuper
e_gjahr = zbdatj.
CLEAR: l_s_range.
l_s_range-low+4(2) = '04'.
l_s_range-low+0(4) = zbdatj.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
* Last Month of Current Fiscal year*
WHEN 'LMYEAR'.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = sy-datum
* I_MONMIT = 00
i_periv = 'V3'
IMPORTING
e_buper = zbuper
e_gjahr = zbdatj.
CLEAR: l_s_range.
l_s_range-low+4(2) = '03'.
l_s_range-low+0(4) = zbdatj + 1.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
Thanks
Reddy
Similar Messages
-
In my BEx Query Variable (Fiscal Year), how to create the variable so that it will default previous Fiscal Year, and yet user can still change it.
Please help, thanks.Hi,
You need to make one customer exit variable on fiscal year.
Write cmod code in I_STEP 1.So it will by default fill the variable with previous fiscal year.
If in case user want to change it,then yes they can change it as well.
Check out this pdf.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d09d4588-3832-2c10-e185-f778d9dbea85?QuickLink=index&overridelayout=true
Hope it helps.
Regards,
AL
Edited by: AL1112 on Dec 23, 2011 3:54 AM -
BW data load for previous fiscal year depending upon sy-datum
Hello All,
In SAP BW, while loading data using date, I have requirement to load the datat for previous fiscal year.
Fiscal year run from Oct to Sept.
I have given example of Nov 2012. Becuase I am going to add this info-package in process chain which will run Nov of every year for full data load.
For Ex: I am loading data in calander year/month Nov 2012. Its previous fiscal year is 2011.
So for fiscal year 2011, my dates for data load would be : 10/1/2010 to 9/30/2011.
So my code or functional module should retun me 10/1/2010 to 9/30/2011 this value.
Kindly give your inputs for the same.
Thank You.Hello All,
I have wriiten below code and it has solved my problem:
REPORT ZTEST_PK.
data:
month_last type n length 2,
year_last type n length 4,
year type n length 4,
month_first type n length 2,
month type n length 2,
year_first type n length 4,
day_in type sy-datum,
day_out type sy-datum,
v_date type n length 6,
select_period_low(8) type c,
select_period_high(8) type c.
year = sy-datum(4).
month = sy-datum+4(2).
concatenate year month into v_date.
Data: fisyr type n length 4,
fiscper type n length 3.
*Fiscal years run from Oct to Sep
*For Ex: Nov2012 load of the previous FY itu2019s FY 2011, the dates would be Oct 10 (10/1/2010) to Sep 11 (9/30/2011).
CALL FUNCTION 'Z_XCONVERT_CALMONTH_TO_FISCAL'
EXPORTING
IV_CALMONTH = v_date
IMPORTING
EV_FISCYEAR = fisyr
EV_FISCPER3 = fiscper.
year_last = fisyr - 1.
year_first = year_last - 1.
month_first = '10'.
month_last = '09'.
concatenate year_first month_first '01' into select_period_low.
concatenate year_last month_last '01' into day_in.
*calcualte last day of a given month
CALL FUNCTION 'SN_LAST_DAY_OF_MONTH'
EXPORTING
DAY_IN = day_in
IMPORTING
END_OF_MONTH = day_out.
concatenate day_out(4) day_out4(2) day_out6(2) into select_period_high.
write:/ select_period_low.
write:/ select_period_high. -
How to calulate previous fiscal year from current year and periods as input
hi all,
i have a report where i have 2 select options as year and period.
my period can be a range like( Ex: 1 to 6).
i like to know previous fiscal year from the following inputs.
Tel me a suitable conversion routine to calculate
depending on periods and fiscal year.
regards
sivaram.Hi
U need to check the lower period, if it's 1 the previous fyscal year will be the year before:
IF PERIOD = '1'.
PREV_YEAR = YEAR - 1.
ENDIF.
U can also use the fm FI_PERIOD_DETERMINE, in this case you need a date, u can get it from lower current period:
Get the first day of the period
BUDAT(4) = YEAR.
BUDAT+4(2) = PERIDO_LOW.
BUDAT+6(2) = '01'.
Now get the last day of the previous month:
BUDAT = BUDAT - 1.
Use this date to get its period by fm FI_PERIOD_DETERMINE
Max -
Depreciation of the Previous Fiscal Year want to post in Current FiscalYear
I have already posted Depreciation for the year 2008 by using Planned Posting Run (T.code:AFAB)
After that I have created one Asset Master (T.code: AS01)
In AS01, Depreciation tab , I have set Depreciation starts from 19.09.2007, i.e. Fiscal year: 2007
I have capitalised this asset as on 31.03.2008, i.e. Fiscal Year :2008
Now I want to post Depreciation for the period 19.09.2007 to 31.03.2009 (560 Days) on 31.03.2009.
When I am running AFAB (Repeat Run) Fiscal year: 2008 & Period: 12 with this Specific Asset No, then system is calculating Depreciation only for 1 day, i.e. 31.03.2009
As the Fiscal year:2007 has been closed for Asset module, hence I have opened Fiscal year: 2007 in AA (T.code: OAAQ)
But after opening the Fiscal year :2007 also, system is calculating Dep only for one day.
Please suggest me how will I solve this issue
Thanks & Regards,
Suvadip Mukherji>
Amitava Bhattacharyya wrote:
> Hi,
>
> Plz suggest whether the last period of the previous fiscal year can be opened in MM to allow backposting. If it's possible then how?
>
>
>
> Amitava
Please check these answered links:
MMPI
Opening the Closed Periods using MMPI
Edited by: Afshad Irani on Jun 15, 2010 3:45 PM -
Carrying forward the parked documents of previous fiscal year
Hi Experts,
My requirement is to carry-forward the parked documents of the previous fiscal year to the new fiscal year automatically with a background job that should run at the end of each fiscal year.
This job should check all the documents that are still parked and must carry them to the next fiscal year. As per standard SAP, the document should be manually posted with posting date of the new fiscal year. Then the system will create a new Document in the new fiscal year, deleting the old document. I need to automate this process.
For posting a document we use a Customized Workflow (Z copy of FIPP).
My question is, how can I go about this requirement? What all needs to be done if I want to trigger the workflow in the background on a particular day?
Thanks!Sheryl,
If you really want to "remove/cancel" the parked documents, then your solution is to delete them as Prashant previously suggested. Transaction FBV0 allows you to post or delete a parked document. Deleting the parked documents does not remove the entire document from the system. It will remove any line item information, but it will leave the header information. With the header information, you will still have record of the document numbers for audit purposes. The status on the header will show "parked document which was deleted". Deletion is the standard SAP solution to "remove/cancel" parked documents - the only alternative to deleting a parked document is to post it.
Park a document on your test system then delete it so you can see the results. You will still be able to pull up the header information in FB03.
I am not aware of any standard SAP reports for listing parked documents that were deleted. However, if you require such a report, you could create a simple SQ01 query against table BKPF. You would want to include the Document status field (BSTAT) in the query selection criteria so you can select documents with a status of 'Z' - parked document which was deleted.
Regards,
Shannon -
Record 1 :Time conversion from 0CALDAY to 0FISCPER (fiscal year A1 ) failed
Get red error when loading Delta data and the red error is:
Record 1 :Time conversion from 0CALDAY to 0FISCPER (fiscal year A1 ) failed with value 20060426
We went to RSA1 -> Source Systems page, right click on the source system, choose Transfer Global Settings, check "Fiscal year variants" and check "Rebuild tables" and then run it twice, but still not helpful that we always get the above red error!
Any idea?
Thankshi Anurag,
You are right that run OB29 on BW, find there is no any period entry for variant A1. Since all the variant should come from R3 by run "Global Transfer Settings" on the source system, I run OB29 on R3 and find the same thing that there is no any period entry for fiscal year variant A1. I will go ahead to ask R3 people to correct it on R3, then conduct the "Global Transfer Settings".
Thanks -
Previous fiscal year's document Gap
Hi Experts:
My customer encountered the following issue:
There is FI document Gap in the previous fiscal year. The end user entered a FI document through transaction FB05, and after saving noted down the document number. But after that, when they try to check this document, it can not be found by the system, nor does it exist in BKPF, BKPF shows that this one document number was skipped. Unfortunately, this issue was not solved timely. We doubt that this gap is caused by update error, since the customer has not done any customer enhancement in this document posting process. However, this issue happened last year so that the update log does not exist anymore.
Now the customer's auditing team is asking for evidence which can prove that this gap is caused by system. How could this be achieved?
Thank you so much!Hi Yucen,
Please check the below OSS note( Knowledge base article)
1828201 - Missing document numbers for accounting documents ( This note it self SAP is given reasons for the missing documents also mentioned concerns of auditors)
RFVBER00 ( Report to show update termination , fail documents by system)
Regards,
Chandra sekhar -
How to get start date of fiscal year?
hi all,
how to get the start date of fiscal year by passing fiscal year variant and fiscal year?
please let me know.hi,
See this FM
FIRST_AND_LAST_DAY_IN_YEAR_GET " Provides the first and last calendar date for a fiscal year
Regards -
Current fiscal year and previous fiscal year restriction in Query Customer
Hi ,
My requirment is disply current year qtrs and previous year qtrs in the report . User will not enter year , date , month or qtr . system should calucualte and disply curremt year qtrs and previous year qtrs .
I have created ZFISCYEAR reference of a 0FISYEAR year . now I would like to write customer exit for Current fiscal year and previous fiscal year to display current year qtrs and previous year qtrs.
Could you please provide customer exit code if you have or recomend if you know any other options.
Appriciate you help
Thankshi try this
take into account that I don't know th periv you use could be K4 or one defined by you so I have commented it.
The coding here is for the current fiscal period for the previous year just to another l_year varibale and populate with offset for instance l_year = l_year - 1.
so for current year
WHEN 'CURRPERIOD'.
current_date = sy-datum.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = current_date
' i_periv = ''
IMPORTING
' e_buper = l_period.
e_gjahr = l_year.
l_s_range-low = l_year.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
for previous period
WHEN 'PREVPERIOD'.
current_date = sy-datum.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = current_date
' i_periv = ''
IMPORTING
' e_buper = l_period.
e_gjahr = l_year.
l_year = l_year - 1.
l_s_range-low = l_year.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
bye
Boujema -
Ime Conversion from 0CALDAY to 0FISCPER (fiscal year) filled with value2008
hi All,
data load was failed.failed request is showing.Time Conversion from 0CALDAY to 0FISCPER (fiscal year) filled with value20080226.why this error is coming freqentely.i want to the reason.please help me?
Thanks,
chanduHi,
Pls Look for the erroneous records in PSA.
Compare the error records with the correct one's.
This is due to the difference in the date format..
Follow the format in the correct records.
For the time being you can edit these records in the PSA to the correct format and continue with the load,and later you will hav to make the changes in the source system. -
Amount for previous fiscal years?
Dear Bwers,
I have a query with a KF Amount that is based on a filter on date field ( with a variable to and from date). Now in my query i want to display columns for Amounts from previous three fiscal years (FY(-1), FY(-2), and FY(-3)) based on the date (to and from date) that the user enters in the initial run of the query.How can i do this? Any help would be appreciated.
Thanks
Rajsteps:
1) Create one structure in column.
2) Create 1st selection in Column, put fiscal year and your kf from left side to right, and restrict your fiscal year with some variable.
3) Create 2nd Selection and follow the same process as step1, just when you will restrict ur variable for fiscal year in restrict window, right click on it, and select offset, and assign -1 to it. It will take fiscal year value as Fiscal Year value wihch user will enter in selected variable -1. Like if user enetered 2006, this column will show output for 2005.
4) Similarly create selectiosn with different offset values, like for 2004 put offset value as -2...and so on.
Let me know if u need more help? -
Defining an exit variable for a specific day based on Fiscal Period
If I do not have Calendar Day time dimension available for reporting is it possible to define a customer exit variable for a specific day. The days are the first and last day of the financial year?
Example
User Input for Fiscal Period: 2009004
The exit is to define a value for 01.01.2009 and 31.12.2008 (end of last year)
ThanksHello Niten,
yes it is possible. Procedure:
- add a new column in the report structure
- hide this column
- create a new text variable in this column (for customer exit)
- now you can fill this variable during query execution based on 0FISCPER
You don't want to filter by this variable. Right?
Buy,
André -
ABST2 - How to take the report for the previous fiscal year
Hi,
For FI-AA reconciliation, my scenario is this: The current fiscal year is 2009 and the system (server) date is 16-Apr-2009. My fiscal year period is: Mar-Apr. In ABST2, it does not accept Fiscal year. When I take the report, it displays for fiscal year 2009, which I don't want because I want it for the fiscal year 2008 to reconcile between FI and AA. The fiscal year 2008 is not yet closed in both FI and AA, so I want the report for 2008 only. But ABST2 always gives the report for the current fiscl year. Is there any way out to get the report for 2008?.
Thanks,
Kannan SThis report is based on the actual values. In the past this report was used for EURO conversions to see if the values are in line. When not it was not possible to do the euro conversion.
Normal it is a part from the fiscal year closing -
RFKORDES : PRINT SELF-INVOICE FOR SPAIN FOR PREVIOUS FISCAL YEARS
Hi,
our accounting department would like to print self-invoice for transaction from 2006/2007/2008 for tax audit. Unfortunately, it doesn't work. I get message :
"Print report RFKORDES in company code ES11 has not selected any data for SAPE1"
Message no. FB475
When implemented few OSS notes for 2010 VAT Package for Spain.
Does anybody knows how to fix it?
Thanks
Anthonysomeone please help me with this ..
Maybe you are looking for
-
New Mac Pro and 9.2 Hangs on Adjustments?? Old G5 Doesn't
Hello I have what should be a very fast new Mac Pro. 6 core at 3.46Ghz. 48Gb of RAM. Solid state boot drive. Software RAID 0 with 2 Hitachi 3TB drives, hardly anything on them yet. Nvidea Quadro 4000 CUDA card. Everything installed and burned in
-
[JS CS3] Merging table columns
Hi all, What's the fastest way to merge columns in a table? I'm using the following loop to merge the 4th and 5th columns in my table: for( var f = myTable.rows.length-1; f >= 0; f-- ){ myTable.columns[3].cells[f].merge (myTable.columns[4].cells[f])
-
My healthkit stopped working recently, iPhone 5S similar to whats reported by others. Dashboard not allowing anything on. My wife and I have been competing against each other using the measurables. (She is using an iPhone 5S as well with no problems
-
E4200 Guest Network Not Working
I cannot get the Guest Network feature to work. Even though Guest SSID is enabled, it does not show up on any devices attempting to connect. Manually connecting by entering the Guest SSID fails (not recognized). On devices with the primary 5 and 2.4
-
NI-845X: I need informations about clock
Hi, My problem is that there is , on the CLK signal(on module NI-845X), 8 impulsions after there is a low signal during 10 µs and after 8 impulsions ect.. I would like to have a regular signal composed by just impulsion and not low signal. Sorry for