<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Data Retrieval  Huge database  -  Urgent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval-huge-database-urgent/m-p/1481700#M225284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;   I ave abit of a problem, I am working in the SAP FS-RI module. Financial Reinsurance. I am helping with closing and continuit testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For most of the reports I am creating things are fine, It is when I am going against the Account Header and Account Detail tables I am running into huge performance issues. Thes accounts detail table has over 200 million records and any time I try to get data I am running into a VERY LONG RUNNING TIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to reduce the pool of treaties as much as possible before going after the accounting information. I then join the account header and detail tables. I loop at my table of treaties and try to reduce the amount of data with my where and select clauses. Someone here mentioned using indexes but I am unfamillar with that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a standard table as the account posting can have many for each treaty. I will upload a sample of one of my reports. But if ANYONE has any idea's please let me know THIS IS VERY URGENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Aug 2006 15:35:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-30T15:35:30Z</dc:date>
    <item>
      <title>Data Retrieval  Huge database  -  Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval-huge-database-urgent/m-p/1481700#M225284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;   I ave abit of a problem, I am working in the SAP FS-RI module. Financial Reinsurance. I am helping with closing and continuit testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For most of the reports I am creating things are fine, It is when I am going against the Account Header and Account Detail tables I am running into huge performance issues. Thes accounts detail table has over 200 million records and any time I try to get data I am running into a VERY LONG RUNNING TIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to reduce the pool of treaties as much as possible before going after the accounting information. I then join the account header and detail tables. I loop at my table of treaties and try to reduce the amount of data with my where and select clauses. Someone here mentioned using indexes but I am unfamillar with that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a standard table as the account posting can have many for each treaty. I will upload a sample of one of my reports. But if ANYONE has any idea's please let me know THIS IS VERY URGENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 15:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval-huge-database-urgent/m-p/1481700#M225284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T15:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Data Retrieval  Huge database  -  Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval-huge-database-urgent/m-p/1481701#M225285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we see the select that is causing the biggest problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 15:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval-huge-database-urgent/m-p/1481701#M225285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T15:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data Retrieval  Huge database  -  Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval-huge-database-urgent/m-p/1481702#M225286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   I have stripped out most of the program NOT relating to the select, When this prg is run with the select parameters I.E. certain treaty numbers it runs fine HOWEVER they want it to run with like 8000 treaties that is when I hit the BIG PROBLEMS. hERE IS THE PROGRAM MINUS THE alv ETC ETC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; -----   T A B L E S  -----&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES: /msg/rvtg,           "Reinsurance Treaty (Master Data)&lt;/P&gt;&lt;P&gt;          /msg/rvtgbestko,     "Treaty Section Header&lt;/P&gt;&lt;P&gt;          t100,                "Messages&lt;/P&gt;&lt;P&gt;          /msg/rnodebez,       "Nodes and sheets for hierarchy: texts&lt;/P&gt;&lt;P&gt;          /msg/rgrpzu_best,    "Group-Section Assignment&lt;/P&gt;&lt;P&gt;          /msg/rearcurbes2,    "Development Patterns for the Section&lt;/P&gt;&lt;P&gt;          /mrg/grvtpr.         "Result Responsibility having validity periods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ----  I n t e r n a l  t a b l e s    -----&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:  t_out             LIKE st_out         OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;  sel_bkr FOR lv_bukrs OBLIGATORY DEFAULT '1001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN:&lt;/P&gt;&lt;P&gt;  SKIP 1.&lt;/P&gt;&lt;P&gt;  PARAMETERS:&lt;/P&gt;&lt;P&gt;  pv_excl AS CHECKBOX DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-006.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN COMMENT 22(26)  text-011.&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;  sel_trty FOR lv_ttry.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN COMMENT 22(26)  text-021.&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;  entrycd FOR lv_entry.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN COMMENT 22(26)  text-007.&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;  sel_aseg FOR lv_actseg.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF BLOCK blk2.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF BLOCK blk3 WITH FRAME TITLE text-016.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN COMMENT 22(26)  text-020.&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;  sel_fiyr FOR lv_finyr.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN COMMENT 22(26)  text-010.&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;  sel_unyr FOR lv_undyr.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN COMMENT 22(26)  text-017.&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;  sel_ocyr FOR lv_occyr.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF BLOCK blk3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE sel_aseg LINES lin.&lt;/P&gt;&lt;P&gt;    IF ( lin &amp;gt; 0  ).&lt;/P&gt;&lt;P&gt;      IF NOT sel_aseg-low CP '#P#E***'.&lt;/P&gt;&lt;P&gt;        MESSAGE e004.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      IF NOT sel_aseg-high IS INITIAL.&lt;/P&gt;&lt;P&gt;        IF NOT sel_aseg-high CP '#P#E***'.&lt;/P&gt;&lt;P&gt;          MESSAGE e004.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      IF ( lin &amp;gt; 1  ).&lt;/P&gt;&lt;P&gt;        LOOP AT sel_aseg.&lt;/P&gt;&lt;P&gt;          IF NOT sel_aseg-low CP '#P#E***'.&lt;/P&gt;&lt;P&gt;            MESSAGE e006.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; *-----  S T A R T   O F   S E L E C T I O N -----&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM gather_details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;amp;---------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;amp;      Form  gather_details&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;amp;---------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ----------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ----------------------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  FORM gather_details .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT  /msg/rvtg&lt;SUB&gt;bukrs          /msg/rvtgbestko&lt;/SUB&gt;vtgartnr  /msg/rvtgbestko&lt;SUB&gt;brchnr         /msg/rbu&lt;/SUB&gt;brchnr&lt;/P&gt;&lt;P&gt;            /msg/rvtgbest&lt;SUB&gt;fas_class  /msg/rvtgper&lt;/SUB&gt;vtgjj        /msg/rabr&lt;SUB&gt;biljj                /msg/rbu&lt;/SUB&gt;zjj&lt;/P&gt;&lt;P&gt;            /msg/rbu&lt;SUB&gt;anfjj           /msg/rvtgper&lt;/SUB&gt;status       /msg/rvtgbestko&lt;SUB&gt;/mrg/pe_status /msg/rearcur_hd&lt;/SUB&gt;/mrg/tu_status&lt;/P&gt;&lt;P&gt;            /msg/rvtgper&lt;SUB&gt;vtgnr       /msg/rvtgbestko&lt;/SUB&gt;bestnr    /msg/rvtg&lt;SUB&gt;ze_vtgnr             /msg/rbu&lt;/SUB&gt;buconr&lt;/P&gt;&lt;P&gt;            /msg/rabr&lt;SUB&gt;schaekz        /msg/rabr&lt;/SUB&gt;ow_whgnr        /msg/rbu&lt;SUB&gt;ow_betr               /msg/rvtg&lt;/SUB&gt;vtgartgrp&lt;/P&gt;&lt;P&gt;            /msg/rvtg~vtgtypnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     INTO (t_out-bukrs,     t_out-vtgartnr,       t_out-brchnr,         t_out-brchnr_post,&lt;/P&gt;&lt;P&gt;           t_out-fas_class, t_out-vtgjj,          t_out-biljj,          t_out-zjj,      t_out-anfjj,&lt;/P&gt;&lt;P&gt;           t_out-status,    t_out-/mrg/pe_status, t_out-/mrg/tu_status, t_out-vtgnr,    t_out-bestnr,&lt;/P&gt;&lt;P&gt;           t_out-ze_vtgnr,  t_out-buconr,         t_out-schaekz,        t_out-ow_whgnr, t_out-ow_betr,&lt;/P&gt;&lt;P&gt;           t_out-vtgartgrp, t_out-vtgtypnr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     FROM             /msg/rvtg                          AS /msg/rvtg&lt;/P&gt;&lt;P&gt;           INNER JOIN /msg/rvtgbestko                    AS /msg/rvtgbestko&lt;/P&gt;&lt;P&gt;                   ON /msg/rvtg&lt;SUB&gt;vtgnr                     = /msg/rvtgbestko&lt;/SUB&gt;vtgnr&lt;/P&gt;&lt;P&gt;           INNER JOIN /msg/rvtgper                       AS /msg/rvtgper&lt;/P&gt;&lt;P&gt;                   ON /msg/rvtgper&lt;SUB&gt;vtgnr                  = /msg/rvtg&lt;/SUB&gt;vtgnr&lt;/P&gt;&lt;P&gt;           INNER JOIN /msg/rvtgbest                      AS /msg/rvtgbest&lt;/P&gt;&lt;P&gt;                   ON /msg/rvtgbest&lt;SUB&gt;vtgnr                 = /msg/rvtgper&lt;/SUB&gt;vtgnr&lt;/P&gt;&lt;P&gt;                  AND /msg/rvtgbest&lt;SUB&gt;vtgjj                 = /msg/rvtgper&lt;/SUB&gt;vtgjj&lt;/P&gt;&lt;P&gt;           INNER JOIN /msg/rearcur_hd                    AS /msg/rearcur_hd&lt;/P&gt;&lt;P&gt;                   ON /msg/rearcur_hd&lt;SUB&gt;vtgnr               = /msg/rvtgbest&lt;/SUB&gt;vtgnr&lt;/P&gt;&lt;P&gt;                  AND /msg/rearcur_hd&lt;SUB&gt;buchztr_jj_start    = /msg/rvtgbest&lt;/SUB&gt;vtgjj&lt;/P&gt;&lt;P&gt;           INNER JOIN /msg/rabr                          AS /msg/rabr&lt;/P&gt;&lt;P&gt;                   ON /msg/rabr&lt;SUB&gt;vtgnr                     = /msg/rvtgbest&lt;/SUB&gt;vtgnr&lt;/P&gt;&lt;P&gt;           INNER JOIN /msg/rbu                           AS /msg/rbu&lt;/P&gt;&lt;P&gt;                   ON /msg/rbu&lt;SUB&gt;abrnr                      = /msg/rabr&lt;/SUB&gt;abrnr&lt;/P&gt;&lt;P&gt;                  AND /msg/rbu&lt;SUB&gt;vtgnr                      = /msg/rabr&lt;/SUB&gt;vtgnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       WHERE /msg/rvtg~vtgnr  IN sel_trty&lt;/P&gt;&lt;P&gt;         AND           buconr IN entrycd.&lt;/P&gt;&lt;P&gt;      APPEND t_out.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT t_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE vtgartgrbez FROM /msg/rvtgagrbez INTO t_out-nat_txt&lt;/P&gt;&lt;P&gt;             WHERE vtgartgr = t_out-vtgartgrp&lt;/P&gt;&lt;P&gt;               AND spras = 'EN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE vtgtypbez   FROM /msg/rvtgtypbez INTO t_out-cat_txt&lt;/P&gt;&lt;P&gt;             WHERE vtgtypnr = t_out-vtgtypnr&lt;/P&gt;&lt;P&gt;             AND spras = 'EN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE grp_nr INTO t_out-act_seg&lt;/P&gt;&lt;P&gt;             FROM /msg/rgrpzu_best&lt;/P&gt;&lt;P&gt;            WHERE vtgnr = t_out-vtgnr&lt;/P&gt;&lt;P&gt;              AND grp_nr LIKE 'PE%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE grp_nr INTO t_out-act_seg&lt;/P&gt;&lt;P&gt;             FROM /msg/rgrpzu_best&lt;/P&gt;&lt;P&gt;            WHERE vtgnr = t_out-vtgnr&lt;/P&gt;&lt;P&gt;              AND grp_nr LIKE 'PE%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE nodebez  INTO t_out-brchnr_txt&lt;/P&gt;&lt;P&gt;             FROM /msg/rnodebez&lt;/P&gt;&lt;P&gt;            WHERE  spras = 'EN'&lt;/P&gt;&lt;P&gt;              AND  hierclass   = 'COB'&lt;/P&gt;&lt;P&gt;              AND  node = t_out-brchnr..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE hrobjid INTO t_out-rr_seg&lt;/P&gt;&lt;P&gt;             FROM /mrg/grvtpr&lt;/P&gt;&lt;P&gt;            WHERE vtgnr = t_out-vtgnr&lt;/P&gt;&lt;P&gt;              AND otype = 'O'&lt;/P&gt;&lt;P&gt;              AND competence = 'T2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION '/MSG/R_S_GET_BEZ_FOR_OBJID'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          pv_otype  = 'O'&lt;/P&gt;&lt;P&gt;          pv_objid  = t_out-rr_seg&lt;/P&gt;&lt;P&gt;          pv_wegid  = 'MSG'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          pv_short  = w_hld&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          not_found = 1&lt;/P&gt;&lt;P&gt;          OTHERS    = 2.&lt;/P&gt;&lt;P&gt;      CONCATENATE t_out-rr_txt w_hld INTO t_out-rr_txt SEPARATED BY space.&lt;/P&gt;&lt;P&gt;      CLEAR w_hld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WRITE t_out-vtgnr TO w_ttyhld NO-ZERO .&lt;/P&gt;&lt;P&gt;      MOVE w_ttyhld TO t_out-vtgnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM get_petext USING t_out-/mrg/pe_status.&lt;/P&gt;&lt;P&gt;      MOVE w_petxt TO t_out-pe_txt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM get_typno USING t_out-vtgartnr.&lt;/P&gt;&lt;P&gt;      MOVE w_hld_typ TO t_out-rety_txt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY t_out.&lt;/P&gt;&lt;P&gt;      CLEAR /mrg/grvtpr-hrobjid.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 15:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval-huge-database-urgent/m-p/1481702#M225286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T15:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data Retrieval  Huge database  -  Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval-huge-database-urgent/m-p/1481703#M225287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some thoughts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you run a performance trace to identify which of these selects is causing the problem. I expect it's the first one, but a trace would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are joining 6 tables. I don't know if this would cause a problem, but many in this forum will suggest breaking it into two or more joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have these tables in our system, so I don't know their structure, but VTGNR and BUCONR the first two fields in a key of table /msg/rvtg?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the contents of sel_trty and entrycd? In particular, are either of them empty? If they are not empty do they only contain a number of single values with SIGN = 'I' and OPTION = 'EQ'? If they can contain exclusions or not equal conditions or patterns, that can slow down the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 18:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval-huge-database-urgent/m-p/1481703#M225287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T18:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Retrieval  Huge database  -  Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval-huge-database-urgent/m-p/1481704#M225288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While writing joins on multiple tables, do not user SELECT...ENDSELECT. User Select &amp;lt;field list&amp;gt; into corresponding fields of &amp;lt;internal table&amp;gt; from &amp;lt;table1&amp;gt; join &amp;lt;table2&amp;gt; on ....Just change the select statement and see the performence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 04:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval-huge-database-urgent/m-p/1481704#M225288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T04:58:21Z</dc:date>
    </item>
  </channel>
</rss>

