G/L opening balance .

Dear all,
How to find opening balance for G/ L on a date?
Is FAGLFLEXT / FAGLFLEXA table helpful for this ? How to use that ?
Or I have to use some Z function module for this like
CALL FUNCTION 'ZGL_OPENING_CLOSING_BAL_KEYDAT'
   EXPORTING
     comp          = lv_bukrs1
     date          = lv_date1
     acct          = lv_acct1
  IMPORTING
    BALANCE       = lv_bal1
This will works?
Or any other way for this?
Thanks
Gourav.

Hi Yakub,
Here logic is , opening balance will be less than selection screen's date balance.
suppose debit line amount: 4,5,6 .
credit : 2,3.
then opening will be 15-5 =10.
if credit also greater,then also same logic.
My code is for clear items,
"select.
if p_clear = 'X'.
      to_date = s_clear-high.
     SELECT  hkont bukrs augdt GJAHR belnr budat bldat xblnr SHKZG
   dmbtr sgtxt bstat INTO TABLE it_bsas FROM bsas
       WHERE bukrs eq s_buk
       AND hkont in s_kun AND budat le s_clear-low and BSTAT = LV_ITEM.
*again
    SELECT  hkont bukrs augdt GJAHR belnr budat bldat xblnr SHKZG
   dmbtr sgtxt bstat APPENDING TABLE it_bsas FROM bsas
       WHERE bukrs eq s_buk
       AND hkont in s_kun AND budat IN s_clear and BSTAT = LV_ITEM.
" end of select.
>>>>
SORT it_bsas by hkont.
LOOP AT it_bsas INTO wa_bsas.
"logic for opening balance.
           if wa_bsas-budat lt s_clear-low.
             if wa_bsas-shkzg = 'H'.
                WA_OUT-DMBTR2 = WA_BSaS-DMBTR.
                 WRITE : / wa_out-dmbtr2 UNDER g LEFT-JUSTIFIED.
                lv_open1 = lv_open1 + wa_out-dmbtr2.
                ELSEIF wa_bsas-shkzg = 'S'.
                    WA_OUT-DMBTR3 = WA_BSaS-DMBTR.
                     WRITE : / wa_out-dmbtr3 UNDER f LEFT-JUSTIFIED.
                lv_open2 = lv_open2 + wa_out-dmbtr3.
             endif.
             endif.
             "endlogic
             "display of opening balance
at new hkont.
    if lv_open1 ge lv_open2.
                lv_open3 = lv_open1 - lv_open2.
    lv_open4 = lv_open2 + lv_open3.
   WRITE : /93 'Opening balance' ,
              lv_open3 UNDER f LEFT-JUSTIFIED.
uline.
      WRITE :    /93 'Total',
                112 lv_open1 LEFT-JUSTIFIED,
                133 lv_open4 LEFT-JUSTIFIED.
uline.
ELSEIF lv_open2 ge lv_open1.
      lv_open3 = lv_open2 - lv_open1.
      lv_open4 = lv_open1 + lv_open3.
       WRITE : /93 'Opening balance' ,
       lv_open3 UNDER g LEFT-JUSTIFIED .
uline.
      WRITE :    /93 'Total',
                 112 lv_open2 LEFT-JUSTIFIED,
                133 lv_open4 LEFT-JUSTIFIED.
      ULINE .
          CLEAR lv_open1. " debit
          CLEAR lv_open2. " crdit
          CLEAR lv_open3. " opening balance
          CLEAR lv_open4. "adjustment
          ENDIF.
endat.
But is not working properly.
In debug,value coming properly, but not in output.
example : 200032 -GL.
see my screenshot.
Can you help?

Similar Messages

  • Opening Balances and Closing Balance of customer

    Hi,
    Does SAP provide any standard customer account statement for Opening Balances and Closing Balance for specific date range have given in selection screen?
    The statement also contains reference number, order, and Delivery number.
    Note: FBL5N Transaction code will not sufficient for the requirement, so looking for any other transaction code / report provided by SAP already for it.
    Thanks in advance,
    Shwetha

    Hi,
    There are several standard reports which could be easily accessed through the menu (Accounts Receivable - Information systems). If none of these reports does not suit your requirement, you have to develop your own.
    Regards,
    Eli

  • 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

  • Fixed Asset Opening Balance

    Hi,
    Any idea to do (by import and manual create) the opening balance for fixed asset Mmaster data? Tried to search SAP notes or guide, only can find related topic on Import FA Master Data and not manual create of FA Master Data, and how to import the FA Master Data with belong to same Asset Type (same life-span) but due to purchase at different timing, now having different remaining life span).
    Thank you.

    Hello,
    I am sorry for unclear answer. I did not mean that you have to develop addon.
    after checking our client database, I see that one asset class will have same useful life and depreciation type which it means that different asset class can only the way to have different useful life (UL), and of course it will be different in depreciation type (DT).
    For example : machine A : UL : 96, DT : SL12.5
                         land        B ; UL 250  DT : SL25.
    Hope you also could discuss with SAP support about this.
    Rgds,

  • Fixed Asset - Manually enter opening balance

    Hi,
    It's possible to manually enter fixed asset opening balance? anyone wanna share ways of manually enter? l only tried on import way.
    Thanks in advance!
    Phoebe

    Hi,
    There is no feature that can be used to upload FA opening balance amount in the fixed asset addon.
    If you refer to fixed asset master data import, you can use template fixed asset master data to import the master data.
    JimM

  • Customer line items with balance carry forward no opening balance

    Hello FI Experts,
    We have ticket where the user is using a Z* Report for Customer line items with balance carry forward. In 31.01.2007 user has posted some legacy data, latter he was executing this Z* report then user can see the values posted on the same day (31.01.2007) as line items. But he was executing the report on 01.02.2007 then he was not able to see the line item as well as the values posted on 31.01.2007 as opening balance as on 01.02.2007. But if we run the report as on 01.01.2008 then we are able to see the values which are carry forwarded as opening balances. Did anyone have worked on this type of scenario?
    Requirement Here Is:  The values that have been posted on 31.03.2007 which are still open line items should get displayed as opening balance as on 01.02.2007.
    Thanks for helping on this issue.

    Hi,
      Any report will get data from Tables. Please check whether the table you have used to develop this report has opening balance.
    Balance will be carry forwarded only when you run the balance carry forward program. Check whether this was run for the date you have specified. This can be done in the year end.
    If you are checking in the middle of the year, then the balance will not be carry forwarded.
    Regards,
    B. Radhika.

  • Debit,credit ,opening balance,closing balance..doubt.

    Dear friends,
                   I am working in FI report (vendor balance for date ranges) .Its a ALV report. I want to fetch the datas for debit ,
    credit,opening balance,closing balance,for the paticular vendor or all vendors for date ranges.the table for this iam using is BSIK AND LFC1.
    all the datas stored in the table is for month wise,but my programe (my user needs even for day wise) how to calculate this,
    or is there any function modules avaliable  or can u konw any other table storing day wise balances...this report is urgent ..
    any one pls suggest me .advance thanks..
    regards
    veera

    if user wants day wise then make use of BSAK+BSIK, here u will get all line items daywise , i mean to say Posting daywise.
    BUDAT        31.03.2003---->posting date
    BLDAT        31.03.2003
    CPUDT        31.03.2003
    WAERS        INR
    XBLNR        T&E-29-30.3-PNPT
    BLART        PA
    MONAT        3
    BSCHL        31
    ZUMSK
    SHKZG        H------------>D/C
    GSBER--------------------->Business Area
    MWSKZ-------------------->tax Code.
    DMBTR        1,507.00
    WRBTR        1,507.00
    regards
    Prabhu

  • Posting Open Balance to a All Currencies G/L Account

    Hi All,
    I have a situation for which some assistance is required.
    I am trying to post opening balance to the G/L bank account which is defined as ALL Currency.
    On the G/L the system show that Account as Currency = All Currencies and adjacent to the Balance it shows that currency ID  as GBP.
    This account is a $ Account and I want to post the Open Balance in $. However, when I try to create the Open Balance the FC columns are disabled.
    What am I missing?
    Best regards
    Earl

    Hi Earl,
    There is nothing wrong.  If it is a MC account, all JE would be based on LC.  Hence only LC would be allowed for Opening Balance. If it is not LC, convert it to LC for posting.
    Thanks,
    Gordon

  • How to create a first row in crystal report as opening balance which contains two columns with debit and credit

    I have created a crystal report with credit and debit column. Balance column created on the report. Report running with cummulative balance. THis report contain an option for date range. If i filtered this report its not showing the actual balance. I need
    a first row to indicate previous balance as opening balance in this report.  And following is the formula for balance column.
    Whileprintingrecords;
    Shared Numbervar balance;
    Shared Numbervar display;
    balance:={@debit}-{@credit};
    display:=display+balance;
    display

    As this question is out of the T-SQL queue, thus I would suggest you consult Crystal Report questions to the correct forums.
    C#
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
    VB
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
    people there have more knowledge on Crystal Report.

  • Opening Balance

    Hi,
    How do i get opening balance and closing balances in reports?
    where i have the time chars 0fiscper3 and 0fiscyear and the values for the 0fiscper3 are 1 to 16.
    Thanks,
    Venu.

    Hi venu,
    this is sudharsan, working on abap, here i have seen that u have worked on that, printing Opening and closing balance for GL a/c,
    i got the same requirment, so could u plz help me that if u have a solution. it is very urgent for me..
    my id is: [email protected]
    regards,
    sudharsan.

  • To caluclate the opening balances

    I want to calulate the opening balances and closing balances for each month in the result like this :
    Month uom Opening Closing
    Apr
    May
    Jun
    Jul
    Aug
    sep
    Oct
    Nov
    Dec
    Jan
    Feb
    Mar
    SELECT UOM,
    SUM(OPSTK) OPSTK, SUM(OPVAL) OPVAL
    SUM(INQTY) INQTY, SUM(INVAL) INVAL,
    SUM(OUTQTY) OUTQTY, SUM(OUTVAL) OUTVAL,
    SUM(CLSTK) CLSTK, SUM(CL_VAL) CL_VAL
    FROM
    SELECT
    UOM, ITEM_CODE, ITEM_NAME,
    ROUND(OPSTK/CNV/ML,2) OPSTK, ROUND(OPVAL,3)OPVAL,
    ROUND(INQTY/CNV/ML,2) INQTY, ROUND(INVAL,3) INVAL,
    ROUND(OUTQTY/CNV/ML,2) OUTQTY, ROUND(OUTVAL,3)OUTVAL,
    ROUND((NVL(OPSTK,0)+NVL(INQTY,0)-NVL(OUTQTY,0))/CNV/ML,2) CLSTK,
    ROUND((NVL(OPVAL,0)+NVL(INVAL,0)-NVL(OUTVAL,0)),3) CL_VAL
    FROM
    SELECT
    ITEM_UOM_CODE UOM, ITEM_CODE, ITEM_NAME,
    IU_CONV_FACTOR CNV,
    IU_MAX_LOOSE_1 ML
    FROM OM_ITEM,OM_ITEM_UOM
    WHERE ITEM_CODE = IU_ITEM_CODE AND IU_UOM_CODE = ITEM_UOM_CODE
    SELECT
    SL_ITEM_CODE OP_ICODE,
    SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_QTY_BU) OPSTK,
    ROUND(SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_VAL_1),2) OPVAL
    FROM OS_STK_LEDGER
    WHERE SL_DT < TO_DATE(:P249_DATE1,'DD-MM-YYYY')
    GROUP BY SL_ITEM_CODE
    SELECT
    SL_ITEM_CODE TX_ICODE,
    SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_QTY_BU)INQTY,
    SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_VAL_1) INVAL,
    SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_QTY_BU)OUTQTY,
    SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_VAL_1) OUTVAL
    FROM OS_STK_LEDGER
    WHERE SL_DT BETWEEN TO_DATE(:P249_DATE1,'DD-MM-YYYY') AND TO_DATE(:P249_DATE2,'DD-MM-YYYY')
    GROUP BY SL_ITEM_CODE
    WHERE ITEM_CODE = OP_ICODE(+)
    AND ITEM_CODE = TX_ICODE(+)
    AND ITEM_CODE LIKE 'R%'
    --AND   ITEM_CODE LIKE :P249_ITEMCODE
    ORDER BY ITEM_CODE
    GROUP BY UOM
    The below given query gives me the opening and closing balances, for the date range entered by me.
    For ex. if I enter the date in TO_DATE(:P249_DATE1,'DD-MM-YYYY') field as '01-04-2008', then i get the opening balance for the month April. The SL_DT is the date column in the table.
    Kindly guide me for this to solve..

    There seems to be a problem with your query formatting. I've formatted it and the ORDER BY clause is not needed in the In line view. Remove it. I have added new GROUP BY column.
    SELECT UOM,
           SUM(OPSTK) OPSTK, SUM(OPVAL) OPVAL
           SUM(INQTY) INQTY, SUM(INVAL) INVAL,
           SUM(OUTQTY) OUTQTY, SUM(OUTVAL) OUTVAL,
           SUM(CLSTK) CLSTK, SUM(CL_VAL) CL_VAL
    FROM ( SELECT UOM, ITEM_CODE, ITEM_NAME,
                  ROUND(OPSTK/CNV/ML,2) OPSTK, ROUND(OPVAL,3)OPVAL,
                  ROUND(INQTY/CNV/ML,2) INQTY, ROUND(INVAL,3) INVAL,
                  ROUND(OUTQTY/CNV/ML,2) OUTQTY, ROUND(OUTVAL,3)OUTVAL,
                  ROUND((NVL(OPSTK,0)+NVL(INQTY,0)-NVL(OUTQTY,0))/CNV/ML,2) CLSTK,
                  ROUND((NVL(OPVAL,0)+NVL(INVAL,0)-NVL(OUTVAL,0)),3) CL_VAL
           FROM ( SELECT ITEM_UOM_CODE UOM, ITEM_CODE, ITEM_NAME,
                         IU_CONV_FACTOR CNV,
                         IU_MAX_LOOSE_1 ML
                  FROM OM_ITEM,OM_ITEM_UOM
                  WHERE ITEM_CODE = IU_ITEM_CODE AND IU_UOM_CODE = ITEM_UOM_CODE
                 ( SELECT SL_ITEM_CODE OP_ICODE,
                          SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_QTY_BU) OPSTK,
                          ROUND(SUM(DECODE(SL_RCVD_ISSD,'R',1,'I',-1)*SL_VAL_1),2) OPVAL
                   FROM OS_STK_LEDGER
                   WHERE SL_DT < TO_DATE(:P249_DATE1,'DD-MM-YYYY')
                   GROUP BY SL_ITEM_CODE
                 ( SELECT SL_ITEM_CODE TX_ICODE,
                          SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_QTY_BU)INQTY,
                          SUM(DECODE(SL_RCVD_ISSD,'R',1)*SL_VAL_1) INVAL,
                          SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_QTY_BU)OUTQTY,
                          SUM(DECODE(SL_RCVD_ISSD,'I',1)*SL_VAL_1) OUTVAL,
                          trunc(SL_DT, 'MM')
                   FROM OS_STK_LEDGER
                   WHERE SL_DT BETWEEN TO_DATE(:P249_DATE1,'DD-MM-YYYY') AND TO_DATE(:P249_DATE2,'DD-MM-YYYY')
                   GROUP BY SL_ITEM_CODE, trunc(SL_DT, 'MM')
           WHERE ITEM_CODE = OP_ICODE(+)
           AND ITEM_CODE = TX_ICODE(+)
           AND ITEM_CODE LIKE 'R%'
           --AND ITEM_CODE LIKE :P249_ITEMCODE
    GROUP BY UOM;Cheers
    Sarma.

  • Opening Balance and closing balance

    Dear All,
                 Can i create a calculated field for ledger opening balance and closing balance. we are using  epicor. I dont know the exact table which captures opening balance and closing balance, where as i got credit balances and debit balances for the segments, i could not find opening and closing balances in this table. table name is GLjrntdtl . Any ideas on this subject please.
    Thanks & Regards,
    Akram

    hi Akram,
    this is a question that you may wish to ask at the epicor forums
    -jamie

  • Opening balances in RG1

    Hi All,
    As per the new excise requirement we have to show the opening and closing balances of all the materials in RG1 register.
    Please help me how to get this?
    What is Extraction Indicator in J2irg1bal table?
    Please help
    Thanks
    Prasad

    Hi Satyendra ,
    For initial  upload in RG1 there are 2 tables you need to manually update. J_2IRG1BAL  from CIN or SD side. And Accounts to be updated for Balance in J_2IACCBAL.
    There are 2 ways for updating balance tables
    On last day of month enter Balance in Closing balance field.
    OR enter opening balance on 1 st day of month.
    Also check Material form P ,can be maintained in user exit for permanent effect.
    After  updating balances ,
    perform any one transaction on system.
    and then  Extract  the Rg1 table .
    Ask FI consultant to put in  FI JV after balance upload in ACCBAL table.
    If you have not done table entries before performing transaction and extraction of RG1  then balances will not appear .
    Check with your senior there and use table edit in such case (I hope you are not on production server  at the moment) .Then again perform Extraction and check once.
    SD FI and ABAP to be present and take decision accordingly.

  • GL balances differences between Year end closing and opening balances

    Hi friends,
    One GL account balances showing differences between year end closing & year opening balances.
    Example: 2006 closing balance is  250000 $
                   2007 opening balance is 150000 $
    difference is 100000 $ . why should coming like this. already completed balances carryforward (F.16) in 2006 & 2007 year. 
    any programe for this solution ?
    One more point is  just 2 days back i posted 2 entries for 2006 year equal to 100000 $ . after this entries shall we need go for F.16 (carry forwarded balances).
    please do the needful. It is very urgant issue.
    Raj

    HI,
    There shouldn't be any more postings to a GL Account once Balance carry forward has been executed.
    If postings have been made then you should execute the Balance carry forward again, otherwise you will see difference in opening and closing GL balance (as mentioned by you).
    Regards

  • Opening balance and closing balances for discounts?

    Hi all,
    I have a typical sceanario where in
    opening balance for discounts 10,000 (balance of last month)
    actual discounts  from the sales order 5,000
    manual upload is   from flat file            2,000
    closing balance is 7,000 (which is opening balance + manual upload - actual discounts)
    opening and closing balance needs to be calculated, how to calculate nor handle this on every month?
    level of granularity of the data is
    sku, month, rebate category and rebate amount?
    Thanks

    Hi Pooja,
    can you please let us know few things about your report requirements
    What is the extractor you are using?
    What are the KFs ?
    what are the selection parameters that you want to enter at the reporting level?
    is it the report related to FI AR. do you want to display the values based on the customer -->profitcenter?
    Bcoz we had a same requirement where our requirement was global recievables aging report in which the report need to display opening bal, sales,adjustment,colelction and closing balance and the aging values.
    here what we did is changed the modeling of the DSO and infocube.
    we had used non-cumulative KF in order to calculate closing balance and from that derived opening balance and again create a new formula to get the closing balance.
    if you can be specific with your requirement hope can help you with your report.

  • How to Get the Print of General Ledger with Opening balances

    Hi Friends.
    How can I get the print out of G.Ledger with all line item transactions and opening balances in a company code?
    Please explain.
    Regards.
    Srini

    hi
    for line item-
    goto s_alr_87012282 and select menu bar "list">print
    for g/l statement
    goto s_alr_87012332 same step above
    rgs

Maybe you are looking for

  • Where are the front USB ports on the HP Envy 700-210 Desktop?

    I bought the Envy 700-210 desktop because it has so many USB ports.   However, I can only find 8 - 2 on top and 6 in the back.   According to the specifications, there are supposed to be some in the front.   Do I have to take something apart to find

  • Black ink cartridge will not print

    I just finished a one hour online chat with HP Support. The black cartridge of my C6180 will not print. After going through many steps the Support tech stated "I appreciate your patience and efforts in performing all the troubleshooting steps provide

  • I know some of my photos have NOT been imported in to the iPhoto library. How can I find which ones?

    In error, for a period, I had iPhoto set up such that photos were not imported into the iPhoto library but left scattered around my iMac. How can I find which ones without selecting each individual photo - there are nearly 9,000?

  • Itunes shuts off new MACbook pro (2011) after 15 min

    I have a new 2011 Macbook pro (May 2011). I have set all time-outs (screen saver, economy modes) to "never" in the account preferences and the computer ought not to shut off ever (unless the battery is empty). This has helped none: when playing itune

  • Why can I not get to the iPhone user guide in Safari ?

    Just updated my iPhone 4S to iOS 6.0 last night. There's a lot of new stuff in here that I'd like to figure out. So naturally, I launched Safari on my phone, went to Bookmarks, scrolled down, and hit iPhone User Guide. When I do that, I get a 404 err