Skip to Content
0
Former Member
Jan 19, 2012 at 02:44 PM

IF_RSPLFA_SRVTYPE_IMP_EXEC_REF -using GET_REF_DATA- I_TH_REF_DATA empty

325 Views

HI,

I'm trying to implement a planning function based on IF_RSPLFA_SRVTYPE_IMP_EXEC_REF.

If I put a break in the method Execute, i see I_TH_REF_DATA filled with data corresponding to the filter selections.

Now, I tryed to implement the method GET_REF_DATA as follows:

E_T_REF_CHARSEL[] = i_t_data_charsel[].

TAB_REF_CHARSEL-iobjnm = 'ZBECSCEN'.

TAB_REF_CHARSEL-low = 'AA0'.

TAB_REF_CHARSEL-SIGN = 'I'.

TAB_REF_CHARSEL-OPT = 'EQ' .

APPEND TAB_REF_CHARSEL to E_T_REF_CHARSEL.

but as soon as the method Execute is run, the table I_TH_REF_DATA is empty.

I also tried to implement the method ADD_NEW_BLOCKS as follows:

CREATE DATA l_r_new_block LIKE LINE OF e_ts_new_blocks.

ASSIGN l_r_new_block->* TO <s_new_block>.

LOOP AT i_th_ref_data ASSIGNING <s_ref_data>.

MOVE-CORRESPONDING <s_ref_data> TO <s_new_block>.

READ TABLE i_ts_existing_blocks TRANSPORTING NO FIELDS FROM <s_new_block>.

IF sy-subrc = 0.

COLLECT <s_new_block> INTO e_ts_new_blocks.

ENDIF.

ENDLOOP.

The I_TH_REF_DATA is always empty. Could you please give me some advice?

many thanks in advance!

S.