Have you received someday an error from your ABAP object saying that "The statement SELECTION-SCREEN is not allowed within FORM routines and function modules." and you wondered why it is blocked to manipulate ...
... dummy PARAMETER and I moved the code of creating the container to event AT SELECTION-SCREENOUTPUT. This way the docking container appears directly after running of the program. As you can see in Figure ...
... or selection-screen with all possible fields which can be used in the function (not good when you have a lot of editable fields), you can create dynamic program and submit it (not good as then you switch ...
...
data: gt_return type bapiret2_t.
data: gs_return type bapiret2.
data: g_error type c.
field-symbols: like line of gt_assignment.
field-symbols: like line of gt_plan.
selection-screen begin of block exc with frame title text-exc. ...
...
* Selection screen
* I've copied selection screen from MB51 and added some of my own
* My own select-options begins "s_"
*--
selection-screen begin of block mseg with frame title text-001. ...
...
at selection-screenoutput.
"loop at screen elements
loop at screen.
"if we find elements of our group
if screen-group1 eq 'GR1'.
"then change the font color ...
...
data: g_filename type string.
data: g_path type string.
"get path
parameters: p_path type string obligatory.
at selection-screen on value-request for p_path.
cl_gui_frontend_services=>file_save_dialog( ...