cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error "Access via null" when running the web dynpro application

Former Member
0 Kudos

Hi experts,

I am getting the below error while executing my web dynpro application

500 SAP Internal Server Error

ERROR: Access via 'NULL' object reference not possible. (termination: RABAX_STATE)

I am getting the error only when I am calling a method create manufacturer from my web dynpro program. If i comment this code my application works fine

CALL METHOD wd_this->mo_ch_instance->create_manufacturer

EXPORTING

gi_manufacturer = ls_manufacturer

IMPORTING

lv_message = lv_status

.

i have created a attribute mo_ch_instance of type YSRM70CL_CH_SW_MD where YSRM70CL_CH_SW_MD is the class which has the create_manufacturer method that i am using in my code.

Kindly let me know whats the issue.

Regards,

Vinod

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi all,

Sorry i have posted the same question twice. the issue is solved

Regards,

Vinod

Former Member
0 Kudos

Hi,

if wd_this->mo_ch_instance is not initial.

CALL METHOD wd_this->mo_ch_instance->create_manufacturer

EXPORTING

gi_manufacturer = ls_manufacturer

IMPORTING

lv_message = lv_status

.

endif.

Check wether you have created the object for that class r not.

Regards,

Lekha.