<?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: get table control field length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748519#M1459699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;DESCRIBE&lt;/STRONG&gt; returns the attributes of a data object. Length operators, like STRLEN, on the other hand, return a length of the data content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if strlen( &amp;lt;mytable-fieldname&amp;gt; ) gt 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or lv_len = strlen( &amp;lt;mytable-fieldname&amp;gt; ).&lt;/P&gt;&lt;P&gt;if lv_len (of type i) gt 6.&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put this in code, press F1 on STRLEN for informative help on finding lengths, whether field or table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Mar 2010 11:22:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-23T11:22:34Z</dc:date>
    <item>
      <title>get table control field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748515#M1459695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in table control i have a field with with char length 15  but i have to give a validation if lenght not equal to 6 giv error messgage with out changin the field length of table control &lt;/P&gt;&lt;P&gt;i used     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                DESCRIBE FIELD gi_pmpb_bchid-batchid LENGTH ln IN CHARACTER MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 IF ln &amp;lt;&amp;gt; 6.&lt;/P&gt;&lt;P&gt;                     MESSAGE e013(zc8isms).&lt;/P&gt;&lt;P&gt;                  ELSE.&lt;/P&gt;&lt;P&gt;but here length is coming as 15 only even if i enter 6 digits in field on TC &lt;/P&gt;&lt;P&gt;plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 11:10:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748515#M1459695</guid>
      <dc:creator>Karan_Chopra_</dc:creator>
      <dc:date>2010-03-23T11:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: get table control field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748516#M1459696</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;You can do one thing. Take the user input value into a string variable.&lt;/P&gt;&lt;P&gt;By using the length function of string, do the validation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 11:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748516#M1459696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T11:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: get table control field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748517#M1459697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you have some leading zeroes in your variable but which are not shown on your screen. Try to get rid of them and then get the length of the string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 11:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748517#M1459697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T11:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: get table control field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748518#M1459698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;put the field on a data of type string, and  with   STRLEN( WORD1 ) &lt;/P&gt;&lt;P&gt;you have the len of the string.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: In TYPE I,
          WORD(15).

word = gi_pmpb_bchid-batchid.
In = STRLEN( WORD)

IF ln 6.
MESSAGE e013(zc8isms).
ELSE.
....
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;regard&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 11:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748518#M1459698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T11:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: get table control field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748519#M1459699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;DESCRIBE&lt;/STRONG&gt; returns the attributes of a data object. Length operators, like STRLEN, on the other hand, return a length of the data content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if strlen( &amp;lt;mytable-fieldname&amp;gt; ) gt 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or lv_len = strlen( &amp;lt;mytable-fieldname&amp;gt; ).&lt;/P&gt;&lt;P&gt;if lv_len (of type i) gt 6.&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put this in code, press F1 on STRLEN for informative help on finding lengths, whether field or table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 11:22:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748519#M1459699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T11:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: get table control field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748520#M1459700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well spotted!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 11:30:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748520#M1459700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T11:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: get table control field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748521#M1459701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its the length of the column, not the data present in the cell.&lt;/P&gt;&lt;P&gt;Use the internal table value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if strlen( wa-val ) le 6.&lt;/P&gt;&lt;P&gt;error.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 11:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748521#M1459701</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-03-23T11:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: get table control field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748522#M1459702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it says strlen not defined isnt this a keyword&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 12:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748522#M1459702</guid>
      <dc:creator>Karan_Chopra_</dc:creator>
      <dc:date>2010-03-23T12:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: get table control field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748523#M1459703</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;Give one space between the variable and open bracket and close bracket of the function STRLEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.     STRLEN(&amp;lt; 1 space&amp;gt; &amp;lt;your variable&amp;gt; &amp;lt;1 space &amp;gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Smart Varghese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 12:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-table-control-field-length/m-p/6748523#M1459703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T12:33:23Z</dc:date>
    </item>
  </channel>
</rss>

