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

Split Range date in select options row by row

jandrivay
Participant
0 Likes
1,184

Hi all,

here my select option

i need to split that range as like this :
I EQ 20200101

I EQ 20200102

I EQ 20200103

I EQ 20200104

I EQ 20200105.

there's way to solve it ? or like function convert.

Thank you..

1 ACCEPTED SOLUTION
Read only

sergei-u-niq
Active Contributor
1,098

I am not aware of an existing code to do that, but

you could use a "simple" (while or do) loop and start with value in low, increasing by 1 until you reach the value in high. something like that

data(lv_date) = s_stamp-low.
while lb_date < s_stamp-high.
   lv_date = lv_date + 1.
   " append I - EQ - lv_date to your result range table
endwihle.

keep in mind, though, that the resulting range table might be huge if you have a big range between low and high...

2 REPLIES 2
Read only

sergei-u-niq
Active Contributor
1,099

I am not aware of an existing code to do that, but

you could use a "simple" (while or do) loop and start with value in low, increasing by 1 until you reach the value in high. something like that

data(lv_date) = s_stamp-low.
while lb_date < s_stamp-high.
   lv_date = lv_date + 1.
   " append I - EQ - lv_date to your result range table
endwihle.

keep in mind, though, that the resulting range table might be huge if you have a big range between low and high...

Read only

0 Likes
1,098

yes !!
thank you so much, it's very helpful.