Skip to Content

Replacementpath variable issue

capture.pngHello Folks,

We have two restricted key figures .

1.) 'PM Cost Actual (standard)' is the name. : Actual finish month is one among the restrictions . The actual finish month characteristic is restricted by a variable which is manual input with selection option.

2.) 'PM Cost Actual (permanent)' is the name . : Posting month is one among the restrictions.This posting month is restricted by replacement path variable which is Single value.

the issue is in output we are not getting full month range that we entered in inputselection screen. for ex : if we enter 05.2017 to 12.2017 in Actual finish month we are getting only 05.2017 data only. liek that we get only 08.2017 only if we give 08.2017 to 12.2017.

this is due to replacement path variable used in second RKF. why we used replacement path instead of manualinput variable? because user dont want to enter the selctions two t times in input screen.

is there any other way to meet users requirement? screen shots attached.

we are now in sap bw 7.5 .

thanks in advance.

Regards,

Raki

capture.png (50.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 08 at 10:24 AM

    Hi Raki,

    I am not sure if I understood you correctly but do you mean that you are trying to use replacement by variable? If I understood your question correctly you would like to use the input value of variable 'PM Cost Actual (standard)' for 'PM Cost Actual (permanent)'. And you would like to see the selected range not only the from value but why do you set it to 'single value'?

    Regards,
    Matthias

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 12 at 01:48 PM

    HI Matthais,

    thanks for responding. yes we need to change the variable properties. Now we achieved this through a customer exit variable.

    now we can see all month's data. But 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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 14 at 07:52 AM

    Closing this question since we have fixed it with small change in ABAP code. we just used If condition to get required values in output.

    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'.

    IF lv_month_high is initial .

    l_s_range-opt = 'EQ'.

    CLEAR l_s_range-high.

    ELSE.

    l_s_range-opt = 'BT'.

    Endif.

    APPEND l_s_range TO e_t_range.

    ENDLOOP.

    ENDCASE.

    ENDIF.

    Add comment
    10|10000 characters needed characters exceeded