{1 - 24} GreyGrey
{25 - 49} GreenGreen
{50 - 499} BlueBlue
{500 - 4999} OrangeOrange
{5000 - 24999} RedRed
{25000+} BlackBlack

Please confirm that you would like to report this for an admin to review.


Exception CX_SY_REF_IS_INITIAL – Dereferencing of the NULL reference

Hey gurus,

Iam new to CRM 7.0. For my understanding I have a created one component and view wth 2 input feilds and button
for example when the user enters FIRSTNAME and LASTNAME, and when he press the search button the respective data shud get popluated.
here i have created 2 context nodes one for holding the data ( value node )and the other for showing the result ( model node).
and aslo i have a implemnted a method in event handler, but ehn im executing the component im getting an exception CX_SY_REF_IS_INITIAL – Dereferencing of the NULL reference

Here is my code
DATA l_qs TYPE REF TO cl_crm_bol_query_service. “buiheaderadvancedsearch
l_qs ?= me->typed_context->search->collection_wrapper->get_current( ).

DATA: l_result TYPE REF TO if_bol_entity_col.
l_result = l_qs->get_query_result( ).
me->typed_context->search->collection_wrapper->set_collection( l_result ).

plz tell me where im going wrong.

CRM Consultant, needs help regarding “Exception CX_SY_REF_IS_INITIAL – Dereferencing of the NULL reference “



Confirm that you would like to Remove Email Alerts for your question. You cant undo this and you will not be able to re-subscribe.


Tags

No Answers

You must be Logged In to Answer this Question

Already a Member, Log In
Not a member yet? Sign Up
sap forum