2024 Feb 08 6:26 AM
Hello everyone, I would like to set up a variable selection screen in conjunction with a customizing table. There I have the respective fields and tables in separate columns. Is there a way that a select option variable can be created using this consultation and I can use the table to determine how many fields are then available?
Example table:
Field Table
ERDAT VBAK
Select Option would be
ERDAT FOR vbak-erdat
2024 Feb 08 7:45 AM
Sorry, please clarify, I don't understand at all. Even with the example. What do you want to achieve?
2024 Feb 08 7:54 AM
Hi, we are on a s/4 system and we want to expand a selection screen in an enhancement for va05, but not hard rather dynamically, so that the customer enters the fields in a table, as I mentioned, and the select option is then built dynamically.
Table is like this:
For line one I would expect:
SELECT-OPTIONS: erzet FOR vbak-erzet
2024 Feb 08 11:52 AM
What you want to achieve is called "dynamic selection screen". You can only use the function modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG, i.e. one button in the selection-screen which runs the FM, which display a kind of selection screen with a dynamic list of fields. There are lots of examples in the Web, and there's the inline documentation of these FMs.