‎2008 Mar 07 10:15 AM
As user enter selection cretiria Like plant & year.If the condtion is not satisfied a information msg is dispalyed.
Now when he click ok user return to selection screen at this level the data remains on screen.
I need to clear this plant & year.
How to do this plz guide.
‎2008 Mar 07 10:34 AM
Hi,
Try this.....
PARAMETERS p_test TYPE sflight-carrid.
&----
*& Event At Selection-screen
&----
AT SELECTION-SCREEN.
IF p_test = 'AA'.
CLEAR p_test.
MESSAGE 'Invalid enter' TYPE 'I'.
ENDIF.
Thanks,
YH
‎2008 Mar 07 10:19 AM
Hi
When the condition is not satisfied clear the parameters
Regards
Shiva
‎2008 Mar 07 10:19 AM
Hi,
u just clear those fields before showing the message when the entered values won't satisfy the condition.
clear:field1,field2."for parameters
refresh:field1,field2."for select-options
rgds,
bharat.
‎2008 Mar 07 10:21 AM
Hi.
Clear the fields
Using the following Commands
Clear : field_name1, field_name2.
‎2008 Mar 07 10:27 AM
Hi,
You just have to refresh the select options and clear the parameters.
SELECT VBELN INTO V_VBELN
UP TO 1 ROWS
FROM VBAK
WHERE VBELN IN S_VBELN.
ENDSELECT.
IF SY-SUBRC <> 0.
MESSAGE I002(SY) WITH 'No Records'.
refresh s_vbeln.
ENDIF.
Regards,
Pritha.
Reward if helpful.
‎2008 Mar 07 10:34 AM
Hi,
Try this.....
PARAMETERS p_test TYPE sflight-carrid.
&----
*& Event At Selection-screen
&----
AT SELECTION-SCREEN.
IF p_test = 'AA'.
CLEAR p_test.
MESSAGE 'Invalid enter' TYPE 'I'.
ENDIF.
Thanks,
YH