<?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 Problem with data selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-selection/m-p/8153089#M1621477</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;I have an internal table with a single field of size 132 characters. I have to do some validations if the last character in contents of the internal table is 'F'. How can I achieve this.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the internal table i_data in a smartform. I have declared it as i_data type table of tab512 in the global data section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the following code, but it is not working.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;if i_data CP '*F'.&lt;/P&gt;&lt;P&gt;***do some validations&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Aug 2011 10:12:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-22T10:12:14Z</dc:date>
    <item>
      <title>Problem with data selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-selection/m-p/8153089#M1621477</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;I have an internal table with a single field of size 132 characters. I have to do some validations if the last character in contents of the internal table is 'F'. How can I achieve this.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the internal table i_data in a smartform. I have declared it as i_data type table of tab512 in the global data section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the following code, but it is not working.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;if i_data CP '*F'.&lt;/P&gt;&lt;P&gt;***do some validations&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 10:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-selection/m-p/8153089#M1621477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-22T10:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-selection/m-p/8153090#M1621478</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;chk below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_len TYPE i,&lt;/P&gt;&lt;P&gt;            v_len1 TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_data.&lt;/P&gt;&lt;P&gt;CLEAR: v_len,v_len1.&lt;/P&gt;&lt;P&gt;v_len = strlen(i_data-field).&lt;/P&gt;&lt;P&gt;v_len1 = v_len - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF i_data-field+v_len1(1) EQ 'F'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            validate as per your req..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ENDIF.&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;here i_data is your internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 10:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-selection/m-p/8153090#M1621478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-22T10:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-selection/m-p/8153091#M1621479</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;what do you mean "not working"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check your internal table in loop:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
i_data type table of tab512.
FIELD-SYMBOLS:
&amp;lt;lv_data&amp;gt; TYPE tab512.

LOOP AT i_data[] ASSIGNING &amp;lt;lv_data&amp;gt;
    WHERE wa CP '*F'.
***do some validations
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 10:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-selection/m-p/8153091#M1621479</guid>
      <dc:creator>AlexanderOv</dc:creator>
      <dc:date>2011-08-22T10:26:33Z</dc:date>
    </item>
  </channel>
</rss>

