Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

regd : ranges

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

hi,

I am doing this to get costelementgroup.

i048168
Advisor
Advisor
0 Kudos

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