cancel
Showing results for 
Search instead for 
Did you mean: 

how to test a BAdI?

Former Member
0 Kudos

hi all,

How do we test a particular BAdI?

for eg in SRM we have a BAdI by name:

BBP_DOC_CHECK_BADI ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Praveen,

Steps To test the working of a BADI:

The BADI should be implemented first for testing.

I have given you the steps to implement a BADI in your previous post.

So, After implementing, based on ur requirement place a breakpoint and go through it.

Check for all the parameters that are flowing through this method in BADI in debugging mode.

For example,if we have a requirement in shopping cart to display some message.

then we can use CHECK badi for it.

But for shopping cart, use func module BBP_PD_SC_GETDETAIL to get the shopping cart details by passing necessary parameters.

Validate based on ur requirement.

Create a Shopping cart, look for the result for which ur BADI is implemented.

Pls Do Reward Full Points for useful answers.

Regards,

Ashwin.

Edited by: Ashwin Kumar on Feb 21, 2008 11:36 AM

Edited by: Ashwin Kumar on Feb 21, 2008 11:54 AM

Answers (3)

Answers (3)

ravisankara_varaprasad
Active Participant
0 Kudos

Hi ,

BADI can be tested after implementing the required badi , you can refer the sample implementation( if available) to know the actual usage of the badi.

once you implement it then you can put a break-point to test this badi.

Kind Regards,

Ravi Sankar.

khan_voyalpadusman
Active Contributor
0 Kudos

Hi,

It is not possible to test BADI seperately , as it requires various parameters.

And this parameters are availble only when the program calls the BADI

It will be called by program during a process , and during this process you can investigate how this badi behaves.

For example --> if you want to test BADI

BBP_DOC_CHECK_BADI --->

This will be called during the creation of shopping cart ,

Former Member
0 Kudos

Check this thread