Skip to Content
author's profile photo Former Member
Former Member

How can u triger IDOCS wen ever vendor no. changes in XK02 Using BADI's

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


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2007 at 04:14 PM


    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 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,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.