Period range
Hi, we have a requirement from the user to display a custom report which is a project cost report quarterly in BW. We ran these reports till now on a monthly basis. Now when we run quarterly by specifying the period range in BW its adding up each period original budget values for the quarter which is incorrect. It has to actually display the Original budget or any modified values to original budget but not add up each period and show the total amount as original budget for the quarter. Any suggestions are appreciated.
thanks
/message/9690432#9690432 [original link is broken]
this is the problem exactly ... i am struggling with...
Edited by: sapbisree on Nov 19, 2010 3:26 AM
Similar Messages
-
Date range From Fiscal period range
Hi All,
How can we get the date range for a given fiscal period range?
please help.
Thanks
Gaurav Mittalhi
good
pls check this code
declare a range like
ranges: r_date for s021-spmon. (declare as per your data type for the date)
in initialization event write.
r_date-low = '012007'. (enter the required lower range of value)
r_date-sign = 'I'.
r_date-option = 'BT'.
r_date-high = '122007'.
append r_date.
now use the r_date field in the program code.
thanks
mrutyun^ -
Hi All,
I had written a query for GRPO Register, which is according to my client requirement and is displaying the report correctly.
Now when i run the query it is showing from Books begining from date, where as my client wants to select the period which will be From Date - To Date.
How to assign the Period range so that when the query is executed it will prompt for the date range and allow the user to select and display the result.
Please help me out
Regards
Shankeryou can use between [%0] and [%1] in your query wrt date.
For example
SELECT * FROM OPDN T0 WHERE T0.[DocDate] between [%0] and [%1] -
Copy from one period to period range in Integrated Planning
Hi ,
Looking for help:
Scenario:
Copy the planned data from one period to period range:
From,
Calendar Year (Varaible)=2010
Caledar Month (Variable)=01
Version (Variable)=XYZ
To
Calendar Year (Varaible)=2010
Caledar Month (Variable)=02 to 12 (Created multi single value variable, **Interval variable is not available in Planning Function)
Version (Variable)=XYZ
Used Copy in Planning Function: created 3 variables for From and 3 variables for To, created planning sequence tried to insert in the Workbook.
VAR_NAME_1 -1 - Caledar Year variable from
VAR_VALUE_1 - 1 - 2010
VAR_NAME_2 - 1 - Calendar Month From
VAR_VALUE_2 - 1 - 01
VAR_NAME_3 - 1 - Vesion Variable From
VAR_VALUE_3 - 1 - XYX
VAR_NAME_4 - 1 - Caledar Year variable To
VAR_VALUE_4 - 1 - 2010
VAR_NAME_5 - 1 - Calendar Month To
VAR_OPERATOR_5 - 1 - BT
VAR_VALUE_LOW_EXT_5 - 1 - 02
VAR_VALUE_HIGH_EXT_5 - 1 - 12
VAR_SIGN_5 - 1 - I
VAR_NAME_6 - 1 - Vesion Variable To
VAR_VALUE_6 - 1 - XYZ
Getting error message:
Parameter VAR_Value(_EXT)_5 is missing for variable "Caledar Month To" -
Reading the records in period 01 but failed to generate/ write to period 02 to 12
Please advise.
ThanksHi Deepti,
Great.... thank you very much for your help. FOX code is working perfect, I eliminated only FOREACH S_KFNAM (I have only one KF in the Cube)
Now the req. changed a little bit:
User want to select the Cost Center- to copy data with above scenario. (CalYear, calendar month and version)
I created a Filter - with Cost center and Controlling Area (Compounding), restricted Controlling area with Hierarchy and created Multiple single value Hierarchy Node variable for cost center.
Created a planning sequence with the Filter and PF.
I created a Work book for User to use this copy function (by Planning Sequence)
SCENARIO;
USER want to copy data in COSTCENTER:CC100000
From: caledar year=2010, calendar month=01 and version=ABC
To: calendar year=2010, calendar month = 02 to 12 and version=ABC
VAR_NAME_1 1 FROM CAL YEAR
VAR_VALUE_1 2010
VAR_NAME_2 1 FROM CAL MONTH
VAR_VALUE_2 1 01
VAR_NAME_3 1 FROM VERSION
VAR_VALUE_3 1 ABC
VAR_NAME_4 1 TO CALYEAR
VAR_VALUE_4 2010
VAR_NAME_5 1 TO CALMONTH
VAR_VALUE_LOW_EXT_5 1 02
VAR_VALUE_HIGH_EXT_5 1 12
VAR_NAME_6 1 TO VERSION
VAR_VALUE_6 1 ABC
VAR_NAME_7 1 HIERARCHY NODE VARIABLE
VAR_VALUE_EXT_7 1 CC100000
VAR_NODE_IOBJNM_7 1 0COSTCENTER
Got Error:
Please enter a valid value for 0COSTCENTER
Check the value"CC100000"(parameter: VAR_VALUE_EXT_7, variable ZMSV_CC)
But reading the data and generating the data for all the cost centers.
Issue:
How to pass the variable values to the Filter. Is my definition is wrong in the workbook?
VAR_NAME_7 1 HIERARCHY NODE VARIABLE
VAR_VALUE_EXT_7 1 CC100000
VAR_NODE_IOBJNM_7 1 0COSTCENTER
Thanks -
Posting Period Range variable - Using Offset
Hi:
I need to create queries for each quarter. Without going through detail, some of my columns in my report I need to use the first two months of the quarter and some of the other columns I need to use the 3 months in each quarter.
So for example: We are right now in quarter 1; Jan, Feb, and Mar. Some columns I will be using a range of 1 to 2 and the rest I will be using a range of 1 to 3. The same type of logic for the other 3 quarters. I have a posting period variable (Characteristic value) and I was hoping that I was going to be able to use the offset option when I restricted my variable in each column that I only want period 1 and 2. But when I run the query I don't get any results. I know that the offset works with "fix" values but it seems not to work with a "range".
I'm trying to stay way of creating the same queries for each quarter where the difference is only the posting period.
Does anybody have any idea how I can accomplish this? Has anybody ever had to do something like this?
Your thoughts comments will be greatly appreciated!
Regards,
HelenaHi Arun:
I know I can restrict the values that I want but I'm trying to avoid in having to create 4 queries..One per quarter. I'm trying to see if I can just have 1 query and use a range variable which I have already defined as a characteristic value and it's a range. I use the user exit to populate the initial values depending on the posting period at the time the query runs. Right now the variable screen will show 1 on the from and a 3 on the to.
The columns that need all three months are coming out fine in the report. The issue that I'm encountering is the columns that I only need the two months in this case 1 and 2. What I did here is still using the same range variable and restrict it with an offset of -1. When the query runs, this column comes up with no data.
How can I get around this?
Thanks for your help!
Helena -
Is there a function to calculate the period range?
E.g. the program input the 10.2008 - 01.2009 (MM/YYYY), so how can the program knows there are 4 months: 10/08, 11/08,12/08, 01/09 between them?
Is there function can do so?
P.S. yes it can be done, if calculate it manuly via while(in ABAP) clauseHi,
Check this code..
DATA: V_FROM(6) TYPE N VALUE '200810'.
DATA: V_TO(6) TYPE N VALUE '200901'.
DATA: V_DATE TYPE D.
* Get the periods.
DO.
CONCATENATE V_TO '01' TO V_DATE.
* Decrease one day.
V_DATE = V_DATE - 1.
WRITE: / V_DATE(6).
* Exit condition.
IF V_DATE(6) = V_FROM.
EXIT.
ENDIF.
ENDDO.
Thanks,
Naren -
Balance Sheet G/L-PL reporting for period range by debit and credit amounts
Hi, good afternoon
This report displays period intervals. One column must display G/L accounts and the others must perform: Initial balance, total debit and total credit.
Example:
<b>Period: mm.dd.yyyy to mm.dd.yyyy</b>
Columns:
G/L Account - Initial Balance - debit - credit - Current Balance
Thanks for attention, ragards!Hi, I do not get what exactly your question is, but I think you are looking for a "report"
I do not remember any that meets exactly your requirements. I have seen similar reports... but you can only define the periods, not the dates.
Check this one:
S_ALR_87012277
You should take a look to these too:
S_PL0_86000030
S_PL0_86000031
Regards -
A period from outside of restricted period range appears on query
Hi,
I have a problem with an unwanted period (001.2009) which appears on the planning query.
We are using dynamic periods to determine periods for actual and planning figures and right now the periods should be: 001.2009 - 009.2009 for actuals and 010.2009 - 012.2010 for forecast. However 001.2009 is displayed as the first period for forecast. The column for january is completely empty and it isn't open for planning.
I restrict the periods for actuals and forecast with a user exit variable which gets it's values from TVARVC -table. I'm experiencing this problem only in development and test -environments and production system is working perfectly with the exactly similar implementation. This implicates that this problem exists because of a bug or program error. Maybe this is because of some note that have been implemented.
However, I'd just like to know if anyone here has experienced this kind of problem with these "phantom periods" which appear on reports or planning layouts without any apparent reason? If so, please tell me about your experiences and how you managed to solve the issue?
-Miikka
Edited by: Miikka Åkerman on Oct 1, 2009 12:32 PMThis was a program error solved in SPS20
-
Need help in dynamic report for a range of year and period
Dear all,
I need help in creating an ALV report with dynamic columns based on the Year and period entered on the selection screen. for example if in the year we enter 2002 and period range from 10 to 12 then we should get the 3 columns display for cost(example) for period 10/2002, 11/2002 and 12/2002.
Can anyone help me in achieving this dynamically since the user can enter the year also in intervals along with the period and data also needs to be populated in the corresponding columns.
An example code would be of great help.
Thanks,
AmitHi,
Use field symbols as follows.
TYPE-POOLS : SLIS.
TABLES : MARC,T001W.
DATA : BEGIN OF ITAB OCCURS 0,
MATNR LIKE MARC-MATNR,
END OF ITAB.
DATA : FIELDSTAB TYPE LVC_T_FCAT,
STAB TYPE LVC_S_FCAT,
T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
S_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
NEW_LINE TYPE REF TO DATA,
NEW_TABLE TYPE REF TO DATA,
INDEX(3) TYPE C,
STR(70),
TEXT(6),
CNT(1),
TEXT1(16),
REPID LIKE SY-REPID.
FIELD-SYMBOLS : <FS> TYPE STANDARD TABLE,
<WA> TYPE ANY.
SELECT-OPTIONS : S_WERKS FOR MARC-WERKS NO INTERVALS,
S_MATNR FOR MARC-MATNR NO INTERVALS.
INITIALIZATION.
REPID = SY-REPID.
START-OF-SELECTION.
SELECT * FROM MARC
INTO CORRESPONDING FIELDS OF TABLE ITAB
WHERE MATNR IN S_MATNR
AND WERKS IN S_WERKS.
SORT ITAB BY MATNR.
DELETE ADJACENT DUPLICATES FROM ITAB COMPARING MATNR.
STAB-FIELDNAME = 'MATNR'.
STAB-DATATYPE = 'CHAR'.
STAB-INTLEN = '18'.
APPEND STAB TO FIELDSTAB.
CLEAR CNT.
LOOP AT S_WERKS.
CLEAR TEXT.
CNT = CNT + 1.
CONCATENATE 'EISLO' CNT INTO TEXT.
STAB-FIELDNAME = TEXT.
STAB-DATATYPE = 'CHAR'.
STAB-INTLEN = '16'.
APPEND STAB TO FIELDSTAB.
CLEAR S_WERKS.
ENDLOOP.
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = FIELDSTAB
IMPORTING
EP_TABLE = NEW_TABLE.
ASSIGN NEW_TABLE->* TO <FS>.
CREATE DATA NEW_LINE LIKE LINE OF <FS>.
ASSIGN NEW_LINE->* TO <WA>.
PERFORM MOVE_DATA.
CLEAR S_FIELDCAT.
S_FIELDCAT-FIELDNAME = 'MATNR'.
S_FIELDCAT-TABNAME = ITAB.
S_FIELDCAT-SELTEXT_M = 'Part Number'.
S_FIELDCAT-NO_ZERO = 'X'.
S_FIELDCAT-DDICTXT = 'M'.
APPEND S_FIELDCAT TO T_FIELDCAT.
CLEAR CNT.
LOOP AT S_WERKS.
CLEAR T001W.
CNT = CNT + 1.
SELECT SINGLE * FROM T001W WHERE WERKS = S_WERKS-LOW AND SPRAS = SY-LANGU.
CLEAR TEXT.
CONCATENATE 'EISLO' CNT INTO TEXT.
S_FIELDCAT-FIELDNAME = TEXT.
S_FIELDCAT-SELTEXT_M = T001W-NAME2.
S_FIELDCAT-NO_ZERO = 'X'.
S_FIELDCAT-DDICTXT = 'M'.
APPEND S_FIELDCAT TO T_FIELDCAT.
CLEAR S_WERKS.
ENDLOOP.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
IT_FIELDCAT = T_FIELDCAT[]
TABLES
T_OUTTAB = <FS>.
*& Form MOVE_DATA
text
FORM MOVE_DATA.
LOOP AT ITAB.
CLEAR STR.
CONCATENATE ITAB-MATNR ' ' INTO STR SEPARATED BY SPACE.
LOOP AT S_WERKS.
CLEAR MARC.
SELECT SINGLE * FROM MARC WHERE MATNR = ITAB-MATNR AND WERKS = S_WERKS-LOW.
IF SY-SUBRC EQ 0.
CLEAR TEXT1.
TEXT1 = MARC-EISLO.
CONCATENATE STR TEXT1 INTO STR SEPARATED BY SPACE.
ELSE.
CONCATENATE STR '0' INTO STR SEPARATED BY SPACE.
ENDIF.
ENDLOOP.
<WA> = STR.
APPEND <WA> TO <FS>.
CLEAR ITAB.
ENDLOOP.
ENDFORM. "MOVE_DATA
Reward points if helpful.
Regards,
Sankar.. -
PC report S_E38_98000088 does not display periodic values
Dear colleagues,
In ECC6.0/new GL we are trying to use report S_E38_98000088 to display Actual/Plan values for a specific month/period, but it looks like the system will always show a cumulative value since the beginning of the fiscal year.
We enter the following on the selection screen:
Currency type: 10
Company code: XXXX
Account number: XXXXXXXX
Ledger: 0L
Controlling area: XXXX
Plan version: 1
Fiscal year: 2011
From Period: 4
To period: 4
Profit Center: XXXXXXX
But when we execute the report, and srill down to the line item level, we see that the report picks up all posting in 2011 instead of 04.2011 only.
The same happens if we try to execute the report for 12.2010 - it will select all postings in 2010.
Anyone knows why is it working like that and how can I display a specific period?
Many thanks,
Yoel.Shalom yoel,
this is not a bug.
Please bear in mind that this report shows cumulative values
for Balance Sheet accounts.
The calculated keyfigure BILWERT (Balance Sheet Value) behaves in
different ways for balance sheet and for P+L accounts. For balance sheet
accounts it always provides you with cumulated values. For example
for period 6 to 6 it will show cumulated value for periods 1 - 6 plus
balance carry forward value.
The BILWER is calculated like:
BILWERT = WERTB + WERTE,
WERTB - Balance sheet accounts value
WERTE - Income statement account value
But if an account is a P+L statement account, you will see the
real period balance value for the particular period range. It means,
that for period 6-6 you will see value for the single period 6. For
period 1-6 you will see cumulated value for period range 1 - 6 without
balance carry forward.
The report behaviour is dependent on your Financial Statement Version
(FSV) and how the particular accounts are valuated.
It means the following:
~~~~~~~~~~~~~~~~~~
1) All accounts assigned to the nodes "Assets" and "Liab+Equity" are
taken as balance sheet accounts and cumulated values are provided
for those accounts by report S_PL0_86000028 (and other GL reports)!!
2) All accounts which are not assigned within the FSV at all are
considered as balance sheet accounts and cumulated values are
provided by GL drilldown reports.
3) All accounts which are assigned OUT of "Assets" and "Liab+Equity"
nodes within particular FSV are taken as Profit and Loss acounts and
period values are provided for them in the GL drilldown reports
The original settings (which you can see under T-cd: FS00) has no
influence on it when using the FI-GL drilldown reports.
Please take into account the note 1154817 and the documentation
to OB58 and RFBILA00 how should define the correct FSV structure.
That is the design and usage of the hierarchy of the Financial Statement
Version and key figure.
There is no error in the standard system
br, Guido -
FA Cost Detail Report Period wise
Hi All
Please help me in solving this .Youyr help is highly needed .
We have scenrio where table has entry for PERIOD NAME ,ASSSET ID ,COST ADDITION ,COST DISPOSLE ,COST TRANSFER .
We need to find the COST OPENING BALANCE and CLOSING BALANCE for each period .And the OPENING BALANCE IS CLOSING BALANCE for PREVIOUS PERIOD .
If i have period Range for Jan to APRIL
My data look llike below
Asset ID Period Name OPENING BALANCE COST ADDITION COST DISPOSLE COST Transafer CLSOING Balanace
1001 Jan 0000(This is Closing Balance for last period ) 1000 0020 0000 1020
1001 FEB 1020 0000 0000 0000 1020
If there is not data for Mar and APR ...Then the clsoing balance and opening balance should be carry forward .
Could you please guide me in achieving this functionality .....
Thanks and Regards
BalkrishnaHi Zulqarnain,
Select COST from FA_BOOKS where RETIREMENT_ID is NULL;
OR, you can write a query to select the cost from FA_BOOKS table where the TRANSACTION_HEADER_ID_IN value is most recent or highest ...
Regards,
Ivruksha -
Hi,
My end user requires me to develop a report that will accept the following parameters:
Customer Code : ABC
From Period : 01-Jan-2005
To Period : 31-Dec-2010
Output must be as follows :
Customer Jan-05 Feb-05 Mar-05 Apr-05 May-05 ......................................Dec-10 Total Order
Code
ABC 10 15 5 20 10 ...................................... 15 X value
I have told my end user that it is not possible to create an Oracle report that will give data for any period range that the user specifies. First the number of columns for the date range must be fixed like say at a time only data for 12 months will be displayed in the report. Then they can run the report for any year and the parameter has to be
Customer Code : ABC
Year :2005
The output will be :
Customer Jan-05 Feb-05 Mar-05 Apr-05 May-05 ......................................Dec-05 Total Order
Code
ABC 10 15 5 20 10 ...................................... 15 X value
Am I right or wrong ? Please advise. This is very urgent.I don't see why this should not be possible.
Remember that you can have repeating frames in every direction (ie. right and down) and can combine these.
What I would do is look for (or create) a type of calender-table where I could select the date values from (ie. JAN 05) qualified by the from- and to-Parameters (aka query1),
then have a second, dependent query which uses the date from the calender (aka query2).
Then stack a down repeating frame for query2 into the right repeating frame for query1 and you should be almost there... Use the date from query1 as heading...
Cheers,
Jens Rettig -
Print GL Report by Financial Posting Period in General Settings
Hi
With reference to Message 859185, we would like to request for improvement to have an option to select Financial Period range according to the Posting Periods define in General Settings in order to obtain a more accurate Financial result when printing General Ledger Accounting Report.
Kedalene ChongHi Raja,
Unfortunately all the asset reports will be based on asset value date. Most of the time asset value date and dcoument dates are kept the same. Posting date could be different. So if you are comparing G/L balance to asset balance it should match because your G/L balance is based on document date.
Paul -
Input field for Range variable
I am trying to create a basic VC application based on SAP BI query. The query has a variable that is a Fiscal period range. I can input a Range, like 001/2009 - 005/2009. This input works fine in BI query, but VC returns error Invalid variable value. How to make the VC to accept the input value with Fiscal year Range.
Appreciate your help.Hi
In VC syntax for entering variable value is different than the BI query. For the same thing which you have mentioned, you have to enter it as -
001.2009:005.2009.
Then only it will accept the values.
Regards
Sandeep -
How to lock the data for few periods in the Input Layout
Dear All,
I have an input enabled layout wherein I will display the data based on a period range.( For ex, 01.2007 to 12.2007).
Now, based on the current period I should disable the input readiness for the periods less than my current period.
In my ex, if my current period is 06.2007, the input readiness should be disabled for the periods 01.2007 to 05.2007 .
How can I achive this?
Regards,
Srini.Hi Srinivas.
You can use user variable exit for the disabled one (the period one); based on the current period..
You can read regarding it in here:
http://help.sap.com/saphelp_nw04/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/frameset.htm
Hopefully it can help you a lot.
Regards,
Niel
thanks for the points you choose to assign.
Maybe you are looking for
-
I need to download a copy of FireFox 3.o to be able to post updates in an IBM repository. The current 4.0 version doesn't allow me to post or open files in this repository.
-
UCCX 10.1 - Linked Server - Copying HR data to external SQL Server for reporting
I have a customer that is migrating from UCCX 7 to UCCX 10. They currently have a 2008 SQL Server R2 that they use for custom reports. They have a package that runs nightly to copy relevant data from UCCX 7 to the their server and then run reports
-
MMS on my Nokia 928 use to work. After an upgrade is doesn't work (? - could be a coincidence it happened after an upgrade?). I get the message "Get media content now." Tapping on the link doesn't do anything. Doesn't matter whether I'm using wi-fi
-
Photos appear in screen saver but i can't find them!
I have my screesaver set to show photos from users/user/pictures. the only items in that folder are an empty photo booth folder and my iphoto library. after organizing my photos and events, pictures i'm not aware of are showing up in my screen saver.
-
Remove duplicate emails??
Every once in awhile something inside of mail triggers a re-download of mail from the server. It happened today and down I have 10,000 +/- duplicate emails all marked as unread. Is there anyway to remove duplicate emails from my download email folder