02-12-2008 8:34 AM
hi,
I am using setleaf table.
where in only from and tovalue of cost element is available if i need intermediate values between from and to how to get that.Please help me out.
02-12-2008 8:51 AM
Hi
Using the fields VALSIGN,VALOPTION,VALFROM and VALTO you have to take the value of the Cost elements from this table
instead of using these tables SETNODE and SETLEAF you can use the fun module G_SET_TREE_IMPORT to get the CE's pass the concatenated value of Class,Subclass and CE group to this fun module and fetch the CE's from it
Regards
Anji
02-12-2008 9:12 AM
02-12-2008 9:12 AM
Hi,
select options will only have from and to value.
If u want all the values within the range then use the select statement and retrieve the field and stored it in separate internal table.
The following gives the sample code:
carr_id type sbook-carrid.
data: begin of it_carrid occurs 0,
carrid type sbook-carrid,
end of it_carrid.
select-options: s_carrid for carr_id default 'LH' to 'LH'.
select carrid from sbook into table it_carrid where carrid in s_carrid.
loop at s_carrid.
write: s_carrid-low, s_carrid-high.
endloop.
loop at it_carrid.
write:/ it_carrid-carrid.
endloop.
Regards,
Vadi