<?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 Dynamic select columns in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-columns/m-p/3206030#M764335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Z_Temp table which has 51 colums like NKEY, NTEM001, NTEM002.... NTEM050. This table will be joined on Z_JOIN table (columns NOTE, TXT) ON NTEM*= NOTE.&lt;/P&gt;&lt;P&gt;( NTEM001 = NOTE, NTEM002 = NOTE, NTEM003 = NOTE .....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all NTEM* columns that are not initial, I need to get TXT column from Z_JOIN table and send it to a Sapscript form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best approach in doing this ?&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, 28 Dec 2007 22:06:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-28T22:06:47Z</dc:date>
    <item>
      <title>Dynamic select columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-columns/m-p/3206030#M764335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Z_Temp table which has 51 colums like NKEY, NTEM001, NTEM002.... NTEM050. This table will be joined on Z_JOIN table (columns NOTE, TXT) ON NTEM*= NOTE.&lt;/P&gt;&lt;P&gt;( NTEM001 = NOTE, NTEM002 = NOTE, NTEM003 = NOTE .....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all NTEM* columns that are not initial, I need to get TXT column from Z_JOIN table and send it to a Sapscript form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best approach in doing this ?&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, 28 Dec 2007 22:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-columns/m-p/3206030#M764335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T22:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic select columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-columns/m-p/3206031#M764336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First make a select from the first table.&lt;/P&gt;&lt;P&gt;The  make a second select from the other table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at first table.&lt;/P&gt;&lt;P&gt;read the second table with key values &lt;/P&gt;&lt;P&gt;move the two columns to a final itab.&lt;/P&gt;&lt;P&gt;append final itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 03:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-columns/m-p/3206031#M764336</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-12-29T03:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic select columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-columns/m-p/3206032#M764337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got until the loop at first table. How do I check if the 50 columns are initial or not. I don't want to give 50 IF statements. I would like to do something like this&lt;/P&gt;&lt;P&gt;v_counter = 1&lt;/P&gt;&lt;P&gt;DO 50 TIMES. * this will return 1 row&lt;/P&gt;&lt;P&gt;   v_column = 'itab-NTEM'&lt;/P&gt;&lt;P&gt;   v_column+15(3) = v_counter.&lt;/P&gt;&lt;P&gt;   IF NOT v_column IS INITIAL.    *** This line of code fails&lt;/P&gt;&lt;P&gt;           (some code here)&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;   v_counter = v_counter + 1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 14:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-columns/m-p/3206032#M764337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T14:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic select columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-columns/m-p/3206033#M764338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Horizontal scrolling in a single table record is possible with the DO...VARYING... construct, please read the F1 help on the same.&lt;/P&gt;&lt;P&gt;Also check this link&lt;/P&gt;&lt;P&gt;Link:[Repetitive Structures|http://help.sap.com/saphelp_47x200/helpdata/en/4f/d52808575e11d189270000e8322f96/content.htm ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt; ntem TYPE z_temp-ntem001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 50 TIMES VARYING ntem FROM ntem001 NEXT ntem002.&lt;/P&gt;&lt;P&gt;  IF ntem IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    your code.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajesh on Dec 29, 2007 9:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 16:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-columns/m-p/3206033#M764338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T16:11:16Z</dc:date>
    </item>
  </channel>
</rss>

