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

Range table type conflict

Former Member
0 Likes
448

Hi!

Can anybody please tell me what is wrong with this code.

I am trying to pass a range table to a function that takes a following type of table:

Range table type: rangetab_tty

Structured Row Type: ranges_row

Associated type for LOW/HIGH components: some_element

Here is my test program:

DATA:

lt TYPE rangetab_tty,

lt_line TYPE LINE OF rangetab_tty.

lt_line-sign = 'I'.

lt_line-option = 'BT'.

lt_line-low = '0'.

lt_line-high = '1'.

APPEND lt_line TO lt.

and now I am passing this table and then I get the runtime error "table type conflict" because it seems I am passing the range table wrong.

regards

Hi!

Can anybody please tell me what is wrong with this code.

I am trying to pass a range table to a function that takes a following type of table:

Range table type: rangetab_tty

Structured Row Type: ranges_row

Associated type for LOW/HIGH components: some_element

Here is my test program:

DATA:

lt TYPE rangetab_tty,

lt_line TYPE LINE OF rangetab_tty.

lt_line-sign = 'I'.

lt_line-option = 'BT'.

lt_line-low = '0'.

lt_line-high = '1'.

APPEND lt_line TO lt.

and now I am passing this table and then I get the runtime error "table type conflict" because it seems I am passing the range table wrong.

regards

2 REPLIES 2
Read only

Former Member
0 Likes
406

Hi,

You can do this way:

Ranges: lt_line for <table-fieldname>.

Then fill the values as you are doing

lt_line-sign = 'I'.

lt_line-option = 'BT'.

lt_line-low = '0'.

lt_line-high = '1'.

APPEND lt_line .

Rgds,

HR

Read only

0 Likes
406

Hi ,

I need your help in this regards,

If i have SXDATRNGT as a table range type and SXDATRNGL as a Structured Row Type .Then how can i refer table and table field name as specified by you.

How can i this use in program to avoid type conflict for FM ..

Thanking you in advance.

Shilpa.