cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to hit break point in exit class method of Data slice .

Former Member
0 Likes
1,201

Hi Experts,

I have a table Z_LOCK with three fields (Version, Company and Date), if Company =BMCCOMPANY and Date <= SY-Datum , I want to activate/lock data slice.

For this I have created following steps:

Step 1:

Created Data slice on version dimension as below

Step 2: Created exit class ZCL_DATA_SLICE similar to CL_RSPLS_DS_EXIT_BASE and implemented following code in method IF_RSPLS_DS_METHODS~IS_PROTECTED

TYPES : BEGIN OF ty_Data_Slice,
version(32) type c,
lock(32) type c,
zdate type sy-datum,

END OF ty_Data_Slice.


DATA: it_version TYPE STANDARD TABLE OF ty_version.

DATA: it_data_slice TYPE STANDARD TABLE OF ty_Data_Slice.

SELECT * FROM zbpc_lock_ver INTO TABLE it_data_slice WHERE VERSION = 'VWV1' AND BPC_LOCK = 'BMCOMPANY' AND effective_date <= sy-datum.
IF SY-SUBRC <> 0.
e_noinput = rs_c_false.

ELSE.
e_noinput = rs_c_true.

ENDIF.

CLEAR e_t_mesg

ENDMETHOD.

Step 3: Executed planning sequence

Issue: I am unable to hit break point in protected method after execution of planning sequence, kindly review my above steps and code and let me know if I am missing any configuration steps because of which I am not able to hit break point.

Thanks,

Siva

Accepted Solutions (0)

Answers (3)

Answers (3)

sheldon_piao
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Siva,

To detect it, normally I will set the break-point at METHOD IF_RSPLS_CR_MAPPER~IS_PROTECTED CL_RSPLS_CR_MAPPER. Then debug and confirm why it is not called. I assume it should be reached here:

----

IF o_dstype = if_rspls_ds_types=>n_c_s_dstype-union.
LOOP AT if_rspls_cr_mapper~n_t_required INTO l_s_required WHERE active = rs_c_true.
CHECK o_r_xfilled->* O l_s_required-xrequired.
l_s_required-r_ds->is_protected( EXPORTING i_s_data = <l_s_out>
IMPORTING e_t_mesg = e_t_mesg
e_noinput = e_noinput ).
IF e_noinput = rs_c_true.
EXIT.
ENDIF.
ENDLOOP.
ELSE.
o_r_dataslice->is_protected( EXPORTING i_s_data = <l_s_out>
IMPORTING e_t_mesg = e_t_mesg
e_noinput = e_noinput ).
ENDIF.

----

If not, I need to check why it is not called in above layer.

Best Regards,

Sheldon

cornelia_lezoch
Active Contributor
0 Likes

Hi Siva,

all characteristics, that the data slice shall check, need to be marked as "is restricted".

So if company and date are relevant - mark it - even though I can not identify these as characteristics in your screenshot.

regards

Cornelia

Former Member
0 Likes

Thanks for reply Cornelia!

In this scenario data slice should check only time, so i have marked only time as restricted.

former_member302041
Contributor
0 Likes

Hi,

Do you get any data executing a sequence (X read, Y changed, Z generated)?

BREAK-POINT statement doesn't work?

BR,

Former Member
0 Likes

Thanks for reply Andrey!

I was not able to hit breakpoint , but data slice is working as expected.