<?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 Weird behaviour with VALUE and SWITCH in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349693#M1992640</link>
    <description>&lt;P&gt;Today I encountered a strange behaviour after I added a SWITCH statement in a VALUE assignment.&lt;/P&gt;
  &lt;P&gt;Let's assume there is a simple table with two columns ID and TXT:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  TYPES: BEGIN OF _test,
           id   TYPE char02,
           txt  TYPE string,
         END OF _test,
         _test_t TYPE STANDARD TABLE OF _test WITH DEFAULT KEY.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Then there is a simple VALUE statement to fill the table:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  DATA(test) =  VALUE _test_t(
      ( id = 'AA'   txt = 'AAA' )
      ( id = 'bb'   txt = 'bbb' )
      (             txt = 'CCC' )     ).
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Not a big deal and works as expected:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;ID | TXT
---+-----
AA | AAA
bb | bbb
   | CCC&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Then I added the SWITCH statement because line #2 should have a different value depending on a variable:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  DATA(test) =  VALUE _test_t(
      ( id = 'AA' txt = 'AAA' )
      ( SWITCH #( sy-uname(1)
         WHEN 'E' THEN VALUE #( id = 'BB'  txt = 'BBB' )
                  ELSE VALUE #( id = 'bb'  txt = 'bbb' ) ) )
      ( txt = 'CCC' ) ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;As my username starts with E the result looks - also expected - like this:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;ID | TXT
---+-----
AA | AAA
BB | BBB
   | CCC&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But then for any reason I didn't want to have the field ID filled in the first line and changed my code accordingly:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  DATA(test) =  VALUE _test_t(
      ( txt = 'AAA' )              "Value for ID deleted!
      ( SWITCH #( sy-uname(1)
         WHEN 'E' THEN VALUE #( id = 'BB'  txt = 'BBB' )
                  ELSE VALUE #( id = 'bb'  txt = 'bbb' ) ) )
      ( txt = 'CCC' ) ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The expected result would be, that line #2 is the only line where field ID is filled:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;ID | TXT
---+-----
   | AAA
BB | BBB
   | CCC&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But the result is the following:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;ID | TXT
---+-----
   | AAA
BB | BBB
BB | CCC&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Line #3 is filled with ID = "BB" although I do not tell the system to do so... &lt;/P&gt;
  &lt;P&gt;I tested on two different SAP-Systems:&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;SAP_ABA 750/ SAP_BASIS 750&lt;/LI&gt; 
   &lt;LI&gt;SAP_ABA 75E/ SAP_BASIS 754&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;Can anyone proof this behavior or tell me what I am doing wrong?&lt;/P&gt;
  &lt;P&gt;Thanks in advance&lt;BR /&gt; ~Enno&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 19:46:03 GMT</pubDate>
    <dc:creator>EnnoWulff</dc:creator>
    <dc:date>2021-03-08T19:46:03Z</dc:date>
    <item>
      <title>Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349693#M1992640</link>
      <description>&lt;P&gt;Today I encountered a strange behaviour after I added a SWITCH statement in a VALUE assignment.&lt;/P&gt;
  &lt;P&gt;Let's assume there is a simple table with two columns ID and TXT:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  TYPES: BEGIN OF _test,
           id   TYPE char02,
           txt  TYPE string,
         END OF _test,
         _test_t TYPE STANDARD TABLE OF _test WITH DEFAULT KEY.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Then there is a simple VALUE statement to fill the table:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  DATA(test) =  VALUE _test_t(
      ( id = 'AA'   txt = 'AAA' )
      ( id = 'bb'   txt = 'bbb' )
      (             txt = 'CCC' )     ).
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Not a big deal and works as expected:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;ID | TXT
---+-----
AA | AAA
bb | bbb
   | CCC&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Then I added the SWITCH statement because line #2 should have a different value depending on a variable:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  DATA(test) =  VALUE _test_t(
      ( id = 'AA' txt = 'AAA' )
      ( SWITCH #( sy-uname(1)
         WHEN 'E' THEN VALUE #( id = 'BB'  txt = 'BBB' )
                  ELSE VALUE #( id = 'bb'  txt = 'bbb' ) ) )
      ( txt = 'CCC' ) ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;As my username starts with E the result looks - also expected - like this:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;ID | TXT
---+-----
AA | AAA
BB | BBB
   | CCC&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But then for any reason I didn't want to have the field ID filled in the first line and changed my code accordingly:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  DATA(test) =  VALUE _test_t(
      ( txt = 'AAA' )              "Value for ID deleted!
      ( SWITCH #( sy-uname(1)
         WHEN 'E' THEN VALUE #( id = 'BB'  txt = 'BBB' )
                  ELSE VALUE #( id = 'bb'  txt = 'bbb' ) ) )
      ( txt = 'CCC' ) ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The expected result would be, that line #2 is the only line where field ID is filled:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;ID | TXT
---+-----
   | AAA
BB | BBB
   | CCC&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But the result is the following:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;ID | TXT
---+-----
   | AAA
BB | BBB
BB | CCC&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Line #3 is filled with ID = "BB" although I do not tell the system to do so... &lt;/P&gt;
  &lt;P&gt;I tested on two different SAP-Systems:&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;SAP_ABA 750/ SAP_BASIS 750&lt;/LI&gt; 
   &lt;LI&gt;SAP_ABA 75E/ SAP_BASIS 754&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;Can anyone proof this behavior or tell me what I am doing wrong?&lt;/P&gt;
  &lt;P&gt;Thanks in advance&lt;BR /&gt; ~Enno&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 19:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349693#M1992640</guid>
      <dc:creator>EnnoWulff</dc:creator>
      <dc:date>2021-03-08T19:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349694#M1992641</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;DATA(test) =  VALUE _test_t(
      ( txt = 'AAA' )             
      ( id = 'BB'  txt = 'BBB' )        
                 ( txt = 'CCC' ) ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I guess you are using the short form described in this &lt;A href="https://blogs.sap.com/2013/05/27/abap-news-for-release-740-constructor-operator-value/"&gt;Horst Keller Post&lt;/A&gt;, allowing you to fill columns with the same value in subsequent lines.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 22:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349694#M1992641</guid>
      <dc:creator>nomssi</dc:creator>
      <dc:date>2021-03-08T22:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349695#M1992642</link>
      <description>&lt;P&gt;Thanks   &lt;SPAN class="mention-scrubbed"&gt;jacques.nomssi&lt;/SPAN&gt; for this idea! I firstly thought of this. but afik my code exactly fills 3 lines. I might be wrong though.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 22:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349695#M1992642</guid>
      <dc:creator>EnnoWulff</dc:creator>
      <dc:date>2021-03-08T22:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349696#M1992643</link>
      <description>&lt;P&gt;I toyed with it (7.52 trial) and found something else. Code below, moving "id = 'No' " part between later lines and that tells a bit more.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(test) =  VALUE _test_t(
      ( txt = 'AAA' )              "Value for ID deleted!
      ( SWITCH #( 'E'
         WHEN 'E' THEN VALUE #( id = 'BB'  txt = 'BBB' )
                  ELSE VALUE #( id = 'bb'  txt = 'bbb' ) ) )
      ( txt = 'CCC' )
      ( txt = 'DDD' )
      ( id = 'No' txt = 'EEE' )
      ( txt = 'FFF' ) ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1899612-obey.png" /&gt;&lt;/P&gt;&lt;P&gt;Kernel had a hangover with that switch, it looks like a bug.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 22:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349696#M1992643</guid>
      <dc:creator>thalesvb</dc:creator>
      <dc:date>2021-03-08T22:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349697#M1992644</link>
      <description>&lt;P&gt;This is fun! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't think it has anything do to with SWITCH though. It's probably something with the VALUE operator itself, or nested VALUEs, or something... It's reproducible with this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(test) =  VALUE _test_t( (                     txt = 'AAA' )
                             ( VALUE #( id = 'BB'  txt = 'BBB' ) )
                             (                     txt = 'CCC' ) ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;   AAA  
BB BBB  
BB CCC  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I guess the inner VALUE leaks it's id out to the outer?&lt;/P&gt;&lt;P&gt;Removing the inner VALUE, and it works as expected:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(test_line) = VALUE _test( id = 'BB'  txt = 'BBB' ).
DATA(test) = VALUE _test_t( ( txt = 'AAA' )
                            ( test_line )
                            ( txt = 'CCC' ) ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;    AAA  
BB  BBB  
    CCC  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Oddly enough, as you also noted, setting the id on the first line or actually any line before the nested VALUE also works as expected:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(test) = VALUE _test_t( (                    txt = 'AAA' )
                            (          id = 'BB' txt = 'BBB' )
                            ( VALUE #( id = 'CC' txt = 'CCC' ) )
                            (                    txt = 'DDD' ) ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;    AAA  
BB  BBB  
CC  CCC
    DDD  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Maybe it's affecting the superstructure? Because this is valid, and expected:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(test) = VALUE _test_t( (           txt = 'AAA' )
                            ( id = 'BB' txt = 'BBB' )
                              id = 'CC'
                            (           txt = 'DDD' )
                            (           txt = 'EEE' )
                              id = 'FF'
                            (           txt = 'GGG' ) ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;    AAA  
BB  BBB  
CC  DDD  
CC  EEE  
FF  GGG  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Mar 2021 04:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349697#M1992644</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-03-09T04:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349698#M1992645</link>
      <description>&lt;P&gt;The last one is very interesting &lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 06:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349698#M1992645</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-03-09T06:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349699#M1992646</link>
      <description>&lt;P&gt;It is, and it's quite useful. It's the short form documented &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenvalue_constructor_params_lspc.htm" target="_blank"&gt;under Alternative 1 here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;It also states that it is allowed to use VALUE line_type( ) inside the VALUE...&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 07:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349699#M1992646</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-03-09T07:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349700#M1992647</link>
      <description>&lt;P&gt;Hah, that line reset the functionality again to a working state... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 07:09:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349700#M1992647</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-03-09T07:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349701#M1992648</link>
      <description>&lt;P&gt;Thanks  &lt;SPAN class="mention-scrubbed"&gt;jorgen_lindqvist41&lt;/SPAN&gt; for "eliminating" SWITCH from the construct and confirming that I am not completely mad... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 08:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349701#M1992648</guid>
      <dc:creator>EnnoWulff</dc:creator>
      <dc:date>2021-03-09T08:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349702#M1992649</link>
      <description>&lt;P&gt;Thanks &lt;SPAN class="mention-scrubbed"&gt;thalesvb&lt;/SPAN&gt; for also proving it is a bug.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 08:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349702#M1992649</guid>
      <dc:creator>EnnoWulff</dc:creator>
      <dc:date>2021-03-09T08:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349703#M1992650</link>
      <description>&lt;P&gt;That does exist but to achieve this shouldn't the id Part be OUTSIDE the line brackets (on table type Level)? &lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 08:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349703#M1992650</guid>
      <dc:creator>BiberM</dc:creator>
      <dc:date>2021-03-09T08:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349704#M1992651</link>
      <description>&lt;P&gt;I can only confirm that you are not madder than me, but anytime you need help with that, just ping me... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 08:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349704#M1992651</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-03-09T08:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349705#M1992652</link>
      <description>&lt;P&gt;Thanks for your offer! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Still unsure if I will have to open a defect or if  &lt;SPAN class="mention-scrubbed"&gt;horst.keller&lt;/SPAN&gt; will suddenly breach in... :]&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 09:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349705#M1992652</guid>
      <dc:creator>EnnoWulff</dc:creator>
      <dc:date>2021-03-09T09:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349706#M1992653</link>
      <description>&lt;P&gt;Hey  &lt;SPAN class="mention-scrubbed"&gt;michael.biber2&lt;/SPAN&gt;! yes that's right. see example of  &lt;SPAN class="mention-scrubbed"&gt;jorgen_lindqvist41&lt;/SPAN&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 09:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349706#M1992653</guid>
      <dc:creator>EnnoWulff</dc:creator>
      <dc:date>2021-03-09T09:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349707#M1992654</link>
      <description>&lt;P&gt;I looked at the generated &lt;STRONG&gt;byte code&lt;/STRONG&gt;. We can see that it uses one work area that it appends repeatedly to the table for each new line, and does automatically the CLEAR of each field that is to be reinitialized if a value was set in the previous line but not in the new line. But it forgets to do the CLEAR after the VALUE #( ... ) line (I took the simplified example of Jörgen).&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 10:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349707#M1992654</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-09T10:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349708#M1992655</link>
      <description>&lt;P&gt;The big question: Is it a bug or a feature? &lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 11:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349708#M1992655</guid>
      <dc:creator>EnnoWulff</dc:creator>
      <dc:date>2021-03-09T11:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349709#M1992656</link>
      <description>&lt;P&gt;I don't think it's a feature ! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 12:17:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349709#M1992656</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-09T12:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349710#M1992657</link>
      <description>&lt;P&gt;That depends on the seniority of the bug &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 12:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349710#M1992657</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-03-09T12:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349711#M1992658</link>
      <description>&lt;P&gt;Looking at the byte code. I already had very high respect for your technical abilities, but now... &lt;/P&gt;&lt;P&gt;I agree - it's a bug. &lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 15:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349711#M1992658</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-03-09T15:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Weird behaviour with VALUE and SWITCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349712#M1992659</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/2688/matthew.billingham.html"&gt;Matthew Billingham&lt;/A&gt; Not so complex &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; (TAPP = table append, iclr = clear, mvqw = quick move, STCK = obscure stacking function / first code indicates a variant and next arguments are memory address references)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;iclr 04  0019            
STCK 05  0000            
STCK 07  001A            

iclr 03  001A            
MOVE FF  0229  001C  001B
TAPP 20  0352  0019  001A

mvqw 04  0200  0010  00A4
MOVE FF  0229  001C  001F
TAPP 20  0352  0019  001A

iclr 00  0022            
MOVE FF  0229  001C  0021
TAPP 20  0352  0019  001A
STCK 06  0000            &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Mar 2021 16:35:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weird-behaviour-with-value-and-switch/m-p/12349712#M1992659</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-09T16:35:59Z</dc:date>
    </item>
  </channel>
</rss>

