cancel
Showing results for 
Search instead for 
Did you mean: 

Selection Variable Issue

Former Member
0 Kudos

Hello All,

Web report is based on two selection variables and both are mandatory entry.

0CALMONTH: Customer Exit : Populated from customer exit code. By default always Shows last month i.e 04.2011

Spend Attribute: A002.

Recently it is identified by user that selection variable is popluated as below

0CALMONTH: Customer Exit : 03.2010 - last year - Incorrect value

Spend Attribute: A002.

I have checked all transport request if anything by mistake moved production but every thing is fine.

Somehow 0CALMONTH is populating like 03.2010 which is incorrect. Even I debugged in T-code /nRSRT, it is showing correct 04.2011 while executing the report

Please provide me some ideas to resolve this issue?

Thanks in advance.

Vijay Velpula

Accepted Solutions (0)

Answers (2)

Answers (2)

cornelia_lezoch
Active Contributor
0 Kudos

Hi,

is it showing the wrong value when running a query or running a workbook?

If you are running a workbook, then probably someone saved the workbook including the wrong variable value.

just run the workbook, set the variable to the entry you want to see and save the workbook again.

regards

Cornelia

Former Member
0 Kudos

Hi

Can you put here the logic that you wrote in the exit code for populating this variable ? Also while debugginf did you check the data coming in l_s_range before it is appended to e_t_range ? Is it correct ?

Regards

Raj Rai

Former Member
0 Kudos

Hello,

Thanks for your response. Please find below customer exit code.

*for variable: IC_SPEN1*

*********************************************************************

WHEN 'IC_SPEN1'.

IF i_step = 1. "befor the popup

  • select in infocube dimension

CLEAR sid_month.

sid_month = 0.

CLEAR /bic/dic_spend1t.

SELECT * FROM /bic/dic_spend1t.

IF /bic/dic_spend1t-sid_0calmonth > sid_month.

sid_month = /bic/dic_spend1t-sid_0calmonth.

ENDIF.

ENDSELECT.

  • select in 0CALMONTH master data

IF sid_month <> 0.

CLEAR n_month.

SELECT SINGLE calmonth INTO n_month FROM /bi0/scalmonth

WHERE sid = sid_month.

ELSE.

n_month = 200301.

ENDIF.

CLEAR l_s_range.

l_s_range-low = n_month.

  • L_S_RANGE-HIGH = n_month.

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

APPEND l_s_range TO e_t_range.

EXIT.

ENDIF.

Values are coming correct under l_s_range.

Please suggest.

Vijay velpula

Former Member
0 Kudos

Hi

If value in l_s_range is correct the prob the code is correct. now what i can think of is the Data type of this custom exit variable. It should be consistent with the value type its returning

Regards

Raj Rai