Query to check cross segment postings

Hi,
I have a database with a segmented chart of accounts. It has only 1 segment for the company. The client would like to have the ability to post across segments however I need to ensure that the journal is always balanced overall, but aswell as with a specific segment.
I would like to create a SQL query to check all my journal entries to determine weather the journal is balanced on all segments...
Any ideas?
Grant
Edited by: Darius Heydarian on Mar 27, 2008 2:06 PM

Hi Suda,
I have a journal as follows:
Account Code--Debit--
Credit
720002-002--2000--
720002-003--1000--
720001-001----
3000
201201-001--3000--
201201-002----
2000
201201-003----
1000
In the above example you will notice that the journal is balanced, and the debits and credits between each segment is also balanced. This transaction is therefore acceptable.
If the journal is balanced, but the debits and credits for a specific segment are not in balance then the transaction is not acceptable.
I need a way to either block these type of journals or alternatively to provide a report to highlight the "incorrect" journals...
Hope hope this makes my requirement a little clearer...
Regards
Grant
Edited by: Grant Boshard on Mar 13, 2008 1:55 PM

Similar Messages

  • Checking cross company postings

    Hello Gurus,
    I was trying to manually post a cross company code transaction just to check the process. I have assigned GL accounts (In txn OBYA) in both the company codes and when i was trying to post i am not able to see the cross company transaction happening. Am i missing any configuration or is there anything that iam doing wrong?? Kindly suggest me !!
    If there are any particular steps that i need to follow please let me know?
    Thanks,

    Hi,
    T code to set up cross company code configuraiton is OBYA.
    Enter Company Code 1 and Company Code 2.
    Enter Posting Key and GL Acct in Company Code 2 for Posting Made in Company Code 1 and to be cleared in Company Code 2 (for both payables and receivables).
    Enter similar configuraiton for for Posting Made in Company Code 2 and to be cleared in Company Code 1.
    Cross Company Code Transactions
    A cross company code transaction involves 2 or more company codes in one business transaction. For a cross company code transaction, the system will post a separate document in each of the company codes involved.
    Examples for cross company code transactions are:
    •One company code makes purchases for other company codes (Central Procurement)
    •One company code pays for other company codes (Central Payment)
    •One company code sells goods to other company code
    Steps:
    •Create Clearing Accounts in each of the company codes.
    The Clearing Accounts may be GL Accounts, Customer or Vendor Accounts.
    •Configure the Automatic Postings for Cross Company Code Transactions by assigning Clearing Accounts for both the company codes.
    Creation of Clearing Accounts in both the Company Codes (FS00)
    Then at the time of entry in second line item you give in "new company code" field.
    it will work
    regards
    Sunoj

  • Query to Check whether balancing segment value is assign to ledger

    Hello All,
    I am getting above error while running the Journal Import.
    Can any send me the query to check this details from Backend.
    Your help is appreciated.
    Thanks,
    AB
    Edited by: ABA on Jan 6, 2010 6:23 AM

    Here is the query to check balancing segment value Assigned to ledger or not.
    select ledger_id,segment_value balancing_segment,legal_entity_id
    from GL_LEDGER_NORM_SEG_VALS where segment_type_code = 'B'
    Thanks,
    AB

  • Posting Level 01 documents allow cross company postings - unexpected

    hi,
    Previously users could not enter a PL01 document that crossed companies.
    Now they can.
    I had previously thought that this was not possible for PL01 but what is happening is
    when they enter cross-company postings (2 lines, one each to a different cons unit)
    the system creates 2 documents,
    with 2 balancing entry lines (one to each unit) to the clearing item
    - just as can happen when a PL20 or PL30 manual posting is to the same company but cross-profit centres.
    So my question;
    is this normal behaviour in BCS?
    was this always possible but the users just hadn't achieved it until now
    NB they are adamant that this was not possible previously, until the Support Packs were implemented sometime last year
    Finally, is there a way to stop it from happening?

    Concur with Dan.
    Most likely, that you've met the 2nd case: the DocType with configured  clearing ConsUnit was  attached to manual entry task. It might be not easily seen. Just check it out and remove if find.
    Edited by: Eugene Khusainov on Jan 28, 2010 11:13 PM

  • CROSS COMPANY POSTINGS

    Dear All,
         I am having a doubt regarding the cross company postings. The issue what i am facing is
    I am having two company codes let it be A & B, now that co.code A had purchased from the vendor V and the payment to vendor V has to be made through the co code B.
    But while posting the document it is giving an error stating that "maintain a unique company"
    for that i had checked
    1. two co.codes are assigned to the same trading partner(company)
    2. checked OBYA configuration
    3. checked OB60 configuration
    4. doc type is allowing the inter company postings and trading partner
    In which all the settings are perfectly done. But finaaly i am unable to post the document it is allowing me to simulate(even at the point of simulate i am getting 4 line items excluding taxes) but i am unable to post the document.
    Hoping the guidelines for resolving the issue ASAP
    with regards
    Praveen

    sure ravi from next time i will correct my self
    the error i am getting is
    A unique company code has not been assigned to company number XXXXXX
    Message no. GLT0001
    Diagnosis
    Document breakdown is active in your system. In certain cases, a company code is derived from the company ID number, and this must lead to the assignment of a unique company code.
    A unique company code could not be assigned to company number XXXXXX.
    System Response
    You cannot carry out the required posting.
    Procedure
    Assign one company code to company number XXXXXX.

  • How to display first row value returened from a query as checked as default in a report

    How to display first row value returned from a query as checked as default in a report
    Example
    Parameter 1
    Paramerter2
    ABD
    x(checked)
    Test
    DEF
    JMG
    Mudassar

    Hi Mudassar,
    The issue is caused by the order in which the parameters appear in the report data tab can be difference between our report execution and it failing. In other words, “Parameter2” is execution before parameter “A” due to this issue. We can adjust the parameter’s
    order to solve the issue.
    If “Parameter2” is parameter “A”, we cannot use that expression. Because fields cannot be used in report parameter expression, if we want to display the first value returned from a query as default value, we have to fill the “Specify values” text box with
    the specific value in Default Values dialog box.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Query to check BP Payment terms and Document Payment terms

    Hi All,
    Can any one help me to create an approval query to check the BP payment terms and Document Payment terms are same or not?
    Normally we change our BP payment terms regularly as per the agreements between Customer and us.
    but when we copy any previous document into invoice it calculate the Due date as per previous payment terms. so we need an query to check wether the BP payment terms and document Payment terms are same or not? if it is different they it should ask for authorization from manager or else the document should be saved.
    Thanks in Advance,
    Prachi.

    Hi
    I will test this and will let you know if it works or not?
    Thank you very much.
    Prachi.

  • Server does not return query metadata check the query

    hi,
    i want know how to  use bex query designer,
    when i  insert a data provider,the message is appear "server does not return query metadata check the query",
    who can help me ?
    thanks a lot !
    addition: my current entironment is: gui710 with sp4,bi710 with sp2.

    Hi,
    All the yellow and red lights will have an effect on query performance or execution.  Read up on them as there are too many to explain via this forum.
    There is a document on SDN on query performance.  Some useful links:
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9f4a452b-0301-0010-8ca6-ef25a095834a]
    [http://help.sap.com/saphelp_nw70/helpdata/en/41/b987eb1443534ba78a793f4beed9d5/frameset.htm]
    [http://help.sap.com/saphelp_nw70/helpdata/en/d9/31363dc992752de10000000a114084/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/2e/caceae8dd08e48a63c2da60c8ffa5e/frameset.htm]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0501cb9-d51c-2a10-239c-c141a22c45a6]
    Cheers...

  • Explain Plan understand technique & Query optimizing check list

    Hello gurus,
    Can some body help me with doc available or your experience to tell on how to understand Explain Plan & Query optimizing check list.
    Thanks..

    That's correct,
    But unfortunately the institute is pretty far from home.. and travelling time will be high..
    I am a working man..
    Please suggest if some good book or link.
    Thanks.

  • Query regarding Check Printing

    Hi All,
    I have a query regarding check Printing.
    Once I am printing the Check with Transaction FBZ5, the roller of the printer is not being stopped after the printing of first check and four to five checks are coming out.But I want one check will print in the first print command and marker should come onto the edge of second check.
    please suggest how we can do it..
    Thanks,
    Rajeev

    Hi!
    Make a runtime analysis (SE30) and try to find the slow parts. Maybe there is not much help, because it's also possible that the printer needs so much time to convert the data.
    Regards,
    Christian

  • I want SQL query to check if any of our important concurrent programs

    I want a sql query to check if any of our important concurrent programs are currently scheduled or not

    SinghP wrote:
    I want a sql query to check if any of our important concurrent programs are currently scheduled or notThat's nice,
    What scheduling tool are you using? are you referring to dbms_job?
    what version of Oracle are you using? are you using some custom job management system that involves writing to user created tables in your database?

  • Query on Checks deposited for the day

    Hi Experts,
    Can I have a query on checks which were deposited on-date. Columns would be: Dep No. Customer code, Customer Name, Check date, Check No., Bank code and Amount. Parameter would be the Deposit date.
    Many thanks.
    Don

    Hello Don - maybe try this out to see if it works...Regards, Zal
    SQL G BK Daily Check Deposit Report Detail by Date Range Ver 2 ZP 2009 01 20
    --DESCRIPTION:  SQL reports on deposit, incoming payment, check numbers, and customer invoice information.  This SQL is the basis for the Daily Deposit Report Summary by Date Range.
    --AUTHOR(s):
    --Version 1 Zal Parchem 12 Jan 2009
    --Version 2 Zal Parchem 20 Jan 2009 Added Bank Code
    --PROBLEM(s):
    --[P1] ZP 2008 11 18 - SAP does not have a direct link to provide all of the information.  See how SQL places info together in the JOIN statements before making any changes.
    SELECT
    T0.[DeposDate] AS 'Deposit Date',
    T3.CardName AS 'Vendor/Customer Name',
    T3.CardCode AS 'Vendor/Customer Number',
    T1.CheckNum As 'Check Number',
    T3.DocNum AS 'Inv/Cred Memo',
    CASE
    WHEN (T2.InvType = 14)
        THEN (T2.SumApplied * -1)
    ELSE (T2.SumApplied *1)
        END AS 'Sum Applied to',
    T1.[DpstAbs] AS 'Deposit Number',
    T1.BankCode AS u2018Bank Codeu2019
    --T2.DocNum AS 'Inc Payment',
    --T0.[DeposNum] AS 'Filter Number'
    FROM ODPS T0
    INNER JOIN OCHH T1
    ON T0.DeposId = T1.DpstAbs
    LEFT OUTER JOIN RCT2 T2
    ON T1.RcptNum = T2.DocNum
    LEFT OUTER JOIN OINV T3
    ON T2.DocEntry = T3.DocEntry
    WHERE T0.DeposDate >= '[%0]'
    AND T0.DeposDate <= '[%1]'
    ORDER BY T3.CardName

  • Query to check index rebuild progress check query

    alter index EB.GL_TRN_PK_PRIM rebuild; its big index with millions rows, want to see its progerss, is there any query to check that how its doing?

    Hi,
    its big index with millions rowsI hope that you are running it in parallel. With 35 processes you should be able to do a million row index in under 10 minutes.
    When I rebuild indexes, I pass the time run running a tablespace map on the target TS.
    You can watch Oracle build the index nodes.
    is there any query to check that how its doing?I use a script like this one:
    http://www.dba-oracle.com/data_warehouse/tablespace_reorganization.html
    Because Oracle retrieves the indoes in pre-sorted order, you can watch the new tree build in real-time . . .
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm

  • What is the query to check the priveleges of a certain view ?

    Is there a query to check the Priveleges that have been assigned to a specific view or table? Please let me know. Thank You.

    DBA_TAB_PRIVS will contain information about what privileges individual database users have been granted on a particular view. ROLE_TAB_PRIVS will contain information about what privileges various roles have been granted on a particular view.
    If you have roles granted to other roles, default and non-default roles granted to users, etc., it can be somewhat hairy to trace back what end users are able to query a particular view based on grants made to one or more views. In that case, you'll need to shop around for more sophisticated scripts.. I remember that Pete Finnigan had such a script on his site (http://www.petefinnigan.com) but I'll be darned if I can find it now.
    Justin

  • How can i check the segment in idoc.

    hi gurus,
       how can i check the segment in idoc.please help me as

    Hi Rohit,
    In WE02/05 U can view the IDocs.
    Since u r having the IDoc with u, Double click the Idoc no. and it will take you to screen where it will show you all the segments of IDoc. Here you can check which segment is giving error.
    Go to  WE60/63 which shows the detailed documentation in the MySAP environments if u have been using the old 4.6c systems. In 6.10 since the documentation is not available ,modify your personal settings to show the documentation by default; In 6.10 in transactions WE60 and WE63, documentation is no longer generated by default for the segment fields when the documentation is generated. To activate the generation of the documentation from the corresponding data elements, proceed as follows: WE60/WE63. > Goto > User settings. Here you must set the indicator for 'Display of the documentation' under 'Display attributes for IDOC types' and then save the change. Now the documentation is also displayed for the segment fields when WE60/WE63 is executed.
    **Reward points if u find this useful.
    Thanks & Regards,
    gyanaraj

Maybe you are looking for

  • Need help in creating a metric Days Late

    Due Date and Pay Date are seperate dimensions with their respective ID's in the Fact_Details. Now i need to create a metric Days_Late=(Due_Date - Pay_Date). My question is whether i have to create this metric using the Logical Table Source editor in

  • Would like to change languages in App Store

    I'm a Canadian residing in Korea and would like to be able to use the Korea App Store but in English. I actually also have an account at the Canadian App Store but my credit card expired and I'm not in a position to get a new one because I have to li

  • Open in Camera Raw issues...

    Have photoshop elements 12 just installed it last month. In the beginning it opened the raw files from my nikon, but now it no longer will. No updates need to be done. Using windows 7.

  • Leopard seeing multiple commands from one remote key press

    I recently upgraded from Tiger to Leopard and now when my harmony remote sends command to the macmini, sometimes they get interepreted many times. Ie I send the "+" command once but 2 commands happen. Here are other posts about this: http://defenestr

  • Is there an easy way to move my playlist from one computer to another?HELP

    I recently got my own private computer and wanted to move my itunes playlist from my old computer to the new one. I downloaded Itunes 8 to my desktop but couldn't seem to get my playlist. i ended up trying to burn all my songs onto discs but i ran ou