Current Posting Period
Hello,
Is there a SAP Exit variable that will return values for Current Posting Period (0FISCPER3)? I dont see one but there are so many maybe i am overlooking it. Fiscal year period is not an option for me here.
Thanks,
TMS
HI TMS
I remember i couldnt find one to suit either so i just wrote a customer exit to handle it.
Here is some code that may help, call this in i_step 1:
WHEN 'The tech name of your variable'.
l_period = syst-datum+4(2) + 6.
*the +6 is for the fiscal variant, my site runs a july-jun variant, so the ōffset is 6
IF l_period > 12.
l_period = l_period - 12.
ENDIF.
*this handles the year role over, so if you are running more than 12 periods change to *suit
l_s_range-low = l_period.
l_s_range-high = ''.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
Hope this helps
Josh
Similar Messages
-
SAP Exit for Current Posting Period
H All,
I am executing a query and it should always take the Current Fiscal Year & Current period into consideration. I don't see any Standard SAP exit which is provided for this. There is an SAP exit for Fiscal year/Period but I need both of them seperately. Can anyone please provide a sample code for "Current posting period".
Points will be assigned!
Thanks a lot!Hi Sia
Here is some cmod code that might help:
These should be run in i-step = 1
DATA: l_period TYPE t009b-poper,
l_txt4(4) TYPE c.
*Variable ZCCCFYEAR that defauts to current Fiscal Year
WHEN 'ZCCCFYEAR'.
l_txt4 = syst-datum(4).
l_period = syst-datum+4(2).
*Handles FiscVarnt, period 6 is end of year so period 7 is new year
IF l_period > '06'.
l_txt4 = l_txt4 + 1.
ENDIF.
l_s_range-low = l_txt4 .
l_s_range-high = ''.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
*Variable ZCCPPER that defauts to current Posting Period
Code adds 6 to current year period to be inline with Fiscal Year Variant (ie.per1 = july(7)),
WHEN 'ZCCPPER'.
l_period = syst-datum+4(2) + 6.
IF l_period > 12.
l_period = l_period - 12.
ENDIF.
l_s_range-low = l_period.
l_s_range-high = ''.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
Hope this helps
Josh -
How do we know current posting period?
How do we know current posting period?
hi,
try these FM ->
<b>CKML_F_POSTING_PERIODS_GET
HR_HCP_GET_POSTING_PERIODS</b>
rgds
anver
pls mark hlpful answers -
Hi, there is a way, via DI API, to retrive the Current Posting Periods?
Thank You
Best Regards
Marco TrestiniHi Edward,
I'm having a little Problem
In my instalaion of the SDK in the Samples Directory the last sample i have is noº 22
So how can i get noº 23
Thanks for any help you can provied
Pedro Gomes -
Can't define previous & current posting period date in Balance sheet PLD.
Hello Experts,
I need to print previous financial year's last date & current financial year's last date on the balance sheet in a new company.
But i am unable to do so, as i was trying to link it with posting period's date in the PLD. And in the new company currently i am having only one posting period i.e. current financial year. How can i get the date from the previous posting period's date.
Please suggest me, how can i get the previous financial year's last date & current financial year's last date on the PLD of Balance Sheet.
Regards.
ShriX.Hi,
This is one of Hard Coded PLD that no way to link to other tables. You have to create your own report if you need those dates.
Thanks,
Gordon -
Reg: Query Problem for New Posting Period
Hi Xperts,
While I try to Map the A/P Invoices with their respective Outgoing Payment,
I used the following Query and it's Query Printlayout
SELECT T0.DocNum [Payment#], T0.DocDate [Payment Date],
T0.CardCode, T0.CardName, T1.InvoiceId, T2.DocNum [AP Inv#],
T2.NumatCard [Bill No.], T2.DocDate [Bill Date], T1.selfInv,
T1.SumApplied, T1.WtAppld, T0.NoDocsum
FROM [dbo].[OVPM] T0 INNER JOIN
[dbo].[VPM2] T1 ON T1.[DocNum] = T0.DocNum
INNER JOIN [dbo].[OPCH] T2 ON T2.[DocEntry] = T1.DocEntry
WHERE T0.Cardname='[%0]' and T0.DocDate='[%1]' and
T0.DocNum='[%2]'
I got the above query from our Expert Mr.Sambath only.
Now what is the problem is the query is retrieving the payment details of old Posting Period only and not the current posting period.
In detail, I used 'Primary' Series for FY08-09, Period indicator 'Default'
Now I'm using 'Primary1' Series for FY09-10, Period indicator '0910'
Thanx in adv.
Regards,
BalaHi Bala,
Looking at your query, it is not query issue ,it is your data issue.
Please check if you have data in VPM2 table which is bank transfer payment method
Thank you
Bishal
Edited by: Bishal Adhikari on Apr 9, 2009 8:48 AM -
Hi Experts,
When trying to post a good receipts I get the current error:
Posting periods only possible in 12/2011 and 11/2011. I want to post in 12/2209
How do I set the system to post in 12/2009?Hi
Allowing Posting to the Previous Period
Prerequisites
Posting to the previous period (backposting) is allowed only if the corresponding indicator is set
in the control record. This indicator is set automatically during initialization and after each change
of period. However, it can sometimes be necessary to set it manually.
For One Company Code
1. In the Material Master [Ext.] menu, choose Other Allow posting to previous period.
The initial screen appears.
2. Enter the company code and choose Enter.
3. Set the Allow posting to previous per. indicator.
4. Save your data.
But in your case the current year is 2011 but you wanna to post to 2009.You can allow by allow posting to previous period ( i.e. one period only).
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.
You need to take help of SAP while doing initialization by MMPI and also prog. RMMMINIT but system gives error Follow the instructions in Note 487381 before initialization.
Edited by: sunny on Dec 15, 2009 6:39 AM -
Network confirmation cancell. thru CN29,when past posting period isnot open
Hi Gurus,
I have one query regarding netowrk confirmation. In our scnario, we are confirming network activity/element directly through CN27. Now after confirmation, due to some mistake we are trying to cancel that confimration through CN29 but system gives me error that "posting period is not open". As my network confirmation was done in the month of March'10 and i am trying to cancel it in April'10 that's why system is not allowing me to canel the confimration.
Now my query is that how to cancel the network confimmation without opening past posting period. I looked into the configuration for network confirmations but there is no setting available to allow cacellation of network confirmation done in posting period which is not open now.
however in CAT5, we have a option where we can enter cancellation posting date, and system allows to cancel time postring for that period also which is closed now (by putting cancellation posting date belonging to current posting period wihhc is open).
regards
Alok MittalI have not verified the same on system, but It's quite good observation. I think it's standard behavior in system and could be possible, in CN29 you are not having option to put posting date, so, system is taking date of posting date on which it got posted for reversal. i.e. March 10, but period is closed for that date. so, system is giving you error that period is closed.
Now coming to CAT5 if you give posting date of March 10, and try to reverse this document system will give you same error of period close. but if you give posting date of period April 10 system will allow to post. Because current period is open. Reversal program works in SAP based on some logic for different documents.
If you wanted to check why system is behaving in that way in that case, compare both documents ( original posted and reversal document posted in CAT5, check after posting reversal document is there any change done by system to original documents , I understand mostly system put reversal tick mark or so, in original document and give reference document in new documents )
Please check and revert back.
With Regards
Nitin p. -
SAP 2007 posting period problem
Hi , Ask for help please.
I am trying to add the invoice into system for the customers who have 60 days terms, which leads the due date falls into 2010, however the system pops out error says: invoice is not allowed cause not permission date. Just wonder why, and how can I fix it? The posting period has been set up correctly and have year 2010 . thanksHi ,
I think you need to extend the due date upto 2010 , since you are in 2009 . Then you should be able to create your document .
Go to current posting period and extend the due date .
Hope this helps
Bishal -
Variant setup for SAP standard report SDRRAV01 for dynamic Posting Period
Can someone please help with the process for setting up a variant for program SDRRAV01 so that we can get the Posting Period To ( Screen field PPOPER_H : T009B-POPER ) and Posting Year To (screen field name PGJAHR_H : T009B-BDATJ ) fields populate the values dynamically to current posting period and posting year.
Thank you in advance.or else write a small program calling this report and passing the period and year to the selection screen using the submit option.
hope it helps.
award points if it helps. -
Problems in Closing Posting Period
Hi Friends,
We have to open posting period in test client acc. to client's requirement, but when we are using MMPv for this we are getting message that current posting period is 07/2008.So when we are trying to close the posting periods starting from 07/2008, we are getting message that calendar year 2008 is not current fiscal year.
Please help.
Regards
Joy GargHi Arunbharani,
We have checked in MMRV, the following entries are coming correponding to the required company code:
Current period 07 2008
Previous period 06 2008
Last period in prev.year 12 2007
Option Disallow backposting generally is selected.
So i understand the current period opened w.r.t copmant code( required one) is 07/2008. When we are trying to close the periods starting from 07/2008 through MMPV, message comes that year 2008 is not current calendar year.
Even on pressing enter & execute it number of times show the same message.
Please suggest.
Regards
Joy Garg -
Error :in opening posting period
For opening posting period April08-March 09 what to do?
Posting varient is created for current posting period,now for new posting period is it so to create new varient ?
& if new varient created then how to assign to company code as one current varient already assignedYou can have the same posting period variant.
Go to Tcode OB52 and give your open period and close period for normal posting periods
as well as
for special posting periods.
Cheers! -
2007B
Need to upload open AR/AP Invoices( Service type) to post BP opening balances.
There are open invoices from the year- 2003, 2005 , etc. This is considered as the posting date as the exchange rate conversions need to be of that date (exchange rate convrsions are based on posting rate)
Should we create posting periods for those years to upload the open invoices of those date ranges?
Is that recommended? if not what should be done?
vijayHi Kerstin,
Thanks for the clarity.
In India, the financial year starts from APR 01 and ends MAR 31 ( current Financial year 01-APR- 08 to 31- MAR- 09)
We here have posting periods for every month (total of 12 posting periods)
I can bring the closing balances of 31-MAR-08 (last financial year closing date) as the opening balance for the current financial year APR 01.
Upload all the current financial year AR/AP invoices from APR 01 (will keep all the previous month posting period open and upload all the open documents)
My current Posting period is of NOV month.
My questions:
In this case, If I close the posting period from APR to OCT one by one( 7 posting periods ) after uploading the open documents, the period closing journal entries will be created. Will this have any issues? Is there any better way to do it?
whats are the implications of closing a posting period ?
vijay -
Fiscal year and posting period
Hai friends,
I have a requirement like this,
when I choose say 02/2008(posting period/fiscal year or posting period and fiscal year) in the Variable. I also get data for the last twelve months .so my report would have
02/2008,01/2008 ,12/2007 .03/2007.
This variable should default to current posting period/fiscal year. So when somebody logs in he sees the current month and last twelve months.He can then change it to whatever he wants.
The way I see it is that I have to write a customer exit and create a variable in which in to we will have current fiscal year/period and in from will have Current fiscal year/period-12.
How to do this.
Any help will be rewarded.
Thanks in advance.Hi,
Your approach is right.
If you want the values to default and allow the users to change it, you should put the code under STEP I.
WHEN 'variable'.
IF I_STEP = 1.
REFRESH e_t_range.
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
l_s_range-low = 'Current Value - 11 periods'
l_s_range-high = 'Current Value'
APPEND l_s_range TO e_t_range.
Mathew. -
Opening of third Posting periods for authorizing group
Hi,
On the current posting periods screen we have two possibilities to enter current posting periods and the posting periods for the authorizing group in order to limit user access. Is it possible to create third posting period for authorizing group beside these two possibilities of entering two different posting periods?
ThanksI know this process. But it is not my problem.
On the screen we have only two fields to mention "Period 1 and Period 2". My question is how we can create new field for Period 3 (for authorised groups).
I don't want to create new line, but I want to create new field. Please check the posting period table to perceive my question (Code: S_ALR_87003642).
Maybe you are looking for
-
HDTV won't display as mirror or extra display via mini-dvi to HDMI
Hi I have a MacBook running 10.5.7 connected to a 1080P-capable Toshishba TV (model 42XV555). I also tried this with 10.5.6 with same results. They are connected via a "shuttlez" mini-dvi to hdmi dongle and then via a "wegi" hdmi to hmdi cable. The T
-
What are the options for creating editable output
We are using PeopleSoft XML Publisher. I need to create inventory reports that list assets and include columns for user input. Currently we generate them using an rtf template, a query data source and print them out in pdf format. Rather than print t
-
Recompiling attached libraries...
Hello everybody, I'm using the FileUpload utility to upload files from client to user in oracle environment, i add the library that came with it, at runtime i got the error ora 06508, i searched the web and found this note: For Oracle Application Ser
-
Upgrading 11.2.3 to Sp3 failed!
Hi, I'm testing the upgrade of Zenworks 11.2.3 to Sp3 in my test environment and it failed. On the screen there's an error executing AddIdColumnMssqlConfigureAction, check the novell-zenworks-configure.log. In this log, there's no error! its just wri
-
Hi. Will Apple continue to make and sell the iPad 2, or do I need to run out and get one now? Bob