Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

runtime error

Former Member
0 Likes
791

Hi Abapers,

My program is going to dump and is giving runtime error: OBJECTS_OBJREF_NOT_ASSIGNED_NO.

Kindly check my below code and suggest me with possible solution.

*check DataArea to verify Employee file.

element = document->find_from_name( name = 'DataArea' ). -


> failing here. element object is not getting reffered.

<b>g_data = element->get_content_as_string( ).</b> IF g_data <> 'Employees'. -


> going to dump here as element object is not assigned.

MESSAGE e398(00)

WITH 'Invalid DataArea value. Must be Employee.'(e05).

ENDIF.

Please help me.

Points are sure for helpful answers.

Message was edited by:

Premraj Cheguri<b></b>

Message was edited by:

Premraj Cheguri

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
739

Hi Premraj,

Please refer to the folllowing OSS Notes:

925151

905894

In case you have any further clarifications,do let me know.

Regards,

Puneet Jhari.

5 REPLIES 5
Read only

Former Member
0 Likes
740

Hi Premraj,

Please refer to the folllowing OSS Notes:

925151

905894

In case you have any further clarifications,do let me know.

Regards,

Puneet Jhari.

Read only

0 Likes
739

Hi Puneet,

Thanks for your response. I checked for that sap note. status is it cant be implimented. is there any other way inorder to overcome this runtime error instead of implimenting oss notes.

Read only

0 Likes
739

Check these notes:

783918

660005

In case you have any further clarifications,do let me know.

Regards,

Puneet Jhari.

Read only

Former Member
0 Likes
739

HI

You are getting the dump as the object is not assigned.

Before giving the condition,

IF parser->parse( ) NE 0.

Give

IF parser is Assigned.

Regards

Navneet

Read only

0 Likes
739

Hi Navneet,

if i use 'IF parser is Assigned.' im getting one error message that is assigned is used only with fieldsymbols. how can i overcome from this error.

Regards,

Prem.