G/L Balance based on Key Date

Hi,
I have a requirement to make a G/L ledger.
Currently i want to get the g/l balance based on a particular date. 
ex: 12.05.2008  to  15.05.2008
How can i find the keydate balance.
I think there is no direct way to do that. Want some suggestions on workaround.
Varun

>
Muhammed Ansari Abubekkar wrote:
> Try using the BAPI
>
> BAPI_AR_ACC_GETKEYDATEBALANCE
>
> BAPI_AP_ACC_GETKEYDATEBALANCE
>
> BAPI_GL_ACC_GETPERIODBALANCES
>
> Regards
> Ansari
I know. Above 2 are not used for G/L accounts
Third one will get period balances only.

Similar Messages

  • Table for Customer and vendor open balance on a key date

    Dear All,
    Can anyone please let me know Table for Customer and vendor open balance on a key date. We are developing one customized report.
    I have checked with the below table :
    Customer-KNC1, KNC3,BSID, BSAD
    Vendor-LFC1, LFC3, BSIK, BSAK.
    But these are not working properly for all customers and vedors. Also, in open items, there are items with clearing documents.
    Plesae let me know, how to go for it.
    Please suggest.

    Hi
    Use BSID and BSIK for open items
    And pass company code, year and from date and to date range in Posting date selection option
    Reg
    Vishnu

  • FI-CA Open Items based on key date Business Content

    Hi,
    I am using BI content infocube 0FC_C07 to extract contract account open items data. Our requirement is to do the data load weekly basis based on key date.
    I have enhanced the extractor and i can see data for the enhanced fields in RSA3. But now, i am not sure how to load data into BI.
    At the infopackage level(PSA level)  there are 2 mandatory fields (DateID(LAUFD) and Additional Identification Characteristic(LAUFI)). Do i need to change the date every week manually? I have to create a process chain to automate the dataloads.
    Also, i need to use counters for Each unique Contract Account and Contract Account Document .
    For the contract Account Document number , i am thinking to us this formula(If contaract document item =1 then document counter =1 otherwise 0). But i am not sure how to count each single contract Account?
    Your advise will be appreciated.
    Thanks,
    Priya

    Hi Priya,
    Go to InfoPackage selection tab.
    Now in the Type select 6 which is for ABAP Routine.
    This will open the ABAP Editor.
    Write your code there.
    Sample code.
    data: l_idx like sy-tabix.
    DATA : from_date type sy-datum,
           to_date type sy-datum,
           month(2) type n.
    read table l_t_range with key
         fieldname = 'IDATU'.
    l_idx = sy-tabix.
    *if current date is suppose 14th April 2008, then this routine should
    *pick values from 1st jan 2008 till
    14th April 2008
    clear month.
    month = sy-datum+4(2).
    if month = '01'.
    month = '10'.
    endif.
    if month = '02'.
    month = '11'.
    endif.
    if month = '03'.
    month = '12'.
    endif.
    if month GT '03'.
    month = month - 3.
    endif.
    concatenate sy-datum+0(4) month '01' into to_date.
    l_t_range-low = to_date.
    l_t_range-high = sy-datum.
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    modify l_t_range index l_idx.
    p_subrc = 0.

  • Trail Balance on a Key Date

    Hi Experts How Can I get Trail Balance On a Key Date my Posting Period is set on Yearly basis , is their any query by which i can get the trail balance kindly help me out.

    Please clarify what is Key Date and what do you mean for Posting Period is set on Yearly basis.  One period for one year?
    Thanks,
    Gordon

  • Open orders display in BEX report based on Key date

    Hello All,
    I have a requirement:
    We have an existing report which needs to have input selection as Key Date.
    The report should display the Open orders based on the key date mentioned.
    For Eg: if an item A was Opened on 20th Sept, 2010 and now CLEARED and if I run the ECC report today and mention the key date as 20th Sept, 2010, then the report will show me the item A status as OPEN
    Plz help me with the logic for the same at the earliest
    Tthanks..
    Sneha

    Hi Sneha,
    I assume you have open and crear dates in your query. So put an open date in your query filter and restrict it as less then Key date variable(which is a variable of type user-input on 0calday), then create another variable that feeds from keydate variable (it can be a replacement path or simplest user-exit).
    Note: the another variable is needed because as far as i can remember you cant use the same variable to restrict two different chars in the same query/anyway test if it's not possible - then create another variable as i mentioned.
    Take Cleardate in your query filter and restrict it as more than keydate variable andr # (not assigned). (in case if it hasnt been creared at all yet at the key date time)
    Pls let me know if this was helpfull

  • Reporting Requirement based on Key Date

    Hello Team,
    My Requirement is , User is giving a key date & I have to find the Fiscal year corresponding the date keyed in , calculating all the fiscal periods last date & then restricting a key figure with every fiscal year period last date.
    To achieve this , I have created a 1 Manual input variable on 0Calday & then 12 Customer exit variables each for last date of each fiscal year period.
    Now my issue is as 0CalDay is not mapped from anything from Source.
    So how should I prompt user to key in date .
    Please suggest .
    Thanks in advance.
    Regards,
    Pankaj

    Are you sure you want to use "Key Date" entry in Query? Because it works with Time dependent Master data only.
    If you just want to enable  user entry, you can follow Arun Thangaraj 's reply.

  • Customer account balance on a key date.

    I am looking for a report that shows AR/AP at any one point of time per customer. I do not need the invoice details. Is there such a report? ex:COY1005
    AR
    31.12.2009
    IC 1011                  500
    IC 1012                  500
    IC 1013                  500
    Total                      1500

    Hi,
    I need some clarification.
    You want to see the customer balances in current date as well as back dated also(except inovices).
    go to FBL5N. If you want to see only open items then give the date in Open items tab.  After executing this report through layouts you can consider only document types DZ..,
    With this you can achieve the ouput as you required. or you can create a Z report for the same.
    Regards,
    Sankar

  • Variable with low value as first day of year and high as  key date

    hi all,
                i need to create a variable with key date for which the low value should be 1st day of the year,
    means if i enter a key date (5/9/06) the values to  appear should be from 1/1/06 to  5/9/06.
    If i want the manipulation based on key date like key date + 90 etc. is it possible?
    i have written a customer exit as
    case i_vnam.
    when 'keydate'
    clear : e_t_range,
           l_t_range.
    DATA DAT(8)TYPE D.
    LOOP AT i_t_var_range INTO loc_t_var_range.
            IF loc_t_var_range-vnam = 'keydate'.
              loc_found = 'X'.
              EXIT.
            ENDIF.
          ENDLOOP.
    DAT = loc_t_var_range-vnam .
    if loc_found = 'X'.
       l_s_range-sign = 'I'.
            l_s_range-opt = 'BT'.
            CONCATENATE sy-datum(4) '01' '01' INTO l_s_range-low.
            l_s_range-high = DAT.
            APPEND l_s_range TO e_t_range.
          ENDIF.
    WILL THIS CODE WORK.
    I FEEL THERE IS PROBLEM WITH L_T_RANGE- HIGH.
    IS THERE A DICREPENCY IN THE CODE?
    IS THE CALLING SEQUENCE OF THE VARIABLE CORRECT?
    PLZ LET ME KNOW.
    THANK U ALL

    Hi,
    my mail bounced back. send vaild mail id.
    try this.
    1) create one customer exit variable say zcuvar
    2) create a USER entry variable Keydate 0date.
    3) in CMOD, in I_STEP  = 1 of zcuvar, make it default value ad 01/01/2006 as you have done.
    4) in use as range in Selection restrict.
    zcuvar;0date.
    hope i m clear.
    regards,
    San!

  • Vendor Balance Report Day wise based on Posting date

    Hi Guru's,
    I am creating vendor balance reprot day wise based on posting date .
    In my report i want to show  TDS(With hold tax ) amount where can i get that field name how can retrive the data using bsik and bsak .
    I Donot want to display reversal documents in the displaying list .How can i remove reversal entries .
    Regards
    Nandan.

    Hi Nandan,
    check these tables:
    A399
    T059O
    T059ZT
    Regards,
    Santosh Kumar M

  • Function Module - Calculate 5 weeks lookup based on -7 increments from the Key Date

    Hi Guys,
    I am looking to create a variable on Fiscal Period/Year, that automatically populates the variable with the previous 5 weeks based on -7 increments from the key date , when the user runs the query .
    For Example: If key date is 03/11/2014 need to get previous 5 weeks 03/04/2014, 02/25/2014, 02/18/2014, 02/11/2014, 02/04/2014. mm/dd/yyyy.
    Is there any Function Module available/ please provide the logic code - can anyone help?
    Thanks,
    Suresh Narayan

    Hi suresh,
    Please once try with this approach,
    Create a variable with variable represents :  multiple input value, Processing type : customer exit ; variable is ready for input.
    and write the below code :
    if i_step = 1.
    data : fdate type d ,
            wa1 like line of e_t_range,
           n1 type i.
    n1 = 1.
    if n1 <= 5.
    wa1-opt = 'EQ'.
    wa1-sign = 'I'.
    wa1-low = fdate.
    append wa1 to e_t_range.
    fdate = fdate - 7.
    endif.
    endif.
    Hope you got it,

  • ISU FICA: Fetching Key date based open item list

    Hi,
    Our production system has a setting to kill SELECT query if it’s running for more than 12 hours without any updates.
    We want to fetch all open items from DFKKOP table for any given date (could be a past date), company code, business area and reconciliation account. We tried fetching this list using SAP report RFKKOP03 and also by writing custom SELECT query however because of large volume of DFKKOP table in our system, none of the report is getting completed within 12 hours and hence getting terminated by system.
    It would be helpful if anyone can suggest us any other option to fetch the list of open items on any given key date.
    Thanks,
    Amol

    Amol,
    You can use transaction FPO4P. It is run in parallel mode and you can get open items by several selection criteria, directly put in transaction or by creating predefined selection of partners, accounts or dunning related data using FPSELP and using FPSELP1 to define the layout of the resulting information.
    You get the result in spools which can be unified, or aditional data set in binary or text format.
    Hope this helps.
    Regards,
    Daniel

  • Running Aging reports based on Document date in 2007

    Hi All,
    I have an issue while running the Receivables aging report in the 2007 version. The customer usually runs the reports based on the document date. Document date holds more importance in their case.
    However, in the 2007 version, the aging report is totally governed by the posting date. For example, if I change the aging date, the posting date also changes to the aging date and viceversa. If I want to change the aging date to 01/31/09, the posting date u2018Tou2019 automatically changes to 01/31/09 and when we run the report, it will bring in all transactions until the posting date of 01/31/09.
    But, the requirement is to leave the posting date as blank and give the document date u2018Tou2019 01/31/09. This will then pull all transactions until the document date of 01/31/09 irrespective of the posting date.
    As a result, when you run the balance sheet with the document date of 01/31/09, receivables show a different balance. This discrepancy is due to the fact that AR Receivable aging report forces to keep the Aging date = Posting date.
    This was not the case in SAP 2005 version where we were allowed to key in the aging date and the document date to get results based on document date.
    This is very critical as they have recently upgraded from 2005 to 2007 and they are unable to reconcile the balances out of Balance sheet and Aging.
    Please advise.
    Thanks,
    Payal

    Hi Jitin,
    We tried that as well but no luck. There is still a discrepency between what the aging shows and what the BS shows. When we put the Aging date as 01/31/09 and Document date as 01/3109, the posting date 'To' is automatically filled with 01/31/09, so it basically searches for all transactions with the posting date 01/31/09 and document date 01/31/09. This is not the requirement as we do not want to consider the posting date at all while running the aging.
    I also have some screenshots if I can share. I am not sure if I should report this to SAP for further investigation or am I missing something here.
    Thanks for your help.
    Regards,
    Payal
    Edited by: Rui Pereira on May 1, 2009 10:48 AM

  • Customer Outstanding based on invoice date

    Hi,
    As you know that we have statndard report for Customer Outstandings which will give us the cusomer outstanding balance with time buckets. in that we calculate the outstanding amoount based on Posting Date.
    Now i want to calculate the same based on invoice date insted of posting date . In the statndard report it was calculated based on posting key date with  SAP Exit. variable.
    Please guide me how to calculate the Custiomer Outstanding amount based on invoice Date.  And guide me how to create buckets  based on invoice date.
    Thanks & Reagards,
    Anand

    Hi,
    Buckets means you need to Substract some Date with invoice date, so you can create Customer Exit Variable with Formula type and do it.
    See the Material age Buckets report and develope your report.
    Calculating the Ageing of the Materials
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/calculating%20the%20ageing%20of%20the%20materials.pdf
    For all other Customer Exit Variables code pls see.
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Thanks
    REddy

  • Ageing Analysis - Key date

    Dear Experts,
    When I am Executing Ageing Analysis u2013 Customer outstanding report (On InfoCube 0FIAR_C03), If I give Key date 31.7.2009, it is showing correct result for grand total balances = Sum of the totals of balances of ( 0 days + 1-30days + 31-60 days etc).
    But when  I use the key date for the same query say 4.8.2009, the totals of balances & sum of the totals of balances of ( 0 days + 1-30days + 31-60 days etc) not matching.
    In the report for some documents no values are coming in the ageing part, even its balances are there in the balances.
    Could you please help?
    Thanks,
    Nav

    Hello,
    Key date is for time dependent master data values only.
    Do you have any time dependent master data in the queries??
    Also,it will show only those values which are valid on this date....that is the only those values of master data from the cube will be read which have validity period for this date.
    So its quite possible that many master data values have there validity period ending on 31st July and therefore there are new values for them and based on that its picking up different value from the cube
    so values at 4th August need not match with the key date value for 31st July.
    The good Idea could be to see the values of time dependent char which you are using in the query  and its values for both the key dates and then verify the difference.
    This could explain why the values are not read from cube even if they are there beecause the master data values in those records does not fall in the validity date which you have given.
    Regards
    Ajeet

  • Currency Translation on Key Date for AR Aging

    Need your valuable advice!
    I have created an AR Aging query including both Open and Cleared Items based on 0FIAR_C03_Q0005 standard query. However the requirement is to do currency translation to Group Currency (USD) on Key Date. This Key date is defaulted to today but the user can change this to go back in time and pull all the ARs as of that back dated key date.
    I was planning to create a currency translation type on M rate based on the Key Date Variable in RSCUR. However I am confused on which variable to base this currency translation. I have several key date variables in my query such as 0P_KEYD2 (based on Posting Date), 0P_KEYDT (based on Net Due Date) and 0P_KEYD3 (based on Clearing Date).
    Which Key Date Variable should I use in 'Time Reference from Variable' field in RSCUR? Would it be one of the 3 mentioned above or something else and why?
    Appreciate your valuable advice.
    Thanks,
    Al

    Hi,
    Yes I do want to use the Key date from the variable screen and I am using the standard 0FIAR_C03_Q005 with slight modification including currency translation.
    As I mentioned in my original post I have several key date variables in this query such as 0P_KEYD2 (based on Posting Date), 0P_KEYDT (based on Net Due Date) and 0P_KEYD3 (based on Clearing Date). My question is which one should I use if I want to base it on the specific key date variable from the variable screen? I need the specific Key Date variable technical name.
    Thanks,
    Al

Maybe you are looking for

  • IPhone 3.0 and ACID3 Test

    Very disappointing, I upgrade my iPhone 2G to 3.0 last night and ran the ACID3 test again (see http://acid3.acidtests.org/ ), as iPhone 3.0 was released after Safari 4.0 was released for Tiger, Leopard, Snow Leopard, and Windows, and Safari 4.0 gets

  • My iPod wont play any song!!!

    One day, my iPod got wet it stopped working, and i had to let it dry....After it was "dry", it started working again. But, No song will play. I have tried resetting, resoreing, and updating......I am running out of options. is there a way to fix this

  • How to get descending index definition ?

    Let's say you create an ASCENDING index on the table "COMPANY", on the field "COMPANY_NAME". You name this index "INDEX_COMPANY_NAME". Oracle creates a record in the USER_INDEXES table (referencing "INDEX_COMPANY_NAME" as an index of the "COMPANY" ta

  • Forms 10G – Replacing Oracle Logo in Menu Bar

    Hello: Forms 10G – Replacing Oracle Logo in Menu Bar We use “lookAndFeel=oracle” which gives Oracle Logo in the Manu Bar at top right corner. What is the simplest way to replace this with our own logo? Thanks

  • LoV - popup window too small

    Hi all, I'm using Oracle Forms Builder 10gR2. I have a LoV attached to a button but when the user open it - the popup window which appears is too small and customer has to enlarge it. Any ideas how to set it larger? Maybe in property palette or other