Skip to Content
0

Repalcement path with singel value

Mar 13 at 11:32 AM

27

avatar image

Hi folks,

we created our cust.exit variable as "Interval". because of this we are not getting single month value if we enter just 08.2011 in input selection screen. can we change the code now with If condition? example : if input is "08.2017" consider it is from and to value. please find our code below.

DATA: lv_month_low TYPE /BI0/OICALMONTH,

lv_month_high TYPE /BI0/OICALMONTH,

L_S_RANGE TYPE RSR_S_RANGESID,

wa2 like line of i_t_var_range.

IF i_step = 2.

CASE i_vnam.

WHEN 'C_UIM_0091'.

LOOP AT i_t_var_range

INTO wa2 WHERE vnam = 'ZPM_CALM'.

lv_month_low = wa2-low.

lv_month_high = wa2-HIGH.

l_s_range-low = lv_month_low.

l_s_range-high = lv_month_high.

l_s_range-sign = 'I'.

l_s_range-opt = 'BT'.

APPEND l_s_range TO e_t_range.

ENDLOOP. ENDCASE.

ENDIF.

ENDFUNCTION.

awaiting your reply.

thanks in advance.

regards,

Ravi.B

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Shanthi Bhaskar Mar 13 at 04:49 PM
0

what is your issue here?

Show 2 Share
10 |10000 characters needed characters left characters exceeded

It is we are not getting required out put if we provide one month as input. because variable represents Interval. so we fixed it with ABAP logic. we just included IF condition. now we are getting required values. Hence closign this thread.

0

Hi Ravi,

I recommend you to check the following WIKI page (especially the topic Customer Exit)

https://wiki.scn.sap.com/wiki/display/BI/OT-OLAP-VAR+Variables


Regards,
Matthias

0