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

Dynamic Selectionscreen

Former Member
0 Likes
1,459

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,428

Hi Jacob,

This the code for your scenario.

PARAMETERS: p_file TYPE ibipparms-path.

SELECTION-SCREEN BEGIN OF SCREEN 2000.

   PARAMETERS: p_i TYPE i.

SELECTION-SCREEN END OF SCREEN 2000.

call SELECTION-SCREEN 2000.


You can also use the link:


Press F8

You will get 2nd selection screen




Regards,

Vineesh

7 REPLIES 7
Read only

yogendra_bhaskar
Contributor
0 Likes
1,428

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

Read only

0 Likes
1,428

Hi Yogendra,

Thanks for the suggestion. It is helpfull.

Regards,
Jacob

Read only

Former Member
0 Likes
1,429

Hi Jacob,

This the code for your scenario.

PARAMETERS: p_file TYPE ibipparms-path.

SELECTION-SCREEN BEGIN OF SCREEN 2000.

   PARAMETERS: p_i TYPE i.

SELECTION-SCREEN END OF SCREEN 2000.

call SELECTION-SCREEN 2000.


You can also use the link:


Press F8

You will get 2nd selection screen




Regards,

Vineesh

Read only

0 Likes
1,428

Hi ,

Thanks for the suggestion. It is the exact one which I required.

Regards,
Jacob

Read only

0 Likes
1,428

Welcome Jacob...

Read only

Former Member
0 Likes
1,428

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

Read only

0 Likes
1,428


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