Skip to Content

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

Year to month Customer Exits in variable Urgent plz

Hi all,

I am having a problem with the customer exit while writing the Abap code. Here v are calculating the YTD from the starting of the year to month. plz look into the follow code if der r any error plz let me know,

DATA: l_s_range TYPE rsr_s_rangesid.

DATA: loc_var_range LIKE rrrangeexit.

DATA: v_loc_date TYPE d.

DATA: v_loc_date1 TYPE d.

DATA: v_loc(4) TYPE c.

CASE i_vnam.


  • to calculate "year to date" (User input CalMonth-Key Month)



IF i_step = 2. "after the popup

LOOP AT i_t_var_range INTO loc_var_range

WHERE vnam = 'ZVCPUM1'.

CLEAR l_s_range.

l_s_range-low = loc_var_range-low(4)."low value, e.g.200001

l_s_range-low+4(2) = '01'.

l_s_range-high = loc_var_range-low. "high value = input

l_s_range-sign = 'I'.

l_s_range-opt = 'BT'.

APPEND l_s_range TO e_t_range.





pls its urgent



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