BSEG and KOB1

Hi all,
I have created a program to draw out a profitability report for a Profit Centre Group/ Profit Centres (parameters from selection screen) of a particular company code.
The program will extract records from BSEG table based on the profit centre specified, where Sales and Purchase can be determined using field SHKZG (S-Debit/ H-Credit).
However, when I have completed the program and get ready for user testing, user claims that my total sales value is incorrect, user claims that the value should be the same as the result from transaction KOB1 (where user inserted Profit Centre Group and G/L account number at the selection screen of KOB1).
I am wondering why the value/result should be the same as KOB1 where BSEG should be the table to calculate profit.
Anyone has any ideal on the relationship between BSEG and transaction KOB1?
Thanks and regards,
Patrick

Hi,
Best option would be, to debug the program of the tcode: KOB1.
Find out how they bring the results. The standard SAP may be using some function module to fetch the amount figures, you can also use the same function module in your program to get that result.
Regards
Subramanian

Similar Messages

  • Trying to understand relationship between BSEG and BSID

    Hi,
    BSID is clearly the best table to look at when trying to get customer open items.
    Would it be correct to assume that BSID has the same granularity as table BSEG though?
    What I mean is, BSEG's primary key is basically Company Code, Document Number, Fiscal Year, Line Item.  But BSID's contains a vast number of primary keys including clearing date, transaction type, and special G/L indicator.
    Are these fields in the primary keys merely to make it easier to search for open items using these fields?  Or, is it possible that for one record in BSEG there could be multiple corresponding records in BSID?
    Thanks,
    Tristan

    BSEG is the table containing all FI documents whereas BSID is a table containing only Customer financial documents.
    In a way BSEG is a superset for BSID.
    Searching criteria is based on the data that is contained in a table. Hence the criterion varies between BSEG and BSID.
    Hope this clears your query.
    Cheers
    P O I N T S!

  • Performance problem with selecting records from BSEG and KONV

    Hi,
    I am having performance problem while  selecting records from BSEG and KONV table. As these two tables have large amount of data , they are taking lot of time . Can anyone help me in improving the performance . Thanks in advance .
    Regards,
    Prashant

    Hi,
    Some steps to improve performance
    SOME STEPS USED TO IMPROVE UR PERFORMANCE:
    1. Avoid using SELECT...ENDSELECT... construct and use SELECT ... INTO TABLE.
    2. Use WHERE clause in your SELECT statement to restrict the volume of data retrieved.
    3. Design your Query to Use as much index fields as possible from left to right in your WHERE statement
    4. Use FOR ALL ENTRIES in your SELECT statement to retrieve the matching records at one shot.
    5. Avoid using nested SELECT statement SELECT within LOOPs.
    6. Avoid using INTO CORRESPONDING FIELDS OF TABLE. Instead use INTO TABLE.
    7. Avoid using SELECT * and Select only the required fields from the table.
    8. Avoid nested loops when working with large internal tables.
    9. Use assign instead of into in LOOPs for table types with large work areas
    10. When in doubt call transaction SE30 and use the examples and check your code
    11. Whenever using READ TABLE use BINARY SEARCH addition to speed up the search. Be sure to sort the internal table before binary search. This is a general thumb rule but typically if you are sure that the data in internal table is less than 200 entries you need not do SORT and use BINARY SEARCH since this is an overhead in performance.
    12. Use "CHECK" instead of IF/ENDIF whenever possible.
    13. Use "CASE" instead of IF/ENDIF whenever possible.
    14. Use "MOVE" with individual variable/field moves instead of "MOVE-
    CORRESPONDING" creates more coding but is more effcient.

  • Updating bseg and bsis table ...

    Hello,
    I want to update bseg and bsis table. I guess i will have to use BAPI_ACC_DOCUMENT_POST.
    how do i go on using this BAPI ? any starter code snippet ...!!

    Functionality
    Using this method you can create a posing in accounting for certain business transactions.
    Possible ( Business Transactions):
    Postings that generally only affect the general ledger. (RFBU)
    Billing: For billing in Sales and Distribution, accounting is supplied with the relevant billing data. (SD00) Billing Document
    Accounting can use the data of a logistics system that result from an Invoice Receipt. (RMRP)
    Goods Movement are triggered by transactions in Sales and Distribution or by inventory postings. Within logistics, they lead to a change in the warehouse stocks of
    <DS:GLOS.Inventory Management>Inventory Management. This results in a posting in accounting. This is why accounting is supplied with the relevant data from logistics. (RMWA)
    Example
    Billing document:
    By selling goods in accordance with targets, revenue is generated. The revenue is posted in billing and forwarded
    to accounting.
    Invoice receipt:
    Raw materials are purchased in accordance with targets. The invoice receipt is posted in a logistics system. The data from the raw materials is forwarded to accounting.
    Goods Movment:
    The use of raw materials leads to a change in stock in inventory managment. The posting of raw material consumption is forwarded to accounting.
    G/L Account Posting:
    Provision posting for an expected warranty service. This can refer to acquisitions or retirements belonging to stocks that are not in subledger accounting relevant to inventory management. This is particularly the case if such materials are not displayed as vendor/customer, materials, loans etc. or cannot be displayed in this way. This can also refer to write-ups or depreciation that contain higher aggregations of values than are maintained in a corresponding subledger that is relevant to inventory management.
    The conversion of foreign currencies for receivables/payables due to large exchange rate changes that should not lead to an update of the accounts payable or accounts receivable accounting. A similar transaction can arise for the revaluation of raw materials if this revaluation takes place at a correspondingly aggreagated level.
    Reclassification of inventory of P&L statement accounts that are only used for reconcilliation purposes in the general ledger (this rearranges values for balance sheet items).
    Balance reclassifications of stocks to receivables with different return times.
    Notes
    If the parameter CurrencyAmount is filled with the currency fields, a complete document check including characteristics and value components of profitability analysis (CO-PA). Otherwise, the account assignment objects are checked.
    Messages are returned in the parameter Return. In the parameter documentation you can find the return values and their meaning.

  • Updating BSEG and BSID in RFEBLB00

    I checked the program RFEBLB00 for the code where it is updating the records in tables BSEG and BSID with the assignment numbers and reference numbers. I tried checking the forum for any inputs, but couldnt find any. I just need the part where its inserting the records into these tables. Any help would be greatly appreciated.

    There is no Direct Insert/update statements in the RFBIBL00.
    This program helps you to create a BDC either Call transaction or Session method to post the entire FI Documents Like in FB01, FB05 etc.
    You can't just update the half part like BSEG or BSID using the RFBIBL00.
    Regards,
    Naimesh Patel

  • Any problem using bseg and bkpf tables

    For fico details i using  bseg  and bkpf  tables.
    I noted that programming is very difficult because of these tables are cluster table.
    plz give me other tables
    if i using these tables any problem will come?

    >
    mysvijai197715 wrote:
    > Hi Aniesh,
    >
    >            BSEG and BKPF are cluster tables. It contains transperant tables like BSIS, BSIK etc. For example to take vendor details usr the BSIK.If you use BSEG and BKPF it will take long time search. suppose your concern having lot of data means may be your server will get shutdown. So use only trasnperant tables like BSIS, BSIK etc.
    >
    >
    > Regards
    > R.Vijai
    Incorrect.  BKPF is a transparent table and not a cluster table and you can use it just like any other transparent table.  BSEG is a cluster table but there is no problem selecting from it so long as you use the key of BUKRS, BELNR, GJAHR - unless you are selecting a very large amount of data, but then this can cause problems when selecting from any type of table.
    The advantage of using BSEG over the other FI line item tables such as BSIS and BSIK is that it holds all the lines of an FI document while the others will hold only a subset eg BSIK will only hold lines that contain a vendor reference and BSAS holds only cleared GL account lines.  Though you can only use it when you have the key.  If you need to search on vendor, you can use BSIK as a starting point, but since I usually need to get hold of all the lines on an FI document, I then have to select from BSEG anyway.

  • Idoc for bsid ,bseg and bkpf tables

    hi ,
    i have extrated the data from 4.7 and uploading into ecc 6.0.
    is there any IDOC for uploading data coming from BSID , BSEG AND BKPF tabels?
    i checked bapi , i could not find some fields in bapi .pls.advise if any IDOC
    As it is very urgent , pls.help me in this regard .
    Regards ,
    Kiran.

    Hi,
    There is some IDOCs which related to the bseg, bkpf etc table
    FIDCC1,FIDCC2.
    <b>Reward with points if helpful.</b>
    Regards,
    Vijay

  • Linking table BSEG and PA0001 to display PA0001-SNAME

    I am working on a report where I am facing problem with field length compatibility.
    I have to pass value of field BSEG-HZUON to PA0001-PERNR and display SNAME in the output.
    But the field length of HZUON and PERNR does not match each time, hence SNAME is displayed as blank in the output for these cases.
    Please suggest a solution to this problem or possibility of using some other field as a linkage between tables BSEG and PA0001.

    Hi,
    Yes, you are right. You can not link based on these fields.
    Possible solutions:
    1. Within a SELECT and ENSSELECT on bseg
        move hzuon to a workfield
        SELECT on pa0001 using the workfield
    2. SELECT all BSEG data into an internal table (with an additional field PERNR)
        Loop over the internal table filling the pernr.
        SELECT all PA0001 data into an other internal table with the FOR ALL ENTRIES
        Combine the internal tables.
    Succes.

  • No element type defined for object type BSEG and system / Disp Management

    Hi all,
    I get the error message
    No element type defined for object type BSEG and system ...
    Message no. UDM_MSG006
    when I try to save a dispute case.
    What do I have overlooked in config?
    Thanks
    Hein
    Points guaranteed as always.

    Hi Sai,
    I have configured the standard settings in there.
    When I add 2 customer-disputed objects from 2 different customers I get that error.
    Any solution to this?
    Thank you!

  • Link between table BSEG and BSET

    Helo All.
    Can you please tell me what is the link between tables BSEG and BSET in FICO?
    Regards

    Hi
    Please check below thread Ramesh answerd for same query
    Relation between RSEG Table and BSET Table
    Thanks,
    Syf

  • Relation between tables BSEG and COEP

    Hi,
    I am developing a report where I want to know the relationship between BSEG and COEP or COBK table is there any field or other way to know.
    Thanks in Advance.
    Regards,
    Kiran

    BSEG contains is the line items of the Accounting Docs ( header is BKPF) . This are primary costing data.
    On the other hand COEP is the line item data for secondary costing data. COBK is the header table for COBK.
    Though you will find BELNR in both BKPF - BSEG and COBK-COEP, but if you look at the data elements, they are BELNR_D and CO_BELNR respectively.

  • Individual posts (KSB1 and KOB1)

    Hi
    Please Give solution for this
    Since the installation of a User-Exit COOMEP01(EXIT_SAPLKAEP_001,EXIT_SAPLKAEP_003) the access to individual posts (KSB1 and KOB1) do not function from the Report-Painter-Report ZRKTOI01 (library ZRK) via the report/report-interface.
    Instead of individual posts the error message "individual posts are possible only for sum totals" is displayed.
    In case of the Report-Painter-Reports this failure does not occur.
    Thanks&Regards,
    Hari
    Edited by: Hari R on Sep 2, 2008 9:12 AM
    Edited by: Hari R on Sep 2, 2008 12:28 PM

    Da Gopha,
    There is no way of being able to link to a single particular post in a thread.
    Unless you use Tree View, there is no way of finding out the URL of an individual post - the best you can get is the thread URL. The green 'Permalink' icons (green pins on each post) only point to the whole thread, and not the individual posts on the thread.
    If the post you want to directly link to has been replied to and
    If you are in Flat View then you can easily link to it.
    Click on the little blue arrow or user name just to the right of the date-and-time stamp of the post that replies to the one you want to link to. This takes you directly to the post you want to link.
    Click on the icon in the browser address bar. This will highlight the complete address exactly as you want it. No need to replace postreply with message or duplicate the number of the post.
    Copy link to clipboard.
    Go to your post box and paste the link. From here you can do the HTML thing as desired.
    So if Jdee wanted to post a link to Lori’s Response for JiveSoftware..
    Typically, posts that are worth linking to have been replied to, so the real requirement for this manual work around is to be in Flat View.
    joeuu
    15 pb g4 1.25ghz 2gbRAM 80gb Superdrive; 20iMac 2.0ghz 512gbRAM Mac OS X (10.4.3)
    15 pb g4 1.25ghz 2gbRAM 80gb Superdrive; 20iMac 2.0ghz 512gbRAM   Mac OS X (10.4.3)  

  • BAPI to update Business Area in table BSEG and BSAD

    Hi,
    Is there any BAPI that will update the field Business Area in table BSEG and BSAD?
    Thanks,
    Ekit
    Moderator: Please, search SDN

    Hi,
    You can not update the business area in the posted documents.
    You need to reverse them and have to recreate.
    Regards,
    Gaurav

  • FM for inser bseg and bkpf

    Is there is any functional module avaibale to insert
    bkpf and bseg table very urgent please
    Thanks
    Ramki

    FIUPDATE will not gnerate fi document after the updation.
    I need Fi document after the it updated in the bseg and bkpf table
    Thanks
    regards
    ramki

  • ABAP Query: FI Tables - BSEG and BKPF

    Dear All,
    I have tried to use SAPQuery - SQ01 to join 2 SAP tables (BSEG and BKPF) by creating an Infoset (SQ01 >> Environment >> Infosets >> Create)
    However, there is always an error message for the table join when I generate the infoset. Tables BSEG and BKPF are joined together by conditions BSEG-BELNR & BKPF-BELNR; BKPF-BURKS & BKPF-BURKS; BSEG-GJAHR and BKPF-GJHAR.
    The error message prompted is, "You cannot use comparisons with column references in pool and cluster". Is the message trying to say that BELNR, NURKS and GJAHR are column references in pool and cluster, thats why we can't join the tables?
    The purpose of the infoset is to extract accounting documents. I will need to extract accounting doc data from DEV, QA and Prodcution Server.  If I use SAP QuickViewer, everytime I go to a differenct server I will need to create the QuickViewer in the system before I can use it. But if i use SAP Query, i will need to create once and transport the SAP Query to another server.
    Kindly advise if there is a way I can extract accountng document by using SAP Query?
    Million Thanks in Advance.

    Hi Mark,
    I appreciate your response.
    Im tyring to extract information for open GL items. Thus the relevant tables would be BSIS. But I find that  some fields such as Purchase Order Number; Purchase Order Line Item, Asset No.,Asset Sub-No which Im interested in do not exist in BSIS. But these fields can be found in Table BSEG?
    If I have to link BSEG and BKPF, how should i go about doing it?
    Kindly advise.
    Thanks in Advance!

Maybe you are looking for

  • Error while migrating reports from one instance to another(no torch seen)

    Hi, I am facing this problem when I am trying to migrate reports from UAT to Production. After migration when I try to run the report from Discoverer plus, I cannot see the torch symbol which is general if we have any parameters for that report. So,

  • Jabber Client chat box input Chinese

    Hi all,      I'm facing a problem with my Jabber client for Windows 8.1, the problem is that I can not input chinese in my chat box, but can use in other field like search or change Nick name.      I have try to reinstall the Jabber client, or upgrad

  • BI certication ????????????

    Hi friends Im undergoing a training program in SAP Education ,Bangalore for the certification of SAP BI 7,0,,,im confident that i can clear my certification ,,,my doubt is im from Data warehousing INFORMATICA ),,if i clear the certification will i be

  • Package/Class/Function Problem

    From the Getting Started Lessons in Flex Builder 2, one thing I am trying to learn (but failing) is how to use the TimerEvent class. The sample uses the following code: package import flash.display.Sprite; import flash.events.TimerEvent import flash.

  • Please help!! restoring canvas and timeline view

    I accidentally exited the timeline view which also closed the canvas view. any ideas on how to recover them? I've tried everything!! please help! Thanks!