<?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: MODIFY TABLE does not work.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945187#M943482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;     Use the option ( TRANSPORTING .... Field names )   in your MODIFY statemant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2008 18:27:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-02T18:27:00Z</dc:date>
    <item>
      <title>MODIFY TABLE does not work..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945185#M943480</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 have a structure for which I create a work area as well an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I populate the work area, the value is filled in for the field status  But when i try to do an update of the internal table based on the work area value, the internal table's status is not getting populated and is empty. Why ? I am using MODIFY TABLE itab FROM workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF st1,&lt;/P&gt;&lt;P&gt;        vbeln            TYPE vbak-vbeln,&lt;/P&gt;&lt;P&gt;        status(15)        TYPE C,&lt;/P&gt;&lt;P&gt;      END OF st1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ss1 TYPE TABLE OF st1,&lt;/P&gt;&lt;P&gt;     workarea TYPE st1.&lt;/P&gt;&lt;P&gt;DATA: l_status TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data is selectd and filled in ss1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ss1 INTO workarea.&lt;/P&gt;&lt;P&gt;    CLEAR: l_status.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE field INTO l_status&lt;/P&gt;&lt;P&gt;                  FROM tablenm&lt;/P&gt;&lt;P&gt;                 WHERE vbeln = workarea-vbeln.&lt;/P&gt;&lt;P&gt;    IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;      CASE l_status.&lt;/P&gt;&lt;P&gt;        WHEN 'A'.&lt;/P&gt;&lt;P&gt;            workarea-status = 'Not yet process'.&lt;/P&gt;&lt;P&gt;        WHEN 'C'.&lt;/P&gt;&lt;P&gt;            workarea-status = 'Completed'.&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MODIFY TABLE ss1 FROM workarea.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 18:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945185#M943480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T18:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY TABLE does not work..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945186#M943481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either use APPEND &amp;lt;work are&amp;gt; to &amp;lt;internal Table&amp;gt; or Use MODIFY with the TRANSPORTING statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 18:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945186#M943481</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2008-06-02T18:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY TABLE does not work..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945187#M943482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;     Use the option ( TRANSPORTING .... Field names )   in your MODIFY statemant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 18:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945187#M943482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T18:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY TABLE does not work..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945188#M943483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the line listed here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ENDCASE.
ENDIF.
  MODIFY ss1 FROM workarea.  " &amp;lt;== remove TABLE 
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 18:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945188#M943483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T18:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY TABLE does not work..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945189#M943484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF st1,
vbeln TYPE vbak-vbeln,
status(15) TYPE C,
END OF st1.

DATA: ss1 TYPE TABLE OF st1,
workarea TYPE st1.
DATA: l_status TYPE C.

    * data is selectd and filled in ss1.
data: lv_tabix type sy-tabix.


LOOP AT ss1 INTO workarea.

lv_tabix = sy-tabix.
CLEAR: l_status.
SELECT SINGLE field INTO l_status
FROM tablenm
WHERE vbeln = workarea-vbeln.
IF sy-subrc IS INITIAL.
CASE l_status.
WHEN 'A'.
workarea-status = 'Not yet process'.
WHEN 'C'.
workarea-status = 'Completed'.
ENDCASE.
ENDIF.
MODIFY TABLE ss1 FROM workarea TRANSPORTING status index lv_tabix.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 18:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945189#M943484</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2008-06-02T18:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY TABLE does not work..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945190#M943485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please give me the exact syntax of MODIFY with transporting option ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to update status based on Vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 18:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945190#M943485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T18:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY TABLE does not work..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945191#M943486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls roll your eye balls o_O &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODIFY TABLE ss1 FROM workarea TRANSPORTING status where vbeln eq ........   .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 18:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-does-not-work/m-p/3945191#M943486</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2008-06-02T18:43:34Z</dc:date>
    </item>
  </channel>
</rss>

