2020 Aug 18 3:20 PM
Why do we go for value table even though we have fixed value and fixed range
2020 Aug 18 3:35 PM
Sometimes it is not enough to use fixed value/range for a simple reason that this remains static and does not caters to the need of having dynamic values.
Understand from Library Management example where you may want to have a domain that has all the books in library. Now, the Books are added to the library and older ones may be removed. Thus, this requires to have a value table which refers to all the books in library. Additionally, you may never know the range in advance, because number range for books here is something that customer defines and generates.
2020 Aug 18 3:36 PM
When you have smaller number of values you should always prefer fixed value or value range .
If your values are increase with time , we need to maintained as fresh values. So large number of values we go for value Table.
2020 Aug 18 3:51 PM
You might want to make your question more precise.
Are you asking "Why there is the option in domains to assign a Value Table as well as Single Values ('fixed value') and Intervals ('fixed range')"?
Both have their advantages and disadvantages. You can assign non, one of each or both.
Please consult the ABAP documentation / Performance Assistant (F1) first and come back with further questions if necessary:
Single Value and Interval
Value table
Main Difference
Dependencies