Costing - Overriding Salary Payable Account captured in Balancing Segment

As a standard Functionality Costing Information(Salary Payable Account) recorded in the Balancing Segment of the element Link Screen cannot be over ridden at any Other Level.
Our Accounting set up involves payment from more than one salary payable accounts , which need to be appropriately selected when the costing process is run.
However using the standard functionality of the product, is it possible to have multiple salary account information in the balancing segment.?
We want different Salary Payble accounts to reflect in the Journal Voucher Entry created by costing process , according to the respective legal entity from which the employee is being paid
Is it Possible???

HI ramesh,
Thanks for your reply.
I gather that the new functionality helps us to make use of the cash management auto reconcilliation process to reconcille payroll payments in GL.
However Cash Management is available only for the Payroll payment methods of
checks/cheques. Cash Management is not available for electronic fund transfers (such as NACHA in the U.S.etc).
Cheque Payments are generally routed through AP in order to maintain a consistent cheque number series.
In case you have successfully used this to reconcille cash and electronic payments then please do us know.
Regards,
P

Similar Messages

  • Impact on accounting if 4 balancing segment is used within OU

    Hi All,
      We have requirement
    Client has 1 group and 3 business unit under the group.  Group as centralised team wanted to control the all activities within Oracle like raising of PO,entering Invoice,payments and receipting. Client has 1 LE, 1 OU and 4 Purchasing org( 1 for group and 3 for business unit) but they wanted to use different balancing segment for each business underneath  group . There will be 4 balancing segment - 1 for Group and 3 for Business unit so that they can have individual balance sheet.  We are using Encumbrance Accrual accounting method and all Accrual are accrued at the period end. Client use GL,AP,AR,iProc and PO modules.
    What is impact and what key consideration we need to consider for this approach ?
    Is there shortcoming in this approach ?
    Thanks in advance for your response
    Thanks,
    Jay

    Abhi
       I will put the question in different way
    For example
    Invoice No : TEST1
    Amount - 30 Pounds
    AP Liability Account - 600.ZZ999.9603.0.0.0.0
    3 lines and 3 distribution
    Distribution Line no  Expense Account  Amount 
    1 - 600.2277.1452.0.0.0.0 - 10                           
    2 - 601.2278.1452.0.0.0.0 - 10
    3-  602.2279.1452.0.0.0.0 - 10
    When accounting is created
    3 lines are created for item expense account  - Amount  30
    1 - line for AP liabilities  - 600.ZZ999.9603.0.0.0.0 - Amount 30
    if i create Intracompany rules, it is transfer all 30 pounds from 600.ZZ999.9603.0.0.0.0 to  601.ZZ999.9603.0.0.0.0
    Is there any possibility of making three lines for liability like
    Distribution line no  AP_liability_Account  Amount
    1 - 600.ZZ999.9603.0.0.0.0  - 10
    2.-  601.ZZ999.9603.0.0.0.0 - 10
    3 -  602.ZZ999.9603.0.0.0.0 - 10
    Any thoughts on this
    Thanks,
    Jay

  • Are multiple balancing segments permitted in the R11i Account Flexfield

    Can I specify two segments in my account flexfield as balancing segments in R11i ?
    i.e. using the Flexfield Qualifiers, check the Balancing Segment checkbox for two different segments.

    Hi
    I have done the testing of the same in R12 vision instance.
    Whereby the company segment is already designated as a Balancing segment and i tried to make another segment for e.g. Department or Future1 as the balancing segment, however i was not able to do so and recieved a pop-up mentioning APP-FND-00990: you already have a enabled this qualifier option for another segment.
    So may be the note/statement has been removed, but i think the restriction still applies.
    You can try testing the same at your end in your instance for confirmation purposes.
    Thanks
    Manish Jain

  • Cost center not appearing for G/L (Balance account) while posting

    I have created symbolic account 1300, accrued leave pay with account assign type as F.
    I hvae assigned the relevant G/L to this symbolic account under 'assign balance sheet accounts'
    However while posting, the relevant cost center assignment is not captured next to the G/L account.
    The cost center is correctly maintained in IT0001 and is displayed for the other expense accounts. But is missing for all balance G/L accounts.
    Please guide
    Ally

    Hi Ally,
    I have similar requirement, can you please let me know what did you changed in the Posting Variant.
    Your help is much appreciated, and rewrded. Waiting for your reply.
    Thanks,
    Janga K.

  • Aging Report does not match Balance Sheet Receivables/Payables Account

    Hi experts,
    I am requesting your help to find out why our customer receivables/vendor payables aging reports total does not match our balance sheet accounts receivable/ accounts payable account for the same period.
    I would expect
    Customer Receivables Aging Report Total = Balance Sheet Accounts Receivables Account
    Vendor Aging Report Total = Balance Sheet  Accounts Payables Account
    Thank you.
    Jane

    When you run the report with an ending/aging date in the past (like the end of last month), if you do not display BP's with zero balances, it will leave out BP's who have a zero balance AT THE TIME YOU RUN THE REPORT.  Some of them may have had a non-zero balance at the end of the month, but they will be left off anyway.  So if a customer owed money on the last day of the month and he paid it on the first of the next month, his balance will not be shown on the report if you run it even one day later.
    I feel this is a design defect in the report, but it is the system behavior.
    Marcia

  • Salary Payable wrt to Profit Center wise

    Dear All,
    I am finding a particular issue regarding the posting document creation of salary from HR to FI.
    I like to know that can we allocate Profit Center to employees in any of the infotype of HR. if so let me know.
    We have allocated Cost Center to positions. Different Cost center is alloted to Different Profit center. when we do the posting there is an issue related with document creation with error msg related to Profit Center. Can we do salary payable document spilitting wrt to profit center wise, if it can be done let me know.
    Can we book the expense wrt Profict center and not wrt cost center. if it can be done, let me know.
    Chandan.

    hi
    I use this code S_ALR_87013336  there is no figure is shown in report . only one figure shown that is Unappropriated profit from previous year & other accounts are nil
    regards
    gk

  • Payables account defined as B/S account

    Hi ,
    We have an account named " Payables to employees "..
    However, in the account definition, i find that , it it defined as a Balance sheet account.
    Is it not supposed to be a PandL account ?
    Please suggest.
    Thanks,
    Srikanth.

    Hi,
    Payables are balance sheet accounts. For example,  when you recognize the salary expense you will Debit salary expense (P&L account) and credit Payables to Employees (B/S Account). The expense incurred is charged to the salary expense account.
    Regards,
    Darrel

  • Issue with Payables Accounting Process

    I have an issue right now with Payables Accounting Process. Is says:
    Oracle Payables: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APACCENG module: Payables Accounting Process
    Current system time is 25-AUG-2009 13:23:41
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_START_DATE='2009/08/02 00:00:00'
    P_END_DATE='2009/08/23 00:00:00'
    P_JOURNAL_CATEGORY='All'
    P_SUB_TRANSF_TO_GL='N'
    P_SUB_JOURNAL_IMP='N'
    P_VALIDATE_ACCTS='Y'
    P_SUMMARIZE_FLAG='N'
    P_COMMIT_CYCLE='50'
    P_ORG_ID='81'
    P_DEBUG_SWITCH='N'
    P_TRACE_SWITCH='N'
    P_RUN_ACCT_REPORT='N'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG Environment Variable is :
    American_America.UTF8
    MSG-00002: Check that AX is not installed before calling the accounting engine
    MSG-00003: AX is not installed, Calling the accounting engine
    MSG-00004: After the call to AP_Accounting_Engine_Pkg.Do_Accounting
    MSG-00005: Error occured in the accounting process
    MSG-00006: Error Message: ORA-20100: File o0002869.tmp creation for FND_FILE failed.
    You will find more information on the cause of the error in request log. occurred in
    &CALLING_SEQUENCE
    with parameters (&PARAMETERS)
    while performing the following operation:
    &DEBUG_INFO
    REP-1419: 'beforereport': PL/SQL program aborted.
    Report Builder: Release 6.0.8.20.2 - Production on Tue Aug 25 13:23:41 2009
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 820318.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Output is not being printed because:
    The print option has been disabled for this report.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 25-AUG-2009 13:23:43
    I had a similar issue writing to the UTL_FILE_DIR with the AR Interface and was able to resolve that by checking the read/write permissions on the UTL_FILE_DIR sat in the init.ora. However, the strange thing here is I still get the same error for Payables Accounting Process.
    Any insights would be greatly appreciated.
    Thanks,
    Don

    This issue has been resolved. But the solution for me was totally unrelated to the error message that came up with this issue.
    We had rollback issues in average and layer cost worker under Bills of Material. And after applying patch 3325415, this issue was also resolved.
    This issue has been answered but if anyone has any ideas on how this issue got resolved by patch 3325415, i'd like to understand.
    Thanks,
    Don

  • OM: Generate Cost of Goods Sold Account problem?

    Hi,
    I have a requirement to set override segment4 of COGS which logic come from Customer Sales Channel lookup values DFF (in this case = 611) if sales channel = "MASS".
    What i did is after Get CCID from the Order Type Id, i created a new function that set the hidden attribute FND_FLEX_SEGMENT4 with the lookup values mention above to override the segment4. Then after that call Validate Code Combination.
    But after debugging the code using cogs_11i.sql from Metalink, segment4 was not get override as shown below :
    New Segment 4 : 611 => come from debug output message
    Return CCID : 151814
    Concat Segments : 3101.3203.02I.212.74010001.000.0000
    May i know how to overcome this problem? Appreciate your help.
    Thanks & Regards,
    Fendy

    Hi,
    Standard workflow "OM : Generate Cost of Goods Sold Account" has following steps:
    1/ Start generating Code Combination
    2/ Get CCID for a line
    3/ Copy Values from Code Combination
    4/ Validate Code Combination
    5/ End generating Code Combination
    If I want to modify the segment4, the custom function to set the attribute FND_FLEX_SEGMENT4 need to be inserted just after the step "Copy Values from Code Combination" (NOT just after "Get CCID for a line").
    Is it what you have done?
    J.

  • Compare with my cost of goods sold account to my sales revenue account

    Hi,
    i want to compare with my cost of goods sold account to my sales revenue account.
    After PGI my COGS a/c will be debited INVENTORY a/c will be credited so after sales my SALES a/c credit & customer a/c debit . I want to see what is the difference value of COGS a/c with respective billing Sales A/C
    No doudt we can see in Profit of margin in billing doc. It is quite impossible to see all document in respective wise. Please give a solution for which i can know what is profit of margin with comparing values in both of Account.
    Thank's
    Abhay

    Hi,
    This is possible through CO-PA report. You can get the result per sales order.
    Also the same can be achieved in FI as follows:
    Outbound delivery document thr" VL01N is captured in "Reference field" of FI doc (BKPF-XBLNR) generated through delivery.
    If the settings are done by SD person to capture the outbound delivery no. in "Reference field" of FI doc generated through Billing document (VF01), then there will be a common field to compare the documents in both accounts.
    In transaction FAGLL03, select the account COGS & Sales revenue account. Once the report displays, sort or take sub total on this common field "Reference".
    This will give you difference between COGS & Sales revenue per document.
    Hope this resolves your query.
    Regards,
    Ashutosh

  • Material Ledger : Actual Cost settlement to Consumption Accounts

    Dear CO Experts,
    We are aware that when we run CKMLCP, all variances (in the Price Diff GL Account) due to Material Prices flutuation, diff in Standard & Actual Cost of Production, etc. would finally get settled to Consumption or Stock Account in its appropriate ratios.
    Consumption Acount GL is a Cost Element with Cost Category as 1.
    There can be cases, when there are diferences in Production Order, due to fluctuations in Prices or Actual consumption is more than standard consumption.
    When a Production Order is settled the difference is posted to Price Diff Account.
    When a Material Ledger (Actual Costing) is executed, Price Diff Account is targetted to be Zero. The Price Diff is then splitted in Stock & Consumtion Account in its appropriate ratios.
    Main Question :
    Since, Consumption Acount GL is a Cost Element with Cost Category as 1, what shall be the CO Account Assignment Object, when the ML value is settled to Consumption Accounts.

    hi merchant..
       1. Price diff between stnd and act is initially goes to PRD a/c through OBYC setting at the time of GR/Invoiceing/Issue if mat is set as S&3.
       2. In case of mat set as V&2 idially there should not be any diff but may arise some small amount due to "no or less stock qty" at the time of invoicing.
      3. When CKMLCP is run these price diff & order settlement diff splitted to cons and stock as you mentioned.
    Now your question :
      " Since, Consumption Acount GL is a Cost Element with Cost Category as 1, what shall be the CO Account Assignment Object, when the ML value is settled to Consumption Accounts"
        Cons GL is cost element cat 1 for capturing mat mov for Issues to orders/cost centres,oth co obj for primary posting at stnd price.
        Now at the time of CKMLCP run you revaluate the materials and price diff are splitted to cons & stock and goes to mat to calculate act cost (stnd +/- prd).
    I think this will give you some light on your issue.
      kkumar

  • SRKIM: R12: Payables  Accounting Data 를 R12 로 upgrade 할때 사용 되는 Scripts

    PURPOSE
    R11i 의 Payables Accounting 정보를 R12 로 upgrade 시 사용되는 scripts 에 대해 알아보도록 한다.
    EXPLANATION
    R12 의 AP Accounting 정보를 담는 new tables 은 아래와 같다.
    New Tables:
    XLA_EVENTS
    XLA_AE_HEADERS
    XLA_AE_LINES
    XLA_TRANSACTION_ENTITIES_UPG
    XLA_DISTRIBUTION_LINKS
    R12 에서 더 이상 사용하지 않는 tables 목록은 아래와 같다.
    Obsolete tables:
    AP_ACCOUNTING_EVENTS_ALL
    AP_AE_HEADERS_ALL
    AP_AE_LINES_ALL
    Upgarde Scripts
    1) apxlaupg.sql - Transaction entities, events, headers 와 lines 정보를 XLA tables 로 upgrade 하는 script 이다.
    a ) XLA_TRANSACTION_ENTITIES_UPG 로 다음 정보를 insert 한다.
    ENTITY_CODE = 'AP_INVOICES' OR 'AP_PAYMENTS'
    - For AP_INVOICES , data from AP_INVOICES_ALL is used if distributions with accounting_event_id exists
    - For AP_PAYMENTS, data from AP_CHECKS_ALL is used
    b) XLA EVENTS 에 insert 한다.
    b.1: Invoice Related Events:
    Invoice 관련 events 는 AP_ACCOUNTING_EVENTS_ALL 와 AP_INVOICES_ALL 를 참조 하여 만들어 진다.
    XLA_EVENTS.ENTITY_CODE = 'AP_INVOICES'
    XLA_EVENTS.EVENT_TYPE_CODE 은 AP_ACCOUNTING_EVENTS_ALL.event_type_code 에서 참조 하여 만들어 진다.
    INVOICE event 는 다음 중 하나로 생성된다:
    INVOICE VALIDATED,
    CREDIT MEMO VALIDATED,
    DEBIT MEMO VALIDATED ,
    PREPAYMENT VALIDATED
    INVOICE ADJUSTMENT event 는 다음 중 하나로 생성된다:
    INVOICE ADJUSTED,
    CREDIT MEMO ADJUSTED,
    DEBIT MEMO ADJUSTED,
    PREPAYMENT ADJUSTED
    INVOICE CANCELLATION event 는 다음 중 하나로 생성된다:
    INVOICE CANCELLED,
    CREDIT MEMO CANCELLED,
    DEBIT MEMO CANCELLED,
    PREPAYMENT CANCELLED
    PREPAYMENT APPLICATION -> PREPAYMENT APPLIED
    PREPAYMENT UNAPPLICATION -> PREPAYMENT UNAPPLIED
    b.2 :Payment Related Events:
    Payment related events 는 AP_ACCOUNTING_EVENTS_ALL 와 AP_CHECKS_ALL XLA_EVENTS.ENTITY_CODE = 'AP_PAYMENTS' 를 베이스로 만들어 진다.
    XLA_EVENTS.EVENT_TYPE_CODE 는 AP_ACCOUNTING_EVENTS_ALL.event_type_code 를 근거로 아래와 같이 생성된다.
    PAYMENT -> PAYMENT RECORDED or REFUND_RECORDED
    PAYMENT ADJUSTMENT -> MANUAL PAYMENT ADJUSTED
    PAYMENT CANCELLATION -> PAYMENT CANCELLED or REFUND CANCELLED
    PAYMENT CLEARING -> PAYMENT CLEARED
    PAYMENT UNCLEARING -> PAYMENT UNCLEARED
    PAYMENT MATURITY -> PAYMENT MATURED
    b.3 : XLA_EVENTS.EVENT_STATUS_CODE 는 varchar2(1) column 이고
    Value 는 AP_ACCOUNTING_EVENTS_ALL.event_status_code 의 값을 참조 하여 만들어 진다.
    CREATED -> N
    INCOMPLETE -> I
    Any other value -> P
    b.4 : XLA_EVENTS.PROCESS_STATUS_CODE 는 varchar2(1) column 이고 Value 는 AP_ACCOUNTING_EVENTS_ALL.event_status_code 의 값을 참조 하여 만들어진다.
    ACCOUNTED -> P
    ACCOUNTED WITH ERROR -> E
    Any other value -> U
    c) Insert into XLA_AE_HEADERS -> Using rows in AP_AE_HEADERS_ALL
    d) Insert into XLA_AE_LINES -> Using rows in AP_AE_LINES_ALL
    d.1 : XLA_AE_LINES.ACCOUNTING_CLASS_CODE 는 AP_AE_LINES_ALL.AE_LINE_TYPE_CODE 값을 참조 하여 만들어진다.
    AP ACCRUAL -> ACCRUAL
    CHARGE -> ITEM EXPENSE
    PREPAY -> PREPAID_EXPENSE
    RECOVERABLE TAX -> RTAX
    NONRECOVERABLE TAX -> NRTAX
    AV -> AMT_VARIANCE
    ERV -> EXCHANGE_RATE_VARIANCE CASH CLEARING -> CASH_CLEARING
    FUTURE PAYMENT -> FUTURE_DATED_PMT
    WRITEOFF -> WRITE_OFF
    BANK CHARGE -> BANK_CHG
    BANK ERROR -> BANK_ERROR
    Any other value -> AE_Line_Type_Code
    d.2: XLA_AE_LINES.BUSINESS_CLASS_CODE 는 AP_AE_LINES_ALL.AE_LINE_TYPE_CODE 의 값을 참조 하여 만들어 진다.
    PREPAY -> AP_PREPAY
    LIABILITY -> AP_LIAB
    CASH CLEARING -> AP_CASH_CLEARING
    FUTURE PAYMENT -> AP_FUTURE_DTD_PMT
    Any other value -> NULL
    e) Insert into AP_PAYMENT_HISTORY_ALL
    TRANSACTION_TYPE 은 AP_ACCOUNTING_EVENTS_ALL.event_type_code 의 값을 참조 하여 만들어진다.
    PAYMENT CANCELLATION -> PAYMENT CANCELLED
    PAYMENT ADJUSTMENT -> MANUAL PAYMENT ADJUSTED
    Any other value -> PAYMENT CREATED
    2) apaphuhf.sql
    해당 script 은 all Payment History rows 의 historical_flag 를 update 한다.
    3) apaxevnt.sql
    AX_EVENTS 에 해당 하는 rows 가 있거나 ‘11.5 Upgrade’ 란 description 으로 생성된 record 가 AE HEADER record 에 있으면 AP_ACCOUNTING_EVENTS_ALL의 AX_ACCOUNTED_FLAG을 UPDATE 한다.
    4) apgpsupd.sql
    application_id = 200 (Payables) and migration_status_code equals ‘P’ 를 가진 gl_period_statuses 의 migration_status_code 를 ‘U’ UPDATE 하는 XLA package (xlaugupg.pkb) 를 호출 한다.
    5) apidstln.sql
    Invoice distribution links, prepay header, prepay app distributions 와 prepay distribution links 를 UPGRADE 한다.
    a) Insert into XLA_DISTRIBUTION_LINKS using AP_INVOICES_ALL, AP_ACCOUNTING_EVENTS_ALL, XLA_AE_HEADERS, XLA_AE_LINES and AP_INVOICE_DISTRIUTIONS_ALL
    b) Insert into AP_PREPAY_HISTORY_ALL using AP_INVOICES_ALL, AP_INVOICE_LINES_ALL and AP_INVOICE_DISTRIBUTIONS_ALL
    c) Insert into AP_PREPAY_APP_DISTS using AP_INVOICES_ALL, AP_INVOICE_DISTRIBUTIONS_ALL, AP_ACCOUNTING_EVENTS_ALL, AP_PREPAY_HISTORY_ALL, XLA_AE_HEADERS and XLA_AE_LINES
    d) Insert into XLA_DISTRIBUTION_LINKS for the prepay distributions.
    6) appdstln.sql
    Payment distributions 와 payment distribution links 를 UPGRADE 한다.
    Insert into AP_PAYMENT_HIST_DISTS and XLA_DISTRIBUTION_LINKS for the payment history distributions
    7) apsobtrb.sql
    Trial balance upgrade -> Inserts data into AP_TB_BALANCES_TMP which is then used to create initial balances.
    8) apintbal.sql
    Trial balance upgrade-> Creates initial balances for trial balance
    9)apxlainv.sql
    Creates Invoice distribution links post upgrade
    10) apxlapay.sql
    Creates Payment distribution links post upgrade
    REFERENCE
    NOTE. 443495.1 - What are the upgrade scripts used in Payables Accounting Upgrade to R12

  • Decesion of Costing base COPA over Account base

    Dear Gurus,
    I have read the defination of costing based and account based copa and understood the conceptual part of it.
    On what basis does a a particular business determines that whether they will have to go for  costing or account based copa or both ? In other words what are the parameter that I have to keep in mind before I suggest any of the copa method to the business?
    Thanks

    Hi
    Costing based COPA is always preferred over Acct Based COPA (ABC), for the following reasons
    Costing based vs. Account based copa (ABC)
    a. Account based copa uses transaction tables and hence affects performance of CO transactions
    b. Estimated values not possible in ABC (Stat Values)
    c. Reports based on line items not possible in ABC
    d. Actual Top Down distribution not available in ABC
    e. Revaluation of actual data to plan data is not available in ABC
    f. No key figure schemes are available in ABC
    g. COGS breakup cant be achieved in ABC
    Explanation on (b) - Using stat values, you can take tax values also to COPA.. i.e. you create a Stat cond type with 100% condition record on Sale Tax Cond Type... Hence, you can take tax values to COPA
    If you use ABC, you cant use Stat Values.. And tax account being a balance sheet account cant be taken to COPA
    Regards
    Ajay M

  • Difference between Cost Center and GL Account

    Hi All,
    I want to know that "what is the difference between Cost Center and GL Account."
    Regards

    Hi Vidya,
    Few points:
    1. GL is a FI object and used for external reporting, whereas cost centers are CO objects and used for internal management reporting.
    2. In GL you classify the nature of expenses like telephone expenses, travelling Exp. Salary exp etc., whereas by cost center you decide where are expenses were incurred, like Production department, Mkt. Department, HR department etc.
    3. You post the FI transactions at GL level whereas the cost center are assigned to those GL account for getting the more detailed information about the expenses.
    4. GL accounts are P&L and BS account and only P&L expenses accounts are posted to cost cneters. And you can choose to post it by cost center or not by defining the GL as cost element. If you do not define any GL as cost element, it will not post to cost centers.
    I hope it answers your question.
    thanks,
    Vivek

  • GL account opening/closing balances by day

    Hi All.
    I wish to list day by day opening and closing balances of G/L account by restricting the result to a time interval.
    Anyone know how to write the query for G/L account opening & closing balances by day?
    I found this in the forum and modify it to below:
    declare @fr char(10)
    declare @to char(10)
    set @fr=convert (char(10),[%0],20)
    set @to=convert (char(10),[%1],20)
    declare @PrCl dec(19,6)
    declare @de dec(19,6)
    declare @cr dec(19,6)
    declare @acc char(20)
    declare @Pracc char(20)
    Create table #W
      (M char(10), Acc char(20), Me char(100), Tid char(10), Br char(10), TT char(30), Op dec(19,6),De dec(19,6),Cr dec(19,6),Cl dec(19,6) )
    Insert into #W (M,Acc,Me,Tid,Br,TT,Op,De,Cr,Cl)
    SELECT convert (char(10),T1.[RefDate],20)Mo, T1.[Account],T0.Memo, T0.TransId, T0.BaseRef, CASE
    WHEN T0.TransType = 13 THEN 'AR Inv'
    WHEN T0.TransType = 14 THEN 'AR CN'
    WHEN T0.TransType = 18 THEN 'AP Inv'
    WHEN T0.TransType = 19 THEN 'AP CN'
    WHEN T0.TransType = 24 THEN 'Incoming Payment'
    WHEN T0.TransType = 30 THEN 'JE'
    WHEN T0.TransType = 46 THEN 'Outgoing Payment'
    ELSE 'Other'
    END AS 'Trans Type',
      0,T1.[Debit] De , T1.[Credit] Cr,0
    FROM OJDT T0 INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId
    Group by T1.[Account],convert (char(10),T1.[RefDate],20),T0.Memo, T0.TransId, T0.BaseRef, T0.TransType,  T1.Debit, T1.Credit
    Order By T1.[Account],convert (char(10),T1.[RefDate],20)
    Declare cu cursor for
    Select acc,de,cr from #W
      for update
    set @PrAcc=''
    Open cu
    Fetch next from cu into @acc,@de,@cr
    While @@FETCH_STATUS = 0
    Begin
    If @acc!=@PrAcc set @PrCl=0
    Update #W
       set op=@PrCl,
           cl=@PrCl-@Cr+@de
      where current of cu
    set @PrCl=@PrCl-@Cr+@de
    set @PrAcc=@acc
    Fetch next from cu into @acc,@de,@cr
    End
    deallocate cu
    Select * from #w
    Where M between @fr and @to
    Drop table #W
    but some of the rows are missing from the result. e.g. row with the same value of debit/credit ( same TransId and BaseRef) will come out once only in the result.
    Please guide me on the above issue.
    Thanks & Best Regards,
    Leng

    Hi,
    You have to make use of many tables for this purpose.
    1. You have to claculate the previuos period and finscal year for the given date..
    2. You have to calculate the G/L balances for this period for the given G/L account from table GLT0.(You can use some of the standard function modules for the same)
    3. You have get the line items from the various tables like BSIS,BSAS,BSIK, BASK, BSID and BSAD for the dates from the begining of the month to the given date-1. sum upthis amount with the amount retrieved from step 2 .This will be the opening balance for the given date.
    4.retrieve the data from he same tables like step 3 for the given date. This will the transactions of the given date.
    5. sum up  the amounts from step 4 with step 3. this will be the closing balance for that date.
    let me know id you want any further info..
    Reward the points if i answered your question..

Maybe you are looking for

  • Problem calling XML Report Publisher from Oracle Reports

    Hi, I'm facing a problem in calling XML Report Publisher from Oracle Reports. Basically, I'm trying to customise Dunning Letter program. The program which is submitted calls another program. I have customised the second program and added a call to a

  • Syncing itunes from iphone 3g to another computer

    i buy all of my itunes on my laptop and then download to my iphone 3g. i had previously made a backup of my itunes (before getting my iphone) and restored them to another authorized computer that i sync with my outlook calendar only. after getting th

  • Return Purchase order

    Dear All, I am doing GRPO  using movement type 101 .while doing this i got error that "Document 470000 does  not contain any selectable items " .. Can anyone tell me what is the problem ? regards Smita

  • Cross platform mail madness

    Just to make my life easier (supposedly), I used the mail client in Windows over on my Boot Camp partition, to check my .Mac mail. No problem. As soon as I did this though, when I returned to OSX, all my old mail in Mail had disappeared. Is this simp

  • Old and generic icon or thumbnail removal

    Dear all, Over the years I used different ways or softwares to generate thumbnails in my images library. Before OSX 10.6, that was the way to go because the finder is not really good to practically showing them. But now with OSX 10.6 the icons are ge