<?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: Reading multiple values from screen field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356796#M1838611</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;If your requirement is to read the screen field value of any standard screen and to pass the values to separate variables, follow the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Declare a field symbol of type field required to be read.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="L0S31"&gt;&lt;/SPAN&gt;Use assign statement to read the value of field.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Field Symbols&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FIELD-SYMBOLS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&amp;lt;fs_vbak&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;vbak&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Read the VBAK structure populated for SO&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'(SAPMV45A)VBAK'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fs_vbak&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;&amp;lt;fs_vbak&amp;gt; &lt;SPAN class="L0S52"&gt;IS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ASSIGNED&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Put logic required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;Gangadhar&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 07:24:49 GMT</pubDate>
    <dc:creator>former_member223133</dc:creator>
    <dc:date>2014-06-10T07:24:49Z</dc:date>
    <item>
      <title>Reading multiple values from screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356790#M1838605</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 need to implement a logic where in i should be able to read multiple values seperated by commas which are entered in an input/ output field on a screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need pointers to implement the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;SriLalitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 06:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356790#M1838605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-10T06:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reading multiple values from screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356791#M1838606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri Lalitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you can use the below mentioned code to fulfill your need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data strng1 type string value 'aaa, bbbb, cc, dddddd, bbb,cccccc,dd,eee'.&lt;/P&gt;&lt;P&gt;data strng2 type string.&lt;/P&gt;&lt;P&gt;data strng3 type string.&lt;/P&gt;&lt;P&gt;data : begin of fs,&lt;/P&gt;&lt;P&gt;col1(20) type c,&lt;/P&gt;&lt;P&gt;col2(20) type c,&lt;/P&gt;&lt;P&gt;col3(20) type c,&lt;/P&gt;&lt;P&gt;col4(20) type c,&lt;/P&gt;&lt;P&gt;end of fs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab like table of fs.&lt;/P&gt;&lt;P&gt;string2 = string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while string2 &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt;split string2 at ',' into fs-col1 fs-col2 fs-col3 fs-col4 string2.&lt;/P&gt;&lt;P&gt;append fs to itab.&lt;/P&gt;&lt;P&gt;clear fs.&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into fs.&lt;/P&gt;&lt;P&gt;write / fs.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know in case you require any further inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR/Thanks&lt;/P&gt;&lt;P&gt;Pranav Agrawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 06:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356791#M1838606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-10T06:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reading multiple values from screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356792#M1838607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pranav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is that - i have an i/o field on a screen. here i enter aaa, bbb. so how can i read aaa and bbb seperately so that i need to pass these values to seperate variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;SriLalitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 06:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356792#M1838607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-10T06:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reading multiple values from screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356793#M1838608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use the SPLIT statement for your requirement. Check for SPLIT statement , use different variable to get the value .&lt;/P&gt;&lt;P&gt;&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;Sivaganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 06:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356793#M1838608</guid>
      <dc:creator>sivaganesh_krishnan</dc:creator>
      <dc:date>2014-06-10T06:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reading multiple values from screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356794#M1838609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri Latha,&lt;/P&gt;&lt;P&gt;Below is the answer to your further query.&lt;/P&gt;&lt;P&gt;Suppose screen parameter is string2.&lt;/P&gt;&lt;P&gt;Then you enter string2 = aaa, bbb.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; split string2 at ', ' into stg1 stg2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The corresponding values in string2 variable will go in stg1 and stg2 i.e.&lt;/P&gt;&lt;P&gt;stg1 = aaa and stg2 =bbb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please validate the same at your end as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR/Thanks&lt;/P&gt;&lt;P&gt;Pranav Agrawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 06:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356794#M1838609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-10T06:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reading multiple values from screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356795#M1838610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SriLatha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As all the above suggested, you can use the SPLIT statement. But there an issue will arise. How many TO fields needs to be declared and how many of them needs to be used in the SPLIT statements. Means, these can be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I will suggest you can go with the following logic for SPLIT statement.&lt;/P&gt;&lt;P&gt;DATA :&amp;nbsp; gt_str &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SPLIT IP_TEXT&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;AT ','&lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;gt_str&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this will split all the values into a table and this will be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abijith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 06:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356795#M1838610</guid>
      <dc:creator>former_member196651</dc:creator>
      <dc:date>2014-06-10T06:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading multiple values from screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356796#M1838611</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;If your requirement is to read the screen field value of any standard screen and to pass the values to separate variables, follow the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Declare a field symbol of type field required to be read.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="L0S31"&gt;&lt;/SPAN&gt;Use assign statement to read the value of field.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Field Symbols&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FIELD-SYMBOLS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&amp;lt;fs_vbak&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;vbak&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Read the VBAK structure populated for SO&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'(SAPMV45A)VBAK'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fs_vbak&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;&amp;lt;fs_vbak&amp;gt; &lt;SPAN class="L0S52"&gt;IS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ASSIGNED&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Put logic required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;Gangadhar&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-multiple-values-from-screen-field/m-p/10356796#M1838611</guid>
      <dc:creator>former_member223133</dc:creator>
      <dc:date>2014-06-10T07:24:49Z</dc:date>
    </item>
  </channel>
</rss>

