<?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 material code lenght in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995544#M707623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  i use the strlen function to measure the length of the material code. but, it returns an syntax error.  Is there any other function that i can use??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2007 05:06:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-07T05:06:51Z</dc:date>
    <item>
      <title>material code lenght</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995544#M707623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  i use the strlen function to measure the length of the material code. but, it returns an syntax error.  Is there any other function that i can use??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 05:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995544#M707623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T05:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: material code lenght</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995545#M707624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;len = strlen( mara-matnr ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in len field you will get the length of material code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 05:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995545#M707624</guid>
      <dc:creator>JoffyJohn</dc:creator>
      <dc:date>2007-11-07T05:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: material code lenght</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995546#M707625</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;Try like this&lt;/P&gt;&lt;P&gt;DATA:  w_len TYPE i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   w_len = STRLEN( v_pattern2 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else use this functionmodule SWA_STRINGLENGTH_GET&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>Wed, 07 Nov 2007 05:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995546#M707625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T05:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: material code lenght</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995547#M707626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried it before, it returns&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; the field "STRLEN" is unknown, but there is a field with the similar name 'SLEN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  DATA:  MATLEN TYPE I.

  READ TABLE IT_CHARDATA INDEX COUNTER.
  CONCATENATE 'abc' IT_CHARDATA-LINE+4 INTO L_TEMPITEM-MATERIAL.

  MATLEN = STRLEN(L_TEMPITEM-MATERIAL).


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 05:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995547#M707626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T05:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: material code lenght</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995548#M707627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be a space between brackets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA:  MATLEN TYPE I.
 
  READ TABLE IT_CHARDATA INDEX COUNTER.
  CONCATENATE 'abc' IT_CHARDATA-LINE+4 INTO L_TEMPITEM-MATERIAL.
 
  MATLEN = STRLEN( L_TEMPITEM-MATERIAL ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 05:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995548#M707627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T05:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: material code lenght</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995549#M707628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:  MATLEN TYPE I.
 
  READ TABLE IT_CHARDATA INDEX COUNTER.
  CONCATENATE 'abc' IT_CHARDATA-LINE+4 INTO L_TEMPITEM-MATERIAL.
 
  MATLEN = STRLEN( L_TEMPITEM-MATERIAL ).
 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one space after ( and &lt;/P&gt;&lt;P&gt;one space before ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 05:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995549#M707628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T05:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: material code lenght</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995550#M707629</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;use code as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: MATLEN TYPE I,&lt;/P&gt;&lt;P&gt;L_TEMPITEM-MATERIAL type mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'abc' '1234' into L_TEMPITEM-MATERIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FIND LENGTH OF A STRING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MATLEN = STRLEN( L_TEMPITEM-MATERIAL ).  " Space after ( and before )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ 'LENGTH OF', L_TEMPITEM-MATERIAL, 'IS', MATLEN." Commas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 05:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-code-lenght/m-p/2995550#M707629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T05:29:05Z</dc:date>
    </item>
  </channel>
</rss>

