12-09-2011 10:44 AM
hi
the system was upgrade from bi 3.1 to 7.0 version.the below code is working fine in 3.1.but the same code goes to dump in ECC Version.
field-symbols: <l_sx_rrc0_rto> type rrc1_sx_rto.
data: name(30) value '(SAPLRRC0)G_SX_CUR_RTO',
l_r_request type ref to cl_rsr_request,
assign (name) to <l_sx_rrc0_rto>.
-> l_r_request =
cl_rsr_request=>get_request_by_handle( <l_sx_rrc0_rto>-handle ).
-->going dump there.
Kiran
Edited by: kiran jagana on Dec 9, 2011 5:33 PM
12-09-2011 12:26 PM
Hi,
The type rrc1_sx_rto is defined in type-group RRC1. So the only thing I can see that is missing here is the type pools declaration...
If this has nothing to have with your issue, could you give some more details about the occuring dump?
Kr,
Manu.
02-09-2012 11:02 AM
field-symbols: <l_sx_rrc0_rto> type rrc1_sx_rto.
data: name(30) value '(SAPLRRC0)G_SX_CUR_RTO',
l_r_request type ref to cl_rsr_request,
assign (name) to <l_sx_rrc0_rto>.
-> l_r_request =
cl_rsr_request=>get_request_by_handle( <l_sx_rrc0_rto>-handle )."dump going here
TYPE-POOL rrc1 .
TYPE-POOLS: rro01, rro04, rrx1, rrs0.
----
report as runtime object (RTO) *
----
TYPES: BEGIN OF rrc1_sx_instances,
instance_id TYPE rrx1_handle,
report TYPE rro01_sx_report,
khandle TYPE rrx1_handle,
Area type rrarea, "E.M.
Delta_buffer Type Rrsi_TS_sid, "E.M.
texte TYPE rro01_th_texte,
END OF rrc1_sx_instances,
rrc1_tx_instances TYPE rrc1_sx_instances OCCURS 0.
TYPES: BEGIN OF rrc1_sx_rto,
handle TYPE rsr_handle,
area Type rrarea, "E.M
repkey LIKE rszcompkey,
rkb1d TYPE rsr_s_rkb1d,
seldr_V TYPE Rsdd_tsx_SELDR,
cur_inst TYPE rrc1_sx_instances,
instances TYPE rrc1_tx_instances,
modified TYPE rs_bool,
r_format TYPE REF TO cl_rsr_format,
END OF rrc1_sx_rto,
rrc1_tx_rto TYPE rrc1_sx_rto OCCURS 0.
<l_sx_rrc0_rto>-handle does not have any value.so it is going to dump.its upgrade error.same code works in 4.6c ,but not in ECC.in 4.6c <l_sx_rrc0_rto>-handle has value '0001'.
do the needful
02-09-2012 12:58 PM
Hi Kiran,
do you know if the Report SAPLRRC0 has been initialized successful?
It should be possible, that the handle-field is not filled correctly, because your coding know runs in another environment, e.g. some BI 7-coding.
Kind regards,
Hendrik