<?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: Validate Amount Field against input file values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764302#M1951528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In what way ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will detect if the user enters a number that cannot be translated to a number and then you can issue an error message to suit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In what way does that not suit your requirement ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 21:31:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-06-14T21:31:40Z</dc:date>
    <item>
      <title>Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764289#M1951515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Decimal notation profile is USR01-DCPFM&amp;nbsp; = SPACE ( Blank value ) i.e. Thousand's separator is '.' and decimal is ','&lt;/P&gt;&lt;P&gt;In VA01, if I enter Condition value = &lt;STRONG&gt;1.24,34 , I get error - ' Input must be in the format __.___.___.__~,__V'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to replicate same standard behavior in my custom report where I will be getting this amounts in excel file.&lt;/P&gt;&lt;P&gt;I want to check if file has invalid entries such as 1.24,34&amp;nbsp; or not . If yes error message&amp;nbsp; ' Input must be in the format __.___.___.__~,__V' is to be given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with FM 'HR99L00_CONV_FROM_EDIT_MASK_IN ' by passing input = 1.24,34&amp;nbsp; and P_EDIT_MASK = __.___.___.__~,__V.&lt;/P&gt;&lt;P&gt;It gives expected error &lt;STRONG style="text-decoration: underline;"&gt;but for correct value&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;input = 1.234,45&lt;/SPAN&gt;&amp;nbsp; also it gives error input must be in the format __.___.___.__~,__V.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please let me know where I am doing mistake.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 20:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764289#M1951515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-13T20:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764290#M1951516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think this function module will help you to check the number format. AFAIK, It expects the input to have the same length as the edit mask. I couldn't see a handling of sign in the function module. If you want to convert the input number into SAP format, you can just use this &lt;A href="https://wiki.scn.sap.com/wiki/display/ABAP/Conversion+from+external+to+internal+number+format"&gt;method&lt;/A&gt;. It uses user setting to convert input value into number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 20:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764290#M1951516</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-06-13T20:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764291#M1951517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can convert Amount form external format to internal format. But problem is to detect invalid values and throw error for such records in input file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: if I pass invalid amount 1.24,56 for &lt;SPAN style="color: #333333; font-size: 12px;"&gt;USR01-DCPFM&amp;nbsp; = SPACE then I should throe error. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Otherwise this amount will be saved as &lt;STRONG&gt;124. 56&lt;/STRONG&gt; in database as per the logic to convert values from ext. to internal format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way by which I can detect such erroneous values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 06:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764291#M1951517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-14T06:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764292#M1951518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a TRY - CATCH - ENDTRY block with a cx_sy-conversion_no_number error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 06:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764292#M1951518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-14T06:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764293#M1951519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didn't get your solution. For what you want me to use TRY -CATCH block.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please elaborate little more.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 07:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764293#M1951519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-14T07:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764294#M1951520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To perform the functionality that you wish to perform.&amp;nbsp; ie.&amp;nbsp; To catch invalid numeric values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You TRY to move your value from the excel file to a numeric variable,&amp;nbsp; you then CATCH the exception which is raised when the value does not conform to the definition or a number where by you then issue an appropriate error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your editor type 'TRY',&amp;nbsp; put the cursor on it and press the F1 key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 10:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764294#M1951520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-14T10:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764295#M1951521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check if values are invalid in terms of Thousand's separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried moving value 13.21,19 to variable&amp;nbsp; declared with below type:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA&amp;nbsp; lv_num(10)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although it's invalid number in terms of thousand's separator, it did not raise any exception.&lt;/P&gt;&lt;P&gt;Output - lv_num = 0000132119.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 11:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764295#M1951521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-14T11:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764296#M1951522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How long is your number field? Does it include signs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764296#M1951522</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-06-14T12:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764297#M1951523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is true even on SAP screens. SAP doesn't expect user to put in thousand separators while entering numbers on screens - it is purely optional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764297#M1951523</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-06-14T13:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764298#M1951524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And that code will do just that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use a numeric field,&amp;nbsp; NOT a string field that accepts only numbers.&amp;nbsp; Something like a type of Menge_D.&amp;nbsp; Then move your invalid number to it and see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A NUMC field strips out any invalid characters when you move stuff to it.&amp;nbsp; It is also a string field,&amp;nbsp; which is not what you were talking about above (ie a number field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 14:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764298#M1951524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-14T14:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764299#M1951525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that's partially true.. If you put &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; background: transparent;"&gt;Condition Amt= 1.23,45&lt;/SPAN&gt;&amp;nbsp; in VA02- Condition tab&amp;nbsp; it also gives error input must be in the format __.___.___.__~,__V.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So SAP expects to put input in correct format if we are adding &lt;SPAN style="color: #333333; font-size: 12px;"&gt;thousand separators manually.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if input file is having&amp;nbsp; invalid value as 1&lt;SPAN style="font-size: 13.3333px;"&gt;.23,45 then I should throw an error.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:58:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764299#M1951525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-14T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764300#M1951526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution given by you won't suffice my requirement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 16:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764300#M1951526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-14T16:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764301#M1951527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if you add it, then SAP expects them to be in correct format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you so concerned about the format only? Is your primary intention to read the input value or just validate the format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 16:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764301#M1951527</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-06-14T16:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764302#M1951528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In what way ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will detect if the user enters a number that cannot be translated to a number and then you can issue an error message to suit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In what way does that not suit your requirement ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764302#M1951528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-14T21:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764303#M1951529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is to determine if Amount has correct thousand's separator or not and not whether Amount amount is alphanumeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your solution of declaring variable of type 'N' and passing amount field to it but it is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 07:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764303#M1951529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-15T07:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764304#M1951530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read what I said - a numeric field something like Menge_d,&amp;nbsp; and not a NUMC field.&amp;nbsp; (ie a string field that only accepts numbers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And THEN it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirement is so simple!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 11:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764304#M1951530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-15T11:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764305#M1951531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich.. I have already tried your solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you move Amount 1.23,45 to variable declared with Data element NETWR_AP then it will give dump for the obvious reason that &lt;SPAN style="font-size: 13.3333px;"&gt;1.23,45 contains comma and it's not in SAP's internal number format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I have mentioned my requirement is &lt;SPAN style="color: #333333; font-size: 12px;"&gt;to determine if Amount has correct thousand's separator. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Moving amt to numeric field &lt;SPAN style="font-size: 13.3333px;"&gt;with Data element NETWR_AP will not help as it will give dump just because amount is not in internal number format. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 05:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764305#M1951531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-16T05:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764306#M1951532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You obviously have not tried what I suggested if you are getting short dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will spell it out for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_Number_Field = '1.23456,78'.&lt;/P&gt;&lt;P&gt;Catch CX_SY_CONVERSION_NO_NUMBER.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Message 'That number is erroneous'.&lt;/P&gt;&lt;P&gt;EndTry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 06:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764306#M1951532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-16T06:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764307#M1951533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the code I tried again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_amt TYPE netwr_ap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_amt = '1.234,78'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CATCH cx_sy_conversion_no_number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE 'That number is erroneous' TYPE 'I'.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here &lt;SPAN style="font-size: 13.3333px;"&gt;1.234,78 is correct amount from thousand's separator perspective and still the exception is raised which is wrong...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 07:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764307#M1951533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-16T07:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Amount Field against input file values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764308#M1951534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&amp;nbsp; prior to trying this you need to remove any group separators that are appropriate for the decimal notation being used.&amp;nbsp; Group separators can either be ',',&amp;nbsp; '.' or a space.&amp;nbsp;&amp;nbsp; You can determine the group separator by getting the position of the dot in the string and then the comma or space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the comma or space's position is less than the dot then the gs is a comma or space.&amp;nbsp; If the dot is less than the comma or spaces position then the gs is a dot.&amp;nbsp; You need to make a special case if these characters do not appear in the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At that point you have an answer as to whether the format is somewhat correct.&amp;nbsp; You can then remove the gs's and use the TRY block to determine if it is an actual number or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 08:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-amount-field-against-input-file-values/m-p/11764308#M1951534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-16T08:01:11Z</dc:date>
    </item>
  </channel>
</rss>

