<?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 SAP Build Process Automation - Array push method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-build-process-automation-array-push-method/m-p/13597583#M2026409</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;We are currently using the push() method in a custom script in&amp;nbsp;SAP Build Process Automation.&lt;/P&gt;&lt;P&gt;However the:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The push() method does not add items to the end of the array but rather overwrites the entire array with the current item:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Custom Script with the push method:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SekhuteTK_0-1707294552591.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/61843iD2D566800159CF46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SekhuteTK_0-1707294552591.png" alt="SekhuteTK_0-1707294552591.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Results of the Array method overwriting every entry instead of adding as expected:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Below are screenshots to show the array overwriting the entries in every iteration:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SekhuteTK_1-1707294705811.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/61845i694091668E5C4214/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SekhuteTK_1-1707294705811.png" alt="SekhuteTK_1-1707294705811.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SekhuteTK_2-1707294789045.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/61846i7D39214644789A3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SekhuteTK_2-1707294789045.png" alt="SekhuteTK_2-1707294789045.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SekhuteTK_3-1707294964807.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/61848iE00DBD13DF12C7BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SekhuteTK_3-1707294964807.png" alt="SekhuteTK_3-1707294964807.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please advise how we can resolve the above mentioned.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 08:47:26 GMT</pubDate>
    <dc:creator>SekhuteTK</dc:creator>
    <dc:date>2024-02-07T08:47:26Z</dc:date>
    <item>
      <title>SAP Build Process Automation - Array push method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-build-process-automation-array-push-method/m-p/13597583#M2026409</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;We are currently using the push() method in a custom script in&amp;nbsp;SAP Build Process Automation.&lt;/P&gt;&lt;P&gt;However the:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The push() method does not add items to the end of the array but rather overwrites the entire array with the current item:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Custom Script with the push method:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SekhuteTK_0-1707294552591.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/61843iD2D566800159CF46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SekhuteTK_0-1707294552591.png" alt="SekhuteTK_0-1707294552591.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Results of the Array method overwriting every entry instead of adding as expected:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Below are screenshots to show the array overwriting the entries in every iteration:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SekhuteTK_1-1707294705811.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/61845i694091668E5C4214/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SekhuteTK_1-1707294705811.png" alt="SekhuteTK_1-1707294705811.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SekhuteTK_2-1707294789045.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/61846i7D39214644789A3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SekhuteTK_2-1707294789045.png" alt="SekhuteTK_2-1707294789045.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SekhuteTK_3-1707294964807.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/61848iE00DBD13DF12C7BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SekhuteTK_3-1707294964807.png" alt="SekhuteTK_3-1707294964807.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please advise how we can resolve the above mentioned.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 08:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-build-process-automation-array-push-method/m-p/13597583#M2026409</guid>
      <dc:creator>SekhuteTK</dc:creator>
      <dc:date>2024-02-07T08:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Build Process Automation - Array push method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-build-process-automation-array-push-method/m-p/13606189#M2026549</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If you have an existing list, then you can use the 'Add Item (List)' activity to add the items.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manish_09_0-1707986380075.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/65788i8EED05A4A50EF7DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manish_09_0-1707986380075.png" alt="manish_09_0-1707986380075.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 08:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-build-process-automation-array-push-method/m-p/13606189#M2026549</guid>
      <dc:creator>manish_09</dc:creator>
      <dc:date>2024-02-15T08:41:19Z</dc:date>
    </item>
  </channel>
</rss>

