on 03-11-2015 12:09 PM
I am New to SAP and ABAP.
I have made Odata service in SAP Gateway. but when i run via SAP Gateway Client i am Getting error as Follows
"In the context of Data Services an unknown internal server error occured"
i have tried to refresg Metadata also but it still i am getting same error
In Error Log i am getting Following Error
"Dereferencing of the NULL reference"
and i tried to check error in ST22, but i am not Getting entry for above error.
Please help me
It is giving me dump from below function from Standard method
me->build_property(
EXPORTING
io_property = lr_property->attribute
it_namespaces = it_namespaces
CHANGING
cr_edm_property = lr_edm_property
).
in this method it is giving me dump in below method
me->build_nav_property_for_entity(
EXPORTING
io_node = io_node
is_qualified_name = is_qualified_name
it_namespaces = it_namespaces
CHANGING
ct_navigation_properties = rr_entity_type->*-navigation_properties
ct_properties = rr_entity_type->*-properties
).
now in this function it is giving me dump in below statement
io_node->get_references( IMPORTING et_references = lt_references ).
Hi Zubin,
Please check the navigation property for the Entity. If you do n't need then delete it.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi kedat tingikar
i have also faced the same problem. as you said the problem with the navigation property.....and if any one having the same problem please check your navigation property.......and also check
1.) whether you have given the same association name which you have created in the association property for the corresponding entity type.
2).And also check whether you have used the statement to get the entity type before creating the navigation.(statement example: lo_entity_type = model->get_entity_type( iv_entity_name = 'Airport' ).)
for me the same problem is solved....!
Zubin,
Curious to know what document are you following to build this code?
You need not hand code the Gateway service model like this. You can use Service Builder (Transaction code SEGW), whcih can generate this code for you.
Refer here.
SAP NetWeaver Gateway Service Builder - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.