Hi all
When ever i change the vendor no.. in XK02,the idoc have to be triggrer using BADI in ECC6.0 version.Pls Any one help me how to create BADI AND IDOC IN ECC6.0.I am new to both IDOCS and BADI.
Given badi name was -- VENDOR_ADD_DATA_BI .
Where to u have add funtionality whether in BADI or in particulatr Tcode programe name(means Include programe name)
Pls guide me
Thanks
Hi,
I have done something similar but not the exact. My requirement was to send Customers and moreover I didn't make use of the BADI, instead I used events and change pointers.
What you can do is:
1. put the following code (or something similar) inside your BADI (make sure the BADI is fired only for XK02 and not for t.codes XK01, XK03,...)
This program RBDSECRE is same as T.code BD14. The variable w_vendor_number should match with your BADI parametes.
SUBMIT RBDSECRE WITH SELLIFNR EQ w_vendor_number WITH MESTYP EQ 'CREMAS' WITH LOGSYS EQ w_logsys_name WITH nomsg EQ 'X' AND RETURN.
2. create a distribution model for the logical systems and the idoc message type in BD64.
Hope this Helps,
Sumant.
Add a comment