on ‎2021 Feb 19 9:48 PM
Hello Experts,
I am working on infocube to infocube data copy and using stvarv variable time which has multiple entries.
I am new to abap and looking for sample code on how to pass multiple value from stvarv VARIABLE in DTP filter routine.
I have started with below code but it is reading only one value
data: ls_dyn_time like LINE OF l_t_range.
SELECT LOW into ls_dyn_time-low from TVARVC
WHERE name = 'stvarv variable name'.
l_t_range-fieldname = '/B28/S_********'. "TECHNICAL - TIME ID
l_t_range-sign = 'I'.
l_t_range-option = 'EQ'.
l_t_range-low = ls_dyn_time-low.
*.... Range of TIME dimension members should be only stored in 'LOW'
*column of TVARVC variable
if l_idx <> 0.
modify l_t_range index l_idx.
else.
append l_t_range.
endif.
p_subrc = 0.
ENDSELECT.
Can someone please help where to put loop so that it will read value multiple value from STVARV variable and do data copy?
Thanks
Al
Request clarification before answering.
Need to copy data to different environment for archive purpose.
Here is my code and it works for only one time period from STVARV variable. and it stops. I need to put loop so that it can read more time period in list and do data copy.
data: ls_dyn_time1 like LINE OF l_t_range.
SELECT LOW into ls_dyn_time1-low from TVARVC WHERE name = 'TVARVC VARIABLE NAME '.
l_t_range-fieldname = 'TECHNICAL ID OF TIME DIMENSION /B28/S_******'. " - TIME ID
l_t_range-sign = 'I'.
l_t_range-option = 'EQ'.
l_t_range-low = ls_dyn_time1-low.
if l_idx <> 0.modify l_t_range index l_idx.else.append l_t_range.endif.
p_subrc = 0.
ENDSELECT.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Can I still use script logic with destination app if cubes are in different environment." - No, you can't. You have to use custom logic badi in this case.
But looks strange - why to use different environments instead of different models in one environment?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
Al
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"I am trying to copy data between two BPC cube" - don't use DTP for this task.
To copy data between BPC cubes you can use:
1. Script logic *DESTINATION_APP operator
or
2. Custom logic badi with BPC specific methods like:
run_axis_query_symm to read
write_back to write
Search for the document: "How To… Migrate BPC 7.x BADIs to BPC 10"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
I agree it is more related to ABAP code which I need to enforce on DTP routine. I am trying to copy data between two BPC cube.
Which category I need to select so that it get answered.
Thanks,
Al
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 11 | |
| 11 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.