on ‎2018 Jul 27 1:17 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do you get any data executing a sequence (X read, Y changed, Z generated)?
BREAK-POINT statement doesn't work?
BR,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 41 | |
| 4 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.