Skip to Content
0
Former Member
Nov 01, 2019 at 09:13 PM

Customer Exit Text Variable from Input Intervall base on 0calday

58 Views

Dear Expert,
i have a User exit like below. I need Text Variable base of this.. Could anybody please write me a code?
Exit Variable : 01.10.2019 (firstday from current month) - 10.10.2019 (yesterday)

WHEN 'ZVALDA1'.
    IF i_step = 1.
      CLEAR: l_s_range.
      vday2 = sy-datum.
      vday2 = vday2 - 1.                      
      CONCATENATE vday2(6) '01' INTO vday1.  
      l_s_range-low = vday1.
      l_s_range-high = vday2.               
      l_s_range-sign = 'I'.
      l_s_range-opt = 'BT'.
      APPEND l_s_range TO e_t_range.
    ENDIF.  


Thanks alot for your help.
Sascha