Skip to Content
0
Former Member
Apr 12, 2007 at 10:03 AM

Validation for Parameter

146 Views

Hi friends,

I am having a Parameter P_STATUS which will refer the Ztable and Zdataelement.

P_STATUS holds only 3 values like ' ALL' , 'ACT', 'INV' .

For validation of P_STATUS how should i worte the code like this but it is not working correctly.

IF P_STATUS IS INITIAL..

IF P_STATUS NE ' ALL' or

P_STATUS NE 'ACT' or

P_STATUS NE 'INV' .

error message

ENDIF.

ENDIF.

other than 3 any value should be error.

  • Reward is sure.

Thanks.