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

popup problem

Former Member
0 Likes
672

friends

my requirement is that if we input the wrong selection in the selection screen, it should popup that iput is error, and go back to the selectio n screen again.

for this i used the

FM POPUP_TO_INFORM.

but my probelm is after the popup is appearing, and clicking the button on it, it is going to the next screen, which it is not suppossed to. it must go back to previous screen, it should not change screen until correct value is put

thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
647

Use Below FM :

POPUP_CONTINUE_YES_NO

Reward Points if it is useful

Thanks

Seshu

5 REPLIES 5
Read only

Former Member
0 Likes
648

Use Below FM :

POPUP_CONTINUE_YES_NO

Reward Points if it is useful

Thanks

Seshu

Read only

Former Member
0 Likes
647

hello seshu,

thank you for the reply,

but seshu, my problem still there, even after pressing yes or no it still taking me to next screen, which it should not, i should remain in the same screen.

anhy more suggestions.

thanks again.

Read only

0 Likes
647

Please check the condition in the Event

AT SELECTION-SCREEN.
IF scr_fld = <wrong>
  MESSAGE E002(00) ' Please enter the correct value'
ENDIF.

Please reward if helpfull**************

Read only

0 Likes
647

yes chidanand,

ok about message,

but what about flow of control, it should go back the same screen.

its not going.

thank you once again

Read only

Former Member
0 Likes
647

Hi,

Not sure if you are looking for this..After the Popup give LEAVE SCREEN.

Ex..



PARAMETERS: p_matnr TYPE matnr.

AT SELECTION-SCREEN.

  IF p_matnr IS INITIAL.

* Popup FM..
    CALL FUNCTION 'POPUP_TO_INFORM'
         EXPORTING
              titel = 'Title'
              txt1  = 'Material is mandatory'
              txt2  = ''.

* Leave the list processing.
    LEAVE SCREEN.
  ENDIF.

START-OF-SELECTION.
  WRITE: / p_matnr.

Thanks,

Naren