Current Period in a query
I need to now the current period in a query. I try using $[period] but only works on a form, not in a stand alone query or report. I am using SBO2005 SP01
Hi Hector,
when you write this query please keep in mind that the system behaviour has changed significantly in version 2007, where you can work with multiple open posting periods.
There is a document in the Documentation Resource Centre descibing the new functionality:
How to work with multiple open posting periods.
All the best,
Kerstin
Similar Messages
-
Error: No depreciation posting required in period 009 (current period)
Hi,
I am getting error " No depreciation posting required in period 009" and 009 is my current period.
The description of the error says " Do depreciation is posted, since according to the posting cycle no postings are required in this period". In fact this is the first time i am running depreciation. I want to post the depreciation for 1st period. More over i could not able to see the planned values in asset explorer also.
Whenever i am entering this asset in the asset explorer it is giving the above error. But while i run the depreciation its not giving any error. When i check in spool to view the depreciation, its giving msg as "List contains no data" check error log.
Could anyone help me in resolving this error. what could be the reason for this error.
Thanks
SaberaHi,
I checked in TABA table, its showing that till 9 the period depreciation has been posted. But i have not posted the depreciation. If it is posted, then it has to show in the planned values as posted, but its showing as "No depreciation" and its not even showing the depreciation for other periods. Could you able to clear this query? I wonder why it is giving this kind of error.
Regards
Sabera -
Current Period & Previous Period in MBEW
Hi,
I have to generate a report in BIW to show the material stock of current year to back three years month vice.
For which i will fetch data from table MBEW(for current period data) & MBEWH(for past periods data).
As i am a technical personal so i want to know what exactly the current period stands for and previous period.
If i am not wron the MBEW stores current period data for material valuation.
1. Suppose as this is January 2008, will the MBEW store data only for this period ?
2. And as this month is not complete yet then will this table wil be updated daily ?
3. what happens with the data of this table when a month ends ?
4. Now when i look up at the data in the MBEW its showing me current period as 001 & current fiscal year 2008 - what does this signifies ?
Our client follows V9 fiscal variant, i.e. fiscal period is OCt- Sep.
Can anyone please provide me some functional details regarding my query's ?hi,
table MBEW is for material valuation table, irrespective of the period. here there is no bifurcation of this current period and previou period.
MBEWH- is material valuation history table.
here current period running active period in which the posting is beeing done.
previous period is one month before the current period.
here in MBEWH, an option is given to fill the last current month as required for fetching the data.
Edited by: manipal on Jan 10, 2008 4:56 AM -
Current period, Previous Period and Sum from starting to current period
Dear Friends,
I have a typical requirements to push the following 3 KF into a .CSV format from BW CUBE.
1.Amount of Current period,
2............Previous Period
3............Sum from starting to current period
Cube is stored at period level..
Can anyone through me your views of doing, posibilities and prefered ways of the 2 approaches below
a) Infospoke, Badi enhancements
b) New cube to caliculate abouve things and then infospoke
c) Query and useing RSCRM... tool to run the query to dump into .CSV
Thanks for your valuable time.
regards,
hariAnother possibility is taking a snapshot to a transactional ODS using the APD. This creates an outbound layer that you can then use Open Hub to push out.
-
Current period/Year to Date Amount calculation
Hi,
I would like to create a query in Bex Query Designer.
Requirements:
If I enter current period and Fiscal year then the report should appear total of period 1 to current period.
Example:
Period: 4
Year: 2008
For Cost Elements in Controlling.
The report should be like
|Cost Elements | Amount of(P1P2P3+P4)|
I can keep select variable as filter to enter current period, But how can I calculate the total amount from period 1 to current period.
Any help would be appreciated.
Thanks,
Aparna.
Edited by: Aparna Pyeddu on Jan 29, 2009 9:45 PM
Edited by: Aparna Pyeddu on Jan 29, 2009 9:46 PMHi,
To get the required output do like this...
1. Create a Customet Exit Variable on 0FISCPER. (Single, Mandotory, Uncheck Ready for InPut):'ZFY_CURR'
2. Create a Customet Exit Variable on 0FISCPER. (Single, Mandotory, Uncheck Ready for InPut):'ZFY_CUR1'
3.In Free Chars drag and Drop 0FISCPER and the restrict with Variable '0P_FPER'.
4.Create New Selection in Columns and the Drag your Key figure and then Drag 0FISCPER and then restrict with (Select Value Range) []ZFY_CURR; ZFY_CUR1.
5. Execute the report then you can get the desired output.
The below Code is for From Period
WHEN 'ZFY_CURR'.
Data: ZSF(4) type C,
ZSF1(3) type C,
ZSFY(7) type C,
ZSFH(7) type C.
ZSF1 = '001'.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = '0P_FPER'.
IF sy-subrc = 0.
CLEAR: l_s_range.
ZSF = loc_var_range-LOW+0(4).
ZSFH = loc_var_range-LOW.
CONCATENATE ZSF ZSF1 INTO ZSFY.
l_s_range-low = ZSFY.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDLOOP.
The below Code is for To Period
WHEN 'ZFY_CUR1'.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = '0P_FPER'.
IF sy-subrc = 0.
CLEAR: l_s_range.
ZSFH = loc_var_range-LOW.
l_s_range-low = ZSFH.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDLOOP.
Thanks
Reddy
Edited by: Surendra Reddy on Jan 31, 2009 2:46 PM -
Current period time vs previous period time
Hi All,
I have to create a report which compare the sales period time..
for example variable 0calmonth period 0108 - 0208
product | current period 0108 / 0208 | previous period 0107 / 0207 | current - previous
TV | 1000 | 500 | 500
Audio | 100 | 300 | -200
its work great
but when I add 0calmonth in column query
product | current period 0108 - 0208 | previous period 0107 - 0207 | current - previous
0107
0207
0108
0208
0107
0207
0108
0208
0107
0207
0108
0208
TV | 0 | 0 | 800 | 200 | 300 | 200 | 0 | 0 | -300 | -200 | 800 | 200 |
Audio | 0 | 0 | 70 | 30 | 150 | 150 | 0 | 0 | -150 | -150 | 70 | 30 |
This is not what i want.
I want this.
product | current period 0108 - 0208 | previous period 0107 - 0207 | current - previous
0108
0208
0107
0207
0108-0107
0208-0207
TV | 800 | 200 | 300 | 200 | 500 | 0 |
Audio | 70 | 30 | 150 | 150 | -80 | -120 |
How do that?Hi,
I think there is a way to do this, take normally first 4 fields, product | current period 0108 - 0208 | previous period 0107 - 0207 | current - previous
Then remove 0CALMONTH from columns and after that create a RKF by new selection, using sales Keyfig. with 0CALMONTH resticted to the value 0108, and next take a new selection and restrict the same with 0208.
Similarly restrict for remaining months also (0107 0207 0108-0107 0208-0207 ) so that it can be arranged in the order u want.
Hope this helps.
Rgs,
I.R.K -
Current period data not visible in Management Cockpit
Hi...
I am facing problem in displaying latest data in Management Cockpit. The cockpit design is as follows: 0CALDAY (Section Axis), Plant Code (Data Series) & Production figures (Measure: Without Specific Axis).
Problem:
By default, the cockpit does not display data for current period automatically. It works perfectly fine when the period is changed to past period. However, when the cockpit data is refreshed by - opening the cockpit frame, clicking on 'Parameters' and clicking on 'Select', the data for current period is displayed correctly. Why does the cockpit not display current month by default?
We have tried to fill the cache multiple times and hence do not think that this problem is due to inavalibilty of data in 'Cockpit Cache'. (Parameters given in buffering program 'UMM_MC_BUF' - Start = 01.2009, End = 012.2009, Time Stamp = 'X', Mode = 'A').
Note: The query is based on Inventory Cube (0IC_C03)
Regards,
Anoop Sahuthank for your answer
As i see it in JDev help, i'm sure it is possible.
Can someone help me with that problem ? -
Hi!
I need to know from SDK the current period used in the company.
I know that:
In all SAP Business One releases up to 2005 A SP1 there is a 'current' period setting that indicates the period enabled for data entry and posting.
Only one period can be set as the current period. Beginning with Release 2007 A, all periods will be enabled and the 'current' period setting will no longer be used. When the add-on attempts to read a value from the 'Company.CurrentPeriod', instead of the value period value, it will receive the numeric value '-1'.
What alternative can I use?Hi All,
So, B1 period is determined by automatically, based on posting date. But if you use several numbering series for the same document, you can set up different series for different posting periods using period indicator.
Ex:
year - 2009 Period Indicatior - 2009
year - 2010 Period Indicatior - 2010
Numbering series:
for series in 2009 - Indicatior is set to 2009
for series in 2010 - Indicatior is set to 2010
If you open the A/R Invoice form, you will see series belongs to Period indicator 2010. if you change the posting date to 2009.12.01, you will see the series on the form belongs to Period indicator 2009.
If we change the example
Ex:
year - 2009 Period Indicatior - 2009
year - 2010 Period Indicatior - 2009
Numbering series:
for series in 2009 - Indicatior is set to 2009
for series in 2010 - Indicatior is set to 2009
IN this case on the form you can select each series (belongs to 2009 and 2010).
This means: series displayed and selected automatically based on posting date and period indicator. (by this you can set up different numbering series by periods - Period indication of posting periods cas be change until the first booking!)
SAP B1 is automatically set the numbering series of a document by posting date which is simiral to the following query (A/R Invoice object type = 13)
select T1.* from ofpr T0 inner join NNM1 T1 on T0.Indicator = T1.Indicator
where convert(datetime,getdate(),112) between T0.F_RefDate and T0.T_RefDate and T1.Locked ='N' and T1.ObjectCode = '13'
Regards,
J. -
Transferring the additional hours to current period during retro run
Hi Experts,
We are have Pension contribution plan in 0169 where wage type 9XXX that takes in total hours from /229 via custom PCR. . Then the hours are multiplied by a constant stored in table T511K. The problem is that suppose we have created a record for hours in IT 2010 for some previous period during the current run and want to reflect that change with the a retro run. i.e 97XX should take in hours from /229 in the current period plus those additional hours give in some previous period and reflect the same in the current period. And this not happening.
E.g. In for period 04 say, we want the hours also that have in given additionally for in period 02. We have checked tables V_51P6_B as well as V_51P6_C for 9XXX and it's OK.
Are we missing something here?Like other deductions (other than taxes), retroactive changes to the deduction amount should be carried forward to the current pay through tables DDNTK and ARRRS, since you can't change the Net Pay Amount of the previous pay.
For retroactive changes to Payments, such as hours recorded in IT2010, the payment calculation will usually happen in the retroactive pay, Staturory Deductions (such as Income Tax) will be calculated and the resulting change in net income will be carried forward to the current pay.
If the current calculation does not meet your requirements, you probably need to create a few PCRs to work around the problem.
If possible, any variation in the value of /229 should be carried forwart to the current pay (through Output and Input WTs) before function P0169.
The alternative would be to create a series of PCRs before and after that function so that the retroactive pay would always use the original value of /229 (without changing it's value in RT) and that the current pay's value of /229 would be modified temporarily to reflect the retroactive changes (without changing it's value in RT). -
P & L report for current period,YTD and previous YTD
I am trying to create a P & L report with the columns for current period,YTD and previous YTD, I have include the measures as the key of columns, which by using period or YTD we can retrieve the current period and YTD column, is there as easy way to get the previous YTD? although I can get it by using evtim to het every month and calculate the previous YTD.
resolved, just need to bring both time and measures in the columns
-
If current period is closed, use next period for posting...
Hello Experts,
I am currently developing a report that posts via F-02. Now, my functional said
that if before posting, I need to check if the current period is open.If yes, then
proceed posting. If not, then get the next period and use it for posting.
For example, period 12 is closed, then I need to use period 13. Can you guys help
me in the logic?
Thanks and take care!Hi,
Check with your FI consultant as which table to use to determine the posting period is closed or not. It is customizing table.
Regards,
Atish -
Logic for carry forward of previous stock to current period stock.
Hi Experts,
Client is using already MC.9 for see the stock analysis report, however as per there requirement we are exploring BOM as well as fetching quantity from table level as well. in my report I am experiencing difficulty to carry forward previous period closing stock quantity to current period stock quantiy, if there is no received for current period, however the same is happens in MC.9
Could any one tell me what is the logic behind MC.9 which is do carry forward previous period closing stock to current period stock quantity in report.
As per the requirement I am using S031, S032,S033, however unable to get logic for carry forward the previous month stock quantity to current month.
have a requirement of creating a report of showing material stock period wise for each plant in below mention format.
Header 1
Header 2
Header 3
Header 4
LFGJA/LFMON
ROH (MT)
HALB (MT)
FERT (MT)
11.2013
100.000
121.000
121.00
12.2013
50.000
12.000
123.00
01.2014
23.231
.23.234
45.342
02.2014
23.231
34.094
45.098
03.2014
34.098
98.983
00.000
04.2014
00.000
69.093
98.098
05.2014
00.000
89.098
00.000
For Example Break up of ROH material plant wise in below mention format.
LFGJA/LFMON
WERKS
MENGE (MT)
11.2013
P001
30.000
11.2013
P002
50.000
11.2013
P003
20.00
Thanks in advance,
SKNHi,
The last period closing stock = current period opening stock. You may get the details from MBEWH and S032 tables. Refer the doc: Material Stock and Valuation History tables - how to read them
Regards,
AKPT -
Return current period based off of current fiscal year and date
Good Afternoon,
Is there a way in the webi that I can create a dimension that always reflects the current Fiscal Month based of Fiscal year and date? I have a report that I am trying to show sales for a customer based off the current fiscal month. I would like this report when refreshed to be based off this fiscal month dimension instead of showing each fiscal month or changing it manually. What is the best way to do this?
I have attached an image that shows current numbers by period (month) and then the YTD Totals. I would like to have my 'Period' column always reflect the current period and the Total column to reflect that months totals based off the period column. So for this period (3), instead of seeing 3 lines for each month I would just see the '3' and the total as $541,310.46, monthly as 412,502.09 and my YTD as 1,080,091.06.
Any help is always appreciated!
Thank you,
TiffanyHi,
Create a variable
FlagVar=If([Period]=Max([Period]) In Report;"Show";"Hide")
And apply block filter of FlagVar=Show
Are these coming TotalSales MonthlyGoal YTDSales directly from universe? If they are calculated at report level then you might want to use NoFilter. like =NoFilter([YTDSales]) -
Current period in Accounting 1 view of Material Master
Dear Experts,
In Accounting 1 view of Material Master there is a current period, now it is 12 2009.
Is it possible to make it 11 2009, if yes how to do it.
Please help if you have solution. it is very crucial for me.
Thank you for your support.
Regards,
ZusenHi,
Please read the Solution part of note 487381. There is still a few things need to be carry out before you can proceed
with the initialization :
Bear in mind that the initialization of a posting period has the
following effects concerning the period stocks:
o The initialization of the posting period to a previous or to any
posting period may lead to the loss of the information of the
inventory balances of the previous periods.The book value of the
current posting period is taken as the basis also for values of
the previous period in this case.
If you want to continue working with this new posting period, in
addition you should execute report Z_DEL_HIST_ENTRIES attached so
that history entries greater or equal to the new posting period
will be deleted.
o If you have to briefly reset the posting period by one period
(for example, postings must still be posted in a certain period)
just to make a correction (and for a small number of postings),
you should initialize the posting period back again to the old
value so that the values of the previous period will not be lost
(you should forbid postings when carrying out corrections).
However, afterwards the values of the previous period or the
history records (as of Release 4.5) of the materials posted in
this case are inaccurate.
You should NOT execute report Z_DEL_HIST_ENTRIES in this case.
o However, if the posting period is generally reset again to a
previous posting period and if postings were made during this
time, all information on the inventory balance of the previous
periods is lost.
As of Release 4.5a, you should use the cited correction report
Z_DEL_HIST_ENTRIES in order to delete history records that are
more current than the current posting period.Otherwise, it can
result in deviations (inconsistencies) for the update of the
history records.
o Important! If there are open physical inventory documents that
have status 'counted' or for which indicator 'Freeze inventory
balance' has been set, you should reject these if they refer to a
previous period or have been created in the former previous
period.The inventory difference to be posted can be determined
from the current book value of the previous period and the book
quantity frozen in the physical inventory document (ISEG-BUCHM)
and does not match the inventory balance of the previous period
that is currently valid. -
How to change the current period in material master
hi everybody,
as i have installed sap 4.7 ides version on my home pc for practice , but hwenver i am creating the new material master in the system , i observe that in accounting1 tab the current period is 12 2002 , how should i change the current posting period so that i can start the transaction in current uear 2009 and then later i can work in 2010 ....
i have tried the transaction mmrv, mmpv, mmpi through some resources but i didnt know how to do the settings in the system in IMG (SPRO) kindly help me through , i have wasted lot of time in this..
i hope MM team will help me out of this...
AMIT BATHLAHi,
Check in OMSY Transaction that, Which current month and year is having your comapny code.
and go to T.Code MMPV
enter Next Month of that cureent period and Year
and Execute. You find the message that your current period has changed.
Do the same process month by month till reaches to current period and year.
Let me know if you have further queries.
Padma.
Maybe you are looking for
-
my ipod classic got wet back in August.. it seemed to work fine for about a month, but recently is not working at all..screen appeared to get cloudy and then it just stopped working. thanks.
-
One published event doesn't show the right time
Hi all, I have a published calendar. Created localy on my MacBook. When I go on the web page to see this calendar, very strangely one of the events shows 13:00 on the online calendar but should be at 14:00 (as created in iCal localy). All the other e
-
The iPad could not be synced because sync session failed to start.
I looked through the discussions and couldn't find an answer. I have the latest iOS (5.1.1) and iTunes (10.6.3). My other iOS devices sync fine. I have a MacBook Pro Mid-2010 edition running OS X Mountain Lion (in case this info is needed). I tried d
-
I have a 15.4 " MacBook Pro. I've had it for several months now. For the first few, whenever the battery charge dropped to about 4 or 5 minutes, a warning would pop up on the screen. It told me the computer was about to resort to reserve power and I
-
-200361 warning during DAQmx acquisition
Hello, I have been getting this warning during acquistion with 6255 OEM. This interrupts the continous data acquisiton of my software. I have tried reducing the sampling rate but doesn't help. Can some one help me find the way of handling this situra