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

Error : Access not possible using 'null' objects reference.

Former Member
0 Likes
432

Hello.

i am working with a zbapi.

i called a external email program in this bapi,everything is working fine over here.

In webdynpro they mapped my bapi and starting working from there.

every functionality is working fine but regarding this email stuff it is showing an error as access not possible using null objects reference.

where could be the possible error.

4 REPLIES 4
Read only

Former Member
0 Likes
412

You are trying to access an object which has not been created. The ABAP dump should tell you the name of the object.

Read only

venkata_ramisetti
Active Contributor
0 Likes
412

Hi,

Looks like you have just defined the object, but not instantiated.

Use constructor (Create object <obj>) to instantiate the object.

Thanks,

Ramakrishna

Read only

Former Member
0 Likes
412

Hi Raghu,

is your BAPI contains some table parameters,

if yes,then tell your webdynpro guys to mapp it properly.

there they have to create a object even if they are not using that parameter.

objects should be created for every tables parameters even if they are not usnig that like

in webdynpro

BAPI structure name nam = new BAPI structure[0].

like this one

if helpful reward points

Regs

Manas Ranjan Panda

Read only

Former Member
0 Likes
412

Thanks for your quick replies..

marthin when i am running bapi from my side it is working well..there is no abap dump..

but it is showing error only while running form webdynpro..

Rama krishna and manas surely i will check what u have said ..let u know asp..

regards.

raghu