<?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: Appending Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653280#M1445256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even ive used with key also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Read table itab into wa index sy-tabix with key objnr = wa_pmco-objnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still gives the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Mar 2010 09:17:45 GMT</pubDate>
    <dc:creator>former_member251546</dc:creator>
    <dc:date>2010-03-17T09:17:45Z</dc:date>
    <item>
      <title>Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653268#M1445244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for helping. ive got a prob whiele assinging the value to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:  itab               TYPE TABLE OF zworksorder.
DATA: lt_pmco TYPE TABLE OF pmco,
        lt_pmco1 TYPE TABLE OF pmco.
  DATA: wa_pmco TYPE pmco.
  Data: lv_GKSTP type RIHAUFK_LIST-GKSTP.
  SELECT objnr wrttp wrt00
  wrt01
  wrt02
  wrt03
  wrt04
  wrt05
  wrt06
  wrt07
  wrt08
  wrt09
  wrt10
  wrt11
  wrt12
  wrt13
  wrt14
  wrt15
  wrt16 FROM pmco INTO CORRESPONDING FIELDS OF TABLE lt_pmco
    FOR ALL ENTRIES IN itab WHERE objnr = itab-objnr.

  LOOP AT lt_pmco INTO wa_pmco WHERE wrttp = '01'.

  COLLECT  wa_pmco INTO lt_pmco1.
  CLEAR:wa_pmco.
  ENDLOOP.

 lOOP AT LT_PMCO1 into wa_pmco.

 lv_gkstp = wa_pmco-WRT00 + wa_pmco-WRT01 + wa_pmco-WRT02 + wa_pmco-WRT03 + wa_pmco-WRT04 + wa_pmco-WRT05 + wa_pmco-WRT06 + wa_pmco-WRT07 + wa_pmco-WRT08
            + wa_pmco-WRT10 + wa_pmco-WRT11 + wa_pmco-WRT12 + wa_pmco-WRT13 + wa_pmco-WRT14 + wa_pmco-wrt15   + wa_pmco-WRT16.
itab-gkstp = lv_gkstp.                   "problem is here i need to assing the lv_gkstp to itab-gkstp
 Endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Plz let me know. how to assing the total value[lv_gkstp to itab-gkstp]&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 08:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653268#M1445244</guid>
      <dc:creator>former_member251546</dc:creator>
      <dc:date>2010-03-17T08:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653269#M1445245</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;try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-gkstp = lv_gkstp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append it_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in place of..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-gkstp = lv_gkstp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 08:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653269#M1445245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-17T08:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653270#M1445246</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;Thank you for reply.&lt;/P&gt;&lt;P&gt;Ive got a total value in lv_gkstp. Now i need to assing this lv_gkstp to Itab-gkstp.&lt;/P&gt;&lt;P&gt;then every order number will get the total planned cost one which is lv_gkstp.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data: itab table type of zworksorder.
  Data: lv_GKSTP type RIHAUFK_LIST-GKSTP.
 lOOP AT LT_PMCO1 into wa_pmco.

 lv_gkstp = wa_pmco-WRT00 + wa_pmco-WRT01 + wa_pmco-WRT02 + wa_pmco-WRT03 + wa_pmco-WRT04 + wa_pmco-WRT05 + wa_pmco-WRT06 + wa_pmco-WRT07 + wa_pmco-WRT08
            + wa_pmco-WRT10 + wa_pmco-WRT11 + wa_pmco-WRT12 + wa_pmco-WRT13 + wa_pmco-WRT14 + wa_pmco-WRT15 + wa_pmco-WRT16.

 itab-gkstp = lv_gkstp.
 
 Endloop.

while appending the value to itab. its gives the error. bcoz ive declare the itab like Data: itab table type of zworksorder. 
plz let me know how to assing the value to itab. while looping.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 08:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653270#M1445246</guid>
      <dc:creator>former_member251546</dc:creator>
      <dc:date>2010-03-17T08:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653271#M1445247</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 this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT LT_PMCO1 into wa_pmco.
  "Calculation of lv_gkstp
  read table itab into wa_itab index sy-tabix where key &amp;lt;field&amp;gt; = wa_pmco-&amp;lt;key_field&amp;gt;.  "If itab is gonna have unique entries, then read the row based on the key field
  move lv_gkstp to wa_itab-gkstp.
  lv_tabix = sy-tabix.
  modify itab from wa_itab index lv_tabix transporting gkstp.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 08:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653271#M1445247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-17T08:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653272#M1445248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How comes you´ve posted over 100 posts and did not get a single point? Keep asking, not answering? Is that ok for you? Otto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 08:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653272#M1445248</guid>
      <dc:creator>OttoGold</dc:creator>
      <dc:date>2010-03-17T08:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653273#M1445249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are modifying itab in loop of another internal table without any modify statement&lt;/P&gt;&lt;P&gt;and also the declaration for lv_gkstp is different .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how do you expect that to work ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 08:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653273#M1445249</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-03-17T08:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653274#M1445250</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;In your case, it seems the both data objects type is not same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to create your itab as&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; data: begin of itab occurs 0.
            include structure zworksorder.
           data: GKSTP type RIHAUFK_LIST-GKSTP,
                    end of itab.


**in the loop you can assign as usual
itab-gsktp = lv_GKSTP.
append itab. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 08:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653274#M1445250</guid>
      <dc:creator>praveen_hannu</dc:creator>
      <dc:date>2010-03-17T08:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653275#M1445251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA:  itab               TYPE TABLE OF zworksorder &lt;STRONG&gt;occurs 0 with header line&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;DATA: lt_pmco TYPE TABLE OF pmco,&lt;/P&gt;&lt;P&gt;        lt_pmco1 TYPE TABLE OF pmco.&lt;/P&gt;&lt;P&gt;  DATA: wa_pmco TYPE pmco.&lt;/P&gt;&lt;P&gt;  Data: lv_GKSTP type RIHAUFK_LIST-GKSTP.&lt;/P&gt;&lt;P&gt;  SELECT objnr wrttp wrt00&lt;/P&gt;&lt;P&gt;  wrt01&lt;/P&gt;&lt;P&gt;  wrt02&lt;/P&gt;&lt;P&gt;  wrt03&lt;/P&gt;&lt;P&gt;  wrt04&lt;/P&gt;&lt;P&gt;  wrt05&lt;/P&gt;&lt;P&gt;  wrt06&lt;/P&gt;&lt;P&gt;  wrt07&lt;/P&gt;&lt;P&gt;  wrt08&lt;/P&gt;&lt;P&gt;  wrt09&lt;/P&gt;&lt;P&gt;  wrt10&lt;/P&gt;&lt;P&gt;  wrt11&lt;/P&gt;&lt;P&gt;  wrt12&lt;/P&gt;&lt;P&gt;  wrt13&lt;/P&gt;&lt;P&gt;  wrt14&lt;/P&gt;&lt;P&gt;  wrt15&lt;/P&gt;&lt;P&gt;  wrt16 FROM pmco INTO CORRESPONDING FIELDS OF TABLE lt_pmco&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN itab WHERE objnr = itab-objnr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  LOOP AT lt_pmco INTO wa_pmco WHERE wrttp = '01'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  COLLECT  wa_pmco INTO lt_pmco1.&lt;/P&gt;&lt;P&gt;  CLEAR:wa_pmco.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;READ TABLE it_pmco1 into wa_pmco with sy-index.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt; lv_gkstp = wa_pmco-WRT00 + wa_pmco-WRT01 + wa_pmco-WRT02 + wa_pmco-WRT03 + wa_pmco-WRT04 + wa_pmco-WRT05 + wa_pmco-WRT06 + wa_pmco-WRT07 + wa_pmco-WRT08&lt;/P&gt;&lt;P&gt;            + wa_pmco-WRT10 + wa_pmco-WRT11 + wa_pmco-WRT12 + wa_pmco-WRT13 + wa_pmco-WRT14 + wa_pmco-wrt15   + wa_pmco-WRT16.&lt;/P&gt;&lt;P&gt;itab-gkstp = lv_gkstp.                   "problem is here i need to assing the lv_gkstp to itab-gkstp&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;append itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;clear: itab,lv_gkstp.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 08:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653275#M1445251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-17T08:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653276#M1445252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you. As u told. ive did. but iam getting the error unable to interpret where .possible causes: incorrecting spelling  or comma error.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 lOOP AT LT_PMCO1 into wa_pmco.
  
 lv_gkstp = wa_pmco-WRT00 + wa_pmco-WRT01 + wa_pmco-WRT02 + wa_pmco-WRT03 + wa_pmco-WRT04 + wa_pmco-WRT05 + wa_pmco-WRT06 + wa_pmco-WRT07 + wa_pmco-WRT08
            + wa_pmco-WRT10 + wa_pmco-WRT11 + wa_pmco-WRT12 + wa_pmco-WRT13 + wa_pmco-WRT14 + wa_pmco-WRT15 + wa_pmco-WRT16.
 Read table itab into wa index sy-tabix where key objnr = wa_pmco-objnr.   " problem is where condition. 
 move lv_gkstp to wa-gkstp.
 lv_tabix = sy-tabix.
 modify itab from wa  index lv_tabix transporting gkstp.

 Endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you for quick respoce.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 09:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653276#M1445252</guid>
      <dc:creator>former_member251546</dc:creator>
      <dc:date>2010-03-17T09:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653277#M1445253</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;While reading from the itab, read either by index or key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 09:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653277#M1445253</guid>
      <dc:creator>praveen_hannu</dc:creator>
      <dc:date>2010-03-17T09:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653278#M1445254</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;read statement dosen't work with where condition so u have 2 use "with key" in place of where .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds/&lt;/P&gt;&lt;P&gt;shivraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 09:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653278#M1445254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-17T09:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653279#M1445255</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 made a typo in the read statement.&lt;/P&gt;&lt;P&gt;Sorry for that !!! You could have easily corrected the error if you had checked the documentation of READ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Read table itab into wa index sy-tabix WITH key objnr = wa_pmco-objnr.  "WITH
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 09:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653279#M1445255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-17T09:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653280#M1445256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even ive used with key also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Read table itab into wa index sy-tabix with key objnr = wa_pmco-objnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still gives the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 09:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653280#M1445256</guid>
      <dc:creator>former_member251546</dc:creator>
      <dc:date>2010-03-17T09:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653281#M1445257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Read table itab into wa index sy-tabix with key objnr = wa_pmco-objnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we use both INDEX &amp;amp; WITH KEY addition together in the READ TABLE statement ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 09:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653281#M1445257</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-17T09:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653282#M1445258</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;read table itab into wa index sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 and wa-objnr = wa_pmco-objnr.&lt;/P&gt;&lt;P&gt;ur code.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;ur code&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since both index and with key cannot be used together&lt;/P&gt;&lt;P&gt;rgds/&lt;/P&gt;&lt;P&gt;shivraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ShivrajSinha on Mar 17, 2010 10:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 09:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653282#M1445258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-17T09:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653283#M1445259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  Read Table itab index sy-index into wa comparing objnr.
is it right?
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 09:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653283#M1445259</guid>
      <dc:creator>former_member251546</dc:creator>
      <dc:date>2010-03-17T09:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653284#M1445260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Thank U&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 lOOP AT LT_PMCO1 into wa_pmco.

 lv_gkstp = wa_pmco-WRT00 + wa_pmco-WRT01 + wa_pmco-WRT02 + wa_pmco-WRT03 + wa_pmco-WRT04 + wa_pmco-WRT05 + wa_pmco-WRT06 + wa_pmco-WRT07 + wa_pmco-WRT08
            + wa_pmco-WRT10 + wa_pmco-WRT11 + wa_pmco-WRT12 + wa_pmco-WRT13 + wa_pmco-WRT14 + wa_pmco-WRT15 + wa_pmco-WRT16.
* Read table itab into wa index sy-tabix with key objnr = wa_pmco-objnr.
  Read Table itab index sy-index into wa.
   if sy-subrc = 0 and wa-objnr = wa_pmco-objnr.
    move lv_gkstp to wa-gkstp.
    lv_tabix = sy-tabix.
    modify itab from wa index lv_tabix transporting gkstp.
   else.
     move lv_gkstp to wa-gkstp.
    lv_tabix = sy-tabix.
    modify itab from wa index lv_tabix transporting gkstp.
   endif.
 Endloop.
but its goes to short dump.
Error analysis
    When changing or deleting one or more lines of the internal table
    "\PROGRAM=Z_WORK_ORDER_AGEING_REPORT\DATA=ITAB" or when inserting in the table
     "\PROGRAM=Z_WORK_ORDER_AGEING_REPORT\DATA=ITAB", 0 was used as
    the line index. An index less than or equal to zero is not
    allowed.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 09:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653284#M1445260</guid>
      <dc:creator>former_member251546</dc:creator>
      <dc:date>2010-03-17T09:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653285#M1445261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Read Table itab index sy-index into wa.
   if sy-subrc = 0 and wa-objnr = wa_pmco-objnr.
     "Your Code
   else.
     move lv_gkstp to wa-gkstp.
    lv_tabix = sy-tabix. " Since the READ statement fails, the value of SY-TABIX = 0
    modify itab from wa index lv_tabix transporting gkstp.
   endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;but its goes to short dump.&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    When changing or deleting one or more lines of the internal table&lt;/P&gt;&lt;P&gt;    "\PROGRAM=Z_WORK_ORDER_AGEING_REPORT\DATA=ITAB" or when inserting in the table&lt;/P&gt;&lt;P&gt;     "\PROGRAM=Z_WORK_ORDER_AGEING_REPORT\DATA=ITAB", 0 was used as&lt;/P&gt;&lt;P&gt;    the line index. An index less than or equal to zero is not&lt;/P&gt;&lt;P&gt;    allowed.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to analyze the error before blindly posting it in the forum. The error analysis clearly states why the dump has occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 09:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653285#M1445261</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-17T09:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653286#M1445262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;A lot of people tried to help you, but it seems you're not doing any local effort to resolve the problem, instead coming back with every little error you encounter. Try to help yourself first.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thread locked for this reason.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 10:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-problem/m-p/6653286#M1445262</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-03-17T10:40:50Z</dc:date>
    </item>
  </channel>
</rss>

