Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Method CHECK_BEFORE_ADD_OBJECTS fo BADi CTS_REQUEST_CHECK

Former Member
0 Likes
1,126

Hi Experts,

When the method CHECK_BEFORE_ADD_OBJECTS of BADi CTS_REQUEST_CHECK is triggered?

I implemented it (just put a balnk if..endif condition) and put a break point in it, I created a new transport request by changing a object it was not triggered and again

I changed some other object and included that object in the same transport request then also it was not triggered.

Thanks

Yogesh Gupta

Hi Experts,

When the method CHECK_BEFORE_ADD_OBJECTS of BADi CTS_REQUEST_CHECK is triggered?

I implemented it (just put a balnk if..endif condition) and put a break point in it, I created a new transport request by changing a object it was not triggered and again

I changed some other object and included that object in the same transport request then also it was not triggered.

Thanks

Yogesh Gupta

4 REPLIES 4
Read only

Former Member
0 Likes
831
In ECC 5 this is what the documentation says.

You can use the following methods:

    * CHECK_BEFORE_CREATION

This method is called before a request is created and after the creation dialog box. It gives you the option to:

          o make your own checks

          o change the short text and attributes.

    * CHECK_BEFORE_RELEASE

This method is called before a request is released. It gives you the option to:

          o make your own checks (for example, on the objects in the request)

          o change the short text and attributes.

    * CHECK_BEFORE_CHANGING_OWNER

This method is called before the owner of the request is changed, and after the confirmation dialog box. It gives you the option to make checks.

If you are on a higher or lower version of SAP. please read the documentation of the BADI via SE18.

Amandeep

Read only

Former Member
0 Likes
831

Hi,

Or Do this thing, check whether this BADI is at all hit when you run the transaction.

Go to SE24 -> Provide class name as CL_EXITHANDLER

Go to GET_INSTANCE method, put a break point on

CALL METHOD cl_exithandler=>get_class_name_by_interface

Run your transaction now, and check for all the exit names using the field exit_name.

(Use F8 to come to the breakpoint every next time)

If you get your BADI name in thre, then your should be called in else you are using a wrong BADI.

Thanks,

Kartavya

Read only

Former Member
0 Likes
831

answered

Read only

Former Member
0 Likes
831

Hi Yogesh I am also trying to use this method to do some checks when someone is trying to add an object to an existent transport request or when someone is creating a ñew task for an object who is already in an open transport request, but in either of this cases the method is triggered

Do you know why is this?

Regards.

Mariano,