<?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 ... TRANSPORTING (FIELD_1)...(FIELD_n) dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-transporting-field-1-field-n-dynamically/m-p/2373828#M526161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how I can handle this without to write for each case a MODIFY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sinan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 14:56:46 GMT</pubDate>
    <dc:creator>sinan_keklik</dc:creator>
    <dc:date>2007-06-04T14:56:46Z</dc:date>
    <item>
      <title>MODIFY ... TRANSPORTING (FIELD_1)...(FIELD_n) dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-transporting-field-1-field-n-dynamically/m-p/2373824#M526157</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;why does this not work. I want to set Fields to be updated dynamically. Sometimes I want to update Field 1, another time Field 2 or 3. &lt;/P&gt;&lt;P&gt;In the F1 HELP is written that an initial dynamic Field will be ignored. But in the SAP HELP is written that an invalid name triggers a dump.&lt;/P&gt;&lt;P&gt;I get a dump. Any ideas how i can get this Code to ignore initial dynamic Fields? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA lt_table TYPE HASHED TABLE OF EORD WITH UNIQUE KEY MANDT MATNR WERKS ZEORD.&lt;/P&gt;&lt;P&gt;DATA lt_table2 TYPE HASHED TABLE OF EORD WITH UNIQUE KEY MANDT MATNR WERKS ZEORD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA    l_ERDAT           TYPE fieldname .&lt;/P&gt;&lt;P&gt;DATA    l_ERNAM          TYPE fieldname .&lt;/P&gt;&lt;P&gt;DATA    l_VDATU           TYPE fieldname .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_table INTO ls_table.&lt;/P&gt;&lt;P&gt;IF NOT ls_table-ERDAT IS INITIAL.&lt;/P&gt;&lt;P&gt;l_ERDAT = 'ERDAT' .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ls_table-ERNAM IS INITIAL.&lt;/P&gt;&lt;P&gt;l_ERNAM = 'ERNAM' .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ls_table-VDATU IS INITIAL.&lt;/P&gt;&lt;P&gt;l_VDATU = 'VDATU' .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY TABLE lt_table2 FROM ls_table TRANSPORTING&lt;/P&gt;&lt;P&gt;(l_ERDAT)&lt;/P&gt;&lt;P&gt;(l_ERNAM)&lt;/P&gt;&lt;P&gt;(l_VDATU)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sinan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 14:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-transporting-field-1-field-n-dynamically/m-p/2373824#M526157</guid>
      <dc:creator>sinan_keklik</dc:creator>
      <dc:date>2007-06-04T14:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY ... TRANSPORTING (FIELD_1)...(FIELD_n) dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-transporting-field-1-field-n-dynamically/m-p/2373825#M526158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dump could be because you have omitted the INDEX addition for the  MODIFY statement, and the program does not know which line is to be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An F1 on the MODIFY statement should tell you about the WHERE and the INDEX additions.&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;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 14:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-transporting-field-1-field-n-dynamically/m-p/2373825#M526158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T14:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY ... TRANSPORTING (FIELD_1)...(FIELD_n) dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-transporting-field-1-field-n-dynamically/m-p/2373826#M526159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the dump is written that the table with the type eord has no " " Component. I use HASHED TABLES. Index operations are forbidden with HASHED Tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sinan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 14:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-transporting-field-1-field-n-dynamically/m-p/2373826#M526159</guid>
      <dc:creator>sinan_keklik</dc:creator>
      <dc:date>2007-06-04T14:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY ... TRANSPORTING (FIELD_1)...(FIELD_n) dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-transporting-field-1-field-n-dynamically/m-p/2373827#M526160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; LOOP AT lt_table INTO ls_table.&lt;/P&gt;&lt;P&gt;&amp;gt; IF NOT ls_table-ERDAT IS INITIAL.&lt;/P&gt;&lt;P&gt;&amp;gt; l_ERDAT = 'ERDAT' .&lt;/P&gt;&lt;P&gt;&amp;gt; ENDIF.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; IF NOT ls_table-ERNAM IS INITIAL.&lt;/P&gt;&lt;P&gt;&amp;gt; l_ERNAM = 'ERNAM' .&lt;/P&gt;&lt;P&gt;&amp;gt; ENDIF.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; IF NOT ls_table-VDATU IS INITIAL.&lt;/P&gt;&lt;P&gt;&amp;gt; l_VDATU = 'VDATU' .&lt;/P&gt;&lt;P&gt;&amp;gt; ENDIF.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; MODIFY TABLE lt_table2 FROM ls_table TRANSPORTING&lt;/P&gt;&lt;P&gt;&amp;gt; (l_ERDAT)&lt;/P&gt;&lt;P&gt;&amp;gt; (l_ERNAM)&lt;/P&gt;&lt;P&gt;&amp;gt; (l_VDATU)&lt;/P&gt;&lt;P&gt;&amp;gt; .&lt;/P&gt;&lt;P&gt;&amp;gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ERDAT, ERNAM or VDATU are empty, you not passing values to the variables....So, in that case, you going to do something like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODIFY TABLE lt_table2 FROM ls_table TRANSPORTING
ERDAT SPACE VDATU
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And of course....SPACE is not a valid field.....You need to pass all fields no matter is they're empty or not....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 14:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-transporting-field-1-field-n-dynamically/m-p/2373827#M526160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T14:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY ... TRANSPORTING (FIELD_1)...(FIELD_n) dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-transporting-field-1-field-n-dynamically/m-p/2373828#M526161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how I can handle this without to write for each case a MODIFY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sinan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 14:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-transporting-field-1-field-n-dynamically/m-p/2373828#M526161</guid>
      <dc:creator>sinan_keklik</dc:creator>
      <dc:date>2007-06-04T14:56:46Z</dc:date>
    </item>
  </channel>
</rss>

