Functin module to get a GL account balance

Hello All,
I'm looking for a FM to get a GL account balance till a period of a fiscal year for a company code.
I have inputs like GL account, com code, fiscal year. I need Out put as balance of that GL ac.
Normally we gen get this data from GLT0 table, but need to more calculation.
Or Simply we can use FI transaction code FS10N to get the balance for a GL ac.
Pls suggest FM for this.
Thanks in advaance.
Regards.

HI,
Use this FM
  CALL FUNCTION 'BAPI_GL_GETGLACCPERIODBALANCES'
    EXPORTING
      companycode      = p_bukrs "Company code
      glacct                   = lc_ska1 "G/L Account
      fiscalyear            = perio+0(4)  "Year
      currencytype      = '10' "Currency
    TABLES
      account_balances = acc.

Similar Messages

  • To get GL account balance in Group currency ( currency type 30 )

    Hi All,
    I'm Using BAPI_GL_ACC_GETPERIODBALANCES to get GL account balance for a period. But it is showing output only when the currency type is 10  (Company code currency), I need to get the output in  Group currency ( currencytype 30 ). Is there any function module to get the GL account balance for a period in group currency.
    Thanks & Regards,
    Sabu

    An example,
    Select * INTO TABLE gt_FAGLFLEXT
    From FAGLFLEXT
    Where
         RBUKRS = companycode AND
         RACCT = GLAccount AND
         RYEAR = fiscalyear .
    GL Balance in group currency of fiscal period 004 is equal
         FAGLFLEXT-KSLVT +
         FAGLFLEXT-KSL01 +
         FAGLFLEXT-KSL02 +
         FAGLFLEXT-KSL03 +
         FAGLFLEXT-KSL04
    Regards,
    Loan Le.

  • How to get On Account Balance for a Customer in Accounts Receivables(AR)

    Hi,
    Pls let me know how i can get the On Account Balance and Customer Balance for a particular customer in AR.
    Pls let me if there is any SQL query or function availabe to get On Account Balance in AR.
    Is On Account Balance and Customer balance is same in AR.
    Pls let me know how i can get both the values.
    regards
    Udit

    try to join your query from these tables:
    1.Customer - RA_CUSTOMERS_ALL
    2.Customer Name - RA_CUSTOMERS_ALL
    3. Ship to /Bill to & Location - HZ_CUST_ACCT_SITES_ALL and RA_TERRITORIES
    4.Account Balance - AR_PAYMENT_SCHEDULES_ALL
    5.Current Balance - AR_PAYMENT_SCHEDULES_ALL
    if you additionally need aging try to set from here
    a)1-30 Past - AR_PAYMENT_SCHEDULES_ALL
    b)31-60 Past - AR_PAYMENT_SCHEDULES_ALL
    c)Over 90 Past - AR_PAYMENT_SCHEDULES_ALL
    This way you can achieve the outcome

  • How do I get rid of the last $0.02 on my account balance ?

    I need to change my country and it wont let me as I have an account balance of $0.02. How do I get rid of this so I can change countries ?? HELP !!

    Try contacting iTunes Support and ask them if they can remove the balance from your account so that you can change countries : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Function module to get customer balances

    Hello , is there a FM to get customer balances?

    hi Sooness,
      i am not sure but you can check with the BAPI:
    BAPI_AR_ACC_ GETKEYDATEBALANC E
    function module to get AR (customer balance).
      and also have a look in the link below:
    http://www.sapbapi.com/bapi-list/
    http://www.erpgenie.com/abap/functions.htm
    With luck,
    Pritam.

  • I need to change my region on the Itunes store, but it says i cant because i have an account balance of $0.05. How do I get rid of this?

    I need to change my region on the Itunes store, but it says i cant because i have an account balance of $0.05. How do I get rid of this?

    Click here and request assistance.
    (68319)

  • Function module to get time Accounts on ESS

    Hi all,
       How can i find that which FMs or BAPIs are called from the Portal Services to get the Time accounts for the Leave Request Appl on ESS. The problem which i have to investigate is that on IT2006 the balance is different and on Portal the balance is diffrent. I want to see where the Portal is pulling the data from ?
      any help will be greatly appriciated.
    Thanks
    Amandeep.

    Amandeep,
    which version do you use? I suppose ecc 5.0 Then the used RFC are:
    for leave request/time accounts:
    PT_ARQ_ACCOUNTS_GET
    PT_ARQ_CUSTOMIZING_GET
    PT_ARQ_EECALE_GET
    PT_ARQ_REQLIST_GET
    PT_ARQ_REQUEST_CHECK
    PT_ARQ_REQUEST_EXECUTE
    PT_ARQ_REQUEST_PREPARE
    PT_ARQ_SEARCH_NEXT_PROCESSOR
    PT_ARQ_TEAMCALE_GET
    badisfor time account: HR_GET_QUOTA_DATA, PT_ABS_REQ
    kr, achim

  • Function module to get GL account statement

    Is there any function module to get GL account statement ....
    ..Thanks
    .Ashish

    hi
    please search in SDN
    Check tihs link ,May be it will useful
    [Re: Function module to get GL statement]
    Thanks

  • TS1702 My iPad dies, it has been replaced by Apple. However, I cannot seem to get the apps back that I paid for. I "may" have had an account balance as well. How or where do I find this info?

    My iPad died, it has been replaced by Apple. However, I cannot seem to get the apps back that I paid for. I "may" have had an account balance as well. How or where do I find this info?

    http://support.apple.com/kb/HT2519

  • Function Module: to get Cash Journal Entries and Balances

    Dear Guru's,
    We need to develop a function module to display cash journal opening balance line item entries and closing balance of specific period.
    we have found document entries through table TCJ_DOCUMENTS or TCJ_POSITIONS now require help to generate opening and closing balances.
    Please help for the solution.
    AAR

    Hi,
    check FM FCJ_GET_DATA_FOR_SCREEN. Next time you can try to figure out by yourself. The program for transaction FBCJ is not that complicated and you can easily find this FM used there.
    Cheers

  • Function module for getting Vendor Address details

    Hi,
    Im new to this group,and new to ABAP
    plz hep me out by solving ABAP Query...
    i want to generate a report for getting Vendor Details
    like Vendor address,Ph num and Email
    input fields are Company code,country key and Account Group.
    im Using Smart Forms for this..
    but im not getting the Exact Function module to get All Required Details..
    regards
    Smitha

    thanks for ur quick reply...
    SELECT SINGLE LIFNR
      FROM LFB1
      INTO V_LIFNR
      WHERE BUKRS EQ V_BUKRS.
      CALL FUNCTION 'VENDOR_READ'
        EXPORTING
          i_bukrs         = V_BUKRS
          i_lifnr         = V_LIFNR
        EXCEPTIONS
         NOT_FOUND       = 1
         OTHERS          = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    this is the code i have written...
    but my problem is there no table in the Function module....
    for Example...
    CALL FUNCTION 'QPAX_PLMKB_READ_FROM_PLKO'
        EXPORTING
          i_plnty            = 'Q'
          i_plnnr            = V_PLNNR
          I_PLNAL            = V_PLNAL
          i_sttag            = V_DATUV
       TABLES
        T_PLMKB_TAB        = IT_TAB
    i want the function modules with tables and proper input...

  • GL Account Balance Query Issue

    Hi,
      I'm trying to extract GL Balances in the following format
    Company Segment(Segment2)  ||   Account Number(Segment1) ||  Cost Center Segment4 ||  Account Descr ||  Actual Flag || Account Type || Activity || Activity in Period || Currency || Period End date || Account Balance
    Here's my query :
    SELECT     gcc.segment4  "Company Segment",
               gcc.segment1  "Account",
               gcc.segment2  "Cost Center",
               a1.description "Account Description",
             --  a2.description Company_Description,
               Decode(gcc.account_type,'A','Asset','E','Expense','L','Liability','O','Equity','R','Revenue') "Account Type",
               Decode(gcc.enabled_flag,'Y','TRUE','FALSE')  "Active Account",
               Decode(abs(bal.Period_net_dr - bal.Period_net_cr),0,'FALSE','TRUE') "Activity in Period",
               bal.actual_flag  " Actual Flag",
               bal.currency_code  "Account Currency",
               per.end_date  "Period End Date",
               SUM(( NVL(bal.PERIOD_NET_DR,0) + NVL(bal.BEGIN_BALANCE_DR,0))) - SUM(NVL(bal.PERIOD_NET_CR,0)+NVL(bal.BEGIN_BALANCE_CR,0)) -
                         SUM( NVL(bal.BEGIN_BALANCE_DR,0) - NVL(bal.BEGIN_BALANCE_CR,0))   "Account Balance"
    FROM        apps.fnd_flex_values_vl a1,      --- For Account Segment
                apps.fnd_flex_values_vl a2,              -- For Cost Center
                apps.gl_code_combinations gcc,
                apps.gl_balances bal,
                apps.gl_periods per
    WHERE       a1.flex_value = gcc.segment1 
    AND         a2.flex_value = gcc.segment2
    and         a1.flex_value_set_id = 111111        -- Value set id for Account
    ---and         a2.flex_value_set_id = 222222    -- Value set id for Cost Center
    and         gcc.code_combination_id = bal.code_combination_id
    and          bal.period_name = per.period_name
    and         gcc.segment1 in ('777777')      --- Sample Account for testing only
    --and         gcc.segment2 in (222222)
    and         per.period_set_name ='GL_CALENDAR'
    and         bal.period_name ='SEP-13'
    and         bal.actual_flag='A'
    group by    gcc.segment4,
                gcc.segment1,
                gcc.segment2,
                a1.description,
               --            Decode(gcc.account_type,'A','Asset','E','Expense','L','Liability','O','Equity','R','Revenue'),
                Decode(gcc.enabled_flag,'Y','TRUE','FALSE'),
                Decode(abs(bal.Period_net_dr - bal.Period_net_cr),0,'FALSE','TRUE'),
                bal.actual_flag,
                bal.currency_code,
                per.end_date
                order by gcc.segment1,gcc.segment2
    1) If I  comment value set id 222222(Cost Center), then I'm getting 15 Records ,If I uncomment that I'm getting 10 records?Is there anything wrong with my queryAs I'm not displaying descriptions for cost center and company do I need to join fnd_flex_values_vl again or not ? 2) To check activity in particular period in this case for SEP-13,I'm using the following clause : Decode(abs(bal.Period_net_dr - bal.Period_net_cr),0,'FALSE','TRUE') Do I need to check ABS values also ro not?

    Hi,
      You can do this with WD dynamic programming.
      You can do with domodifyview badi for accounting component /SAPSRM/WDC_UI_DO_ACC.
      You need to handle both views 'V_DO_ACCOUNTING' and  'V_DO_ACCOUNT_DETAIL' in the domodifyview badi implementation.
    I am sending the sample  code. How to attach the custom search help dynamically.
      DATA lo_nd_comp_context    TYPE REF TO if_wd_context_node.
      DATA lo_nd_acc_context     TYPE REF TO if_wd_context_node.
      DATA lo_nd_info_acc        TYPE REF TO if_wd_context_node_info.
      DATA lv_value_help_mode    TYPE i.
      DATA lv_value_help         TYPE string.
      " Read Context
      lo_nd_comp_context = wd_context->get_child_node( name = 'COMP_CONTEXT' ).
      " get node info object of accounting node
      IF lo_nd_acc_context IS BOUND.
        lo_nd_info_acc = lo_nd_acc_context->get_node_info( ).
      ENDIF.
      " continue only if node info is supplied
      IF lo_nd_info_acc IS BOUND.
        " get current search help info
        lo_nd_info_acc->get_attribute_value_help(
          EXPORTING
            name            = 'G_L_ACCT'
          IMPORTING
            value_help_mode = lv_value_help_mode
            value_help      = lv_value_help
    " Below this will add the custom search help from SRM .
             lo_nd_info_acc->set_attribute_value_help(
            EXPORTING
              name            = 'G_L_ACCT'
              value_help_mode = 'BUS2121'
              value_help      = 'Z_F4-Your search help'   " you own search help.
      endif.
    Regards,
    Devi prasad

  • GL Account Balance Display

    Hi All,
    We transferred all the GL account balances to the new fiscal year 2008 by way of running year end program.
    Now our auditor wants to see the GL account balance on 31 .12. 2007 as well as on 01.01.2008. The users have also posted some transactions from 01 Jan onwards.
    Now my concern is how to get all the GL account balances on 01 Jan 2008.
    Because when we run the GL account balances report for the period 01, it shows all the values including the posted transactions during this period. But our auditor wants the General Ledger Account balances on the beginning of the year 01.01.2008.
    I request you to all, please give your valuable reply.
    Thanks with regards,
    Ran.

    Hi Padma
    Thank you for your information and as I know that when you use the T.code: FS10N, you can get the account balance for the selected GL accounts only. This is not my requirement.
    How do we see the balance as on date DD/MM/YYYY. Because our Auditor wants to see the account balance as on 31-12-2007 and at the same time 01-01-2008.
    How do I ge the report for this purpose.
    Please let me know.
    Thanks with regards,
    Ran

  • GL Account Balance ( BAPI)

    Hi Guri,
    Do we have any BAPI to get GL account Balances by passing
              Company Code,
              Fiscal Year
              Period
    So we can get total list of gl with balance for above year and period.
    Regards,
    Venkat

    Hello,
    Before calling this BAPI you just select all GL accordingly your selection like Company Code, Fiscal year and Period.and then you will have only the GL which you want.
    then call above BAPi and put that GL field it_gl in BAPI.
    you will get balance of only required GL.
    Have a Nice Day,
    Regards,
    Sujeet

  • GL Account Balances by Trading Partner

    Hi All,
    Our client has a requirement wherein he wants to know if there is any standard report through which we can find out the GL Account Balances by Trading Partner i.e. the user wants to see the GL account Balnces Broken down by trading partner.
    We have tried Dynamic Selection in F.08. But it does not help.
    Thanks
    Nitin

    Hello Rohit,
    Thanks for your reply. Actually we have tried this option and we found that the Report that we are getting is giving us the Consolidated Figure for all the Trading Partner selected.
    What we wanted to know is supposed if a Particular GL account has a sale of USD 3000 then system should be able to give us the break up as below Trading Partner A-1000, Trading Partner 2000, i.e. we want the GL account balance to be bifurcated by Trading Partner.
    Is there any standard report to achieve the same or else we need to look into the BW to achieve the same.
    Thanks ans Regards

Maybe you are looking for

  • Can use the internet but only one computer at a time...

    I have a very old PC with no ethernet ports and i have one macbook pro. I just bought an airport base station and have connected it to my modem via an ethernet cable, and the modem is then connected to my PC via USB. This set up allows me to connect

  • Corrupt data?

    Hi, When looking in the table in the database the following values are displayed: 31365080 14495080 When displaying the value in the sql editor with following code: select to_char(acis_uid) into v_test from h_ct_acq_iss where acis_nbseq = '875' and a

  • ORACLE ASM OR ZFS IN SOLARIS 11

    ORACLE DBA EXPERTS What kind of storage technology is recommended in order to implement an Oracle 11gr2 database in a Solaris 11 OS? -Oracle ASM or the Solaris 11 ZFS filesystem. Its any difference between the performance of both storage technologies

  • Reset printer settings....still no print....plus added items to menu bar...they're gone

    reset printer settings....still no print....plus added items to menu bar...they're gone from bar & customize window...title bar changed

  • Quality very poor for exported iMovies

    I have created a movie in iMovie v 2.0 (791) for iPad. I have an iPad mini. The video itself looks fantastic in iMovie and in my photos, but on Facebook & Youtube it looks horrible. Grainy. I have tried exporting Medium, Large & the highest HD size.