<?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: Store Variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-variable/m-p/1532854#M243334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probably use a field-symbol.&lt;/P&gt;&lt;P&gt;I do not have a system available, so I am guessing at the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field-symbols: &amp;lt;f1&amp;gt;.
data: lv_num(2)     type n,
      lv_field(20)  type c.

loop at ittab_ven.
  lv_num = sy-tabix.
  clear lv_field.
  concatenate lv_field lv_num into lv_field.
  condense lv_field no-gaps.
  assign lv_field to &amp;lt;f1&amp;gt;.
  &amp;lt;f1&amp;gt; = ittab_ven-lifnr.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2006 02:21:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-02T02:21:05Z</dc:date>
    <item>
      <title>Store Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-variable/m-p/1532852#M243332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've one internal table in that table one field like vendor name,  &lt;/P&gt;&lt;P&gt;for example &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Begin of ittab_ven,&lt;/P&gt;&lt;P&gt;     venname like lif1-lifnr,&lt;/P&gt;&lt;P&gt;end of ittab_ven.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that table've 10 or 15 fields based one my queries,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to store each vendor in each variable&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ittab_ven&lt;/P&gt;&lt;P&gt; vendor1 (variable1) = ittab_ven&lt;/P&gt;&lt;P&gt; vendor2 (variable1) = ittab_ven&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do that &lt;/P&gt;&lt;P&gt;anybody help pls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 01:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-variable/m-p/1532852#M243332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T01:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Store Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-variable/m-p/1532853#M243333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muthu, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_tabix  type sy-tabix,&lt;/P&gt;&lt;P&gt;      lv_vendor1 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;      lv_vendor2 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;      lv_vendor3 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;      lv_vendor4 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;      lv_vendor5 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;      lv_vendor6 type lfa1-lifnr,      &lt;/P&gt;&lt;P&gt;      lv_vendor7 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;      lv_vendor8 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;      lv_vendor9 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;      lv_vendor10 type lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ittab_ven, &lt;/P&gt;&lt;P&gt;lv_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;case lv_tabix.&lt;/P&gt;&lt;P&gt; when 1.&lt;/P&gt;&lt;P&gt;  move ittab_ven-vendor to lv_vendor1.&lt;/P&gt;&lt;P&gt; when 2.&lt;/P&gt;&lt;P&gt;  move ittab_ven-vendor to lv_vendor2.&lt;/P&gt;&lt;P&gt; when 3.&lt;/P&gt;&lt;P&gt;  move ittab_ven-vendor to lv_vendor3.&lt;/P&gt;&lt;P&gt; when 4.&lt;/P&gt;&lt;P&gt;  move ittab_ven-vendor to lv_vendor4.&lt;/P&gt;&lt;P&gt; when 5.&lt;/P&gt;&lt;P&gt;  move ittab_ven-vendor to lv_vendor5.&lt;/P&gt;&lt;P&gt; when 6.&lt;/P&gt;&lt;P&gt;  move ittab_ven-vendor to lv_vendor6.&lt;/P&gt;&lt;P&gt; when 7.&lt;/P&gt;&lt;P&gt;  move ittab_ven-vendor to lv_vendor7.&lt;/P&gt;&lt;P&gt; when 8.&lt;/P&gt;&lt;P&gt;  move ittab_ven-vendor to lv_vendor8.&lt;/P&gt;&lt;P&gt; when 9.&lt;/P&gt;&lt;P&gt;  move ittab_ven-vendor to lv_vendor9.&lt;/P&gt;&lt;P&gt; when 10.&lt;/P&gt;&lt;P&gt;  move ittab_ven-vendor to lv_vendor10.&lt;/P&gt;&lt;P&gt;endcase.&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;Hope this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Please award points if found useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 01:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-variable/m-p/1532853#M243333</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-08-02T01:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Store Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-variable/m-p/1532854#M243334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probably use a field-symbol.&lt;/P&gt;&lt;P&gt;I do not have a system available, so I am guessing at the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field-symbols: &amp;lt;f1&amp;gt;.
data: lv_num(2)     type n,
      lv_field(20)  type c.

loop at ittab_ven.
  lv_num = sy-tabix.
  clear lv_field.
  concatenate lv_field lv_num into lv_field.
  condense lv_field no-gaps.
  assign lv_field to &amp;lt;f1&amp;gt;.
  &amp;lt;f1&amp;gt; = ittab_ven-lifnr.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 02:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-variable/m-p/1532854#M243334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T02:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Store Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/store-variable/m-p/1532855#M243335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Norman's idea is the best way. I think this syntax is correct but it's still Norman's solution (and Viraylab's data definitions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;data: lv_num(2)     type n,      &lt;/P&gt;&lt;P&gt;lv_field(20)  type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: &lt;/P&gt;&lt;P&gt;lv_vendor1 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;lv_vendor2 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;lv_vendor3 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;lv_vendor4 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;lv_vendor5 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;lv_vendor6 type lfa1-lifnr, &lt;/P&gt;&lt;P&gt;lv_vendor7 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;lv_vendor8 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;lv_vendor9 type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;lv_vendor10 type lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ittab_ven.  &lt;/P&gt;&lt;P&gt; lv_num = sy-tabix.  &lt;/P&gt;&lt;P&gt; clear lv_field.  &lt;/P&gt;&lt;P&gt; concatenate 'LV_VENDOR' lv_num into lv_field.  &lt;/P&gt;&lt;P&gt; condense lv_field no-gaps.  &lt;/P&gt;&lt;P&gt; assign (lv_field) to &amp;lt;f1&amp;gt;.  &lt;/P&gt;&lt;P&gt; &amp;lt;f1&amp;gt; = ittab_ven-lifnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps, it will cause problems if there are more entries in the table than defined lv_vendor fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 03:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/store-variable/m-p/1532855#M243335</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-08-02T03:31:12Z</dc:date>
    </item>
  </channel>
</rss>

