Validation in mvc
Please tell me how to do the validation in mvc.
if input1 eq ' ' and input2 eq ' '. (or) if input1 is initial and input2 is initial .
if sy-subrc = 0.
str = ''enter input values'.
this code is compiled,in the execution getting the error null pointer exception. Please tell me sample programme.
By the if statement 'Sy-SUBRC' is not triggered. please remove that sy-subrc and just keep that code in if loop and you will get the required output.
Hope this will solve your problem.