Skip to Content
1
Former Member
Jun 27, 2007 at 08:33 PM

Problem with the user exit

13 Views

Hi,

I am getting the problem with the user exit to populate the date from the run time .

I am getting that date and but it's in the form of 012007. See the follwing code and adivce to how to fix that .

Data: lv_month(2) TYPE n VALUE '01',

lv_fyear(4) TYPE C,

v_temp(6) TYPE C.

WHEN 'Z_MONTH_FROM'.

IF i_step = 2.

LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'Z_VAR_MONTH2'.

CLEAR l_s_range.

lv_fyear = loc_var_range-low+0(4).

  • loc_var_range-low+4(2) = '01'.

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

CONCATENATE lv_month lv_fyear INTO

v_temp(6) SEPARATED BY '/'.

l_s_range-low = v_temp(6).

APPEND l_s_range TO e_t_range.

EXIT.

ENDLOOP.

ENDIF.

When I am enter in the run time like 06/2007 as per user exit it's pulling value like 012007. But I need like 01/2007 . I tried to different ways could anybody suggest me how to fix this issue.

Thanks in advacne.

Kondala