2009 Mar 25 11:19 AM
Hi,
I get the message: Access via 'NULL' object reference not possible.
IF NOT go_application->material->data-mara-matnr IS INITIAL.
.............
ENDIF.
How can I prevent this dump.
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component (variable: " ").
An object reference must point to an object (an instance of a class)
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the
CLEAR statement.
2009 Mar 25 11:21 AM
Hi,
Check the initiality ( if that objec is not iniital) of that object before assinging to antther...
so that we can avoid dump.
Thanks!
2009 Mar 25 11:21 AM
1. As adviced earlier, use SEARCH before posting the query.
2. Post the query in right forum. this should go under ABAP OBJECT.
2009 Mar 25 11:21 AM
Hi,
Check the initiality ( if that objec is not iniital) of that object before assinging to antther...
so that we can avoid dump.
Thanks!
2009 Mar 25 11:34 AM
yes I know but how ??????
this didn't work.
IF NOT go_application->material->data-mara-matnr IS INITIAL.
Amit Khare seems to be very experienced, maybe he has the answer for my question.
Instead to say all over the time SEARCH
2009 Mar 25 11:39 AM
2009 Mar 25 12:01 PM
go_application is always not initial but I have solved the prbl.
IF NOT go_application->material IS INITIAL.
2009 Mar 25 12:35 PM
Please post in the correct forum. I'm getting fed up of moving your posts.
matt
2009 Mar 25 8:39 PM
>
> Please post in the correct forum. I'm getting fed up of moving your posts.
>
> matt
post in the correct forum ???????
Where else in the the world should this question be posted ????
2009 Mar 25 8:50 PM
>
> post in the correct forum ???????
> Where else in the the world should this question be posted ????
Well, this appears to have been moved. Where did you originally post it?
Rob
2009 Mar 26 12:34 PM
It was originally posted in general. I moved it. I was tempted to post it in "reject"...