Hi @rkumar
When you are testing with the canned Data package, your consumer is connecting to the sink_driven_src application.
To use the View functionality you need to connect to an ADS which is the TREP / RMDS component which implements the view functionality and performs the field filtering.
Note that even when connected to an ADS you should always code your application to ensure it can cope with occasionally receiving unwanted Fields. This is because the ADS may not always fulfil your View request - e.g. if it is very busy serving other consumers and filtering the fields for your consumer would negatively impact its performance - it may decide to ignore the View request and send you all the Fields in the Refresh or Update..