<?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 Re: table s034 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254641#M1015601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi krupa, use the logic below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types:&lt;/P&gt;&lt;P&gt;      begin of x_s034,&lt;/P&gt;&lt;P&gt;        CHARG type CHARG_D,&lt;/P&gt;&lt;P&gt;        CMZUBB type MZUBB,&lt;/P&gt;&lt;P&gt;      end of x_s034.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;i_s034  type standard table of x_s034.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select CHARG&lt;/P&gt;&lt;P&gt;          CMZUBB&lt;/P&gt;&lt;P&gt;into table i_s034&lt;/P&gt;&lt;P&gt;from s034&lt;/P&gt;&lt;P&gt;where sptag &amp;gt; m_budat&lt;/P&gt;&lt;P&gt;    and werks in ('2502','1001','2002')&lt;/P&gt;&lt;P&gt;    and charg in bwtar&lt;/P&gt;&lt;P&gt;    and charg NOT in ('S','X')&lt;/P&gt;&lt;P&gt;   and matnr in matnr&lt;/P&gt;&lt;P&gt;   and ( lgort = 'FG01' or ( lgort = 'FG02' AND werks&lt;/P&gt;&lt;P&gt;         = '2002' ) ).&lt;/P&gt;&lt;P&gt;I think it will work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2008 09:46:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-07T09:46:58Z</dc:date>
    <item>
      <title>table s034</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254635#M1015595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i fetch data from table s034 but it take more time so have any soulation ? [already use pri.key in query then also take more time]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;query is:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select cmzubb cmagbb from s034&lt;/P&gt;&lt;P&gt;      into corresponding fields of table&lt;/P&gt;&lt;P&gt;     t_s031 where sptag &amp;gt; m_budat&lt;/P&gt;&lt;P&gt;       and werks in ('2502','1001','2002')&lt;/P&gt;&lt;P&gt;       and charg in bwtar&lt;/P&gt;&lt;P&gt;       and charg NOT in ('S','X')&lt;/P&gt;&lt;P&gt;       and matnr in matnr&lt;/P&gt;&lt;P&gt;       and ( lgort = 'FG01' or ( lgort = 'FG02' AND werks   &lt;/P&gt;&lt;P&gt;= '2002'  ) ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 08:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254635#M1015595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T08:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: table s034</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254636#M1015596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for  table t_s031 change the declaration to..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_s031 OCCURS 0,&lt;/P&gt;&lt;P&gt;         cmzubb  type  s034-cmzubb,&lt;/P&gt;&lt;P&gt;         cmagbb type  s034-cmzubb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      END OF t_s031 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the select query...&lt;/P&gt;&lt;P&gt;remove  &lt;STRONG&gt;corresponding fields of&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That ll improve pervformance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 08:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254636#M1015596</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-08-07T08:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: table s034</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254637#M1015597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i remove corresponding fields  then it dump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 09:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254637#M1015597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T09:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: table s034</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254638#M1015598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;DATA: BEGIN OF t_s031 OCCURS 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cmzubb type s034-cmzubb,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cmagbb type s034-cmagbb,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;END OF t_s031 .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hey in the previous post i have given the second declaration wrongly...declare the internal table like this......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 09:05:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254638#M1015598</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-08-07T09:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: table s034</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254639#M1015599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges: r_werks for t001w-werks,&lt;/P&gt;&lt;P&gt;        r_logrt  for mard-lgort .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_werks-low = 2502.&lt;/P&gt;&lt;P&gt;r_werks-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_werks-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_werks-low = 2502.&lt;/P&gt;&lt;P&gt;append r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_werks-low = 2502.&lt;/P&gt;&lt;P&gt;append r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_werks-low = 2502.&lt;/P&gt;&lt;P&gt;append r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_lgort-low = 'FG02'.&lt;/P&gt;&lt;P&gt;r_lgort-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_lgort-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append r_lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_lgort-low = '2002'.&lt;/P&gt;&lt;P&gt;append r_lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt; cmzubb &lt;/P&gt;&lt;P&gt; cmagbb&lt;/P&gt;&lt;P&gt; from s034&lt;/P&gt;&lt;P&gt;into corresponding fields of table&lt;/P&gt;&lt;P&gt;t_s031 where sptag gt m_budat&lt;/P&gt;&lt;P&gt;and werks in r_werks&lt;/P&gt;&lt;P&gt;and charg in bwtar&lt;/P&gt;&lt;P&gt;and charg NOT in ('S','X')&lt;/P&gt;&lt;P&gt;and matnr in matnr&lt;/P&gt;&lt;P&gt;and  lgort = 'FG01' &lt;/P&gt;&lt;P&gt;or logrt  in r_lgort..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 09:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254639#M1015599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T09:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: table s034</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254640#M1015600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your query is OK. Simply I would recommend you Create new index on table S034 with all these parameters which you have set in query condition. &lt;/P&gt;&lt;P&gt;Fields for Index Creation.&lt;/P&gt;&lt;P&gt;werks&lt;/P&gt;&lt;P&gt;charg&lt;/P&gt;&lt;P&gt;matnr&lt;/P&gt;&lt;P&gt;lgort &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also  change ur query as per below. I also have doubt on bold condition(Highlighted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select cmzubb cmagbb from s034&lt;/P&gt;&lt;P&gt;into corresponding fields of table t_s031 &lt;/P&gt;&lt;P&gt;where sptag &amp;gt; m_budat&lt;/P&gt;&lt;P&gt;and werks in ('2502','1001','2002')&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and charg in bwtar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and charg NOT in ('S','X')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and matnr in matnr&lt;/P&gt;&lt;P&gt;and ( lgort eq 'FG01' or ( lgort eq 'FG02' AND werks eq '2002' ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 09:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254640#M1015600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T09:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: table s034</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254641#M1015601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi krupa, use the logic below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types:&lt;/P&gt;&lt;P&gt;      begin of x_s034,&lt;/P&gt;&lt;P&gt;        CHARG type CHARG_D,&lt;/P&gt;&lt;P&gt;        CMZUBB type MZUBB,&lt;/P&gt;&lt;P&gt;      end of x_s034.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;i_s034  type standard table of x_s034.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select CHARG&lt;/P&gt;&lt;P&gt;          CMZUBB&lt;/P&gt;&lt;P&gt;into table i_s034&lt;/P&gt;&lt;P&gt;from s034&lt;/P&gt;&lt;P&gt;where sptag &amp;gt; m_budat&lt;/P&gt;&lt;P&gt;    and werks in ('2502','1001','2002')&lt;/P&gt;&lt;P&gt;    and charg in bwtar&lt;/P&gt;&lt;P&gt;    and charg NOT in ('S','X')&lt;/P&gt;&lt;P&gt;   and matnr in matnr&lt;/P&gt;&lt;P&gt;   and ( lgort = 'FG01' or ( lgort = 'FG02' AND werks&lt;/P&gt;&lt;P&gt;         = '2002' ) ).&lt;/P&gt;&lt;P&gt;I think it will work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 09:46:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254641#M1015601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T09:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: table s034</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254642#M1015602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i do like :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TY_S030,&lt;/P&gt;&lt;P&gt;cmzubb TYPE s034-cmzubb,&lt;/P&gt;&lt;P&gt;cmagbb TYPE s034-cmagbb,&lt;/P&gt;&lt;P&gt;END OF TY_S030.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_S030 TYPE TABLE OF TY_S030 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select cmzubb cmagbb from s034&lt;/P&gt;&lt;P&gt;       into table T_S030&lt;/P&gt;&lt;P&gt;       where matnr in matnr&lt;/P&gt;&lt;P&gt;       and werks in ('2502','1001','2002')&lt;/P&gt;&lt;P&gt;       and charg in bwtar&lt;/P&gt;&lt;P&gt;       and charg NOT in ('S','X')&lt;/P&gt;&lt;P&gt;       and sptag &amp;gt; m_budat&lt;/P&gt;&lt;P&gt;       and ( lgort = 'FG01' or ( lgort = 'FG02' AND werks = '2002'  ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it take time same not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254642#M1015602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: table s034</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254643#M1015603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya it will improve performance but not solve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-s034/m-p/4254643#M1015603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T10:45:42Z</dc:date>
    </item>
  </channel>
</rss>

