2006 Sep 06 11:41 AM
Hi!
I need som syntax help in defining a range table and passing it to a function module because I am getting runtime error that I am passing the wrong type.
The input parameter (range table) should match the following recieving parameter:
Ranges table type: rt_table
Structured Row Type: rtype_ranges
and the rtype_ranges contain two elements: low and high of type char.
how do I define a range table with the range low = A and high = B and pass it to this function?
regards
Baran
Hi!
I need som syntax help in defining a range table and passing it to a function module because I am getting runtime error that I am passing the wrong type.
The input parameter (range table) should match the following recieving parameter:
Ranges table type: rt_table
Structured Row Type: rtype_ranges
and the rtype_ranges contain two elements: low and high of type char.
how do I define a range table with the range low = A and high = B and pass it to this function?
regards
Baran
2006 Sep 06 11:44 AM
it should like this,
RANGES : r_matnr for mara-matnr.
r_matnr-sign = 'I'.
r_matnr-option = 'BT'.
r_matnr-low = 'A'.
r_matnr-hign = 'B'.
append r_matnr.
clear r_matnr.
Regards
Prabhu
2006 Sep 06 11:46 AM
2006 Sep 06 11:48 AM
Check the sample code:
RANGES: r_tabclass FOR dd02l-tabname.
r_tabclass-sign = 'I'.
r_tabclass-option = 'EQ'.
r_tabclass-low = 'TRANSP'.
r_tabclass-high = 'CLUSTER'.
APPEND r_tabclass.
r_tabclass-low = 'POOL'.
APPEND r_tabclass.
CLEAR r_tabclass.
Regards,
Prakash.
2006 Sep 06 11:49 AM
Pass it by value rather than by reference.
There is a checkbox that you need to tick for passing it by value while setting the attributes for a table parameter in the function interface.
Keep the type of range same as that defined in your program.
Regards
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |