<?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: please in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658787#M881326</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;First of all one suggestion to you dont keep select in the loop which causes effect to performance ok...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;coming to your problem....&lt;/P&gt;&lt;P&gt;first find in the declaration statements ok&lt;/P&gt;&lt;P&gt;i will give u sample code example ok...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_ekko type standard table of ekko,&lt;/P&gt;&lt;P&gt;        wa_ekko type ekko,&lt;/P&gt;&lt;P&gt;        i_ekkn type standard table of ekkn,&lt;/P&gt;&lt;P&gt;        wa_ekkn type ekkn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_ekko into wa_ekko.&lt;/P&gt;&lt;P&gt;SELECT * FROM ekkn INTO wa_ekkn WHERE&lt;/P&gt;&lt;P&gt;ebeln EQ wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;APPEND wa_ekkn TO i_ekkn.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in performance point of view try to code select statement above the loop&lt;/P&gt;&lt;P&gt;SELECT  * FROM ekkn INTO table i_ekkn.&lt;/P&gt;&lt;P&gt;loop at i_ekko into wa_ekko.&lt;/P&gt;&lt;P&gt;read table i_ekkn with key ebeln EQ wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;and perform your manipulations like if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;then do this like that finally move data into some internal table ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward me if helpful...&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Brahma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 10:08:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T10:08:33Z</dc:date>
    <item>
      <title>please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658780#M881319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;LOOP AT i_ekko INTO wa_i_ekko.&lt;/P&gt;&lt;P&gt;    SELECT * FROM ekkn INTO wa_i_ekkn WHERE&lt;/P&gt;&lt;P&gt;                  ebeln     EQ     wa_i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;      APPEND wa_i_ekkn TO i_ekkn.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;I got error is The work area "WA_I_EKKN" is not long enough . .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 09:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658780#M881319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T09:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658781#M881320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;declaration of wa_i_ekkn must be:&lt;/P&gt;&lt;P&gt;data: wa_i_ekkn like ekkn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_ekko INTO wa_i_ekko.&lt;/P&gt;&lt;P&gt;SELECT * FROM ekkn INTO wa_i_ekkn WHERE&lt;/P&gt;&lt;P&gt;ebeln EQ wa_i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;APPEND wa_i_ekkn TO i_ekkn.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points&lt;/P&gt;&lt;P&gt;james lising&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 09:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658781#M881320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T09:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658782#M881321</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;do like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA:wa_i_ekkn LIKE LINE OF I_EKKN.
LOOP AT i_ekko INTO wa_i_ekko.
SELECT * FROM ekkn INTO CORRESPONDING FIELDS OF wa_i_ekkn WHERE
ebeln EQ wa_i_ekko-ebeln.
APPEND wa_i_ekkn TO i_ekkn.
ENDSELECT.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 09:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658782#M881321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T09:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658783#M881322</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;Do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_ekko INTO wa_i_ekko.&lt;/P&gt;&lt;P&gt;SELECT * FROM ekkn WHERE&lt;/P&gt;&lt;P&gt;ebeln EQ wa_i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;APPEND ekkn TO i_ekkn.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but try to remove select endselect and select within loop becoz its performance wise slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 09:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658783#M881322</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2008-04-09T09:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658784#M881323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi this is not the right way to select &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_ekko INTO wa_i_ekko.&lt;/P&gt;&lt;P&gt;SELECT * FROM ekkn INTO wa_i_ekkn WHERE&lt;/P&gt;&lt;P&gt;ebeln EQ wa_i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;APPEND wa_i_ekkn TO i_ekkn.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;ENDLOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you didnot mentioned how you have declarred wa_i_ekko&lt;/P&gt;&lt;P&gt;and also use select single * instead select * &lt;/P&gt;&lt;P&gt;because you are using select * , it will think that w_i_ekkn is an internal table. but actually it is a structure&lt;/P&gt;&lt;P&gt;so use select single * &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that is not the correct way to do so .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_ekko[] is not initial.&lt;/P&gt;&lt;P&gt;select * from ekkn into table  i_ekkn&lt;/P&gt;&lt;P&gt;for all entries in i_ekko&lt;/P&gt;&lt;P&gt;where ebeln eq i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658784#M881323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T10:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658785#M881324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wa_i_ekkn should be declared as the structure of EKKN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658785#M881324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T10:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658786#M881325</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;First of all u need to declare wa_i_ekko of type EKKN i.e,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : wa_i_ekko TYPE EKKN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second thing instead, of this code u can followthe below mentioned code...u can avoid select inside a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM EKKO INTO TABLE I_EKKN &lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN I_EKKO&lt;/P&gt;&lt;P&gt;WHERE EBELN = I-EKKO-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....Try this out if found Ok....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658786#M881325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T10:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658787#M881326</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;First of all one suggestion to you dont keep select in the loop which causes effect to performance ok...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;coming to your problem....&lt;/P&gt;&lt;P&gt;first find in the declaration statements ok&lt;/P&gt;&lt;P&gt;i will give u sample code example ok...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_ekko type standard table of ekko,&lt;/P&gt;&lt;P&gt;        wa_ekko type ekko,&lt;/P&gt;&lt;P&gt;        i_ekkn type standard table of ekkn,&lt;/P&gt;&lt;P&gt;        wa_ekkn type ekkn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_ekko into wa_ekko.&lt;/P&gt;&lt;P&gt;SELECT * FROM ekkn INTO wa_ekkn WHERE&lt;/P&gt;&lt;P&gt;ebeln EQ wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;APPEND wa_ekkn TO i_ekkn.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in performance point of view try to code select statement above the loop&lt;/P&gt;&lt;P&gt;SELECT  * FROM ekkn INTO table i_ekkn.&lt;/P&gt;&lt;P&gt;loop at i_ekko into wa_ekko.&lt;/P&gt;&lt;P&gt;read table i_ekkn with key ebeln EQ wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;and perform your manipulations like if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;then do this like that finally move data into some internal table ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward me if helpful...&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Brahma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658787#M881326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T10:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658788#M881327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Declare like this,&lt;/P&gt;&lt;P&gt;  data:wa_i_ekkn like ekkn occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because i thought u declared some of the fields only in wa_i_ekkn..thatsy u got this error....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u,&lt;/P&gt;&lt;P&gt;Manjula Devi.D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 14:07:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please/m-p/3658788#M881327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T14:07:30Z</dc:date>
    </item>
  </channel>
</rss>

