on 04-03-2006 12:30 AM
Hi Experts,
Is there any function module that will enable us to perform selective deletion of data from the InfoCube? I am aware that we can do selective deletion from the InfoCube using the front-end functionality in the following manner:
InfoCube >> Manage>>Contents>>Selective Deletion
But I want to know whether I can do the same thing using a function module.
If anyone has come across such a function module, please let me know
THank you for your inputs
Deepa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use function module RSDRD_SEL_DELETION. Here's a sample code:
type-pools: rsdrd, rsdq.
data:
l_s_range type rsdrd_s_range,
l_sx_sel type rsdrd_sx_sel,
l_t_msg type rs_t_msg,
l_thx_sel type rsdrd_thx_sel,
l_t_seltxts type rsdq_t_seltext
with header line.
*Select 0MATERIAL selection
clear: l_sx_sel, l_s_range.
l_sx_sel-iobjnm = '0MATERIAL'.
move: c_i to l_s_range-sign,
c_eq to l_s_range-option,
space to l_s_range-high,
c_x to l_s_range-keyfl.
l_s_range-low = '123456'.
append l_s_range to l_sx_sel-t_range.
insert l_sx_sel into table l_thx_sel.
*Select 0PLANT selection
clear: l_sx_sel, l_s_range.
l_sx_sel-iobjnm = '0PLANT'.
move: c_i to l_s_range-sign,
c_eq to l_s_range-option,
space to l_s_range-high,
c_x to l_s_range-keyfl.
l_s_range-low = '1111'.
append l_s_range to l_sx_sel-t_range.
insert l_sx_sel into table l_thx_sel.
call function 'RSDRD_SEL_DELETION'
EXPORTING
i_datatarget = 'ZYOURCUBE'
i_thx_sel = l_thx_sel
i_authority_check = rs_c_true
i_no_logging = space
i_parallel_degree = space
i_show_report = space
CHANGING
c_t_msg = l_t_msg.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.