Hello,
I need to filter on a profit center hierarchy in a DTP. In the filter selection in the DTP there is the possibility to write a routine for this purpose. How should this routine look? Could anyone provide me with the code?
Please help me by filling in below!
Thanks in advance!
Best regards
F C
&----
*& Include RSBC_SEL_ROUTINE_TPL
&----
program conversion_routine.
Type pools used by conversion program
type-pools: rsarc, rsarr, rssm.
tables: rssdlrange.
Global code used by conversion rules
$$ begin of global - insert your declaration only below this line -
TABLES: ...
DATA: ...
$$ end of global - insert your declaration only before this line -
-------------------------------------------------------------------
Fieldname =
data type =
length = 000000
-------------------------------------------------------------------
form compute_
tables l_t_range structure rssdlrange
changing p_subrc like sy-subrc.
Insert source code to current selection field
$$ begin of routine - insert your code only below this line -
data: l_idx like sy-tabix.
read table l_t_range with key
fieldname = ' '.
l_idx = sy-tabix.
*....
if l_idx <> 0.
modify l_t_range index l_idx.
else.
append l_t_range.
endif.
p_subrc = 0.
$$ end of routine - insert your code only before this line -
endform.