<?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: Alphanumeric Condition on a field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphanumeric-condition-on-a-field/m-p/6194259#M1375067</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;First get the value using &lt;STRONG&gt;GET_ATTRIBUTE&lt;/STRONG&gt;. once the value is available in you method, it is same as normal ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : first type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first = vbeln0+(1).&lt;/P&gt;&lt;P&gt;now validate the value in First. whether it holds Alphabet or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass it back using SET_ATTRIBUTE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2009 09:45:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-16T09:45:48Z</dc:date>
    <item>
      <title>Alphanumeric Condition on a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphanumeric-condition-on-a-field/m-p/6194258#M1375066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Webdynpro Application, I need to include some validation on a Order Number field. The conditions that need to be set on the Order Number are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first character should be an Alphabet and the rest should be numbers.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to put these conditions. I hope you can understand my requirements. Please let me know if it is not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gopal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 09:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphanumeric-condition-on-a-field/m-p/6194258#M1375066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-16T09:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Alphanumeric Condition on a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphanumeric-condition-on-a-field/m-p/6194259#M1375067</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;First get the value using &lt;STRONG&gt;GET_ATTRIBUTE&lt;/STRONG&gt;. once the value is available in you method, it is same as normal ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : first type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first = vbeln0+(1).&lt;/P&gt;&lt;P&gt;now validate the value in First. whether it holds Alphabet or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass it back using SET_ATTRIBUTE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 09:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphanumeric-condition-on-a-field/m-p/6194259#M1375067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-16T09:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alphanumeric Condition on a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphanumeric-condition-on-a-field/m-p/6194260#M1375068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply. I am new to ABAP. So, I really dont know how to do this in ABAP. Could you please help me by giving the code to this requirement. I would greatly appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gopal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 09:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphanumeric-condition-on-a-field/m-p/6194260#M1375068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-16T09:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alphanumeric Condition on a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphanumeric-condition-on-a-field/m-p/6194261#M1375069</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;Please have a look at the sample code and try to implement in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data : v_char(10) type c,  "ORDER NUMBER
       v_char1(1) type c,
       v_char2(9) type c.

v_char = 'A123456789'.

V_CHAR1 = V_CHAR+0(1).
V_CHAR2 = V_CHAR+1(9).

IF V_CHAR1 CO 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' AND V_CHAR2 CO '0123456789'.
*V_CHAR IS VALID.
WRITE :/ V_CHAR, V_CHAR1, V_CHAR2.
ELSE.
*V_CHAR IS INVALID.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 10:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphanumeric-condition-on-a-field/m-p/6194261#M1375069</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-10-16T10:33:42Z</dc:date>
    </item>
  </channel>
</rss>

