cancel
Showing results for 
Search instead for 
Did you mean: 

Variable Dialogue cannot be opened until submit is done in SAC story

ikirilova1
Participant
441

Hi gurus,

I have the following problem:

Simple story, based on BW live connection model, with a customer exit variable for 0CALMONTH, which calculates by default the previous month, but it is input ready at the same time. When I try to load the BW query in story in SAC I receive an error:

Variable Dialogue cannot be opened until submit is done

Does anybody know where this submit should be done, on what object?

The query works fine in Analysis and RSRT.

The settings of the variable are:

The customer exit code is:

    WHEN  'ZSEL_MONTH_SINGLE_VALUE'.
    "Single month manual selection variable with default value for previous month.
    IF  i_step = 1.
      CLEAR:
        l_s_range,
        l_s_var_range.
      date = sy-datum.
      l_s_range-low = date.
      c_year = l_s_range-low(4).
      c_month  = l_s_range-low+4(2).
      if c_month = '01'.
        p_year = c_year - 1.
        p_month = '12'.
      ELSEIF c_month = '11' or c_month = '12'.
        p_month = c_month - 1.
        p_year = c_year.
      ELSE.
        p_month = c_month - 1.
        CONCATENATE '0' p_month into p_month.
        p_year = c_year.
      endif.
      CONCATENATE p_year p_month INTO c_calmonth.
      l_s_range-low = c_calmonth.
      l_s_range-sign = 'I'.
      l_s_range-opt = 'EQ'.
      APPEND l_s_range TO e_t_range.
    ENDIF.

Accepted Solutions (1)

Accepted Solutions (1)

ikirilova1
Participant
0 Kudos

The problem was SAC didn't refresh the values.

Answers (0)