‎2014 Mar 04 5:23 AM
Hi All,
I have to generate the selection screen dynamically for the second time. Let me explain, At first the selection screen will appear with an input field and when the user provides some input and execute it then again screen has to be displayed allowing the user to provide another input for another field while not showing the previous one. Basing on the second a report has to be displayed.
Can anyone pls help me in this regard.
Regards,
Jacob.
‎2014 Mar 04 5:29 AM
‎2014 Mar 04 5:28 AM
Hi Jacob ,
USE USER-COMMAND flag with your first select option
then for the event AT SELECTION-SCREEN OUTPUT. code for the second dynamic screen
Hope this will help u
Thanx and Regards ,
Yogendra Bhaskar
‎2014 Mar 04 7:40 AM
Hi Yogendra,
Thanks for the suggestion. It is helpfull.
Regards,
Jacob
‎2014 Mar 04 5:29 AM
‎2014 Mar 04 7:41 AM
‎2014 Mar 04 8:09 AM
‎2014 Mar 04 7:01 AM
Hi Jacob,
Please paste this code and check
REPORT zsample123456.
TABLES : pa0001.
PARAMETERS: p_eno RADIOBUTTON GROUP abc USER-COMMAND xyz,
p_ename RADIOBUTTON GROUP abc.
SELECTION-SCREEN BEGIN OF SCREEN 5555.
SELECT-OPTIONS : s_empno FOR pa0001-pernr.
PARAMETERS: p_org TYPE pa0001-orgeh,
p_pos type pa0001-plans.
SELECTION-SCREEN END OF SCREEN 5555.
SELECTION-SCREEN BEGIN OF SCREEN 5556.
SELECT-OPTIONS : s_ename FOR pa0001-ename.
PARAMETERS: p_persk type pa0001-persk,
p_persg type pa0001-persg.
SELECTION-SCREEN END OF SCREEN 5556.
SELECTION-SCREEN BEGIN OF SCREEN 9999.
PARAMETERS : p_orgeh TYPE pa0001-orgeh.
SELECTION-SCREEN END OF SCREEN 9999.
SELECTION-SCREEN BEGIN OF SCREEN 2000.
PARAMETERS : p_plans TYPE pa0001-plans.
SELECTION-SCREEN END OF SCREEN 2000.
AT SELECTION-SCREEN .
IF p_eno = 'X'.
CALL SELECTION-SCREEN '5555'.
ENDIF.
IF p_ename = 'X'.
CALL SELECTION-SCREEN '5556'.
ENDIF.
START-OF-selection.
"Logic
Rgds,
Vijay SR
‎2014 Mar 04 7:43 AM
Hi Vijay,
Thanks for the code. Actually it is very helpful but for my requirement I do not have any option to choose in between. User has to give the first one and has to go for second input and has to provide that too.
Regards,
Jacob