2020 Sep 09 8:30 PM
Hi
I want to know is there any new syntax have introduced after abap 7.4 for creating selection screen like for Parameter and Select-option...
can we use inline declaration in here...
please help me in this
2020 Sep 09 8:33 PM
There's nothing new for selection screens.
Inline declaration is only for variables and field symbols.
Look at the ABAP documentation, almost all changes are listed there for each ABAP version.
2020 Sep 10 5:02 AM
Inline Declaration for DATA and FIELD-SYMBOL makes a variable only available after that coding has been reached, and only within its own procedural block (method, form, function, report).
I think an Inline Declaration for parameters and select-options, that are already displayed on a selection-screen GUI before that coding is even reached, would not be very practically. Also, those inline declarations would be all over the place in your coding and not together like they would when you define them in a 'top' include.
Sure, it might help you initially when coding a report and thinking about the code first and the Inputs for the GUI later. But once you want to order, organize and structure the selection-screen GUI, you would have to find them in the coding again and move them to a 'top' include.