Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Build Process Automation - Array push method

SekhuteTK
Participant
0 Kudos

Greetings,

We are currently using the push() method in a custom script in SAP Build Process Automation.

However the:

  1. The push() method does not add items to the end of the array but rather overwrites the entire array with the current item:

Custom Script with the push method:

SekhuteTK_0-1707294552591.png

Results of the Array method overwriting every entry instead of adding as expected: 

Below are screenshots to show the array overwriting the entries in every iteration:

SekhuteTK_1-1707294705811.png

SekhuteTK_2-1707294789045.png

SekhuteTK_3-1707294964807.png

Please advise how we can resolve the above mentioned.

Kind Regards,

 

 

 

 

1 REPLY 1

manish_09
Explorer
0 Kudos

If you have an existing list, then you can use the 'Add Item (List)' activity to add the items.

manish_09_0-1707986380075.png