Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Date Variable

Hi Guys,

I have a date as characteristics, but the requirement is to create a variable and only consider the year and then restrict the data based on this. Any suggestion for this?

Regards,

Iván.

Former Member replied

WHEN 'ZH01_ANH'.

break-point.

IF i_step = 2. "After the popup

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

CLEAR l_s_range.

concatenate loc_var_range-low '0101' into varfi.

concatenate loc_var_range-high '1231' into varff.

l_s_range-low = varfi.

l_s_range-high = varff.

l_s_range-sign = 'I'.

l_s_range-opt = 'BT'.

APPEND l_s_range TO e_t_range.

EXIT.

ENDLOOP.

Hi Ivan,

Your code is correct except for few change.one was it is 'YYYYMMDD' n not 'YYYYDDMM' as u had written.

PLease try above code.Also 'ZH01_FEC' make it user entry with interval values.

Regards,

Rathy

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question