2007 Feb 21 8:34 AM
I am making a ABAP routine for a field on my info package. The field contains a date.
The constraint that I want to make is as follows:
select max( /BIC/FCVERDATE ) from /BIC/AAPO_O1000 into FCVERDATE.
But I am not sure how to make the constraint in the code:
data: l_idx like sy-tabix.
....
DATA: FCVERDATE LIKE /BIC/....
....
read table l_t_range with key
fieldname = '/BIC/FCVERDATE'.
l_idx = sy-tabix.
*....
modify l_t_range index l_idx.
p_subrc = 0.
....
Thanks in advance,
regards,
Torben
I am making a ABAP routine for a field on my info package. The field contains a date.
The constraint that I want to make is as follows:
select max( /BIC/FCVERDATE ) from /BIC/AAPO_O1000 into FCVERDATE.
But I am not sure how to make the constraint in the code:
data: l_idx like sy-tabix.
....
DATA: FCVERDATE LIKE /BIC/....
....
read table l_t_range with key
fieldname = '/BIC/FCVERDATE'.
l_idx = sy-tabix.
*....
modify l_t_range index l_idx.
p_subrc = 0.
....
Thanks in advance,
regards,
Torben
2007 Feb 21 9:43 AM
Solved
....
DATA: FCVERDATE LIKE /BIC/....
....
select max( /BIC/FCVERDATE ) from /BIC/AAPO_O1000 into FCVERDATE.
read table l_t_range with key
fieldname = '/BIC/FCVERDATE'.
l_idx = sy-tabix.
l_t_range-option = 'BT'.
l_t_range-low = FCVERDATE.
l_t_range-high = FCVERDATE.
modify l_t_range index l_idx.
p_subrc = 0.
....
I properly could have use 'EQ' instead of 'BT'.
Regards,
Torben
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |