Skip to Content

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

Error while executig reports

Hello All,

I had posted a thread yesterday to create a characteristic value to populate current calendar month/year.. i received a reply for the same and have written the following code for it...

data: l_s_range like E_T_RANGE,

mo type i,

moc(2),

I type i.

    • CLEAR L_S_RANGE.*

if i_step = 1.

mo = sy-datum+4(2).

moc = mo.

if sy-datum+4(2) = 1.

l_s_range-low = '01'.

l_s_range-high = '01'.

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

append l_s_range to e_t_range.

else.

if mo < 10.

concatenate '0' moc into moc.

endif.

l_s_range-low = moc.

l_s_range-high = moc.

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

append l_s_range to e_t_range.

endif.

endif.

ENDFUNCTION.

On executing the report i got the following errors:

Messages:

Value "03" for user-exit variable ZCURMNTH is invalid

Variables contain invalid values.

System error in program CL_RSR_OLAP_VAR and form INIT-02- (see long text)

Please help me ASAP...

Sneha

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