Using subset of items present in the list in SAP Program


You can use a SWITCH CASE statement to handle your scenario. This is a good choice if you know well in advance what all properties are required and what is not required. Also, it will let you to unit test your code.

Otherwise, you can go for a collection like a dictionary.

You can think of using HashSet or hashtable as well, it entirely depends upon the usage of the list created.

Updated on: 18-Dec-2019

76 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements