Using subset of items present in the list in SAP Program

SAP HANASAPSAP Basis

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.

raja
Updated on 18-Dec-2019 08:02:27

Advertisements