on 04-08-2009 4:50 AM
Hi All,
I have Fiscal Year Characteristic in my DTP and I want to pick the FILTER value for it from a TVARVC variable. I have created a TVARVC variable ZFISCYEAR which has the value for the year. How can i code this in my DTP. This is what i see when i DTP Routine
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.
My InfoObject is ZYEAR and TVARVC Variable is ZFISCYEAR, could someone give the exact code to put in the DTP.
Thanks
Rashmi.
Rashmi,
please put in type 6 in selection and give routine name in the field ZYEAR.
and put below code.
tables: tvarvc.
data: l_sign(1),
l_opt(2),
l_low(45),
l_high(45).
read table l_t_range with key
fieldname = 'ZYEAR' .
select SINGLE sign opti low high from tvarvc
into (l_sign,l_opt,l_low,l_high)
where name = 'ZFISCYEAR'.
l_t_range-sign = l_sign.
l_t_range-option = l_opt.
l_t_range-low = l_low.
l_t_range-high = l_high.
modify l_t_range index sy-tabix.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.