0% found this document useful (0 votes)
100 views

Data Slice of Type Exit For Locking The Data in A Planning Cube - SAP Tricks

Uploaded by

Bo Zhang
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views

Data Slice of Type Exit For Locking The Data in A Planning Cube - SAP Tricks

Uploaded by

Bo Zhang
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

9/22/23, 8:26 AM Data slice of type exit for locking the data in a planning cube - SAP tricks

SAP tricks
SAP tricks and tips, first steps in SAP, how to learn SAP

HOME SAP GENERAL SAP BW ON HANA SAP ABAP SAP BW PLANNING LINKS

SAP tricks

Place for learning and sharing


SAP knowledge; SAP tips and
tricks

Search:

Search

SAP ABAP SAP BW planning

Data slice of type exit for locking Recent Comments

the data in a planning cube Sam on Data target is locked


 August 1, 2018  admin  1 Comment
by process when remodeling
advanced DSO

Data slice of type exit for locking the data in a planning cube Vikas on Data slice of type exit
for locking the data in a
Data slices are option in the planning modeler for locking of data. planning cube
This locking affects the entry of data via input-ready layouts and Kevin on How to change the
all kind of integrated planning functions. It does not stop the user system color in SAP?
to enter data via the old BPS layouts, which are not using
admin on How to change the
integrated planning. Data can be also loaded into the cube. system color in SAP?

Kevin on How to change the


system color in SAP?
In the transaction RSPLAN when we select an info cube and check
the planning specific properties there is a tab Data Slice right next
to the characteristic relationships.

https://sap-tricks.com/data-slice-type-exit-locking-data-planning-cube/ 1/5
9/22/23, 8:26 AM Data slice of type exit for locking the data in a planning cube - SAP tricks

RSPLAN Infoprovider

RSPLAN data slices

There are 2 types of data slices – selection and exit.

The selection has not much flexibility and often can’t cover the
user requirement, but can be used as ad hock solution in some
cases.

Variables can be used also instead of fixed values for this type of
data slice. If there is a dataslice

The data slice of type exit for locking the data in a planning cube
gives more possibilities to select different criteria for allowed
entries.

There is a standard class for such data slices, which includes


some example code and can be used as super-class for your own
exit class. This is CL_RSPLS_DS_EXIT_BASE. You can copy it into a
new class starting with Z, save and activate. You have to enter
your own code into the method:
IF_RSPLS_DS_METHODS~IS_PROTECTED.

First you can check if the exit is working with simple code for one
characteristic. For example we want to lock the data entered for
the last fiscal year = 2017.

We need to enter following code in the method:

FIELD-SYMBOLS: <FISCYEAR> TYPE /BI0/OIFISCYEAR 


https://sap-tricks.com/data-slice-type-exit-locking-data-planning-cube/ 2/5
9/22/23, 8:26 AM Data slice of type exit for locking the data in a planning cube - SAP tricks

ASSIGN COMPONENT ‘FISCYEAR’ OF STRUCTURE I_S_DATA TO <FI


SCYEAR>.

e_noinput = rs_c_false.

If <FISCYEAR> = ‘2017’.

e_noinput = rs_c_true.

endif.

We can implement also more complex logic for combination of


characteristics in the planning cube. One option is to store the
combination of the characteristics in a table or Data store object
from where we can read in the dataslice.

After completing the code and activating the class, we should set
the dataslice to the planning cube in transaction RSPLAN in the
last tab dataslice.

We should select dataslice from type exit, select the class and
also the characteristic FISCYEAR as restricted. Save and we can
test that the data is locked.

Table where we can check the existing data slices is RSPLS_DS.


See more for the tables in integrated planning here.

Share this:

  

Related

Characteristic Top 10 favorite Create Input ready


Relationships transactions in BW query
April 26, 2019 July 27, 2018 May 3, 2018
In "SAP BW planning" In "SAP BW on HANA" In "SAP BW planning"


https://sap-tricks.com/data-slice-type-exit-locking-data-planning-cube/ 3/5
9/22/23, 8:26 AM Data slice of type exit for locking the data in a planning cube - SAP tricks

← Top 10 favorite transactions in BW

First ABAP program – how to start with ABAP? →

One thought on “Data slice of type exit for


locking the data in a planning cube”

 Vikas
 January 17, 2019 at 9:50 am
 Permalink

complex logic for combination of characteristics Please let us


know if you have some sample code

 Reply

Leave a Reply
Your email address will not be published. Required fields are marked
*

Comment *

Name *

Email *

https://sap-tricks.com/data-slice-type-exit-locking-data-planning-cube/ 4/5
9/22/23, 8:26 AM Data slice of type exit for locking the data in a planning cube - SAP tricks

Website

Save my name, email, and website in this browser for the next time I
comment.

Please enter an answer in digits:

sixteen + two =

Post Comment

Notify me of follow-up comments by email.

Notify me of new posts by email.

Copyright © 2023 SAP tricks. All rights reserved.


Theme: ColorMag by ThemeGrill. Powered by
WordPress.


https://sap-tricks.com/data-slice-type-exit-locking-data-planning-cube/ 5/5

You might also like