How to add FISCAL YEAR, Period and Day to cube.
hi,
I am using SD EXTRACTORS (2LIS_11_VAITM, 2LIS_11_VAKON, 2LIS_12_VCITM and 2LIS_13_VDITM) and directly updating each corresponding ODS and cube.
All the extractors only have FISCAL VARIANT has the time characteristic. So, all my ODS contains only one time char - fiscal variant and other dates (liek document created date etc. (not a time char)).
Now, I want to use fiscal period, fiscal year and fiscal day in my cube. I have added these time char in my cube.
My question:
1. how to get FISCAL YEAR, FISCAL PERIOD and FISCAL DAY get updated. Do I need to map to document created date in update rules or Do I need to use some functional module.
Pls note I am bringing only FISCAL VARIANT from R/3 into ODS and then to CUBE.
PLS REPLY.
thanks sundar..i got your point..but I have one question
All the cubes (sales, sales condition and billing) have the sales order number (VBUK-VBELN) and item number (POSNR-VBUK). But info objects used for these fields in sales cube and sales condition cube are same but for billing it is not same.
Can I combine all cubes (sales order, sales condition, billing) in muliti provider.
1. Sales order cube (from VAITM)
Sales order number (VBUK-VBELN) -- (0DOC_NUMBER)
Sales Item (VBUK-POSNR) -- (0S_ORD_ITEM)
Date : Document created date (VBAK-AUDAT) -- 0DOC_DATE
2. Sales Condition cube (from VAKON)
Sales order number (VBUK-VBELN) -- (0DOC_NUMBER)
Sales Item (VBUK-POSNR) -- (0S_ORD_ITEM)
Date: Document created date (VBAK-AUDAT) -- 0DOC_DATE
Key field: Netprice (VBAP-NETWR) -- 0NET_VALUE
3. Delivery Cube (from VCITM)
Sales order number (VBUK-VBELN) -- (0DELIV_NUMB)
Item (VBUK-POSNR) -- (0DELIV_ITEM)
Date: Delivery Date :LIKP-WADAT_IST -- 0ACT_GI_DTE
4. Billing Cube (from VDITM)
Sales order number (VBUK-VBELN) -- (0BILL_NUM)
Sales Item (VBUK-POSNR) -- (0BILL_ITEM)
Date: Billing Date: (VBRK-FKDAT) -- (0BILL_DATE)
Key field: Net price (VBRP-NETWR) -- 0NETVAL_INV
I want to combine above cubes. If I combine, Will I get correct data??????
Points will be assigned to every useful answer
Similar Messages
-
Fiscal year period quarter in purchasing cube
*Dear friends,*
*I want to make one query on the basis of fiscal year Qurterly . So please what is infobject in purchasing data cube is useful for making this query. Please guide me*
*Thanks and Regards*
*Anil*Hi,
due to the fact that you dont want to use the quarter of the calendar year, you should build up an appropriate one and add it to the cube. Also you should fill it by formula or routine. -
Current month and previous months of fiscal year period data
Hi All,
My requirement is end user will enter month ie (fiscal year period ) and in report my requiremnt is to show data in two columns 1.Current month data and
2.April till date.
Please let me know how to do this and please send the coding to be done in CMOS.
RegardsHi,
In your query, you should have following object :
in filters:
fiscal period object, with an user entry variable on it (UE_MONTH)
in rows/ratios:
Current month column, with your KF and a restriction on 0calmonth2 with an customer exit variable on it (ie: CE_VAR1)
same for April column. (CE_VAR2)
in your customer exit, CMOD, step 2, add these two cases :
WHEN 'CE_VAR1'.
READ TABLE i_t_var_range WITH KEY vnam = 'UE_MONTH' INTO
intern_range.
CONCATENATE intern_range-low(6) sy-datum+4(2) INTO l_s_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
Same for April, add a new case and just replace sy-datum+4(2) by '04'.
Hope it helps, -
Text Variables to show Start and End Date of Fiscal Year Period
Hi,
I am creating a query that has user enter a starting fiscal year period and posts information by Fiscal Year Period going back 14 periods. I am able to put the fiscal year period in the heading for all periods, but would also like to add the start and end calendar day for each listed period. Can that be done using a replacement path text variable or is that something more for a customer exit variable?
Thanks in advance for any thoughts provided.
BillHi,
This is one of my exit that display the calmonth (offset -12). Usefull when I have to retrieve in a KF a complete rolling year depending one calmonth.
S_VMUCMN is my selection variable
S_TXTCMN_M12 is my text variable calmonth-12
S_TXTCMN_M0 is my text variable for selected calmonth.
WHEN 'S_TXTCMN_M12'.
IF i_step = '2'.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'S_VMUCMN'.
CLEAR l_s_range.
" First day of the selected month
CONCATENATE loc_var_range-low '01' INTO l_calday.
CALL FUNCTION 'YFRBW_FUM_CAL_DATE_IN_INTERVAL'
EXPORTING
date = l_calday
months = 12
signum = '-'
IMPORTING
calc_date = l_calday.
l_s_range-low = l_calday+0(6).
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
ENDIF.
Thus, in KF header you have to put the two text variable to display the complete period.
Hope it helps, -
Formula to calculate two fiscal year/period difference for non null quantit
We'd like to have a query result like the following:
Person -- Jan_2007 -- Feb_2007 -- Mar_2007 -- No. of Months
Tom --- 21 --- 54 --- 10 --- 2
John --- 0 --- 3 --- 15 --- 1
In the above query, the row is sales persons, the 1st three columns list the sales quantity by each sales person restricted by fiscal year/period and we would like to create 4th column "No. of Months" to calculate (will use formula) the month span (difference) for each sales person from his last sale activity (the last month he performed sales) and the 1st sale activity (the first month he performed sales) as listed in the above query result, e.g., Tom performed his first sales (sales quantity: 21) in the month of January of year 2007, and he performed his last sales (sales quantity of 10) in the month of March, 2007, then the "No. of Months" column value for Tom is 2. The calculation formula will be performed based on the last quantity value (> 0) to trace it's corresponding column fiscal year/period value (max of the fiscal year/period value with quantity value >0) and on the 1st quantity value (>0) to trace it's corresonding column fiscal year/period value (min of the fiscal year/period value with quantity value >0) and then do the subtraction between the max of the fiscal year/period value and the min one.
Would be appreciated if BEx experts here give the detailed steps on how to build up this formula to calculate the number of month difference and we will give you reward points!
Edited by: Kevin Smith on Mar 18, 2008 1:47 PMhi Danny,
I only gave an example of 3 columns, but actually, yes, the report can have more than 12 months, e.g. from Jan_1999, Feb_1999, ..., Mar_2011, Apr_2011.
In our simple example of 3 columns for the three consecutive months, if John had (3)(0)(15), then the No. of Months is 2, or the last month value he performed sales and 1st month he performed sales.
You said macro in Excel sheet? Not sure if macro will work on web since we will eventually run the reports on web browser, therefore we still prefer using Formula.
Any idea/solution?
Thanks! -
Format for Fiscal Year Period 0FISCPER
Hi,
Im uploading the fiscal year period into BW infoobject 0FISCPER. Im uploading it in the format eg: 003.2005 but it is getting read into bw as 003.2000.
Im using Excel/ CSV file and the field is converted to Text.
Does anyone know what format I have to use to upload fiscal year period and get it in the format I want ?
ie 003.2005 ?
Regards,
DominicHi Dominic,
0FISCPER is a NUMC 7 infoobject. And it takes your 003.200 seven symbols leaving the last symbol. Though, the output format is length of 8.
A'm not sure if you are dealing with external format (in this case try to enter 0032005) or with internal (then try 2005003).
Best regards,
Eugene -
Function Module to find difference of Fiscal Year period
Hi,
I have a requirement wherein a user enters 2 variables for Start and End Fiscal year period and I need to calculate the difference ( ie: I need to calculate the number of periods ).
I also need to pass the Fisc Year variant 'K4' as the Input parameter.
Any standard function module for it?
Rgds
ShyamDATA: I_FYV1 LIKE T009-PERIV.
CALL FUNCTION 'CCODE_GET_FISCAL_YEAR_VARIANT'
EXPORTING
COMPANY_CODE = i_billno-bukrs
COMPANY_CODE = S_BUKRS-LOW
IMPORTING
FISCAL_YEAR_VARIANT = I_FYV1
EXCEPTIONS
COMPANY_CODE_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.
CALL FUNCTION 'ME_DETERMINE_GJAHR'
EXPORTING
I_BSTYP =
I_BEDAT = P_DATE
I_PERIV = I_FYV1
IMPORTING
E_H_MONAT =
E_H_GJAHR = GJAHR1
E_H_DATUM = -
Fiscal Year / Periods does not show properly in WebI and compunding
Hi,
I have few reports where I am using Fiscal Year /Period as filter.
I have created a Universe on the top of a SAP BI Query and did not do any customization.
Then I created a WebI report. In this report I created various filters beside Fiscal Year / Period. When I run report, filter window opens. I can select all other filters but when it comes to Fiscal Year / Period it does not show me the values I want to see. It shows AUG 0001, APR 0025 etc. I want to see AUG 2010, MAR 2009 etc so that I can select them and get the data of the required Fiscal Year / Period. In Cube I have the required data. If I select MAR 0010 etc I donu2019t get any data.
On the other hand if I put fiscal Year / Period in columns or rows it shows the right value.
If also run SAP BI Query and Fiscal Year / Period in Variable then on variable screen I can see the right value from where I can select and get the required result.
Do I have to do any step at Universe level or something else?
It seems that Fiscal Year / Period is compounding.
Is there any help?
Thanks
Bashir AwanIngo,
for thanks for igniting my thoughts in this regards.
Yes these values do exist in SAP BW.
It is some how compunding the values at filter level.
It does not let me see the whole value when filter screen popup in BOBJ.
In SAP whole value shows when variable screen popup, I see three columns Fiscal Year / Period. Text, Posting Period Key, and Posting Year Key.
Fiscal year / Period Text which shows Aug 2009, Posting Period Key which shows our period 1 to 16, and Fiscal year key which shows 2009 etc.
Is there any setting in BOBJ which compunds the year for variable screen so that we may see the whole values for filters?
thanks -
How to set the fiscal year period as default in variables
Hi All,
How to set the fiscal year period as default it shoud take previous period when the report is executed.
And also I need to do the same changes in reporting agent.
Could you please any one help me.
Points will be given.
Thanks!
Best regards,
Ajay.Hi Ajay,
Create a customer exit variable.Write the code in the include 'zxrsru01' using system date.
take the system date from the system date variable and using that you can get the current fiscal year period.use this value and using string commands, you can get period.
subtract 1 from this value.Using this you can get the previous fiscal period..
Please let us know, if you need the coding part
Hope it helps
Thanks,
Teja -
How to give the Fiscal year period in RSA3 for checking the data.
Hi BW Experts, good morning.
We have loaded the data monthlywise with selection parameters as Fiscal Year Period(FISCPER).
While checking the data consistency in both R/3 and BI, the selection parameter which i have given is in the format of 001.2005
I got the records in BI side.
But if we give the same format In RSA3 in the Fiscal Year Period tab , we r getting 0 records.
So kindly help me how to enter the selection parameters for 1 month.
Thanks
AnjaliHi sanyam ,
Thanks for the help.
I got it now.
Thank you so much
Bye
Regards
Anjali -
FM for month and year to Fiscal year period
Hello ABAP Experts,
Please suggest a FM to convert month+year to fiscal year period.
Suggestions appreciated.
Thanks in advance,
BWeruse the function moduleGM_GET_FISCAL_YEAR
pass date and fiscal year variant as 24..
see all the values of the fiscal year variant in the table T009
Check with fm FI_PERIOD_DETERMINE
Thanks
Seshu -
How to get the difference of two dates in years,months and days
Hi friends,
how to get the difference of two dates in years,months and days
for ex 2 years 3 months 13 days
select (sysdate-date_Start) from per_periods_of_service
thanksSomething like this...
SQL> ed
Wrote file afiedt.buf
1 with t as (select to_date('17-nov-2006','dd-mon-yyyy') as c_start_date, to_date('21-jan-2008','dd-mon-yyyy') as c_end_date from dual union all
2 select to_date('21-nov-2006','dd-mon-yyyy'), to_date('17-feb-2008','dd-mon-yyyy') from dual union all
3 select to_date('21-jun-2006','dd-mon-yyyy'), to_date('17-jul-2008','dd-mon-yyyy') from dual
4 )
5 -- end of test data
6 select c_start_date, c_end_date
7 ,trunc(months_between(c_end_date, c_start_date) / 12) as yrs
8 ,trunc(mod(months_between(c_end_date, c_start_date), 12)) as mnths
9 ,trunc(c_end_date - add_months(c_start_date, trunc(months_between(c_end_date, c_start_date)))) as dys
10* from t
SQL> /
C_START_D C_END_DAT YRS MNTHS DYS
17-NOV-06 21-JAN-08 1 2 4
21-NOV-06 17-FEB-08 1 2 27
21-JUN-06 17-JUL-08 2 0 26
SQL>But, don't forget that different months have different numbers of days, and leap years can effect it too. -
How to get last 35th fiscal year periof form current fiscal year period
Hi,
I want last 35th moths fiscal yesr periof from current fiscal yesr periog.
E.g. current month FISPER - 2010011 so required FISPER is 2010011 - 35 = 2007009.
Please help if any one know about it.
Marks will be provided.Hi,
Drag Fiscal year/period characteristic in the query and restrict it .
In the variables , you will find SAP delivered variable which willl give you current fiscal year/period.
Create range on the using this variable and give offset of -35.
For eg.
the name of the variable is 0PF_CP, then create range in the following way.
Lower range will be 0PF_CP - 35
and higher limit will be 0PF_CP.
So the range would be 0PF_CP-35 : 0PF_CP.
This will give you the last 35 fiscal year/period.
- Jaimin -
Drill down on Fiscal year period shows results in 2 rows
Hello All,
My report has a requirement to analyze the data across different fiscal year. When the report is then drill downed on Fiscal year period the data is shown on 2 lines.
eg.
report run for 2010 and 2011 for material M1 and plant P1
data in out put:
1) No Drill Down
Material Plant 2010Price 2010Volume 2011Price 2011Volume
M1 P1 100 1000 110 1100
2) Drill down on fiscal year period it shows data as :
Material Plant Fiscal-Year-period 2010Price 2010Volume 2011Price 2011Volume
M1 P1 01.2010 100 1000
M1 P1 01.2011 110 1100
3) How the data is needed:
Material Plant Fiscal-Year-Period 2010Price 2010Volume 2011Price 2011Volume
M1 P1 01 100 1000 110 1100
Any simple way to do this? i can not add the navigational attribute to 0FISCPER as i do not have the time to modify the standard object and get all the approvals.
Regards,
Vijay.Hi Vjay ,
Try the below way
From you example
In the Rows Area Put
Material
Plant
Posting Period (FISCPER3)
In the Columns Area
Put FISCYEAR above Keyfigure Structure.
This will display the result as you require...
Regards,
Ravi -
Issue with Fiscal Year period - Variable
Hello,
I have requirement where I have two fiscal year variables selections available for the users. Both are independent to each other. FOR EX: A & B
1ST Fiscal year period is straightforward. It is a single variable selection where User enters the fiscal year period then the Key figures data will be available to the user for that particular fiscal year what is selected in the variable screen.
For ex: If user enters 01.2007 then the values will be only for that particular month/period
However, the 2nd Fiscal year period user wants a Range (From and to). This is also a Single selection variable. Here user enters only TO value, which it should go and get the lower value from first variable screen and then it should take the higher value from the 2nd Variable screen and should calculate the result as a range.
How this can be sorted? Can someone please help me to sort this Issue? If we need a customer exit, can you please give me some sample code?
Thanks in advance
HarishHi,
Create 3 variable
One for from variable which will user input ZVAR1
2nd to variable will be user input ZVAR2
3rd variable be variable exit type ZVAR3
In exit populate the VAR3 by reading the two user input variable.
and use the option
Try this:
<b> when 'ZVAR3.
if i_step = 2.
read table I_T_VAR_RANGE into z_t_var_range
with key VNAM = 'VAR1'.
read table I_T_VAR_RANGE into z_t_var_range1
with key VNAM = 'VAR2'.
ZE_T_RANGE-SIGN = 'I'.
ZE_T_RANGE-OPT = 'BT'.
ZE_T_RANGE-LOW = z_t_var_range-LOW
ZE_T_RANGE-HIGH = z_t_var_range1-LOW
APPEND ZE_T_RANGE TO E_T_RANGE.
clear ZE_T_RANGE.
ENDIF.</b>
Thanks,
Debasish
Maybe you are looking for
-
***No Table found, when creating a recordset to MySQL Database
I have made a successful connection to the MySQL database. When attempting to create a record set (Query) under the Application/Bindings Tab, I select the connection, but then the Table field says *** No Table Found Also under Application/Databases t
-
Photoshop CS3 editing does not work in LR 2.0
Just upgraded to LR 2.0 and did the data base conversion everything works just fine. Btw, I did keep the LR 1.4 installed because I wanted to make sure I have a fallback in case I have a problem with LR 2.0. I do however have a problem. I cannot edit
-
Fedora core 6 sun app server won't start
Sun app server 8.2 bundled with creator 2u1 doesn't start. This install was running fine under fc5. Among other things I get the following with pe-start -reset which I think might be the crust of the problem: "Unable to read system environment. No sy
-
Hi.. Is there anyway to watch TV on the iPhone 3G? I travel each week and I'd like to listen to my favorite soap while I'm working. Thanks.
-
Hello all, We have a Production system with a powerful central instance that we use for day-to-day jobs and users, and then a VM (dialog instance) that we have recently added to act as a instance for payroll users to run their long running processes