BSEG table entry download

we want to download BSEG table for one year, but it is huge, how can we slice the data, I can't find the period selection
and we have huge document  number ranges (over 200 number range for one company code)

Hi,
You can divide the data based on other criterias like Document Type, Posting Key. Depending on the line items you can go for the multiple selection of parameter values.
Regards,
Amit

Similar Messages

  • BSEG table contents download

    Hi,
    My requirement is to download the contents of the BSEG table for a given company code, account type. We have huge data in BSEG table and when I tried to use SE16 for just one month, it is getting timed out. Is there any way to acheive this? Like executing in background or something. It is OK if it is downloaded to application server.
    Thanks in advance.
    Kishore

    One way to do this is to use you date selection criteria and select data from BKPF first. There are indexes for posting date and document date. So that will go releatively quickly. Then use the document numbers and other keyfields to go directly to BSEG to get the data.
    I had a similar requirement a couple of years ago and this is how I did it.
    You can download to either application or presentation server. It's up to you.
    Rob

  • Html error while downloading table entries to Excel.

    Hi,
    I am getting an error while downloading table entries from webdynpro to excel. After some entries below error script comes and  this is not comming all the times.
    Is this because of large size?Can anyone please suggest me on this?
    <u>Here is the dump:</u>
    [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>                                   
    <head>                                   
         <title>Error Report</title>                              
    <style>                                   
    td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}                                   
    A:link                                    
    A:visited                                    
    A:active                                    
    </style>                                   
    </head>                                   
    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">                                   
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">                                   
    <tr bgcolor="#FFFFFF">     
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  500   Internal Server Error</b></font></td>     
    </tr>     
    <tr bgcolor="#3F73A3">     
        <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>     
        <td height="23"><img width=1 height=1 border=0 alt=""></td>     
        <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/6.40 </b></font></td>     
    </tr>     
    <tr bgcolor="#9DCDFD">     
        <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>     
    </tr>     
    </table>     
    <br><br><br><br><br><br>     
    <p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  Application error occurs during processing the request.</b></font></p>     
    <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table><tr><td valign="top"><b> Details:</b></td><td valign="top"><PRE><pre>com.sap.engine.services.servlets_jsp.server.exceptions.WebIllegalStateException: The stream has already been committed.     
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:792)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:780)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:768)
         at com.sap.tc.webdynpro.serverimpl.core.url.WebDynproExchangeHandler.responseCachedWebResource(WebDynproExchangeHandler.java:98)
         at com.sap.tc.webdynpro.serverimpl.core.url.WebDynproExchangeHandler.doExchange(WebDynproExchangeHandler.java:189)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doExchangeProcessing(DispatcherServlet.java:164)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:119)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    </pre></PRE></font></td></tr></table></font></p>     
    </body>     
    </html>[/code]
    Thanks,
    Sanjeev

    Hallo Sanjeev,
    How do you exactly "download the table entries from Web Dynpro to Excel?"
    I wrote a new <b>Wiki Code Tutorial </b>which demonstrates how to download an Excel file from a Web Dynpro <i>Table </i>UI element <b>on-demand</b>. In this scenario the resource gets re-created on every request. The solution is based on re-initializing the context with a new  0-byte resource object within the calculated context attribute getter method.
    See <a href="https://wiki.sdn.sap.com/wiki/display/Snippets/ExportingTableDatainWebDynproJava-SAPNetWeaver04s">Exporting Table Data in Web Dynpro Java - SAP NetWeaver 04s</a>
    Regards, Bertram

  • I am using GUI_DOWNLOAD FM to download my internal table entries into .xls

    Hi
    I am using GUI_DOWNLOAD FM to download my internal table entries into .xls file. but it's not download total records in final table.
    in debugging it showing total records.
    exporting:
    filename
    filetype
    field-suprater
    header
    tables
    data_tab
    fieldnames
    plz help me.
    thanks
    Sankar

    Hi
    Use as below:
    CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
    EXPORTING
    file_name = p_file " path offile where u need to download
    CREATE_PIVOT = 0
    DATA_SHEET_NAME = ' '
    PIVOT_SHEET_NAME = ' '
    PASSWORD = ' '
    PASSWORD_OPTION = 0
    TABLES
    PIVOT_FIELD_TAB =
    data_tab = int_data "internal table with data
    fieldnames = int_head "internal table with header
    EXCEPTIONS
    file_not_exist = 1
    filename_expected = 2
    communication_error = 3
    ole_object_method_error = 4
    ole_object_property_error = 5
    invalid_filename = 6
    invalid_pivot_fields = 7
    download_problem = 8
    OTHERS = 9
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Sreeram

  • Bseg Table Issue

    Hi,
    Below is my code, it taking much time to get the data from BSEG table and even after executing for long time it not populating the data into internal table. If i pass single account in selection screen, it is displaying the data.
    Please help me out.
      SELECT hkont lkorr FROM t030hb INTO CORRESPONDING FIELDS OF
                          TABLE gt_tr_t030hb
                          WHERE ktopl = 'ZCOA'
                          AND   bwber = 'TR'
                          and hkont in so_hkont.
      IF gp_pprct IS INITIAL.
      loop at gt_tr_t030hb.
        SELECT hkont prctr bewar dmbe2 FROM bseg INTO CORRESPONDING
                           FIELDS OF table gt_hkont for all entries
                           in gt_tr_t030hb
                           WHERE bukrs IN so_bukrs
                           AND prctr IN so_prctr
                           AND saknr = gt_tr_t030hb-hkont
                           AND vbund IN so_vbund
                           and gjahr in so_gjahr
                           and xauto = 'X'.
    Thanks,
    Pavan.
    Message was edited by: Pavan Panduru

    Hi
    Try to select the items from BSIS/BSAS:
    - One solution can be:
    TABLES: BSIS.
    DATA:  GT_TR_T030HB LIKE STANDARD TABLE OF  T030HB.
    SELECT-OPTIONS: SO_BUKRS FOR BSIS-BUKRS,
                    SO_HKONT FOR BSIS-HKONT,
                    SO_GJAHR FOR BSIS-GJAHR,
                    SO_PRCTR FOR BSIS-PRCTR,
                    SO_VBUND FOR BSIS-VBUND.
    DATA: BEGIN OF GT_HKONT OCCURS 0,
            BUKRS LIKE BSIS-BUKRS,
            HKONT LIKE BSIS-HKONT,
            GJAHR LIKE BSIS-GJAHR,
            BELNR LIKE BSIS-BELNR,
            BUZEI LIKE BSIS-BUZEI,
            PRCTR LIKE BSIS-PRCTR,
            BEWAR LIKE BSIS-BEWAR,
            DMBE2 LIKE BSIS-DMBE2,
          END OF GT_HKONT.
    DATA: XAUTO.
    SELECT * FROM T030HB INTO TABLE GT_TR_T030HB
                        WHERE HKONT IN SO_HKONT
    Open Items (BSIS)
    SELECT BUKRS HKONT GJAHR BELNR BUZEI
           PRCTR BEWAR DMBE2
           FROM BSIS INTO TABLE GT_HKONT
            FOR ALL ENTRIES IN GT_TR_T030HB
                          WHERE BUKRS IN SO_BUKRS
                            AND HKONT = GT_TR_T030HB-HKONT
                            AND GJAHR IN SO_GJAHR
                            AND PRCTR IN SO_PRCTR
                            AND VBUND IN SO_VBUND.
    Cleared items
    SELECT BUKRS HKONT GJAHR BELNR BUZEI
           PRCTR BEWAR DMBE2
           FROM BSAS APPENDING TABLE GT_HKONT
            FOR ALL ENTRIES IN GT_TR_T030HB
                          WHERE BUKRS IN SO_BUKRS
                            AND HKONT = GT_TR_T030HB-HKONT
                            AND GJAHR IN SO_GJAHR
                            AND PRCTR IN SO_PRCTR
                            AND VBUND IN SO_VBUND.
    If you need to check if the item is automatically loaded:
    LOOP AT GT_HKONT.
      SELECT SINGLE XAUTO FROM BSEG INTO XAUTO
                                    WHERE BUKRS = GT_HKONT-BUKRS
                                      AND BELNR = GT_HKONT-BELNR
                                      AND GJAHR = GT_HKONT-GJAHR
                                      AND BUZEI = GT_HKONT-BUZEI.
      IF XAUTO = SPACE.
        DELETE GT_HKONT.
      ENDIF.
    ENDLOOP.
    Other solution can be
    TABLES: BSIS.
    DATA:  GT_TR_T030HB LIKE STANDARD TABLE OF  T030HB.
    SELECT-OPTIONS: SO_BUKRS FOR BSIS-BUKRS,
                    SO_HKONT FOR BSIS-HKONT,
                    SO_GJAHR FOR BSIS-GJAHR,
                    SO_PRCTR FOR BSIS-PRCTR,
                    SO_VBUND FOR BSIS-VBUND.
    DATA: BEGIN OF T_DOCUMENT OCCURS 0,
            BUKRS LIKE BSIS-BUKRS,
            GJAHR LIKE BSIS-GJAHR,
            BELNR LIKE BSIS-BELNR,
            BUZEI LIKE BSIS-BUZEI,
          END   OF T_DOCUMENT.
    DATA: BEGIN OF GT_HKONT OCCURS 0,
            HKONT LIKE BSIS-HKONT,
            PRCTR LIKE BSIS-PRCTR,
            BEWAR LIKE BSIS-BEWAR,
            DMBE2 LIKE BSIS-DMBE2,
          END OF GT_HKONT.
    DATA: XAUTO.
    Open Items (BSIS)
    SELECT BUKRS GJAHR BELNR BUZEI
           FROM BSIS INTO TABLE T_DOCUMENT
            FOR ALL ENTRIES IN GT_TR_T030HB
                          WHERE BUKRS IN SO_BUKRS
                            AND HKONT = GT_TR_T030HB-HKONT
                            AND GJAHR IN SO_GJAHR
                            AND PRCTR IN SO_PRCTR
                            AND VBUND IN SO_VBUND.
    Cleared items
    SELECT BUKRS GJAHR BELNR BUZEI
           FROM BSAS INTO TABLE T_DOCUMENT
            FOR ALL ENTRIES IN GT_TR_T030HB
                          WHERE BUKRS IN SO_BUKRS
                            AND HKONT = GT_TR_T030HB-HKONT
                            AND GJAHR IN SO_GJAHR
                            AND PRCTR IN SO_PRCTR
                            AND VBUND IN SO_VBUND.
    Auto items
    SELECT HKONT PRCTR BEWAR DMBE2
           FROM BSEG INTO TABLE GT_HKONT
            FOR ALL ENTRIES IN T_DOCUMENT
                          WHERE BUKRS = T_DOCUMENT-BUKRS
                            AND BELNR = T_DOCUMENT-BELNR
                            AND GJAHR = T_DOCUMENT-GJAHR
                            AND BUZEI = T_DOCUMENT-BUZEI
                            AND XAUTO = 'X'.
    Try
    Max

  • Down load from BSEG Table

    Hi
    Friends
    we have around 50 millions records in the Bseg table.
    i need to down load only 5 fields .
    one our friend suggested using ABAP code we can down load.
    But i would like to know from you is there any Transcation code to down load only 4 or 5 fields from bseg fro all the company codes since we have around 50 million Records inthe table.
    Thanks in advance.

    Hi Ravindra,
    Good afternoon and greetings,
    In SE16 itself you can down only the selected field by choosing the User Parameters...Alternatively, you can create a query using SQVI and select only those fields for displaying and downloading.
    If you require any assistance on SQVI, please let me know.
    Points awarded is highly appreciated, if the above mentioned solution meets your requirement.
    Thanking you
    With kindest regards
    Ramesh Padmanabhan
    Consultant

  • ST05 Trace on a select query on BSEG table

    hi all,
    this is my select query on table BSEG table:
      SELECT bukrs
             belnr
             gjahr
             buzei
             KOART
             mwskz
             kostl
             lifnr
             aufnr
             werks
             ebeln
             txjcd
             projk FROM bseg
                   INTO TABLE i_bseg
                   FOR ALL ENTRIES IN i_ad_tab
                  WHERE bukrs EQ i_ad_tab-bukrs  AND
                        belnr EQ i_ad_tab-belnr  AND
                        gjahr EQ i_ad_tab-gjahr.
    when i m doing SQL trace ST05 on this query and in the detail statement showed the following query
    SELECT
      "MANDT" , "BUKRS" , "BELNR" , "GJAHR" , "PAGENO" , "TIMESTMP" ,
      "PAGELG" , "VARDATA"
    FROM
      "RFBLG"
    WHERE
      "MANDT" = ? AND  "BUKRS" = ? AND  "BELNR" = ? AND  "GJAHR" = ?
    ORDER BY
      "MANDT" , "BUKRS" , "BELNR" , "GJAHR" , "PAGENO"
    what is RFBLG table in SE11, but could not find it.
    what is RFBLG?also, the above select query giving me performance issues.. the "for all entries" clause is used as per norms...
    please suggest a solution..

    hi
    good
    The famous BSEG table is a cluster table.
    It is as was correctly stated part of the Accounting Document Segment. It is part of the Pool cluster RFBLG and lives in the package: FBAS (Financial accounting 'Basis').
    You can't read a cluster table exactly the way you read a database (old speak, transparent table).
    You can use a program to read called RFPPWF05
    Note 435694: Display BSEG item by calling FB09D (modified FB09)
    Other possiblity: Other possibility: CALL DIALOG 'RF_ZEILEN_ANZEIGE', but since this is a dialog I don't think this would work.
    In any event go to FBAS Package (development class) to see your business objects, class library and functions.
    you must use keyfields bukrs , belnr, gjahr
    (so 1st select table bkpf) to select bseg.
    or use secondary index tables:
    bsas, bsis, bsik, bsak, bsid, bsad
    Regards,
    Raj.

  • Help on BSEG table

    Dear all,
    Can anyone plz tell me when does KUNNR of 2nd line item of a particular document number (BELNR) get updated.Anywas,can the KUNNR from 1st line item be moved to the 2nd line item of that BELNR.
    What will I have to do for this?.Basically i will have to modify BSEG table.But as many tables will be logically connected,how can this be done?
    Edited by: Rahul Bhat on Jan 28, 2008 10:09 AM

    Hi,
    The KUNNR does not get updated for 2nd and subsequent line items of an accounting document no.
    The reason being, in an accounting doc, since the 1st line is a debit entry it always belong to the customer code. Hence fo any acc. doc, the KUNNR will be available for 1st line item. Whereas the subsequent line items are credit items and will get recorded against a G/L account and not against a customer code.
    This is designed as per std SAP. Also FYI, since BSEG is a cluster table and any changes to an acc. doc gets recorded in this table, its not advisable to change this std SAP table. It will lead to data in consistency in your system and lead to accounting errors during reporting.
    Regards,
    JLN

  • BSEG Table

    Hi,
    I have an existing code that says
    select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr
                 hkont werks prctr projk fkber
            from bseg
            into table t_bseg
            for all entries in t_jrnl_chg_ptr
            where bukrs  = t_jrnl_chg_ptr-bukrs
              and belnr  = t_jrnl_chg_ptr-belnr
              and gjahr  = t_jrnl_chg_ptr-gjahr
              and buzei  = t_jrnl_chg_ptr-buzei
              and vorgn  <> c_recur_doc.          
    In this, sometimes FKBER might be empty, in that case the functional consultant asked me to take fkber_long whenver fkber is empty.
    Since it is BSEG table, I need some tips on performance based how to further check and achieve fkber_long instead of FKBER.

    Hi Kris,
    U have an existing code that says
    select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr
    hkont werks prctr projk fkber
    from bseg
    into table t_bseg
    for all entries in t_jrnl_chg_ptr
    where bukrs = t_jrnl_chg_ptr-bukrs
    and belnr = t_jrnl_chg_ptr-belnr
    and gjahr = t_jrnl_chg_ptr-gjahr
    and buzei = t_jrnl_chg_ptr-buzei
    and vorgn c_recur_doc. 
    in the internal table decleration declare FKBER as type FKBER_LONG as it is of 16 charecters.
    now write the following select queries:
    select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr
    hkont werks prctr projk fkber
    from bseg
    into table t_bseg
    for all entries in t_jrnl_chg_ptr
    where bukrs = t_jrnl_chg_ptr-bukrs
    and belnr = t_jrnl_chg_ptr-belnr
    and gjahr = t_jrnl_chg_ptr-gjahr
    and buzei = t_jrnl_chg_ptr-buzei
    and vorgn c_recur_doc
    and fkber ne space.
    select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr
    hkont werks prctr projk fkber
    from bseg
    appending table t_bseg
    for all entries in t_jrnl_chg_ptr
    where bukrs = t_jrnl_chg_ptr-bukrs
    and belnr = t_jrnl_chg_ptr-belnr
    and gjahr = t_jrnl_chg_ptr-gjahr
    and buzei = t_jrnl_chg_ptr-buzei
    and vorgn c_recur_doc
    and fkber eq space
    and fkber_long ne space.
    The above coding might solve u'r problem.
    Regards,
    Thabitha.

  • BSEG Table maintenance

    Dear SD Gurus,
    We are not able to see entries related to Material and material quantity in BSEG table. I am not sure why these entries are not coming in this table.
    As far as my knowledge goes BSEG table is a cluster table and an important part of the Accounting Document Segment.
    It comes in picture whenever there is a movement type of material such as 601 is involved i.e. at the time of PGI or PGR, i have my doubts over  u201Chow it is skipping data insertion in this table?u201D
    Could anybody let me know from where and how BSEG table fatched material and its quantity.
    Thanks in advance. Suitable  Text Removed
    Regards
    Vinod Kumar
    Edited by: Lakshmipathi on Jan 28, 2011 9:16 PM
    Dont offer anything

    Its happening after transporting some requests in Dec 2010
    In that case, you need to take the list of those requests and check which particular request relates to changes in SD table that parallely affects BSEG table.
    You can also check from document flow for that  Accounting document whether values are posted correctly in FI.  As a random test, take a billing document for which an Accounting document is generated and check in FB03 how many line items are flowing.  Next go to SE16 / BSEG and check whether you could see all those line items in this table.
    Meanwhile, you can also check from those transport requests what changes were made in which SD tables.
    Perhaps, you can also have a look at the following notes which may help you.
    1)  Note 10083 - BSIS missing for G/L account
    2)  Note 401646 - New DataSources for Line Items from FI-GL, FI-AP, FI-AR
    3)  Note 416076 - SELECT FOR UPDATE does not lock cluster tables
    4)  Note 608340 - SAP Cons.: No quantity update in subsequent posting from FI
    5)  Note 677630 - Correcting functional areas in FI documents
    6)  Note 685688 - Release of "old" invoices as of SAP R/3 Enterprise
    7)  Note 1497911 - F-26: All items not selected
    In case, you could find out the root cause, please update the forum without fail which will be very helpful to all.
    thanks
    G. Lakshmipathi

  • BSEG Table update

    Hi All,
    My requirement is like that, Whenever I do the posting I want to update the BSEG Table field xref3.Please suggest is there any BTE exist for this.
    Points are surely awarded.
    Thanks
    Garg

    Hi All,
    I have found the following BTE to update the xref3 field of BSEG table with LIFNR.
    Even OPEN_FI_PERFORM_00001020_E...Even I have implement that BTE in my copy function module with the folowing code
    DATA : V_LIFNR LIKE BSEG-LIFNR.
      READ TABLE T_BSEG WITH KEY KOART = 'K'.
      IF SY-SUBRC = 0.
        V_LIFNR = T_BSEG-LIFNR.
        LOOP AT T_BSEG.
          T_BSEG-XREF3 = V_LIFNR.
          MODIFY T_BSEG.
        ENDLOOP.
      ENDIF.
    Whenever i simulate the posting
    But problem exist in the BTE OPEN_FI_PERFORM_00001020_E
    Becoz in this BTE code is like that in line, first the T_BSEG table entries get saved with the old entries in table  L_BSEG[]
      EXPORT T_BSEG T_BKPF TO MEMORY ID MEMID.
       L_BSEG[]  = T_BSEG[].
    After that the code written in my FM execute and update the BSEG value successfully..
    And the most confusing code thing again the T_BSEG  table get again updated with the old entries of L_BSEG[]* 
    T_BSEG[]  = L_BSEG[].
    So the table does n't get updated with the required entries.
    Your suggestion is valuable.Points are surely awarded
    Thanks
    Garg

  • BSEG table LIS

    Dear,
    Can we create LIS for BSEG table?
    Anuj Modi
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Jun 17, 2011 9:38 AM

    Hi,
    check this MBLNR is in CHVW
    CHVW
    WERKS......Plant
    MBLNR......Number of Material Document
    MJAHR.....Material Document Year
    AUFNR......Order Number
    VBELN......Billing Document
    EBELP........Item Number of Purchasing Document
    and BSEG
    WERKS......Plant
    BELNR.........Accounting Document Number
    GJAHR............Fiscal Year
    AUFNR......Order Number
    VBELN......Billing Document
    EBELP........Item Number of Purchasing Document
    Use all the above fields in where condition in FOR ALL ENTRIES statement.
    use FOR ALL ENTRIES only, it is better than INNER JOIN
    raam

  • Reading data from BSEG table with Non-key fields in where clause

    Hi All,
        I have to read data from BSEG table based on WBS element field (PROJK). As I'm not passing key fields to WHERE clause system couldnt run the select statement. Since BSEG is a cluster table I cant even create secondary index on PROJK field.
       Could you please tell me, how to improve its performance.
    Regards
    Jaker.

    SELECT bukrs
                 belnr
                 gjahr
                 shkzg
                 dmbtr
                 hkont
                 lifnr
                 matnr
                 werks
                 menge
                 meins
                 ebeln
            FROM bseg
            INTO TABLE it_bseg
            PACKAGE SIZE 10
            FOR ALL ENTRIES IN it_final
            WHERE  bukrs EQ it_final-bukrs
               AND belnr EQ it_final-belnr
               AND gjahr EQ it_final-gjahr
               AND buzei EQ it_final-buzei
               AND hkont EQ it_final-hkont
               AND werks IN s_werks.
    By using package and fetch from BSEG table. gathering all other information to a final internal table.This will reduce the hit to database.And also try to put that data in hashed internal table which is it_bseg....then definetly improve the performance.
    <REMOVED BY MODERATOR>
    Dara.
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 12:47 PM

  • Update of segment field in bseg table

    hi
    can any explain me about update of segment field in bseg table
    segment is mentained in profit center master record ,and i want to generate trial balance segment wise and profit center wise
    please suggest me steps to do in a new gl senario
    thanks
    cb

    Hi,
    You need to activate the assign scenarion FIN_SEGM to your ledgers in the below path:-
    SPRO> Financial Accounting (New) > Financial Accounting Global Settings (New) > Ledgers > Ledger > Assign Scenarios and Customer Fields to Ledgers
    Then you need to make document splitting characteristics based on Segment field in the below path:-
    SPRO> Financial Accounting (New) > General Ledger Accounting (New) > Business Transactions > Document Splitting > Define Document Splitting Characteristics for General Ledger Accounting
    Make the below entry:-
    Field = SEGMENT
    Zero Balance = Selected
    Partner Field = PSEGMENT
    Mandatory Field = Selected
    Then you will be able to generate the balance sheet segment wise in report S_PL0_86000028 "Financial Statement: Actual/Actual Comparison". (Similar steps you can use for profir center wise balance sheet in addition.)
    Regards,
    Gaurav

  • Amount getting rounded to hundreds in BSEG table

    Hi,
    I am passing an entry in TWD currency for 1000, but in BSEG table the field WRBTR gets updated as 10.
    Any idea why this is happening so?
    My conversion rate and exchange rate factors for this currency is 1:1 only
    Regards
    Malathi

    Hi
    The decimal notation is correct in su3 under default tab. For other currency my value is getting displayed with comma's and decimals.
    Also the amount entered is only 1000 and not 10. For all the entries we have passed in TWD, BSEG-WRBTR is getting rounded to hundred's
    Let me know on why this is happening
    Regards
    Malathi

Maybe you are looking for

  • My generation six nano's "on" button doesn't work.

    My generation six nano's "on" button doesn't work. I plug in the iPod to the computer and the screen comes on, but that's the only way the screen will turn on. Is there anything I can do to fix this?

  • Document on Pick & Pack

    Hi, I've looked through various questions on Pick and Pack in the forum and have gotten some idea how it works. However, I would like more details on the feature and there seems to be a document in servers that requires a login userid and password. O

  • NEF files unusable in Mavericks

    Since upgrading to Mavericks, all my NEF files are unusable. In both preview and Grafic converter the first open all pink, then the change to red block by block, and are distorted. What gives?

  • Adobe photoshop elemets 10

    Hi, I accindently uninstalled my adobe photoshop elemts 10 from my laptop, it came already installed on my Sony laptop, is there anyway of re-instaling it without paying , Thanks

  • Has anyone else came across this

    Now i apologise if this has been mentioned somewhere else.............Obviously there has been many complaints regarding the speed of the 3GS with the last ios update. Many people have made suggestions on restarting, resetting, backing up etc and to