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

Make ABAP selection for InfoPackage

Former Member
0 Likes
295

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

1 REPLY 1
Read only

Former Member
0 Likes
272

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