Application Development 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: 

Which BADI/Exits to use to do Validation on Customer before idoc creation in BD12 tcode

Former Member
0 Kudos

Hi Experts,

Please suggest me which BADI/Exits I can use for my below requirement.

Requirement - I need to do few validations such as, in tcode BD12, during customer creation/change, Account group, Sales org, partner functins  should match the given scope otherwise no need to trigger that idoc

For this requirement, I can make use of badi IDOC_CREATION_CHECK, parameter CREATE_IDOC. but for getting the customer no. and other details, i am not getting which is the best badi/exits to use.

Please suggest,

Thanks,

Kavya M B

7 REPLIES 7

Former Member
0 Kudos

Hope you are aware of CL_EXITHANDLER class. put break point in method GET_INSTANCE of this class  and execute BD12 to get all the BADIs.

Thanks,

Prakash

0 Kudos

Hi Prakash,

I am aware of this. I have got below BADIs also.

IDOC_CREATION_CHECK

CUSTOMER_ADD_DATA_BI

IDOC_DATA_INSERT

IDOC_DATA_MAPPER

I want to know which is the best badi to use in my scenario.

Thanks,

Kavya

Former Member
0 Kudos

Hi Experts,

if i use badi IDOC_CREATION_CHECK, will i get all the customer data, segment wise in IDOC_DATA parameter??

Please suggest,

Thanks,

Kavya M B

0 Kudos

Have you considered using filter in Distribution Model instead of implementing a BADI?

IDOC_CREATION_CHECK is applied to all outgoing IDoc messages hence I would suggest to make sure that your logic is restricted only to your scenario.

Former Member
0 Kudos

Hi Kavya,

You have to check interface of those BADI's. In my case I would go and check methods of each of the BADIs you have given to check which method have all the required parameters.

Thanks,

Prakash

Former Member
0 Kudos

Other approach implement the BADI, put a break point and check what data you are getting there.

Thanks,

Prakash

Former Member
0 Kudos

Hi,

There is also one user Exit "VSV00003" for BD12 T-code. I hope this will be helpfull..

Regards,