Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ranges using subroutines

Hi All,

i have 20 parameters in Fm. if i pass any value in those parameters , the Fm should return the entries matching to that value. If i dont pass any value in params, the FM should return all the values . To achive this i have defined ranges for all 20 parameters and when those params have the value i am filling a range objects with values. If params not conatins any value am just not doing any thing.

Here my question is i want to fill this range objects using perform statement. I dont want to write 20 times. So i have created one subroutine passing range object as table and remaining values in USING statement. Here i am getting one error that range object is too big to hold the value.

MY perform statement is

perform range tables r_matnr

using 'I'

'EQ' 'lowvalue'.

form ranges tables p_r_matnr structure range_matnr

using p_i




can any one please tell me how to fill the range object dynamically, for example if the range object is werks then in the form statement structure i want to refer werks range.


CS Reddy.

Former Member
Not what you were looking for? View more on this topic or Ask a question