on 02-21-2008 5:22 AM
hi all,
How do we test a particular BAdI?
for eg in SRM we have a BAdI by name:
BBP_DOC_CHECK_BADI ?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.