Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Select Option Validation

Hi,

I have a selection screen ..select option : Company Code.

I need to do this validation for the range . If the user enters values on the screen and also using the puchbutton, I need to check against this table for all the ranges entered in the selection table. However this code is not working for this. What else i need to add to make sure that it checks all the ranges entered.?

when i debug the value for the S_c_code changes and fetches the next range in the table but it doesnt change the value for sy-subrc , even if the range is invalid !!

SELECT SINGLE * FROM ZMAXCODE INTO ZMAXCODE

WHERE MX_COMP_CODE IN S_C_CODE.

IF SY-SUBRC <> 0.

MESSAGE E008.

ENDIF.

Thanks

Tags:
Not what you were looking for? View more on this topic or Ask a question