abapinho / abaK

ABAP constants done right
MIT License
32 stars 3 forks source link

Combine multiple fields? #31

Closed nununo closed 5 years ago

nununo commented 5 years ago

What if we want to create constants which are comprised of more than one field? Like:

BUKRS WERKS
1111 AAAA
1111 BBBB
2222 CCCC

Currently abaK's API always focus on a single field. Which is the most common scenario and thus should remain the its main focus.

But... would it be possible to extend abaK's functionality to accomplish this without destroying its simplicity and clarity?

nununo commented 5 years ago

Implemented a simplified but practical approach:

FIELDNAME accepts multiple fieldnames separated by space. When more than one is found, the same quantity of values is expected and no range is allowed (checks are already in place for this according to #32).

Unit tests are missing for _DATA.