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

How to stop BDOCs generation for a particular transaction type.

Hello Experts,

"There is a BADI, ORDER_SAVE, that can be changed to <b>prevent BDOCs</b> from being sent. The method is called <b>CHANGE_BEFORE_UPDATE</b>. With this solution, you can prevent BDOCs of a <b>particular document type</b> from being sent."

How do I do this? What should I write in the method which is mentioned above?

Regards,

Amit

*Award points assured for helpful answers

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 11:04 AM

    Instead of using the Order Save BADI you will have to use the CRM_DATAEXCHG_BADI and in the CRM_BDOC_SEND method based on the transaction type set the value for variable CV_BDOC_SEND.

    For example.

    IF ls_order-process_type = 'ZSO'.

    cv_bdoc_send = '' ". " Dont Send the Sales Order.

    ENDIF.

    Reward with points if this helps.

    Regards,

    Gaurav Gera

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      This code wont generate BDOCs only transaction type ZSO. Here ZSO can be of any transaction category like sales order, service order etc.

      If you want to use ORDER_SAVE badi, you can prevent the order from being transferred by changing the status of order to "Distribution Lock".

      I feel using the Data exchange badi is a better method to achieve this.

      I hope this helps.

      Regards,

      Gaurav Gera

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.