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

BADI with Disput management

Hi Gurus ,

I am implementing a BADI in dispute management , In Dispute management in NOTES area , If its not having CLOSED REMARKS , After i clicked CONFIRM button i need to show an error , How can i get this , I am using SCMG_VLDT_BFR_STR_C this BADI and IF_EX_SCMG_VLDT_BFR_STR_C this Interface . Help me in this .

Thanks in advance ,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 24, 2011 at 11:43 AM

    Hi ,

    Please check the documentation of the BADI and you will know exaclty how the error has to be passed ..You need to write the code inside the validate methode in the BADI implematation .


    Documentation for refrerence :

    This Business Add-In (BAdI) is used in the component Case Management (BC-SRV-CM).

    Before the data of the case is saved in the database, the VALIDATE method of the Business Add-In is called. Time-consuming checks that you do not want to be performed immediately for each change can be implemented in this method.

    Within the VALIDATE method, the parameter EX_IS_VALID must be set.

    If the case is valid, the parameter must be set to if_srm=>true.

    If the value of an attribute is invalid, the parameter must be set to if_srm=>false. In addition, an entry with a corresponding error message must be created in the EX_MESSAGES table. The organizer automatically navigates to the attribute that corresponds to EX_MESSAGES-ATTR_VALUE.

    Caution: The case is not allowed to be changed within this Business Add-In.

    Remote Function Calls (RFCs) and database commits are permitted within this method since no updates have taken place yet. For this reason, no updates or inserts to database tables must take place in this method.

    To access the attributes of the case, the method contains the following parameter:


    The parameter IM_CASE is a reference to the interface IF_SCMG_CASE.

    By using the methods of this interface, you can read the attributes of a clarification case. The most important methods are:

    GET_SINGLE_ATTRIBUTE_VALUE: Read the current value of an attribute

    GET_SINGLE_ATTRIBUTE: Read the attribute value object

    You can see other methods in transaction SE24 if you display the interface IF_SCMG_CASE.

    *alternatively you can also issue the hard coded error message in this methode but that is not advisable ..


    Add a comment
    10|10000 characters needed characters exceeded

    • Dear Saravana,

      You will need to retrieve handle to the note backend from the case instance(please check for method get_subcomponents in will get a table of subcomponents..loop for notes subcomponent). Once you get that, you can retrieve texts & check for the text type of the last one.

      Best Regards,


  • Posted on Jul 21, 2020 at 08:39 AM

    Late answer... Please check my blog maybe can help.

    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.