cancel
Showing results for 
Search instead for 
Did you mean: 

How to find BADI which is used in enhancement

Former Member
0 Kudos

Hi Experts,

My project team is using BADIs to enhance datasources and for customer exit variables at reporting level. I am unable to find the BADI name. Can anyone let me know how to see BADI which is being used for data sources enhancement and BADI used for customer exit variables.

Regards,

Mohammed.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Raman/Suman,

I tried your steps before posting this question. For BADI name, my focus is on BW side.(customer exit for variables)

Let me explain you the scenario more clearly.

At ECC

we have a function module template z_datasource. And if we need enhancement for any datasource the template function module is copied and the replaced with the datasource name after Z_.

I have seen function modules exits with these naming convention for datasources but there is one data source which is enhance and whose name doesnt exist here.

One field is added in that datasource and i want to know from where that field is getting filled.

Please let me know how I can use debug mode in RSA3 and add that field as variable in debugger to find the values getting filled.

At BW

I am completely clueless which BADI they are using. There is a customer exit for calmonth. I want to see the code. I looked in CMOD but could not find.

Detailed and precise anwers are much appreciated.

Thanks & regards,

Mohammed.

former_member209728
Active Participant
0 Kudos

Hi Mohammed,

The enhancement for BEx variables in BW is RSR00001 and the customer exit is 'EXIT_SAPLRRS0_001'

The enhancement for enahncing the datasources in R/3 is RSAP0001 and following are the users exits:

- EXIT_SAPLRSAP_001 for transaction data, 

- EXIT_SAPLRSAP_002 for master data,

- EXIT_SAPLRSAP_003 for texts (in older versions only, now use 002)

- EXIT_SAPLRSAP_004 for hierarchy

Thanks

Kush Kashyap

former_member209728
Active Participant
0 Kudos

Hi Mohammed,

Also i have seen many projects using a kind of pattern for declaring customer exits. E.g. mine used a naming convention kind of approach in which if my BEx customer exit enables variable name was VAR_FISCYEAR then we just created a function module with the name ZEXIT_VAR_FISCYEAR or to generalize with the naming convention as ZEXIT_* . What this does is that now there is no need to go to CMOD everytime and write the code. Instead a code was written in CMOD once which looks for a function module which has ZEXIT_* in the beginning followed by the variable name for which you want to call the customer exit.

Coming back to your requirement, to get to the customer exit code, put a breakpoint in the 'EXIT_SAPLRRS0_001' exit and execute your report via RSRT. This will give you an idea about the configuration used in your project.

Thanks,

Kush

former_member182470
Active Contributor
0 Kudos

Customer exits are stored in CMOD only in BW side. You should choose your Project and enhancement of EXIT_SAPLRRS0_001. After that double click on ZXRSRU01. This will show you code for all your Customer exit variables.

For BADI based User exit variables : http://scn.sap.com/docs/DOC-31271

Regards,

Suman

RamanKorrapati
Active Contributor
0 Kudos

Hi Naveed,

Regarding Data source enhancement you can debug your extractor at source system Tx - RSA3, select debug option. Take abap expert help.

If your looking for exist regarding bex variables then at BW tx - RSRT, enter your bex query name, use Debug+execute

You will find useful.

Thanks

Former Member
0 Kudos

Hi Kush,

I know these.

Thanks for reply

Answers (5)

Answers (5)

venkateswaran_k
Active Contributor
0 Kudos

I think you can get it in SE84.

Former Member
0 Kudos

Hi,

Thx everyone.

One more thing, for customer exit variables, in my CMOD its mentioned as "Use sub classes of class zcl_**** for variables.

Its again using  code as zcl_****_ concatenated with variable name.

Can anyone tell what are classes and sub classes if they can explain.

Thanks a lot.

Mohammed.

anshu_lilhori
Active Contributor
0 Kudos

Hi,

Why don't you post your query in ABAP forum..? And morerover these are general concepts so if you even do a search on google you might find some handy documents.

Regards,

AL

former_member209728
Active Participant
0 Kudos

Hi Mohammed,

Search for classes with the name  ZCL_<YourVariableName> in SE24. Or just do a F4 search in SE24 after entering *YourVariable* .

I hope your doubt is not about the concept of clasess and inheritance in ABAP, if that is the case then you will have to check ABAP forums or read documentation about ABAP Objects.

Thanks,

Kush

RamanKorrapati
Active Contributor
0 Kudos

Hi Naveed,

Are you familiar with BADI Classes. if yes then you will understand about sub class.

Ex: we have Class: CL_EXITHANDLER. if this class was used in another class, in that case CL_EXITHANDLER is called as sub class.

For more details you can check at ABAP forum. You may get asap help.

Thanks

Former Member
0 Kudos

Hi Raman,

I am not much familiar with BADI.

Thanks for the info. I will search around for these classes.

Regards,

Mohammed.

former_member182470
Active Contributor
0 Kudos

Check in SE19 and SE18 for  RSU5_SAPI_BADI

Check this SAP Note 691154 also.

0 Kudos

Hi, Set breakpoint at: Class CL_EXITHANDLER, Method GET_INSTANCE, line 28, and check vaue of Variable EXIT_NAME.

Regards

Former Member
0 Kudos

Hi,

Where can I find these things? Do you mean to say in RSA3 in debug mode?

RamanKorrapati
Active Contributor
0 Kudos

Hi Naveed,

BADI Enhancement you need to check at ECC side  Tx - SE24, Enter CL_EXITHANDLER, display-->Methods: GET_INSTANCE--> double click on here--> on next screen you will see method logic.

Take abape expert and debug it with break pointer.

Thanks

RamanKorrapati
Active Contributor
0 Kudos

Hi Naveed,

You can run your extractor at RSA3 with debug mode. thru that you will get the BADI name. take abaper help. might be useful.

Normally used BADI is - RSU5_SAPI_BADI,

Thanks