Application Development 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: 

Remain in Selection Screen

Former Member
0 Kudos

Hello Experts,

I have 4 Radio Buttons - 2 in a group & the other 2 in another Group as follows:

1) Active Materials:

  • Include
  • Exclude

2) Deleted Materials:

  • Include
  • Exclude

If the User selects Exclude in both the Groups, then an Error Message needs to be populated and remain in the Selection-screen.

I've written the code as follows:


AT SELECTION-SCREEN.

* Do not allow the User to select both Exclude Active & Exclude Deleted Materials as there will not be any data

  IF p_exact EQ 'X' AND p_exdel EQ 'X'.

* No Data will be there as you have excluded both Active and Deleted Materials

    MESSAGE text-009 TYPE 'S' DISPLAY LIKE 'E'.

    CALL SELECTION-SCREEN 1000.

  ENDIF.

But after I change the Radio-button selection; and click on 'Execute'; it still remains in the same screen without processing.

Please advise on this.

Thank you!

-Sowmya

4 REPLIES 4

Former Member
0 Kudos

Sorry. My mistake. I had to write Message type as 'E'. Working fine.

Thanks!

0 Kudos

Ok, than.

Well done.

Former Member
0 Kudos

Hello,

Can you send the all selection-screen and selection-screen handling code?

I tried in my editor and didn't any problem.

Regards

VijayaKrishnaG
Active Contributor
0 Kudos

Sowmya,

Write the same Conditions and Message in AT-SELECTION-SCREEN OUTPUT event instead AT SELECTION-SCREEN.

Regards,

Vijay