‎2007 May 15 10:22 PM
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.
‎2007 May 15 10:35 PM
Use Below FM :
POPUP_CONTINUE_YES_NO
Reward Points if it is useful
Thanks
Seshu
‎2007 May 15 10:35 PM
Use Below FM :
POPUP_CONTINUE_YES_NO
Reward Points if it is useful
Thanks
Seshu
‎2007 May 15 10:48 PM
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.
‎2007 May 15 11:22 PM
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**************
‎2007 May 15 11:41 PM
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
‎2007 May 16 12:19 AM
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