<?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: Find char in text string by hex value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-char-in-text-string-by-hex-value/m-p/9030439#M1700238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use IN BYTE MODE, both fields must be byte-type (as opposed to charactor-type) fields. This means that both hex1 and hex2 must be type x or type xstring. I don't know of a way to find a byte stored as hex in a character string. But I imagine it shouldn't be too hard to convert the character string to a hex string. This sounds like the kind of topic that would have many of posts on these forums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(to format your code as code: go to the advanced editor. Paste your code and select it. Click the '&amp;gt;&amp;gt;' Insert button. Select Syntax Highlighting-&amp;gt;Plain).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 15:33:53 GMT</pubDate>
    <dc:creator>alex_campbell</dc:creator>
    <dc:date>2012-10-15T15:33:53Z</dc:date>
    <item>
      <title>Find char in text string by hex value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-char-in-text-string-by-hex-value/m-p/9030436#M1700235</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 want to check if text string contains some specific hexadecimal code.&lt;/P&gt;&lt;P&gt;The built-in ABAP &lt;EM&gt;&lt;STRONG&gt;FIND()&lt;/STRONG&gt;&lt;/EM&gt; function allows to use only plain text type (C, N etc.) variables as search parameter, but I want to use hex type variable (type X).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any string search function that can receive as search parameter the variable of type X (hex type)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 17:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-char-in-text-string-by-hex-value/m-p/9030436#M1700235</guid>
      <dc:creator>mikeb</dc:creator>
      <dc:date>2012-10-12T17:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find char in text string by hex value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-char-in-text-string-by-hex-value/m-p/9030437#M1700236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use the 'IN BYTE MODE' addition. For example: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;FIND hex2 IN hex1 IN BYTE MODE. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is in the documentation for the FIND keyword, as well as a number of ther string manipulation keywords. Use F1 help for details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 18:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-char-in-text-string-by-hex-value/m-p/9030437#M1700236</guid>
      <dc:creator>alex_campbell</dc:creator>
      <dc:date>2012-10-12T18:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Find char in text string by hex value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-char-in-text-string-by-hex-value/m-p/9030438#M1700237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I understand right, that «hex2» may be type of string and if I use keyword «&lt;EM&gt;&lt;STRONG&gt;IN BYTE MODE&lt;/STRONG&gt;&lt;/EM&gt;», then &lt;EM&gt;&lt;STRONG&gt;FIND()&lt;/STRONG&gt;&lt;/EM&gt; will still search by hex code value and not by plain text?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more general question, what service do you use to paste a code here in forum? &lt;A href="http://pastebin.com"&gt;http://pastebin.com&lt;/A&gt; or something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 18:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-char-in-text-string-by-hex-value/m-p/9030438#M1700237</guid>
      <dc:creator>mikeb</dc:creator>
      <dc:date>2012-10-12T18:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Find char in text string by hex value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-char-in-text-string-by-hex-value/m-p/9030439#M1700238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use IN BYTE MODE, both fields must be byte-type (as opposed to charactor-type) fields. This means that both hex1 and hex2 must be type x or type xstring. I don't know of a way to find a byte stored as hex in a character string. But I imagine it shouldn't be too hard to convert the character string to a hex string. This sounds like the kind of topic that would have many of posts on these forums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(to format your code as code: go to the advanced editor. Paste your code and select it. Click the '&amp;gt;&amp;gt;' Insert button. Select Syntax Highlighting-&amp;gt;Plain).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 15:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-char-in-text-string-by-hex-value/m-p/9030439#M1700238</guid>
      <dc:creator>alex_campbell</dc:creator>
      <dc:date>2012-10-15T15:33:53Z</dc:date>
    </item>
  </channel>
</rss>

