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

clear data on selection screen

Former Member
0 Likes
678

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
659

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

5 REPLIES 5
Read only

Former Member
0 Likes
659

Hi

When the condition is not satisfied clear the parameters

Regards

Shiva

Read only

Former Member
0 Likes
659

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.

Read only

0 Likes
659

Hi.

Clear the fields

Using the following Commands

Clear : field_name1, field_name2.

Read only

Former Member
0 Likes
659

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.

Read only

Former Member
0 Likes
660

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