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

How to use DAP BADI

Former Member
0 Likes
482

Has anybody implemented this BADI in BPC space? I am looking for sample source code of what goes as far as logic is concerned. I am confused with the documentation provided by SAP. Checked online and couldn't find an example code. There are OSS notes provided, but again couldn't understand.

Thx

Ravi

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Likes

Hello Guys,

I put a break point in the BADI. Now the issue is, this BADI is triggered for each and every model in the environment. For example. If I am logging to 'A' model, our intention is to check model security for 'A' only and not for 'B', 'C' and 'D' model. Looks like this BADI will check all models for secure dimensions no matter what.

Can anybody shed some light on how and where we can control this?

Former Member
0 Likes

Hi Ravi,

In SAP note 1849444 it clearly stated that this BADI is whole the whole environment, thus it will be called each time you do the following inside this environment.

Including, Refreshing report, Input data from input forms, execute data manager packages, run consolidation functions, Post data through Journal, etc.


So you need to add a check in this BADI so it only run through for certain model, all other model will just skip, but this BADI will be called each time.

Andy

Former Member
0 Likes

Hi Ravi,

Yes, this BADI will be triggered for every Model in the Environment. Reason is, Model is not part of the Filter.

Code in the BADI will very significantly depending what kind of DAP you want to simulate: ID based or Property based. ID based is much simpler.

Idea of the BADI is simple. It has 2 Input-Output parameters. When it's called it provides what is in that DAP and you can repalce it in the BADI keeping same format.

To avoid full processing for Models that you don't want this BADI to be applied, you can put a statement

CHECK not CT_ACCESS is initial.

Or the other table if you are looking for property based security.

Please also apply OSS Note 2189917 after you are done with testing a single DAP.

I'll try to write a How To ... Guide on this topic if I find some time:(.

Regards,

Gersh

Former Member
0 Likes

Thanks guys. I have already read some notes. but dont understand how it works. But like Andy said, I am going to put a break point and see what's filled and what needs to be filled. I will update here.

Former Member
0 Likes

Hi Ravi,

Can you do ABAP?

You can create a empty BADI for DAP and set a break point in the BADI, then you can see all the available tables and fields, then figure it out from there.

I don't think there is sample code for DAP badi yet.

Andy

Former Member
0 Likes

Hi Ravi,

Please see the below links. Hope it will be useful.

Note 1947908:BPC NW: How to use DAP BADI

Rohit

Former Member
0 Likes

Hi Ravi,

Have you gone through below SAP Notes:

http://service.sap.com/1849444

Note 1947908:BPC NW: How to use DAP BADI

Best Regards,

Deepak