‎2013 Jun 13 9:45 AM
Dear all,
My predecessor created a program to show some information about the stock of the materials ... This program works fine and I also (succesfully) made some improvements ... But my employer now asks something I don't know how to do it ... They want some kind of 'refresh'-functionality ... It is logic that they want this possibility and with a 'normal' program, I would just redo all the data-selections ... But this program is working with a logical database, so it is not possible to recall all selections ...
Does anyone know how I can restart a program with the same values of the selection screen (dynamic selections of the logical database and our own selection-fields) ?
Thanks in advance !
Greetz,
Kurt Clement
‎2013 Jun 13 10:30 AM
When REFRESH action, extract current selection (*) and use in a SUBMIT without AND RETURN option (**).
You should also add a NO-DISPLAY parameter, so in PBO (AT SELECTION-SCREEN OUTPUT) you can use a SUPPRESS DIALOG when set so triggering execution without actually displaying the selection-screen. Don't forget to then clear this parameter else it could be stored in variants...
Regards,
Raymond
(*) Search and read information on FM RS_REFRESH_FROM_SELECTOPTIONS and RS_REFRESH_FROM_DYNAMICAL_SEL
(**) Read information on passing parameter in SUBMIT statement documentation : WITH SELECTION-TABLE rspar and WITH FREE SELECTIONS texpr
‎2013 Jun 13 10:00 AM
Hi,
There was a thread about this subject there is less than one week (not about logic database)
regards
Fred
‎2013 Jun 13 10:29 AM
Dear Fred,
It is just the logical database that makes it difficult to solve ... Otherwise, I could restart the program without problems ... But with a logical database (and dynamic selections), it is not that simple ... That's the reason why I placed my question ...
Greetz,
Kurt.
‎2013 Jun 13 12:58 PM
I'm sure you have a good reason Kurt, that was only to give you the input of our colleague.
Raymond give you all the informations
Regards
Fred
‎2013 Jun 13 10:30 AM
When REFRESH action, extract current selection (*) and use in a SUBMIT without AND RETURN option (**).
You should also add a NO-DISPLAY parameter, so in PBO (AT SELECTION-SCREEN OUTPUT) you can use a SUPPRESS DIALOG when set so triggering execution without actually displaying the selection-screen. Don't forget to then clear this parameter else it could be stored in variants...
Regards,
Raymond
(*) Search and read information on FM RS_REFRESH_FROM_SELECTOPTIONS and RS_REFRESH_FROM_DYNAMICAL_SEL
(**) Read information on passing parameter in SUBMIT statement documentation : WITH SELECTION-TABLE rspar and WITH FREE SELECTIONS texpr
‎2022 Feb 09 6:28 AM
Hi,
Call function 'RS_REFRESH_FROM_SELECTOPTIONS'
This will give you a selection table with your selection screen inputs.
Later you can Submit to the target program as follows:
SUBMIT <target_report_name> WITH SELECTION-TABLE <selection_table_obtained_from_FM> .