cancel
Showing results for 
Search instead for 
Did you mean: 

Exit DataSlice in IP

Former Member
0 Kudos

Hello Everybody,

I wish to implement an exit dataslice in IP, but I am having some basic problem.

I have read SAP docu: http://help.sap.com/saphelp_nw70/helpdata/en/43/1c3d3f31b70701e10000000a422035/content.htm

It states:

1. "The exit class must implement the interface 'IF_RSPLS_DS_EXIT'."

2. "We recommend that the customer class inherit from the template class

'CL_RSPLS_DS_EXIT_BASE'."

3. "Re-implement the method u2018IS_PROTECTEDu2019."

Hence, I then implemented ZCL_RSPLS_DS_EXIT_BASE with CL_RSPLS_DS_EXIT_BASE as super class (see above 2.). This looks fine BUT the problem is that IF_RSPLS_DS_METHODSIS_PROTECTED can not be changed then (message: Method IF_RSPLS_DS_METHODSIS_PROTECTED (see above 3.) is implemented in class CL_RSPLS_DS_EXIT_BASE).

I now deleted class ZCL_RSPLS_DS_EXIT_BASE and started all over again. This time NOT defining ZCL_RSPLS_DS_EXIT_BASE with CL_RSPLS_DS_EXIT_BASE as super class. Instead I defined the interface IF_RSPLS_DS_METHODS. Now I could modify IF_RSPLS_DS_METHODSIS_PROTECTED (see above 1.), BUT when I then debug the application I notice that the method IF_RSPLS_DS_METHODSIS_PROTECTED is never called.

Also, in IF_RSPLS_DS_EXITGET_INSTANCE I have to implement a call to CL_RSPLS_DS_EXIT_BASE=>IF_RSPLS_DS_EXITGET_INSTANCE

What am I doing wrong? What is the right way to do this?

Thanks for any help.

Martin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Martin,

if you are using the superclass 'CL_RSPLS_DS_EXIT_BASE' as basis for you implementation you need to redefine the IS_PROTECTED method.

You will find an icon/button for this in TA SE24. It is in the line where you can see the parameter and execption button. The icon is at the end of that line.

Hope this helps.

Matthias Nutt

SAP Consulting Switzerland

Answers (0)