2006 Sep 06 12:33 PM
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
2006 Sep 06 12:54 PM
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
2007 May 05 7:54 AM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |