<?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>Question Re: BRF+ return value ' ' space in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/brf-return-value-space/qaa-p/12745732#M4783907</link>
    <description>&lt;P&gt;Hi Carlos, thank you very much. Meanwhile I did something similar (I put "*"instead of " " in all decision tables)&lt;BR /&gt;And at the end I have implemented a formular which exchange all "*" to " ".&lt;/P&gt;</description>
    <pubDate>Sat, 18 Nov 2023 19:01:13 GMT</pubDate>
    <dc:creator>bjoern_rohde</dc:creator>
    <dc:date>2023-11-18T19:01:13Z</dc:date>
    <item>
      <title>BRF+ return value ' ' space</title>
      <link>https://community.sap.com/t5/technology-q-a/brf-return-value-space/qaq-p/12745729</link>
      <description>&lt;P&gt;Hi dear community,&lt;/P&gt;
  &lt;P&gt;I have some trouble with a BRF+ task. I am looking for a solution to return a space " " as value for a single element.&lt;/P&gt;
  &lt;P&gt;Our use case:&lt;/P&gt;
  &lt;P&gt;We want to use BRF+ to generate a short text for materials with four BRF+elements &lt;/P&gt;
  &lt;P&gt;e.g. W_5_12_2&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;Element 1: W &lt;/LI&gt; 
   &lt;LI&gt;Element 2: 5 &lt;/LI&gt; 
   &lt;LI&gt;Element 3: 12 &lt;/LI&gt; 
   &lt;LI&gt;Element 4: 2&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;This is already done, but now there are some special possibilities:&lt;/P&gt;
  &lt;P&gt;One or more elements can be empty, and so we have to return one or more spaces " " (without the quotes of course and I also tried it with ' ' and * *) &lt;/P&gt;
  &lt;P&gt;e.g. W_ _12_2&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;Element 1: W&lt;/LI&gt; 
   &lt;LI&gt;Element 2: " " &lt;/LI&gt; 
   &lt;LI&gt;Element 3: 12 &lt;/LI&gt; 
   &lt;LI&gt;Element 4: 2&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;1. I have tried to assign space value within a decision table&lt;/P&gt;
  &lt;P&gt;2. I have also tried to solve this with a workaround - Therefore I have created a formular with ' '. This solution only works if there are some digits infront. If the formular starts with a space, it won´t get returned.&lt;/P&gt;
  &lt;P&gt;3. I have tried to set a variable or a constant with a space value, but it automatically deletes all spaces.&lt;/P&gt;
  &lt;P&gt;Is there any possibility...a special string or something like that, to return a single space to an element?&lt;/P&gt;
  &lt;P&gt;And yes, the spaces are necessary to keep every digit on its regular position&lt;/P&gt;
  &lt;P&gt;Thank you very much in advance&lt;/P&gt;
  &lt;P&gt;1.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2197735-screenshot-2023-08-17-at-184245.png" /&gt;&lt;/P&gt;
  &lt;P&gt;2.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2197755-screenshot-2023-08-17-at-183718.png" /&gt;&lt;/P&gt;
  &lt;P&gt;3.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2197736-screenshot-2023-08-17-at-185629.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 17:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/brf-return-value-space/qaq-p/12745729</guid>
      <dc:creator>bjoern_rohde</dc:creator>
      <dc:date>2023-08-17T17:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: BRF+ return value ' ' space</title>
      <link>https://community.sap.com/t5/technology-q-a/brf-return-value-space/qaa-p/12745730#M4783905</link>
      <description>&lt;P&gt;Hello Bj&lt;SPAN class="mention-scrubbed"&gt;bjoern.rohde&lt;/SPAN&gt;rn,&lt;/P&gt;&lt;P&gt;You can try to concatenate your result with a FORMULA. &lt;/P&gt;&lt;P&gt;Inside the formula, you can create an IF condition, if the element is INITIAL then " ". This will give you the space you are searching. &lt;/P&gt;&lt;P&gt;I hope this solve your requierement, please dont forget to point.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Idiaquez&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 18:20:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/brf-return-value-space/qaa-p/12745730#M4783905</guid>
      <dc:creator>Carlos_Idiaquez</dc:creator>
      <dc:date>2023-11-13T18:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: BRF+ return value ' ' space</title>
      <link>https://community.sap.com/t5/technology-q-a/brf-return-value-space/qaa-p/12745731#M4783906</link>
      <description>&lt;P&gt;Hello Björn,&lt;/P&gt;&lt;P&gt;withing BRF+ this should work. If you are checking the simulation mode or BRF+ trace values, you will get wrong (condensed) results.&lt;/P&gt;&lt;P&gt;I made two easy formulas, one with '', the other with ' '; because we know, BRF+ treats this differently &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In debugger (Methode PROCESS_PURE)  there is difference in hexa-value, so there is difference between those two values:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2226782-image.png" /&gt;&lt;/P&gt;&lt;P&gt;And there is even one example by SAP in formula (SHIFT_RIGHT_PLACES), where "blank" is put on the first place:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2226783-image.png" /&gt;&lt;/P&gt;&lt;P&gt;In debugger is this correctly shown:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2226784-image.png" /&gt;&lt;/P&gt;&lt;P&gt;I would say, according to hexa-values, that also your example is working:&lt;/P&gt;&lt;P&gt;First formula: abcd&lt;/P&gt;&lt;P&gt;Second formula: ' ' &amp;amp; 'abcd'&lt;/P&gt;&lt;P&gt;Third formula: ' ' &amp;amp; 'abcd' &amp;amp; ' '&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2226786-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Then I made simple decision table and incorporated it with formula and got this in BRF+ debugger:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2226789-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Decision Table:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2226790-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Formula CONCATENATE_BLANKS:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2226791-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Formula for concatenating blank + 1:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2226792-image.png" /&gt;&lt;/P&gt;&lt;P&gt;I didn't check how ABAP is working after we leave BRF+, but if you don't see correct length values in PROCESS_PURE of your class, you should report bug to OSS or look for notes.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Nana&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 14:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/brf-return-value-space/qaa-p/12745731#M4783906</guid>
      <dc:creator>Nana</dc:creator>
      <dc:date>2023-11-15T14:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: BRF+ return value ' ' space</title>
      <link>https://community.sap.com/t5/technology-q-a/brf-return-value-space/qaa-p/12745732#M4783907</link>
      <description>&lt;P&gt;Hi Carlos, thank you very much. Meanwhile I did something similar (I put "*"instead of " " in all decision tables)&lt;BR /&gt;And at the end I have implemented a formular which exchange all "*" to " ".&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 19:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/brf-return-value-space/qaa-p/12745732#M4783907</guid>
      <dc:creator>bjoern_rohde</dc:creator>
      <dc:date>2023-11-18T19:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: BRF+ return value ' ' space</title>
      <link>https://community.sap.com/t5/technology-q-a/brf-return-value-space/qaa-p/12745733#M4783908</link>
      <description>&lt;P&gt;Hi Nana,&lt;/P&gt;&lt;P&gt;thank you very much for your comment - I will definitly try this.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Björn&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 19:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/brf-return-value-space/qaa-p/12745733#M4783908</guid>
      <dc:creator>bjoern_rohde</dc:creator>
      <dc:date>2023-11-18T19:02:28Z</dc:date>
    </item>
  </channel>
</rss>

