<?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: an error message using DESCRIBE FIELD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585590#M1273604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to have the length of the field MAKT-MATNR. Then you can use the function STRLEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
MNR_LNG TYPE I.

MNR_LNG = STRLEN(MAKT-MATNR).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else as suggested you have to use the addition IN CHARACTER MODE with DESCRIBE FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2009 08:05:40 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2009-05-20T08:05:40Z</dc:date>
    <item>
      <title>an error message using DESCRIBE FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585586#M1273600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DESCRIBE FIELD MAKT-MATNR LENGTH MNR_LNG .       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that line off code gives me an error message:&lt;/P&gt;&lt;P&gt;In Unicode, DESCRIBE LENGTH can only be used with the IN BYTE MODE or IN CHARACTER MODE addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone else provide me an explanation and solution..thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 07:56:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585586#M1273600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T07:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: an error message using DESCRIBE FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585587#M1273601</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;see the below example.&lt;/P&gt;&lt;P&gt;DATA: text  TYPE c LENGTH 1, &lt;/P&gt;&lt;P&gt;      blen  TYPE i, &lt;/P&gt;&lt;P&gt;      clen  TYPE i, &lt;/P&gt;&lt;P&gt;      bytes TYPE i. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD text LENGTH blen IN BYTE MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used this code works fine.  Try this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 08:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585587#M1273601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T08:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: an error message using DESCRIBE FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585588#M1273602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD MAKT-MATNR LENGTH MNR_LNG in CHARACTER MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try F1...&lt;/P&gt;&lt;P&gt;If u r not able to find answer Search SDN before u post...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Veeranji Reddy on May 20, 2009 1:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 08:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585588#M1273602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: an error message using DESCRIBE FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585589#M1273603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the solution would be to add IN CHARACTER MODE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F1 help on DESCRIBE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 08:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585589#M1273603</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-05-20T08:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: an error message using DESCRIBE FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585590#M1273604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to have the length of the field MAKT-MATNR. Then you can use the function STRLEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
MNR_LNG TYPE I.

MNR_LNG = STRLEN(MAKT-MATNR).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else as suggested you have to use the addition IN CHARACTER MODE with DESCRIBE FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 08:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585590#M1273604</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-05-20T08:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: an error message using DESCRIBE FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585591#M1273605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i've did exactly what you've told..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same error still occurs..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 08:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585591#M1273605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T08:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: an error message using DESCRIBE FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585592#M1273606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does the STRLEN function has the same outcome as DESCRIBE FIELD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it does, i can use STRLEN  as a replacement instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;soo hing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 08:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585592#M1273606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T08:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: an error message using DESCRIBE FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585593#M1273607</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; just try like this, I had check it and it is not throwing any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{ DESCRIBE FIELD MAKT-MATNR LENGTH MNR_LNG in byte mode. }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 08:28:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585593#M1273607</guid>
      <dc:creator>former_member282823</dc:creator>
      <dc:date>2009-05-20T08:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: an error message using DESCRIBE FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585594#M1273608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this statement,i think it will works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD MAKT-MATNR LENGTH MNR_LNG IN BYTE MODE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 08:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585594#M1273608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T08:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: an error message using DESCRIBE FIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585595#M1273609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When you are using descirbe statement u have to user either charcter mode or binary mode in Unicode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 21:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/an-error-message-using-describe-field/m-p/5585595#M1273609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-05T21:43:26Z</dc:date>
    </item>
  </channel>
</rss>

