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,
Bala

Hi 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

Similar Messages

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Problem with New Posting Period

    Hi Experts,
    I am trying to create a new posting period for 2009 but the system will not update. I have done this for several companies on the same server and it worked but for some it wont work. I do not get an error message, the system does not respond at all.
    I am using SB0 3005 A.
    Regards,
    Lebo

    Hi,
    Check Note No. [1079168|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1079168]
    Regards,
    Jitin
    SAP Business One Forum Team

  • New posting period for former fiscal year

    Hello All!
    For a customer we set up a database with posting periods for 2011 and 2012 (monthly periods). The database went live in 2011.
    Now the requirement came up to post the opening balances for 2011 per end of 2010 (to have the postings not in fiscal year 2011).
    My question is: is it a problem to add now a fiscal year 2010 (yearly basis)?
    Thanks and regards
    Peter Ganserer

    Hi Peter,
    Although it is your 2nd posting, I would add welcome message because I had not do so 1st time.
    For your question, it is not possible to add new posting period for former fiscal year. You best solution is to post those OB as the first date of the first period.
    Thanks,
    Gordon

  • How to substitute a month abbreviation for the posting period in a query

    Hi,
    I have a query that lists the Posting Period (0FISCPER3) characteristic in the rows and key figures across the columns.  Is there a way to display the Posting Period as a month abbreviation instead of a number? 
    So for example, instead of displaying the periods 01, 02, 03, 04... in the rows, I would like to display the abbreviation of the corresponding month, for example Jun, Jul, Aug, Sep... etc.
    Thanks,
    Mustafa.

    Hi,
    Thanks for the suggestions.  If the master data texts are updated for characteristic "0FISCPER3", this would assume that all Company Codes have the same Fiscal Year Variant.  What happens in a situation where there are multiple Company Codes with different Fiscal Year Variants, a case which is common for multinational companies?
    Can such a manipulation be performed in the query itself based on the Fiscal Year Variant?
    Regards,
    Mustafa.

  • Voucher Number in new posting period

    hello,
    I have created new posting period and series for financial year 2011-12.
    In previous year I have created 600 voucher. My issue is that when I am creating new
    voucher, voucher number is showing 601. I want that for new series voucher number should be
    start from 1. but it seems like numbering series doesn't affect the voucher number.
    Because there are no series creation for journal voucher. In this case how can I solve my problem.
    Please help me on this.
    thanks
    Annu

    Hi Annu.............
    You created Posting Period but have you created Period Indicator and Assigned this Indicator to this created Posting period?
    If you have done this then when you define new no. series from one just assign the same indicatorto this New No. Series also and lock old series.....
    Hope this will work....
    Regards,
    Rahul

  • Cannot create new posting period

    Hi,
    A customer is unable to create a new posting period for year 2012. The following error message appears: "No matching records found. Period Category (OACP) ODBC-2028. Message 131-133".
    SAP version: 8.81
    I  searched in notes & forums but I couldn't find a solution to this problem.
    Thank you in advance for your help.
    Nadia.

    Hi Nadia
    how did the customer try to make new period?
    through Administration->System InitialisationGeneral Settings->Posting Periods->New Period?
    if yes, could you please have a look on the OACP table by trying the
    select * from oacp
    and find out if there is any record?

  • 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

  • Document Series Error after creation of a new Posting Period

    Hi
    While Creation of a new Document Series for user created UDO (after creation of new Posting Period
    with Period Indicator) on update its showing a message box
    "Application Error occurred, Dump file created in path  C\Program Files\SAP\..\Log......"
    And soon SAP B1 gets exit.
    Can any one help me to come out of this problem.

    Hi,
    Whenever Dump file created, it is high time to log a message to SAP support.  This problem is beyond forum function.
    Thanks,
    Gordon

  • Problems with the posting period....

    Hi guys,
    every once in a while the old problem with the posting periods occurs. This morning it hit me and I went out to repair it.
    Starting out from MMRV I checked the open period and it said 062009.
    Using MMPV, by mistake, I opened 112009, so that I'm able to post to 112009 PLUS the previous period 102009 (which is ok so far). Later on I checked OB52 to see, if finance is not the problem. The opened period lasts from 012009 to 122009.
    Long story short: everything seems perfectly alright, however it still doesn't work. It says: Posting only possible in periods 2009/11 and 2009/10 in company code 1000
    I don't see where there could be a problem now...
    Any help is greatly appreciated!
    Thx & regards,
    Bobby

    Hi,
    It is possible to re-open a previously closed period. However, it is NOT advisable to do so because the valuation data of the previous period could be affected.
    In general, it is only safe to reopen a previously closed period when no material postings have been done after the period shifting to the new period.
    If there has already been postings after the period shifting to the new period, reverting the period back will cause database inconsistencies in the history tables.
    If you decide to proceed with this process, you can use the program RMMMINIT, but, please review the documentation of this program first!! and the check the SAP notes 487381 (for the error message that you are receiving) and the 369637 (for an explanation about the inconsistencies that will be generated.
    Steps are as below;
    Go to Transaction Code SE38
    Enter program name RMMMINIT
    Execute or press F8 function button
    Enter your company code (From and To)
    Enter relevant date: Say 01/10/2009 for Oct. 2009 month to be opened as of now
    That means, user can post for the month of sept 2009 as well as Oct. 2009
    Refer SAP Note No. 487381 for more details.
    As per SAP Notes 487381 ( If the periods are opened in advance in mmpv to again change it to current period the following process should be follow ), Go to Tcode MMPI, then go to menu bar and select system -> user profile->owndata.In that screen , under the parameters tab enter MMPI_READ_NOTE in Parameter ID field and enter, then under short description you will get Initialise period. Next Save.
    Again go to MMPI enter company code, period and year and execute.
    Other way of doing it is follow these steps: ( *TRY in Sandbox But do not try in PRODUCTION SYSTEM*)
    1. Use t.code: OX18, and delete the plants assigned to your CO.Cd and save.
    2. Use t.code: OMSY and change the posting period to the one u want and save.
    3.Go to OX18 and assign the plants you have deleted in step 1.and save.
    Regards,
    Biju K

  • Error that "specify a value for variable posting period (single value entry

    hi
    My query is running testing fine in RSECADMIN under some username..but when i try and open it using analyzer (under same username) it gives me error that "specify a value for variable posting period (single value entry, mandatry)" it does'nt even asks to enter variable values and gives this error message.
    However the same query appears to be working fine under different username.
    plz advise.

    Hi Abhinav,
    Just do one thing compare the Roles of two different users for which Query is getting executed and not.
    Check the Object S_RFC.
    Compare the Objects detail for Both the Users.
    Please Assign points if useful.
    Regards,
    Rajdeep.

  • I have Created new posting period but it assigns -1 in OFPR table

    I have created new posting period eg 2010 .with user manager but still there is value of -1 in usersign field of ofpr table
    i am getting confuse will you help me to rectify?
    Thanks for previous answer

    I have check our database and found out that all periods with usersign as -1 if they are not the periods belong to the first year.  It might be designed that way.
    Thanks,
    Gordon

  • Cannot add new posting period

    Hi All,
    I get the following message when adding a new posting period : "This entry already exists in the following tables “Posting Period”(OFPR) (ODBC – 2035) [Message 131-183]".
    We have checked for duplications and inconsistencies in both OFPR and AFPR, but don't see any.
    We have also updated the AFPR table in a test company with OFPR, but this also did not work...
    Any suggestions?
    Jacques

    Hi Peter,
    We also had this issue once, it was in version 2004 and it happened when the client created a posting period but then deleted it. The period code was not seen on table OFPR but it was in ADM1 so the error message was caused by this.
    In our case we ran a report on ADM1 to see what period codes were used (the deleted codes were all there...) and we could create a new period using a code which was not used before so which was not in ADM1.
    Hope this helps.
    Regards,
    Nat

  • Creating Planning Layout for GP12N  - Posting Period as columns/rows

    I am trying to create new layouts for GP12N, but do not know how to create the integrated layout with one column or one row for each Posting Period 1 - 12.  I did read that 'Sets' were not allowed.  Can anyone provide the steps necessary to allow Posting Periods as columns or rows?

    Hi,
       a) Remove period from general data selection.
       b) Create 12 columns of the same Key Figure which use the characteristic period and set it as a fixed value

  • Due Date in new posting period

    Hi All,
    Posting date range in new financial period (new posting period) is one in which my JEs should posted and they will be having impact in financial system. Which is logical.
    What is the need of Due Date? Is it useful in any practical situation?
    B Ravi Shankar

    Ravi,
    You do not have to specifically define a range? When you create a posting period SAP automatically create the range from first day of Fiscal year to last day of Fiscal year.
    Let me explain with an example. 
    Let us consider  01/01/2007  to  31/12/2007 as the fiscal year
    For some of the document that you create during the last few months, you may require to enter a Due date later than the Fiscal year (going into next fiscal year)
    example: Invoice created on 15/12/2007 with Net 30 terms will need a Due date of 14/01/2008 but since you Due date range ends on 12/31/2007 you will not be able to Add this document.
    To overcome this you will have to click on the yellow arrow next to the Period and change the <b>Due Date to</b> to accomodate the 14/01/2008 due date.
    Hope it helped
    Suda

Maybe you are looking for

  • What's the difference between thunderbolt and mini displayport?

    I'm trying to connect my Macbook with a monitor and I'm thinking of what cable to get. I will have to connect using a (Thunderbolt to HDMI cable) or a (mini displayport to HDMI cable). I was wondering what's the difference between Thunderbolt and min

  • Won't boot from DVD no matter how I try

    After verifying my HD with Disk Utility, I had a message claiming the volume is corrupted. I tried to boot from Install DVD, but it won't : either pressing "C" or Option, or selecting DVD in Pref > Start-Up. It freezes on the Apple logo after chiming

  • Handling unit process step by step

    Dear All, We intend to use handling unit functionality. Our FG let's say FG001 gets packed in container. I have mapped this as following. I have created 'Container' as code with material type VERP- Packaging Material. Maintained the required data in

  • "An error occurred while trying to access the services"

    When I try to save my file to Acrobat.com I receive this error. I've tried from Adobe Reader XI on Windows 8.1,  Adobe Reader for Android, and from web. All updated to the latest version. I receive the same error on all devices. Note that the file si

  • Problem to format lenovo A7000

    I format my phone by pressing power key + volume up key by choosing wipe data/factor reset. But after the frimware update, the formating menu showing in chinese language. So, I cant understand. Please help me..thank you..