09-20-2016 8:48 AM
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
09-20-2016 9:01 AM
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
09-20-2016 9:06 AM
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
09-20-2016 9:08 AM
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
09-20-2016 10:14 AM
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.
09-20-2016 9:11 AM
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
09-20-2016 9:12 AM
Other approach implement the BADI, put a break point and check what data you are getting there.
Thanks,
Prakash
09-20-2016 9:22 AM
Hi,
There is also one user Exit "VSV00003" for BD12 T-code. I hope this will be helpfull..
Regards,