Skip to Content

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

Validation in mvc

Hi sdn,

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.

Former Member
Former Member replied

Hi RamKumar,

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question