In the program after executing on the screen I have 3 screen fields. After entering the two fields when user hit the enter it needs to retrieve third field value from the table and have to display on the screen,and again I will click execute button the program needs to run.
But after entering the two fields and hitting the enter program executing and the third field value getting populated after the execution.
I am using the following code:
here in this P_scen and p_fid filed I am entering on the screen and after hitting the Enter I need to populate
p_des before doing the execution.
AT SELECTION-SCREEN on block selblock. *Fetch the the database table PERFORM retrieve_table tables it_des using p_scen p_fid if sy-subrc <> 0. MESSAGE 'Not found'. endif. * Pass the description of the scenario. p_des = it-desc.