01-04-2007 3:25 PM
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
01-04-2007 4:14 PM
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.
01-10-2007 11:44 AM
Hi SUMANTH,
How may ways idocs are triger with help of user exit.i found SAPFM02k programme.here i found only one exit for XK01.But here idocs are configured.So i want triger idocs by EXACT user exit ,which one triged for particular idocs.
pls help me
scenario:
if change the vendor No, thro change pointer (RBDMIDOC), USER Exit should trigger it has to check vendor No in the segment is equal to vend_NEW(which was in custom table ZVEND_TABLE), if it is then it has to convert with vend_OLD(Which is also in ZVEND_TABLE).
having one conversion table with fields
ZVEND_TAB table with following fileds
vend_old -
vendor old number
vend_new -
vendor new number
THANKS
01-10-2007 3:33 PM
Hi Anil,
If you or some in your team has access to SAP Professional Journal, check out the article titled:
"Real-Time, Outbound Interfaces to Non-R/3 Systems Made Simple with Change Pointers, Message Control, and Workflow"
I followed the procedure from this article. This makes use of the ALE/SAP Business Workflow. It is kind of lengthy process but a good method.
Regards,
Sumant.
01-10-2007 3:50 PM