<?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 IP Address Comparison in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ip-address-comparison/m-p/533289#M19511</link>
    <description>&lt;P&gt;Dear Members,&lt;/P&gt;
  &lt;P&gt;I am trying to compare IP address using below logic.The requirement is that i want to check if the system host IP is in between the IP range starting value is in loc_ip_from and end value is in loc_ip_to.&lt;/P&gt;
  &lt;P&gt;{&lt;/P&gt;
  &lt;P&gt;IF loc_ip_from LE system_host_ip &lt;/P&gt;
  &lt;P&gt;and &lt;/P&gt;
  &lt;P&gt; loc_ip_to ge system_host_ip. &lt;/P&gt;
  &lt;P&gt;Then I am Good.&lt;/P&gt;
  &lt;P&gt;ENDIF.&lt;/P&gt;
  &lt;P&gt;}&lt;/P&gt;
  &lt;P&gt;But the logic fails.&lt;/P&gt;
  &lt;P&gt;Example:-&lt;/P&gt;
  &lt;P&gt;loc_ip_from = 10.167.0.0&lt;/P&gt;
  &lt;P&gt; loc_ip_to = 10.167.255.255&lt;/P&gt;
  &lt;P&gt;and system_host_ip = 10.167.208.32 . this fails because of '32' is 2 digit figure.&lt;/P&gt;
  &lt;P&gt;It works if I make it 10.167.208.032 . because '032' is 3 digit&lt;/P&gt;
  &lt;P&gt;But if the system_host_ip = 10.167.208.132 this is pass because '132' is 3 digit.&lt;/P&gt;
  &lt;P&gt;Can you suggest me better logic in abap.&lt;/P&gt;
  &lt;P&gt;thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2018 10:08:43 GMT</pubDate>
    <dc:creator>rahulvsaganeau</dc:creator>
    <dc:date>2018-01-12T10:08:43Z</dc:date>
    <item>
      <title>IP Address Comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ip-address-comparison/m-p/533289#M19511</link>
      <description>&lt;P&gt;Dear Members,&lt;/P&gt;
  &lt;P&gt;I am trying to compare IP address using below logic.The requirement is that i want to check if the system host IP is in between the IP range starting value is in loc_ip_from and end value is in loc_ip_to.&lt;/P&gt;
  &lt;P&gt;{&lt;/P&gt;
  &lt;P&gt;IF loc_ip_from LE system_host_ip &lt;/P&gt;
  &lt;P&gt;and &lt;/P&gt;
  &lt;P&gt; loc_ip_to ge system_host_ip. &lt;/P&gt;
  &lt;P&gt;Then I am Good.&lt;/P&gt;
  &lt;P&gt;ENDIF.&lt;/P&gt;
  &lt;P&gt;}&lt;/P&gt;
  &lt;P&gt;But the logic fails.&lt;/P&gt;
  &lt;P&gt;Example:-&lt;/P&gt;
  &lt;P&gt;loc_ip_from = 10.167.0.0&lt;/P&gt;
  &lt;P&gt; loc_ip_to = 10.167.255.255&lt;/P&gt;
  &lt;P&gt;and system_host_ip = 10.167.208.32 . this fails because of '32' is 2 digit figure.&lt;/P&gt;
  &lt;P&gt;It works if I make it 10.167.208.032 . because '032' is 3 digit&lt;/P&gt;
  &lt;P&gt;But if the system_host_ip = 10.167.208.132 this is pass because '132' is 3 digit.&lt;/P&gt;
  &lt;P&gt;Can you suggest me better logic in abap.&lt;/P&gt;
  &lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 10:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ip-address-comparison/m-p/533289#M19511</guid>
      <dc:creator>rahulvsaganeau</dc:creator>
      <dc:date>2018-01-12T10:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: IP Address Comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ip-address-comparison/m-p/533290#M19512</link>
      <description>&lt;P&gt;(a) normalize the IP address to format ###.###.###.### for your string comparison or&lt;/P&gt;
  &lt;P&gt;(b) convert the IP address into &lt;A href="https://en.wikipedia.org/wiki/IP_address#IPv4_addresses"&gt;binary representation&lt;/A&gt; and do number comparison&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 10:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ip-address-comparison/m-p/533290#M19512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-01-12T10:35:19Z</dc:date>
    </item>
  </channel>
</rss>

