Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Restart program with same (dynamic) selections

kumaro412
Active Participant
0 Likes
1,653

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

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,198

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

5 REPLIES 5
Read only

FredericGirod
Active Contributor
0 Likes
1,198

Hi,

There was a thread about this subject there is less than one week (not about logic database)

regards

Fred

Read only

0 Likes
1,198

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.

Read only

0 Likes
1,198

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,199

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

Read only

0 Likes
1,198

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> .