Sei sulla pagina 1di 3

BEx Query Help whit 0CALDAY - Toolbox for IT Groups

1 of 3

http://sap.ittoolbox.com/groups/technical-functional/sap-bw/bex-query-h...

BEx Query Help whit 0CALDAY


JavoGEVP asked Dec 5, 2006 | Replies (5)

Hi All!
I need help with a BEx Query.
I have a Cube, this cube update all days from a extractor. From this cube i make a lot of
querys but i cant make this query.
In the row i have the characteristic 0PLANT, in the columns, i have the months (Jan,
Feb, Mar... etc). The user must enter FISCPER3 AND FISCYEAR.
The query list all the months empty, only the FISCPER3 inserted must be showed. But
not all registries of this month, only shows the registers of first day of entered month.
Ex: if the user enter FISCPER3= 8 and FISCYEAR= 2006, all the months are empty,
only show Aug. But only for the day 01.08.2006
What can i do?
Thank you!
Join this group

Popular White Paper On This Topic


ERP Overview Comparison Guide

5 Replies
Sangeeta replied Dec 6, 2006

Do you have 0fiscper3 in the cube? I mean there is data in 0FISCPER3?


> From: email@removed To: email@removed Date: Wed,
6 Dec 2006 01:40:01 +0000> Subject: [sap-r3-bw] BEx Query Help whit 0CALDAY
> > > > Hi All!> I need help with a BEx Query.> > I have a Cube, this cube u
pdate all days from a extractor. From this cube i make a lot of querys but
i cant make this query.> > In the row i have the characteristic 0PLANT, in
the columns, i have the months (Jan, Feb, Mar... etc). The user must enter
FISCPER3 AND FISCYEAR.> > The query list all the months empty, only the FIS
CPER3 inserted must be showed. But not all registries of this month, only s
hows the registers of first day of entered month.> > Ex: if the user enter
FISCPER3= 8 and FISCYEAR= 2006, all the months are empty, only show Aug
. But only for the day 01.08.2006> > What can i do?> Thank you!> > > > >

JavoGEVP replied Dec 6, 2006

Sangeeta,
I have fiscper3, fiscyear, 0calday in the cube, all whit data inserted.

Frankonian replied Dec 7, 2006

Hi,
Usually 0FISCPER3 and FISCYEAR are derived
form 0CALDAY in update rules.
1. Are your shure, that 0CALDAY dates different from first day of a month? May
be, that all postings contain '01' as day
and reporting therefore is working the right way.
2. Which variable do you use for 0FISCPER3
Does it represent select optiions or just a single value.

10/30/2016 12:15 AM

BEx Query Help whit 0CALDAY - Toolbox for IT Groups

2 of 3

http://sap.ittoolbox.com/groups/technical-functional/sap-bw/bex-query-h...

2. Which variable do you use for 0FISCPER3


Does it represent select optiions or just a single value.
Please check this
Regards
Joe

JavoGEVP replied Dec 7, 2006

Joe,
The cube updates all days, 0calday in the cube is from 01 to 30/31 depending of the
month.
The cube actually works fine, there are a lot of reports. But this report have the
particulary that i need to list the first day of entered FISCPER3.
0FISCPER inserted is a single value. FISCYEAR too.
What can i do?

White Papers and Webcasts


Popular
Business Intelligence with SharePoint 2010
More White Papers

Frankonian replied Dec 8, 2006

Hi,
I completely misunderstood your issue, sorry!
Here sholud be the solution by creation of
a new variable and adding code in ZXRSRU01.
Create a variable in Query Designer for 0CALDAY.
Variable Name : 'Z_FDOM'
Processing by: Customer Exit
Characteristic: Calendar Day
Press 'Next Button
Uncheck Ready for Input
and finish

code for ZXRSRU01 (in this example date is


derived from variable '0P_FPER')
WHEN 'Z_FDOM'.
DATA: WA_DATE TYPE SY-DATUM.
DATA: WA_FISCP(7) TYPE N.
IF I_STEP = 2.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = '0P_FPER'.
MOVE LOC_VAR_RANGE TO WA_FISCP.
CONCATENATE WA_FISCP(4) WA_FISCP+5(2) '01' INTO WA_DATE.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = WA_DATE.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.

10/30/2016 12:15 AM

BEx Query Help whit 0CALDAY - Toolbox for IT Groups

3 of 3

http://sap.ittoolbox.com/groups/technical-functional/sap-bw/bex-query-h...

APPEND L_S_RANGE TO E_T_RANGE.


EXIT.
ENDLOOP.
ENDIF.
Hope this helps
Joe

10/30/2016 12:15 AM

Potrebbero piacerti anche