<?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: why system variants. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-system-variants/m-p/910942#M57043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambichan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. System variants are used so that multiple users can use the same variant. this could be the case where multiple QA users are testing a report program, or in case of the ned users, where some applications need to run with the same data irrespective of who is running the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Field-symbols are primarily used for dynamic programming in ABAP. There was an excellent &amp;lt;a href="/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table"&amp;gt;weblog&amp;lt;/a&amp;gt; by Subramanian some time back. You can refer to that for their use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2005 06:10:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-16T06:10:35Z</dc:date>
    <item>
      <title>why system variants.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-system-variants/m-p/910941#M57042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;i have two questions to confirm.&lt;/P&gt;&lt;P&gt;1-why we go for system variants, avoiding normal variants.  could you tell me the situations where we only use system variants(&amp;amp;CUS).&lt;/P&gt;&lt;P&gt;2-why fieldsymbols introduced in ABAP.&lt;/P&gt;&lt;P&gt;  In which case we advised to use Fieldsymbol.&lt;/P&gt;&lt;P&gt;  could you tell me example.is it replacement of ord variable? &lt;/P&gt;&lt;P&gt;  (I know FS dont take memory till runtime...otherwise any advantages?)&lt;/P&gt;&lt;P&gt;could you pls clearcut  point rather refering R/3libary or manuals.&lt;/P&gt;&lt;P&gt;could be more appreciatable.(examples more welcome)&lt;/P&gt;&lt;P&gt;ambichan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: ambi chan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2005 06:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-system-variants/m-p/910941#M57042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-16T06:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: why system variants.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-system-variants/m-p/910942#M57043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambichan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. System variants are used so that multiple users can use the same variant. this could be the case where multiple QA users are testing a report program, or in case of the ned users, where some applications need to run with the same data irrespective of who is running the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Field-symbols are primarily used for dynamic programming in ABAP. There was an excellent &amp;lt;a href="/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table"&amp;gt;weblog&amp;lt;/a&amp;gt; by Subramanian some time back. You can refer to that for their use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2005 06:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-system-variants/m-p/910942#M57043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-16T06:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: why system variants.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-system-variants/m-p/910943#M57044</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;&lt;/P&gt;&lt;P&gt;Field-Symbols are similar to pointers in C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will give u a sample coding for building field catalog in ALV using Field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS : &amp;lt;lfs_fieldcat&amp;gt; TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;  LOOP AT p_fieldcat ASSIGNING &amp;lt;lfs_fieldcat&amp;gt;.&lt;/P&gt;&lt;P&gt;    CASE &amp;lt;lfs_fieldcat&amp;gt;-fieldname.&lt;/P&gt;&lt;P&gt;      WHEN 'GL_ACCT'.&lt;/P&gt;&lt;P&gt;        &amp;lt;lfs_fieldcat&amp;gt;-coltext = text-050.&lt;/P&gt;&lt;P&gt;        &amp;lt;lfs_fieldcat&amp;gt;-no_out = ' '.&lt;/P&gt;&lt;P&gt;       .&lt;/P&gt;&lt;P&gt;       .&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;Similarly u can try using field-symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also u can serach the forum to get some more samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Judith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2005 06:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-system-variants/m-p/910943#M57044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-16T06:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: why system variants.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-system-variants/m-p/910944#M57045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And regarding field-symbols, I will give you an example where you have to use field-symbols. You cannot get the solution without using them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example is directly taken from Subramanian's weblog, with a minor extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_fieldsymbols.

PARAMETERS: p_table TYPE dd02l-tabname.

DATA: lv_dref   TYPE REF TO data,
      it_fnames LIKE dd03l-rollname OCCURS 0 WITH HEADER LINE.

FIELD-SYMBOLS: &amp;lt;fs_table&amp;gt; TYPE STANDARD TABLE,
               &amp;lt;fs_line&amp;gt;,
               &amp;lt;fs_field&amp;gt;.


START-OF-SELECTION.

  CREATE DATA lv_dref TYPE TABLE OF (p_table).

  ASSIGN lv_dref-&amp;gt;* TO &amp;lt;fs_table&amp;gt;.

  SELECT *
    FROM (p_table)
    INTO TABLE &amp;lt;fs_table&amp;gt;.

  LOOP AT &amp;lt;fs_table&amp;gt; ASSIGNING &amp;lt;fs_line&amp;gt;.
    DO.
      ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;fs_line&amp;gt; TO &amp;lt;fs_field&amp;gt;.
      IF sy-subrc NE 0.
        EXIT.
      ELSE.
        IF sy-index EQ 1.
          WRITE: / &amp;lt;fs_field&amp;gt;.
        ELSE.
          WRITE: &amp;lt;fs_field&amp;gt;.
        ENDIF.
      ENDIF.
    ENDDO.
  ENDLOOP&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example, the user can enter the name of any database table in the selection-screen, and the contents of that table are displayed on the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try out with SPFLI , T000, SFLIGHT etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. The program above is just an example, aand the list output will not be too clear in case of tables with a large number of fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2005 06:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-system-variants/m-p/910944#M57045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-16T06:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: why system variants.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-system-variants/m-p/910945#M57046</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;Can also refer to this link for field symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap" target="test_blank"&gt;http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap&lt;/A&gt; for power users&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Judith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2005 06:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-system-variants/m-p/910945#M57046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-17T06:52:16Z</dc:date>
    </item>
  </channel>
</rss>

