<?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: Dump in Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620725#M2012620</link>
    <description>&lt;P&gt;Okay, now I got your requirement for this coding.&lt;/P&gt;&lt;P&gt;One possible solution could be:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Process each letter of the word entered in the parameter using e.g. the WHILE you already implemented&lt;/LI&gt;&lt;LI&gt;Using comparing operators, e.g. CO (contains only) to check if the single letter is part of the vowels-variable&lt;/LI&gt;&lt;LI&gt;If YES: counter+1&lt;/LI&gt;&lt;LI&gt;If NO: next single letter of the word&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope this helps you to solve the issue by your own &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;BR /&gt;Jens&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2022 21:48:38 GMT</pubDate>
    <dc:creator>Jeansy</dc:creator>
    <dc:date>2022-08-31T21:48:38Z</dc:date>
    <item>
      <title>Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620722#M2012617</link>
      <description>&lt;P&gt;Hi i create a program that count the number of vowels in a input of a user...&lt;/P&gt;
  &lt;P&gt;When i run it dump when i put a word that has a lenght more than 6 characters.&lt;/P&gt;
  &lt;P&gt;My Parameterv"p_char" as a lenght of 20 and it is the max of the length...&lt;/P&gt;
  &lt;P&gt;Here is the code...&lt;/P&gt;
  &lt;P&gt;Thanks in advance..&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;**** Déclaration des variables ****

DATA: vlength_p   TYPE i, " Variable pour stocker la longueur d'input
      v_vowels(6) TYPE c, " Liste des voyelles
      index       TYPE i,
      occurences  TYPE i, " Variable de décompte
      v_vbyv      TYPE c. " Variable de chaque voyelle


**** Création Paramètres pour input User ****

PARAMETERS : p_char(20) TYPE c.


vlength_p = strlen( p_char ). " On obtien la longueur de l'input user
v_vowels = 'AEIOUY'. " Assignation des voyelles dans la variable

index = sy-index.  " Variable système utilisée pour la boucle

WHILE index &amp;lt; vlength_p. " Effectue bloucle tant que cette condition est vraie

  v_vbyv = v_vowels+index. " On change

*** On compte les occurences en fonction de la voyelle sur laquelle on est
  FIND ALL OCCURRENCES OF v_vbyv IN p_char MATCH COUNT occurences.
  ADD 1 TO index.

  IF occurences = 0.

  ELSE. " Ce qu'on fait si on trouve des occurences
    WRITE : / v_vbyv, TEXT-000, occurences, TEXT-001. " On affiche le resultat si occurences

  ENDIF.

ENDWHILE.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Aug 2022 19:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620722#M2012617</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-08-31T19:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620723#M2012618</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I checked your coding.&lt;/P&gt;&lt;P&gt;The reason why a dumps comes up when the length of your variable is longer that 6 characters is because you set the variable V_VOWELS to 'AEIOUY' (length of 6 characters).&lt;/P&gt;&lt;P&gt;In the while-loop you iterate based on the length of the char you entered as parameter. If this is longer than 6 chars you get an issue with this command:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;v_vbyv = v_vowels+index. " On change&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As mentioned, the variable V_VOWELS has a length of 6. So in case index gets the value of 7, it is not possible anymore to access this 7th char in this variable using this offset. That's why it is dumping with DATA_OFFSET_TOO_LARGE.&lt;/P&gt;&lt;P&gt;To be honest, I did not really understand what your are trying to achieve with this coding, that's why I cannot propose another possible solution. But I hope this helps you to understand the reason of the dump.&lt;/P&gt;&lt;P&gt;Kind regards&lt;BR /&gt;Jens&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 20:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620723#M2012618</guid>
      <dc:creator>Jeansy</dc:creator>
      <dc:date>2022-08-31T20:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620724#M2012619</link>
      <description>&lt;P&gt;Thanks you, Yes it help&lt;/P&gt;&lt;P&gt;My program is to count the numbers of vowels of a word enter in a parameter...&lt;/P&gt;&lt;P&gt;I guess this isn't the right code to do...&lt;/P&gt;&lt;P&gt;Hum..&lt;/P&gt;&lt;P&gt;If you have a solution can you just don't give it , just give me Hich to help find the solution by my self. &lt;/P&gt;&lt;P&gt;if i use an internal table to store the vowels instead in a variable, would it be a way ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 21:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620724#M2012619</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-08-31T21:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620725#M2012620</link>
      <description>&lt;P&gt;Okay, now I got your requirement for this coding.&lt;/P&gt;&lt;P&gt;One possible solution could be:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Process each letter of the word entered in the parameter using e.g. the WHILE you already implemented&lt;/LI&gt;&lt;LI&gt;Using comparing operators, e.g. CO (contains only) to check if the single letter is part of the vowels-variable&lt;/LI&gt;&lt;LI&gt;If YES: counter+1&lt;/LI&gt;&lt;LI&gt;If NO: next single letter of the word&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope this helps you to solve the issue by your own &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;BR /&gt;Jens&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 21:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620725#M2012620</guid>
      <dc:creator>Jeansy</dc:creator>
      <dc:date>2022-08-31T21:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620726#M2012621</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;fotso&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Have a look at this &lt;A href="https://regexland.com/vowels/" target="_blank"&gt;Regex&lt;/A&gt; and you will be able to achieve your requirement in just one statement. No looping, no counters, no indexing, no internal tables needed.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 23:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620726#M2012621</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2022-08-31T23:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620727#M2012622</link>
      <description>&lt;P&gt;Please attach the text file of the short dump when you have a question about a short dump, and indicate an example of "a word that has a lenght more than 6 characters", because maybe people will try other words which won't fail.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 06:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620727#M2012622</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-09-01T06:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620728#M2012623</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;fotso&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I think this is what you need.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    DATA: p_char TYPE string VALUE 'Hello Christian Fotso, nice to meet you!'.

    FIND ALL OCCURRENCES OF PCRE '[AEIOUY]' IN p_char IGNORING CASE MATCH COUNT DATA(lv_vowels_count).
    WRITE:/ lv_vowels_count.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'd recommend you to check out this blog: &lt;A href="https://blogs.sap.com/2021/09/23/regular-expressions-regex-in-modern-abap/" target="_blank"&gt;Regular Expressions (RegEx) in Modern ABAP&lt;/A&gt;. Also read about the PCRE library which I have used here, you will find details about it the mentioned blog.&lt;/P&gt;&lt;P&gt;RegEx is very powerful and can be very helpful scenarios such as your requirement.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 06:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620728#M2012623</guid>
      <dc:creator>Nitish2027</dc:creator>
      <dc:date>2022-09-01T06:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620729#M2012624</link>
      <description>&lt;P&gt;As explained by &lt;SPAN class="mention-scrubbed"&gt;jzaehringer&lt;/SPAN&gt;, I hope you are clear with why you are getting the dump. I wanted to provide you with alternative solution and more importantly let you know about RegEx, which you can use in such scenarios. &lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 06:32:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620729#M2012624</guid>
      <dc:creator>Nitish2027</dc:creator>
      <dc:date>2022-09-01T06:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620730#M2012625</link>
      <description>&lt;P&gt;I couldn't find the solution, can you help thanks&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 18:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620730#M2012625</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-09-01T18:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620731#M2012626</link>
      <description>&lt;P&gt;My answer was the same as what Nitish provided later below.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 00:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620731#M2012626</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2022-09-02T00:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620732#M2012627</link>
      <description>&lt;P&gt;Thanks you, but here you count in your variable lv_vowels_counts all the vowels in the p_char,&lt;/P&gt;&lt;P&gt;I want to make a count by vowels in p_char,&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 10:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620732#M2012627</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-09-02T10:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620733#M2012628</link>
      <description>&lt;P&gt;i know it was the same, but it fit partial of my solution&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 10:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620733#M2012628</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-09-02T10:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620734#M2012629</link>
      <description>&lt;P&gt;So i ll processing the check the 6 vowels... with a If statement instead of FIND &lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 11:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620734#M2012629</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-09-02T11:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620735#M2012630</link>
      <description>&lt;P&gt;This worked well for me:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters: p_string type text40 obligatory.
find all occurrences of regex '[AEIOU]' in to_upper( p_string ) match count data(occur).
message |Number of vowels:{ occur }| type 'S'.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Sep 2022 11:35:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620735#M2012630</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2022-09-02T11:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620736#M2012631</link>
      <description>&lt;P&gt;Your WHILE loop must be executed once per vowel, not once per character of the string.&lt;/P&gt;&lt;P&gt;(Also insure you check for uppercase/lowercase characters,)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 11:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620736#M2012631</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2022-09-02T11:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620737#M2012632</link>
      <description>&lt;P&gt;Sorry, I don't understand what you are looking for, can you please try and explain again?&lt;/P&gt;&lt;P&gt;What I understand is, you are trying to count the number of vowels present in your input parameter p_char, and then store that result in a variable right? The vowels in your case [AEIOUY] are going to be fixed right?&lt;/P&gt;&lt;P&gt;Please try to explain your requirement if its not what I have mentioned.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 11:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620737#M2012632</guid>
      <dc:creator>Nitish2027</dc:creator>
      <dc:date>2022-09-02T11:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620738#M2012633</link>
      <description>&lt;P&gt;For the Loop that what  &lt;SPAN class="mention-scrubbed"&gt;jeansy&lt;/SPAN&gt;  told me to do.&lt;/P&gt;&lt;P&gt;For the Uppercas/Lowercase i use 'Ignoring Case'&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 13:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-program/m-p/12620738#M2012633</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-09-02T13:01:44Z</dc:date>
    </item>
  </channel>
</rss>

