Requirement is like,
When the user click on Approve Button in web, It should check for the substatus of the record and throw a message..
I wrote code for standard text which contains the message, for that i am concatenating substatus_(substatus of a record) . My standard text name is substatus_ .
Above the concatenate, i need to use either proper select statement or the Subroutine to get the substatus of a User desired records.