Application Development and Automation 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: 
Read only

Problem passing a range table, typ conflict

Former Member
0 Likes
883

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

4 REPLIES 4
Read only

Former Member
0 Likes
708

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

Read only

0 Likes
708

hi,

use table with structure <b>SELC</b>

A.

Read only

Former Member
0 Likes
708

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.

Read only

Former Member
0 Likes
708

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