Code: Alles auswählen.
types: ttr_timestamp type range of timestamp.
data: ltr_timestamp type ttr_timestamp.
field-symbols:
<ls_date> like line of so_date,
<lsr_timestamp> type line of ttr_timestamp.
loop at so_date assigning <ls_date>.
append initial line to ltr_timestamp assigning <lsr_timestamp>.
<lsr_timestamp>-sign = <ls_date>-sign.
<lsr_timestamp>-option = 'BT'. "Immer BETWEEN ... AND ...
convert date <ls_date>-low time '000000' into timestamp <lsr_timestamp>-low timezone 'CET'.
if <ls_date>-high is not initial. "Die ursprüngliche Selektion war bereits BT
convert date <ls_date>-high time '235959' into timestamp <lsr_timestamp>-high timezone 'CET'.
else. "Ansonsten nehmen wir einfach den Beginntag
convert date <ls_date>-low time '235959' into timestamp <lsr_timestamp>-high timezone 'CET'.
endif.
endloop.