on 10-25-2009 2:28 PM
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
Hi,
The object is not instantiated so you are getting that error.
use the below code.
data:mo_ch_instance type ref to YSRM70CL_CH_SW_MD .
create object mo_ch_instance.
CALL METHOD wd_this->mo_ch_instance->create_manufacturer
EXPORTING
gi_manufacturer = ls_manufacturer
IMPORTING
lv_message = lv_status
Regards,
Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The object is not instantiated so you are getting that error.
use the below code.
data:mo_ch_instance type ref to YSRM70CL_CH_SW_MD .
create object mo_ch_instance.
CALL METHOD mo_ch_instance->create_manufacturer
EXPORTING
gi_manufacturer = ls_manufacturer
IMPORTING
lv_message = lv_status
Regards,
Priya
Hi All,
Issue solved. Thanks for the help
Regards,
VInod
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
do it like classname->mrthod name , specifically in ur case
CALL METHOD YSRM70CL_CH_SW_MD->create_manufacturer
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Replace the code with the below mentioned code.
CALL METHOD mo_ch_instance->create_manufacturer
EXPORTING
gi_manufacturer = ls_manufacturer
IMPORTING
lv_message = lv_status
.
Hope it works.
Regards
Shruti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.