BADI for saving a complaint

Hi all,
I have a requirement as follows:
There is a complaint ticket when the status is set to "Compensate by money " or " Compensate by product"  and SAVED then the mail should be sent to the respective sales office unit head mentioning the status  of ticket. For rest all status the mails should not be generated.
How do i go about it.
Should i go for classic BADI or Enhancement Spot in this scenario.
Please suggest .
Regards,
Navin C

Hi Navin,
I suggest you to use actions in order to send email when the complaint is saved, according to the status.
When using actions, you gain some advantages compared with BADI:
- The action is triggered in a new work process, it means that your complaint save event dont have to wait to execute your abap code;
- The SAP CRM has a standard action monitor, if something goes wrong, the user will be able to check;
- You can deactivate the email sending without ABAP effort;
Please take a look at this link, it is a Proof of Concept in which emails are triggered by the using of actions: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d03a6978-a10b-2a10-7baf-8428d86bf05f?quicklink=index&overridelayout=true
I hope it helps!
Kind Regards,
Gabriel Santana

Similar Messages

  • BADi for saving email addressin SU01

    Hi all
    I have enhanced the PA0006 with email address field
    and now need to update this email address to su01, when ever user changes his work email address in transaction  PA30 infotype 0006 it should get saved in PA0006 and  then check with  the email address in SU01 transaction if there is any difference ...update the new email address to  SU01 email address field
    thanks in advance
    regards
    SAM

    You can use the AFTER_INPUT or IN_UPDATE methods in the BAdI HRPAD00INFTY .
    Just curious about the reason for not using Infotype 0105 to meet your requirement..
    ~Suresh

  • User exit or badi for saving the data in mm01

    Hi All,
    I added one custom screen in mm01  using SPRO ,as well as i added 2 new fields in makt table using Append statement, now the problem is am not able to save the custom screen data in standard makt table  can any one  help me in this ,tell me which Badi or Exit is useful for this requirement.
    Thanks,
    Priyanka
    Edited by: priyankanukala on Feb 21, 2012 7:55 AM
    Edited by: priyankanukala on Feb 21, 2012 8:01 AM
    Edited by: priyankanukala on Feb 21, 2012 8:04 AM

    Hi
    You don't need them. See Note 44410 - Integrating cust.-specific fields in matl master for further information, and copy the code for PAI event in your custom dynpro. You need something similar to this:
    process after input.
    *coding......
      chain.
        field: mara-zzfield1,
               mara-zzfield2.
        module checks_on_zz on chain-request.
      endchain.                                               
    * coding .......
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Feb 21, 2012 9:26 AM

  • User Exit OR Badi for MK01 transaction (used for saving vendor amster data)

    Hi All,
    I have a requirement where I have to call my workflow, when we create the Vendor using my custom transaction (ZMK01, which is a copy of standard transaction MK01).
    For Workflow triggering I am using FM 'SAP_WAPI_CREATE_EVENT' in the user exit  'EXIT_SAPMF02K_001' but this is only for checking the data on saving Vendor Master.
    So I want to use FM 'SAP_WAPI_CREATE_EVENT' at right place. For that , I need User-Exit or BADI which is used for saving vendor master data.
    Could anyone please help me to find out the user exit or BADI for save event of vendor master data using transaction MK01.
    Looking forward to your advise and thanks in advance.
    Best Regards,
    Mamta

    Hi ,
    I forgot to activiate the project linked with User exit 'EXIT_SAPMF02K_001' .
    so problem is solved now
    Thanks,
    Mamta

  • BADI for raising alert when Saving Opportunity

    Hi,
    Can some one help me with identifying the BADI for raising a alert when saving a opportunity, and suggest steps to implement that BADI?
    Regards,
    Chinnu

    Hi Chinnu,
    Implement the method 'CHECK_BEFORE_SAVE' of BADI 'ORDER_SAVE'.
    Transaciton: SE18, enter ORDER_SAVE in the BADI text box and in the menu choose 'Enhancement implementation' and select overview. You will get a pop up and at the bottom you will get a create button. Go ahead.
    Reward if helpful.
    Regards,
    Naveen

  • Implementing 2 Badis for adding new internal follow-up actions and saving

    Hi Guys
    I would like assistance with the implementations of two badis in EMW.  The one badi is called /SCWM/IF_EX_QFU and is used for adding new internal follow-up actions and the second badi is called /SCWM/EX_QFU_SAVE and is used for saving the new follow-up actions that that have been created.
    Regards
    Maud

    Hi Guys
    I would like assistance with the implementations of two badis in EMW.  The one badi is called /SCWM/IF_EX_QFU and is used for adding new internal follow-up actions and the second badi is called /SCWM/EX_QFU_SAVE and is used for saving the new follow-up actions that that have been created.
    Regards
    Maud

  • Best practice for saving and recalling objects from disk?

    I've been using the OOP features of LabVIEW for various projects lately and one thing that I struggle with is a clean method to save and recall objects.
    Most of my design schemes have consisted of a commanding objects which holds a collection of worker objects.  Its a pretty simple model, but seems to work for some design problems.  The commander and my interface talk to each other and the commander sends orders to his minions in order to get things done.  For example, one parrent class might be called "Data Device Collection" and it has a property that is an array of "Data Device" objects.
    The Data Device object is a parent class and its children consist of various data devices such as "DAQmx Device", "O-Scope Device", "RS-232 Device", etc.
    When it comes to saving and loading data, the commanding class's "Save" or "Load" routine is called and at that time all of the minions' settings are saved or recalled from disk.
    My save routine is more-or-less straight forward, although it still requires an overwriting "Save" and "Load" vi.  Here is an example:
    It isn't too bad in that it is pretty straight forward and simple and there also would be no changes to this if the data structure of the class changed at all.  It also can save more generalized settings from it's parrent's class which is also a good feature.  What I don't like is that it looks essentially the same for each child class, but I'm at a loss on an effective way to move the handling of the save routing into the parent class.
    The load routine is more problematic for me.  Here is an example:
    Again, the desirability of moving this into the parent class would be awesome.  But the biggest complaint here is that I can't maintain my dynamic dispatch input-output requirements because the object that I load is strictly typed.  Instead I have to rely on reading the information from the loaded object and then writing that information to the object that exists on the dynamic dispatch wire.  I also dislike that unlike my Save Routine, I will need to modify this VI if my data structure of my object changes.
    Anyway, any input and insight would be great.  I'm really tired of writing these same VIs over-and-over-and-over again, and am after a better way to take care of this in the parent class by keeping the code generalized but still maintain the ability to bring back the saved parameters of each of the children classes.
    Thanks for your time.

    I'm with Ben. Don't rely on the current ability to serialize an object. Create a save method and implement some form of data persistence there. If you modify your class you might be disappointed when you cannot load objects you previously saved. It mostly works but as soon as you reset the version information in the class, you can no longer load the old objects. This is fine if you know how to avoid resetting the history. One thing that will do this is if you move the class into or out of a library. It becomes a new class with version 1.0.0 and it no longer recognizes the old objects.
    [Edit:  I see that you are just writing to a binary file. I'm not sure you can load older objects anyway using that method but I have never tried it.]
    This will not help you right now but there are plans for a nice robust API for saving objects.
    =====================
    LabVIEW 2012

  • User Exit or BADI on saving of Sales order cost estimate (CK51N)

    Hi,
    Can any one share with me what are the User Exit or BADI that gets triggered on saving of Sales order cost estimate (CK51N).
    Regards,
    Bijay

    Hi
    Check the link
    Need Enhancement Spot or BADI for transaction ck51n
    Regards
    Sanil

  • How to create a BADI for the sceanrio

    Hi abapers,
    I have a scenario as follows.
    I create a Transaction where in i put the details of the product and quantity for a particular project's site. The amount gets calculated based on the products  unit value and its displayed in net value field. Now the user saves the transaction and a number gets generated. If the net value amount is less than 500 then the user can approve , if its greater than 501 and less than 1500 then a mail should be generated to his superior who is able to approve and ifs amount is greater than 1501 then a mail should be generated to the top of hierarchy who should approve it.
    Now the real challenge is if the same project card  has more than 1  new request and the amount is less than 500 the user should not be able to approve  instead it should generate a mail to his hierarchy for approval  since  the site has already been exceeded its limit of approval. bcoz earlier 500 and current 400 which will make it to greater than 500.similarly for the hiearchy.How do i go about  it.
    Now i want to create a BADI  on the save event of transaction to check the net value amount as well as check for earlier amounts saved for the particular site.
    Any help will be appreciated.
    Regards,
    Navin .

    hai navin
    r u using ECC 6.0 or 4.7 if 4.7 u can create badi defintiion directly form se18 transaction
    and define the interface and its methods , once u define them activate them
    and to use in ur code u create an instance of ur badi name
    and then use
                     cl_exithandler=>get_instance  method in instance name parameter just pass ur badi name and this will create a badi defintion in ur code, and an oen can implement it
    if u r usign ecc6.0 then u can either create new badis usign enhancments or classical badis
    for clasical badis just go to menu  utilites and create classical badis and follw the sam eprocedure
    regards
    m.a

  • User Exit or BADI for Updating Tax code (MWSKZ) using ME21N

    Hi all,
    I am trying to fin out an exit or badi for Updating Tax code (MWSKZ) and Unit of Measure in transaction ME21n.
    The scenario is like this...
    For Purchase Orders Tax code will be defaulted from Purchasing info record or contract or parameter id for that item-vendor-plant.
    If the Tax Code is not defaulted and account assignment is blank then tax code on the PO is updated according to the below mentioned table
    Table
    Supplying Plant/              Receiving Plant                      Tax code
    Vendor/Country
    Any plant/vendor/
    country                           5050(NA)                               20
    2300                              6700                                     E0
    If the tax code on PO cannot be updated by the above table, then buyer needs to put tax code on the purchase order manually.
    Thanks,
    Shiva, Bangalore

    Hi Siva.,.,.,
    These r the exits.,..,which will be called while calling ME21N/ME22N/ME23N
    EXIT_SAPMM06E_006
    EXIT_SAPMM06E_007
    EXIT_SAPMM06E_008
    EXIT_SAPMM06E_009
    EXIT_SAPMM06E_012
    EXIT_SAPMM06E_013
    EXIT_SAPMM06E_014
    EXIT_SAPMM06E_016
    EXIT_SAPMM06E_017
    EXIT_SAPMM06E_018
    U want to default some values while the Initial screen will come right,
    while u Enter ME21N in command Prompt.,.,two exits will get triggerd,
    EXIT_SAPMM06E_014
    EXIT_SAPMM06E_016
    If u want to Default some values u can use these two exits.,.
    Try using EXIT_SAPMM06E_016.,.this will solve ur purpose.
    and if the user changes some values on screen.,,and you want them to get reflected .,.,.that means if user changes and saves data .,.
    While saving.,.,EXIT_SAPMM06E_012 and EXIT_SAPMM06E_013 will get triggerd
    Try using EXIT_SAPMM06E_013.,,.it was somehow the same requirement as mine.,.,IN my case it worked fine.,.,
    Regards
    Debasish
    Message was edited by:
            Debasish Das

  • User Exit or BADI for COR1/COR2

    Dear Experts,
    Can you please tell me if we have any user-exit or BADI for chaning the value of the technical completion date field
    i.e. AUFK-IDAT2 while saving the Process Order in COR1 or COR2?
    Thanks,
    Praveen

    Hi Praveen,
    Implement the customer exit EXIT_SAPLCOKO_006 in enhancement
    PPCO0020  Process order: Display/change order header data
    This is only importing one field I_AUFNR.
    but try the logic below.
    data: lv_fnam type char16 value '(SAPLCOKO)caufvd'.
    field-symbols : <fs_caufvd> type caufvd.
    your checks for changing the field IDAT2 (Technical completion date).
    Try to change <fs_caufvd>-IDAT2 field value.
    Regards,
    Dwarakanath.S

  • Badi  for ME51N Item changes

    Hi ,
      Is there any Badi or user exit to make changes to the line item data in the purchase requisition create/change ME51N or ME52N transactions. We would want to populate few fields automatically on the item data, so would request if any of you have worked on any Badi for this transaction, please do post in immediately.
    Thanks,
    Sowmya

    Hi,
    1)BADI to be implemented: ME_PROCESS_REQ_CUST.
    Method to be used: PROCESS_ITEM.
    Place the below code in your implementation.
    data : l_item type MEREQ_ITEM.
    CALL METHOD im_item->get_data
    receiving
    re_data = l_item.
    *C-- L_ITEM-BEDNR is requirement tracking number
    2)Exit in ME51N
    MEREQ001 Customers' Own Data in Purchase Requisition
    You can implemet by this way
    You add your customer fields, which should be saved in the database, to
    the include CI_EBANDB (in table EBAN). You can also add customer fields
    that you want to use during the program run to the include CI_EBANMEM
    (in structure MEREQ_ITEM) These fields are not stored in database table
    EBAN.
    <b>Reward points</b>
    Regards

  • BADI For Commitment Item Change for Service PO

    Hi All,
    I want to change the commitment item in the PR on change of Material Group . I used the BADI ME_PROCESS_REQ_CUST for changing the commitment item and its working fine for all types of PR except Service PR .
    In service PR , its changing the commitment item only on clicking the Account Assigment button because at this instant only the BADI is getting trigger .
    I want to change the commitment item without clicking the Account Assigment button (on pressing enter or at saving time ) .
    Is there any way ?
    Thanks
    Manik L Dhakate

    We are using User Exit MEREQ  EXIT_SAPLMEREQ_010
    In our PR creation for ME51n, we are validating the Person through HR Org structure at the Point of Key in his Cost Center, whether he belong to his Department cost center, we use this User Exit MEREQ  EXIT_SAPLMEREQ_010. If he doesnu2019t not belong, the message pop up as u201C Please use your department cost centeru201D. This works very good in case of NB Document Type (Non stock & Materials).
    We have customized ZCPR (Service PRs), but for service PRs, the place where we enter Account Assignment is Different screen, either it is planned or unplanned service, the system take you to another separate screen to key in Cost Center & GL, here the validation is not happening,
    Please suggest & advice us, we tried in this BADI : ME_PROCESS_REQ_CUST, we can fix it. Any User Exit or BADI for Service PRu2019

  • User Exit/ BADI for ME01- Sourcelist creation

    Hiii
    We need a place exit/ BADi to do vendor validation before saving soource list in transaction ME01.
    Please provide suitable exit / badi for above requirement.
    Thanks ...in advance.!!
    Regards,
    Nilesh

    EXIT_SAPLMBMP_003     AMPL0001     User subscreen for additional data on AMPL
    EXIT_SAPLMEKO_001     LMEKO001     Extend communications structure KOMK for pricing
    EXIT_SAPLMEKO_002     LMEKO002     Extend communications structure KOMP for pricing
    EXIT_SAPLMEQR_001     LMEQR001     User exit for source determination
    EXIT_SAPLMEQR_001     LMEQR001     User exit for source determination
    EXIT_SAPLQBCK_002     QBCK0002     Extended check in procurement

  • User Exit / BADI for Transfer Requirement Create

    Hi All,
    I have looked into the system and i could not find any User Exit or BADI for creation of Transfer requirement. This is for manual creation through LB01 and not interface with PP or IM. I am aware of the Userexits available for those, but i could not find any for WM TR Manual creation.
    Let me know if you are aware of any.
    Thanks
    Jithin

    When you create a transfer requirement, i want to make it mandatory to enter the destination bin, for example. The Transfer Requirement should not be saved if it is not entered.
    I know we can do this by creating multiple movement types for each destination, but i want to know if there is a way where the user can enter the destination when creating a TR with a single movement type.
    Jithin

Maybe you are looking for

  • The application can "not initialize the application's security component" and so Firefox will not open any more... PLEASE ADVISE!!

    One day while trying to run the firefox application a box popped up and said: "Could not initialize the application's security component. The most likely cause is problems with the files in your application's profile directory. Please check that this

  • Help in performance

    Hi All, i want to know if from performace side ,if it's good to select data and see if it's need to be update,or update any way. e.g. i get data on user and my quesion is if to do select single and see if the user is exist and if the user exist see i

  • Manual TO for multiple materials

    Hi All, I want to create manual transfer order for multiple materials in a single TO, but when I use LT01 I have the option of entering only one material code. So, please tell me how can I create a transfer order with multiple material codes manually

  • Architecture Considerations with AD RMS

    Hi, I'm looking to implement an AD RMS in an organization, and would like to find out more details on some architectures that I have come up with and hopefully some advice and which is better. Architecture 1: 2 Physical Servers for AD RMS and MSSQL O

  • Remaining Open Orders

    Hello Abapers, where should I find a table that gives me "remaining open order" information? and its respective field name? Thanks in advance. Ol Pom.