Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

runtime error

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

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question