<?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: What is wrong with this code? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong-with-this-code/m-p/3322520#M795869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that.  I wasn't sure if I had to use an idex when a table had a header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Davis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2008 20:41:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-21T20:41:07Z</dc:date>
    <item>
      <title>What is wrong with this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong-with-this-code/m-p/3322518#M795867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am modifying a sapscript print program to suppress certain characteristics; we don't want them to print.  To do this I am looping through the characteristic table and doing a case statement on the name.  If I wish to suppress the characteristic I delete it from the table.  When it runs I get a run-time error (no dump, one of those message errors).  It doesn't like the delete statement.  I am also putting several characteristics on one line to save space, you will see in the code below:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT tkomcon.&lt;/P&gt;&lt;P&gt;    CASE tkomcon-atnam.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_LENGTH'.&lt;/P&gt;&lt;P&gt;        temp_length = tkomcon-atwtb.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       CONCATENATE ztempstring tkomcon-atwtb INTO ztempstring.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      WHEN 'Z_WIDTH'.&lt;/P&gt;&lt;P&gt;        temp_width = tkomcon-atwtb.&lt;/P&gt;&lt;P&gt;        DELETE tkomcon.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_THICKNESS1'.&lt;/P&gt;&lt;P&gt;        temp_height1 = tkomcon-atwtb.&lt;/P&gt;&lt;P&gt;        DELETE tkomcon.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_THICKNESS2'.&lt;/P&gt;&lt;P&gt;        temp_height2 = tkomcon-atwtb.&lt;/P&gt;&lt;P&gt;        DELETE tkomcon.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_THICKNESS3'.&lt;/P&gt;&lt;P&gt;        temp_height3 = tkomcon-atwtb.&lt;/P&gt;&lt;P&gt;        DELETE tkomcon.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_THICKNESS4'.&lt;/P&gt;&lt;P&gt;        temp_height4 = tkomcon-atwtb.&lt;/P&gt;&lt;P&gt;        DELETE tkomcon.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_PCS'.&lt;/P&gt;&lt;P&gt;        temp_pcs = tkomcon-atwtb.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_BFT_PCE'.&lt;/P&gt;&lt;P&gt;        DELETE tkomcon.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_BOARD_FT'.&lt;/P&gt;&lt;P&gt;        DELETE tkomcon.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_PRICE_PASS'.&lt;/P&gt;&lt;P&gt;        DELETE tkomcon.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_PRICE_PCE'.&lt;/P&gt;&lt;P&gt;        temp_price = tkomcon-atwtb.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_GRIND'.&lt;/P&gt;&lt;P&gt;        DELETE tkomcon.&lt;/P&gt;&lt;P&gt;      WHEN 'Z_BORATE'.&lt;/P&gt;&lt;P&gt;        DELETE tkomcon.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE tkomcon INDEX 1.&lt;/P&gt;&lt;P&gt;  tkomcon-atwtb = ''.&lt;/P&gt;&lt;P&gt;  CONCATENATE temp_length ' x ' temp_width ' x ' temp_height1 ' x ' temp_height2 ' x ' temp_height3&lt;/P&gt;&lt;P&gt;              ' x ' temp_height4 ' x ' INTO ztempstring.&lt;/P&gt;&lt;P&gt;  tkomcon-atbez = ztempstring.&lt;/P&gt;&lt;P&gt;  MODIFY tkomcon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 20:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong-with-this-code/m-p/3322518#M795867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T20:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong-with-this-code/m-p/3322519#M795868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT tkomcon.
v_tabix = sy-tabix.     "&amp;lt;&amp;lt;&amp;lt;

CASE tkomcon-atnam.
WHEN 'Z_LENGTH'.
temp_length = tkomcon-atwtb.

* CONCATENATE ztempstring tkomcon-atwtb INTO ztempstring.

WHEN 'Z_WIDTH'.
temp_width = tkomcon-atwtb.
DELETE tkomcon index v_tabix. "&amp;lt;&amp;lt;
WHEN 'Z_THICKNESS1'.
temp_height1 = tkomcon-atwtb.
DELETE tkomcon index v_tabix. "&amp;lt;&amp;lt;
WHEN 'Z_THICKNESS2'.
temp_height2 = tkomcon-atwtb.
DELETE tkomcon index v_tabix. "&amp;lt;&amp;lt;
WHEN 'Z_THICKNESS3'.
temp_height3 = tkomcon-atwtb.
DELETE tkomcon index v_tabix. "&amp;lt;&amp;lt;
WHEN 'Z_THICKNESS4'.
temp_height4 = tkomcon-atwtb.
DELETE tkomcon index v_tabix. "&amp;lt;&amp;lt;
WHEN 'Z_PCS'.
temp_pcs = tkomcon-atwtb.
WHEN 'Z_BFT_PCE'.
DELETE tkomcon index v_tabix. "&amp;lt;&amp;lt;
WHEN 'Z_BOARD_FT'.
DELETE tkomcon index v_tabix. "&amp;lt;&amp;lt;
WHEN 'Z_PRICE_PASS'.
DELETE tkomcon index v_tabix. "&amp;lt;&amp;lt;
WHEN 'Z_PRICE_PCE'.
temp_price = tkomcon-atwtb.
WHEN 'Z_GRIND'.
DELETE tkomcon index v_tabix. "&amp;lt;&amp;lt;
WHEN 'Z_BORATE'.
DELETE tkomcon index v_tabix. "&amp;lt;&amp;lt;
ENDCASE.
ENDLOOP.

READ TABLE tkomcon INDEX 1.
v_tabix = sy-tabix.
tkomcon-atwtb = ''.
CONCATENATE temp_length ' x ' temp_width ' x ' temp_height1 ' x ' temp_height2 ' x ' temp_height3
' x ' temp_height4 ' x ' INTO ztempstring.
tkomcon-atbez = ztempstring.
MODIFY tkomcon  index v_tabix.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 20:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong-with-this-code/m-p/3322519#M795868</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-01-21T20:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong-with-this-code/m-p/3322520#M795869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that.  I wasn't sure if I had to use an idex when a table had a header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Davis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 20:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong-with-this-code/m-p/3322520#M795869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T20:41:07Z</dc:date>
    </item>
  </channel>
</rss>

