<?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 plz chk the code wats wrong in it in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753975#M326822</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 m having itab with vbeln&lt;/P&gt;&lt;P&gt;and ztable with objnr and ordsent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where objnr and vbeln are equal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so now when i find objnr EQ vbeln i have to modify the ztable-ordsent = ' '.&lt;/P&gt;&lt;P&gt;i have writen the followin code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_ztsd2marc INTO ls_ztsd2marc.&lt;/P&gt;&lt;P&gt;    READ TABLE ct_success INTO ls_success WITH KEY ordnr =&lt;/P&gt;&lt;P&gt;    ls_ztsd2marc-ordnr.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      ls_ztsd2marc-ordsent = ' '.&lt;/P&gt;&lt;P&gt;      MODIFY TABLE lt_ztsd2marc FROM ls_ztsd2marc TRANSPORTING ordsent .&lt;/P&gt;&lt;P&gt;      MODIFY ztsd2marc FROM TABLE lt_ztsd2marc.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        MESSAGE s112(z2).&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its updating it in work area but the changes are not gettin reflected in the internal table and not even in my ztable ztsd2marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz tell me wat is wrong in this code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2006 11:51:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-08T11:51:20Z</dc:date>
    <item>
      <title>plz chk the code wats wrong in it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753975#M326822</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 m having itab with vbeln&lt;/P&gt;&lt;P&gt;and ztable with objnr and ordsent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where objnr and vbeln are equal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so now when i find objnr EQ vbeln i have to modify the ztable-ordsent = ' '.&lt;/P&gt;&lt;P&gt;i have writen the followin code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_ztsd2marc INTO ls_ztsd2marc.&lt;/P&gt;&lt;P&gt;    READ TABLE ct_success INTO ls_success WITH KEY ordnr =&lt;/P&gt;&lt;P&gt;    ls_ztsd2marc-ordnr.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      ls_ztsd2marc-ordsent = ' '.&lt;/P&gt;&lt;P&gt;      MODIFY TABLE lt_ztsd2marc FROM ls_ztsd2marc TRANSPORTING ordsent .&lt;/P&gt;&lt;P&gt;      MODIFY ztsd2marc FROM TABLE lt_ztsd2marc.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        MESSAGE s112(z2).&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its updating it in work area but the changes are not gettin reflected in the internal table and not even in my ztable ztsd2marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz tell me wat is wrong in this code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753975#M326822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code wats wrong in it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753976#M326823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha , &lt;/P&gt;&lt;P&gt;  What is the value of SY-SUBRC when you modify the internal table and table.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:57:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753976#M326823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code wats wrong in it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753977#M326824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should not use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODIFY table&amp;lt;/b&amp;gt; with in the loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;modity&amp;lt;/b&amp;gt; itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after endloop then update your z table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Manohar Reddy K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753977#M326824</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-12-08T11:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code wats wrong in it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753978#M326825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using stmt like below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY TABLE lt_ztsd2marc FROM ls_ztsd2marc&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;amp; use commit work after z table updation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753978#M326825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code wats wrong in it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753979#M326826</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;  Give &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    Modify itab    -&amp;gt; Modifying internal table &lt;/P&gt;&lt;P&gt;        Modify ztable -&amp;gt; Modifying Table&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 12:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753979#M326826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T12:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code wats wrong in it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753980#M326827</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;Replace &lt;/P&gt;&lt;P&gt;MODIFY TABLE lt_ztsd2marc FROM ls_ztsd2marc TRANSPORTING ordsent .&lt;/P&gt;&lt;P&gt;MODIFY ztsd2marc FROM TABLE lt_ztsd2marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by this single statement&lt;/P&gt;&lt;P&gt;MOdify lt_ztsd2marc from ls_ztsd2marc transporting ordsent where ordnr = ls_ztsd2marc-ordnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 12:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753980#M326827</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-08T12:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code wats wrong in it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753981#M326828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT lt_ztsd2marc INTO ls_ztsd2marc.&lt;/P&gt;&lt;P&gt;READ TABLE ct_success INTO ls_success WITH KEY ordnr =&lt;/P&gt;&lt;P&gt;ls_ztsd2marc-ordnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;ls_ztsd2marc-ordsent = ' '.&lt;/P&gt;&lt;P&gt;MODIFY TABLE lt_ztsd2marc FROM ls_ztsd2marc TRANSPORTING ordsent&lt;/P&gt;&lt;P&gt;                        where ordnr = ls_ztsd2marc-ordnr .&lt;/P&gt;&lt;P&gt;**MODIFY ztsd2marc FROM TABLE lt_ztsd2marc.&lt;/P&gt;&lt;P&gt;update ztsd2marc set ordsent = it_ztsd2marc-orsent&lt;/P&gt;&lt;P&gt;                                where ordnr = it_ztsd2marc-ordnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;MESSAGE s112(z2).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 12:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753981#M326828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T12:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: plz chk the code wats wrong in it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753982#M326829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..&lt;/P&gt;&lt;P&gt;jus try the code below.. it'll def give the solution to ur question.&lt;/P&gt;&lt;P&gt;i've jus modified little of ur code that u posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_ztsd2marc INTO ls_ztsd2marc.&lt;/P&gt;&lt;P&gt;READ TABLE ct_success INTO ls_success WITH KEY ordnr =&lt;/P&gt;&lt;P&gt;ls_ztsd2marc-ordnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;ls_ztsd2marc-ordsent = ' '.&lt;/P&gt;&lt;P&gt;MODIFY TABLE lt_ztsd2marc FROM ls_ztsd2marc TRANSPORTING ordsent&lt;/P&gt;&lt;P&gt;where ordnr = ls_ztsd2marc-ordnr .&lt;/P&gt;&lt;P&gt;**MODIFY ztsd2marc FROM TABLE lt_ztsd2marc.&lt;/P&gt;&lt;P&gt;update ztsd2marc set ordsent = it_ztsd2marc-orsent&lt;/P&gt;&lt;P&gt;where ordnr = it_ztsd2marc-ordnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;MESSAGE s112(z2).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 12:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-chk-the-code-wats-wrong-in-it/m-p/1753982#M326829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T12:26:23Z</dc:date>
    </item>
  </channel>
</rss>

