cancel
Showing results for 
Search instead for 
Did you mean: 

BEx variable Customer Exits: Not getting I_STEP = 2 in the characteristic 0PSTNG_DATE

Former Member
0 Kudos

Hi all,

I want to values transfer variable of 0PSTNG_DATE but it doesn’t work correctly.

I created 3 variables, the first variable ZFIVS002 is defined like Manual Input/Default Value, Single Value andMandatory with Initial. (takes the values of the user)

The second variable ZFIVF001 is defined like Customer Exit, Single Value and Optional.

And the third variable ZFIVS003 is defined like Customer Exit, Interval and Optional.

When I executed the query in mode debug, the second variable return the correct value, but when begin the code about the third variable it not getting i_step EQ 2and it get out.

This is the code:

IF i_step EQ 2.IF i_vnam EQ 'ZFIVF001'.CLEAR: it_variable,
znum_d.
READ TABLE i_t_var_range INTO it_variable WITH KEY vnam = 'ZFIVS002'.

IF sy-subrc = 0.
znum_d = it_variable-low+6(2).
it_rango-sign = 'I'.
it_rango-opt = 'EQ'.
it_rango-low = znum_d.
it_rango-high = znum_d.APPEND it_rango TO c_t_range.ENDIF.ENDIF.ENDIF.

"Third variable (0PSTNG_DATE):IF i_step EQ 2.IF i_vnam EQ 'ZFIVS003'.

CLEAR: lv_anio,
lv_mes,
lv_anioant_1.READ TABLE i_t_var_range INTO it_variable WITH KEY vnam = 'ZFIVS002'.

IF sy-subrc = 0.
zfechah = it_variable-low.
zfechal = it_variable-low+0(6).CONCATENATE zfechal '01' INTO zfechal.

it_rango-sign = 'I'.
it_rango-opt = 'BT'.
it_rango-low = zfechal.
it_rango-high = zfechah.APPEND it_rango TO c_t_range.ENDIF.ENDIF.ENDIF.

If I check the value insert in variable i_vnam, it keep value the variable ZFIVF001. It doesn’t respect the sentence EQ 'ZFIVS003'.

Before this case, I was used the characteristic 0FISCPER and also 
0NETDUEDATE but I got the same variable behavior. And even I have created new variables but the behavior is the same.

If I check the query in the RSRT in variable ZFIVS003 the message is: Empty value. 
Is anybody had have this problem? 
Could you advice me any solution?

Accepted Solutions (0)

Answers (0)