2015 Sep 29 11:08 AM
I am using BADI ME_PROCESS_req_CUST~PROCESS_ITEM to validate service PR Item.
I am using following peace of code
data : lr_pr_item_handle type ref to cl_req_item_proxy_mm,
im_item1 type ref to if_purchase_order_item_mm.
data: lt_esll type table of esll,
ls_esll type esll,
lt_imputaciones type table of ueskn,
ls_imputacion type ueskn,
v_asnum type asmd-asnum.
if re_data-bsart = 'ZS'.
* call method lr_pr_item_handle->get_data
* importing
* ex_data = LS_DATA
* exceptions
* failure = 1
* others = 2.
if re_data-packno ne ''.
* lr_pr_item_handle ?= im_item1.
call method lr_pr_item_handle->if_services_mm~get_srv_data
exporting
im_packno = re_data-packno
im_limit = ' '
importing
ex_esll = lt_esll
* ex_esuh =
* ex_esuc =
* ex_eskl =
exceptions
failure = 1
others = 2.
loop at lt_esll into ls_esll where srvpos is not initial.
clear : v_asnum.
*Checking for Service Group Validation.
if re_data-matkl ne ls_esll-matkl.
concatenate 'Entered Service Does Not Belong to the Mentioned Group..' ls_data-matkl into v_str.
message v_str type 'E'.
endif.
endloop.
endif.
endif.
While creating PR I am getting following erorr :
Access via 'NULL' object reference not possible.
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.
Please help me how to overcome this problem.
Tarun.
I am using BADI ME_PROCESS_req_CUST~PROCESS_ITEM to validate service PR Item.
I am using following peace of code
data : lr_pr_item_handle type ref to cl_req_item_proxy_mm,
im_item1 type ref to if_purchase_order_item_mm.
data: lt_esll type table of esll,
ls_esll type esll,
lt_imputaciones type table of ueskn,
ls_imputacion type ueskn,
v_asnum type asmd-asnum.
if re_data-bsart = 'ZS'.
* call method lr_pr_item_handle->get_data
* importing
* ex_data = LS_DATA
* exceptions
* failure = 1
* others = 2.
if re_data-packno ne ''.
* lr_pr_item_handle ?= im_item1.
call method lr_pr_item_handle->if_services_mm~get_srv_data
exporting
im_packno = re_data-packno
im_limit = ' '
importing
ex_esll = lt_esll
* ex_esuh =
* ex_esuc =
* ex_eskl =
exceptions
failure = 1
others = 2.
loop at lt_esll into ls_esll where srvpos is not initial.
clear : v_asnum.
*Checking for Service Group Validation.
if re_data-matkl ne ls_esll-matkl.
concatenate 'Entered Service Does Not Belong to the Mentioned Group..' ls_data-matkl into v_str.
message v_str type 'E'.
endif.
endloop.
endif.
endif.
While creating PR I am getting following erorr :
Access via 'NULL' object reference not possible.
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.
Please help me how to overcome this problem.
Tarun.
2015 Oct 15 10:05 AM
Any ideas about this ? I have not got any solution of this problem.
Tarun.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |