Badi or User Exit to send Mail for Tcode IW31 and IW32

Hi All,
I have a requirement as follows:
In IW32, after entering an order number, if we change the user status (activating the user status) and press the SAVE button, a mail needs to be triggered
I have found a couple of user exits but I am unable to find one soon after the table updation. Another important thing to note is that if the user wants to deactivate the user status (i.e., when the user status is reverted back to the previous status) and saved, then this functionality should not be executed.
Kindly help me with the user exit or the enhancment or the BADI where I can implement this functionality.

Hi,
Create a event driven function module, your function module will trigger based on the event. Configure that in the transaction SWETYPV..When ever the status is changed it will trigger a function module (Z function module) which inturn send a mail(IF you write the code)..
Use Business object  - -
BUS2007
Use events:
MaintenanceOrder.released                        Order released
MaintenanceOrder.teccompleted                    Order technically completed
MaintenanceOrder.finconfirmed                    Order finally confirmed
MaintenanceOrder.completed                       Business completion for order
Regards,

Similar Messages

  • Workflow to send mail for purchase requisation and approval msg which automatically updates sap

    I am new to workflow,I need to create work flow for purchase requisation and send mail for concern person for approval,like if he clicks approve in mail ,automatically it should get updated in sap if he rejects then he should enter reason for rejection
    pls help...

    Hi Surya,
    SAP had provided you with a standard WF template for PR. You only have to activate it. The workflow template is WS20000077. In this what you have to do is, make all the tasks in this
    WF as a general task. For that go to each activity and double click on the task ID. Then from within the task go to menu Additional Data->Agent Assignment->Maintan. Then slect the task and press Attributes and select general task. This will ask for a customizing request. Do this for all task.
    The give event linkage by going to the Basic Data of the workflow and give binding. This will fulfill
    your requirement.
    Regards,
    Abijith

  • BADI or User exit  for FB50 to update custom field in table COEP

    Hi all,
    i have added one custom field in table COEP through include CI_COBL .
    when i do posting through sales order(VA02) or purchase order(ME22n) that custom fields in COEP get updated with controlling document
    and through BADI AC_DOCUMENT i m updating that custom field in COEP.
    but when i do manual posting through FB50 controlling document is generated in COEP but i m not able to update that custom field
    because in this case BADI AC_DOCUMENT  is not get triggered.
    is there any BADI or User exit or enhancement spot for FB50 through which i can update that custom field in table COEP

    Hi Sandy,
    Thanks for u r reply,
    RFAVIS01 is not getting triggered through FB50
    and F180A001 ( EXIT_SAPLF048_001) is getting triggered but it doesnt contain COEP field in its parameter
    import - F180A_DOC_HEAD_TAB
                 F180A_DOC_ITEM_TAB
    changing - RELATION_TAB

  • Xk01 badi or user-exit ?

    hi experts,
    i have an z table. after inserting some data to xk01, i wanna add them to my z table. but i cannot found which badi or user-exit helps me.
    thanks for replies.

    method IF_EX_VENDOR_ADD_DATA~SET_USER_INPUTS.
      DATA: w_table TYPE ZEGT_OGSATIS.
      w_table-LIFNR = I_LIFNR.
      w_table-KTOKK = I_KTOKK.
      MODIFY ZEGT_OGSATIS FROM w_table.
    endmethod.
    i used this method but it does not work. ZEGT_OGSATIS is my z table.

  • MIGO BAdI or User-Exit - After Database Commit

    Hello,
    I'm looking for a BAdI or user-exit after database commit for MIGO posting. I want to create a FI document after MIGO posting.
    I already tried MB_MIGO_BADI BAdI but system gives a short dump. So I have to find a exit or BAdI after database commit.
    Thanks for helping in advance.
    Regards,
    Burak

    Hello,
    This issue solved.
    I used MB_DOCUMENT_BADI / MB_DOCUMENT_UPDATE and it solved my problem.
    FYI.
    Regards,
    Burak

  • Badi or User exit for CJ20N..Milestone date

    HI...
    I have to access the field of CJ20N fieldname (LST_ACTDT) (Milestone date).I have to send the alert mail using that value.
    But i am unable to get the BADI or user exit to get that value.I am using the BADI  WORKBREAKDOWN_UPDATE. But not reaching to solution.
    Can anyone help me out..

    Hi Priyank,
    Instead of that you can directly use the BAPI -BAPI_PROJECT_GETINFO
    CALL FUNCTION 'BAPI_PROJECT_GETINFO'
    EXPORTING
    PROJECT_DEFINITION           =
       WITH_ACTIVITIES              = 'X'
       WITH_MILESTONES              = 'X'
       WITH_SUBTREE                 = 'X'
    IMPORTING
      E_PROJECT_DEFINITION         =
      RETURN                       =
    TABLES
       I_WBS_ELEMENT_TABLE          = " send the pspnr value by appending in the table i.e. IT_WBS_ELEMENT-PSPNR
      E_WBS_ELEMENT_TABLE          =
       E_WBS_MILESTONE_TABLE        = "catch this in a internal table
      E_WBS_HIERARCHIE_TABLE       =
      E_ACTIVITY_TABLE             =
      E_MESSAGE_TABLE              =
    If u wish to have details of wbs only..by entering WBS ELEMENT in I_WBS_ELEMENT_TABLE u have to give
    WITH_ACTIVITIES X
    WITH_MILESTONES X
    WITH_SUBTREE X
    then only u will get deatils of corresponding wbs via bapi BAPI_PROJECT_GETINFO.
    In the milestone internal table you will have all the dates.
    Please refer to the function module documentation for further details.

  • BADI or User exit for PO

    Hi Gurus,
    I am looking for BADI's or User exits for transaction ME23n.
    Exactly I am looking for BADI or user exit for the release strategy for the PO and then mailing it to th e apporover.
    regards
    kanishka

    dear ,
    check out these two badi it may be useful for your requiremrnt
    ME_RELEASE_CREATE
    SMOD_MRFLB001         
    Cheers
    fareed

  • Badi or user exit for Cash Journal

    Dear friends,
    As I am not able to post a special GL transaction through cash journal, i request you to help me for a badi or user exit which may be available for cash journal.
    Regards
    Dhirav shah

    Hello Ajeshi,
    below are the user exit available for fb02 transaction code.
    Exit Name           Description
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    but i fill your problem can be solve using function exit FMRESERV and specifically 'EXIT_SAPLFMR4_002' function module. change the field xblnr from t_accit table.
    I hope this will slove your problem.
    Regards,
    Vikash

  • BAdI: or User Exit for Campaign Creation   IN CRM 5.0

    Hi all,
    we are working in CRM 5.0,
    we have a Requirement like :
    when we create the campaign it should check higher level project ID (marketing Plan ID)
    if it is there it should permit for create campaign else it ll show error...
    Any BAdI: or User Exit for Campaign Creation?
    I ll geive reward points....
    Rhanks & Regards,
    Ganesh

    IN WHICH TRANSACTION U R CREATING CAMPAIGN ??

  • BADI or USER EXIT for MIGO when changing order number

    Hi experts, I'm looking for a BADI or USER EXIT in Tx. MIGO that is triggered after pushing ENTER when you change the order number. What I need to do is to propose the movement type depending on the order data. Thanks.

    Not sure but you can try in BADi MB_DOCUMENT_BADI menthod:
    MB_DOCUMENT_UPDATE

  • Badi or user-exit for QA32 after save

    I need a badi or user exit to execute exactly after save in QA32 ..I tried belows but they are not that i want
    QPL1_SUBSCREEN_ADDON
    INSPECTIONLOT_UPDATE
    Check these Exits:
    QEVA0004 Exit for changing information line in usage decision he
    QEVA0005 User subscreen for displaying add. data for usage decis
    QEVA0006 Entry to usage decision transactions
    QEVA0007 UD: Control of compulsory comment or long text presetti
    QEVA0008 Usage decision: Customer function key (e.g. to cancel U
    QEVA0009 UD: Predefinition of quantity to be posted to sample st
    QEVA0010 UD: Usage decision check
    QLCO0001 QM: Call alternative costs report from UD
    QSS10001 Possibility of calling a different print report

    Hello Tuncer,
    have you checked the BADI QE_SAVE? This is the last possible chance of changing data on saving a QM transaction and should be active in QA32.
    The only other solution I can come up with is a follow-up action i.e. for the UD-code
    Hope this information proves usefull.
    Regards
    Isabelle

  • Badi or user exit for FTR_CREATE for modifying the Payment Details

    Hi,
    I need a Badi or user exit that will modify the internal table for the "Payment Details" in transaction FTR_CREATE. Basically, instead of using the default entries in the "Payment Details", data from a Z custom table will overwrite the "Payment details" or the internal table containing the "Payment details". This should create entries in the Transparent Table VTBZV with the values fron the Z custom table.
    I'm trying to implement the BADI FTR_TR_GENERIC but I cannot find where and how to modify the original "Payment Details" entries. Or if its even possible to do this.

    Hi Ravi,
    I was trying to do that but I am not sure were to start. I tried to modify the contents of PI_PROXY_TRANSACTION->A_TAB_CASHFLOW using MODIFY <itab> but an error occured when I tried to activate it saying that the Class/Interdace Attribute is read-only and cannot be modified. Is there a Method that I need to do in order to modify the Attribute? (I'm not that familiar yet with Classes and Methods though)
    Also, just to test, I manually changed the contents of two internal tables containing the "Payment Details" data during debug mode. But after the program has ended its run and finally saved the data, the Table VTBZV was not updated with the manual data I introduced. So I'm not sure if the Badi FTR_TR_GENERIC (which is I'm implementing) really allows the "Payment Details" to be modified or if I'm modifying the correct internal table(s).

  • Badi or user exit for changing currency INR to EUR

    hi friends,
    in po header there is one tab called status.
    in this tab there is one field called delivery payment
    which has curr INR but i want to change that INR CuRR
    to EUR.Can any one tell me how do this is there any badi or user exit
    for this req.
    thanks.

    Hi Sonu,
    Use the following program to find out the appropriate user exist for ur transaction:
    REPORT ZGURU_USER_EXIT_FIND .
    *&  Enter the transaction code that you want to search through in order
    *&  to find which Standard SAP User Exits exists.
    *& Tables
    TABLES : tstc,     "SAP Transaction Codes
             tadir,    "Directory of Repository Objects
             modsapt,  "SAP Enhancements - Short Texts
             modact,   "Modifications
             trdir,    "System table TRDIR
             tfdir,    "Function Module
             enlfdir,  "Additional Attributes for Function Modules
             tstct.    "Transaction Code Texts
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    Validate Transaction Code
      SELECT SINGLE * FROM tstc
        WHERE tcode EQ p_tcode.
    Find Repository Objects for transaction code
      IF sy-subrc EQ 0.
        SELECT SINGLE * FROM tadir
           WHERE pgmid    = 'R3TR'
             AND object   = 'PROG'
             AND obj_name = tstc-pgmna.
        MOVE : tadir-devclass TO v_devclass.
        IF sy-subrc NE 0.
          SELECT SINGLE * FROM trdir
             WHERE name = tstc-pgmna.
          IF trdir-subc EQ 'F'.
            SELECT SINGLE * FROM tfdir
              WHERE pname = tstc-pgmna.
            SELECT SINGLE * FROM enlfdir
              WHERE funcname = tfdir-funcname.
            SELECT SINGLE * FROM tadir
              WHERE pgmid    = 'R3TR'
                AND object   = 'FUGR'
                AND obj_name = enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
    Find SAP Modifactions
        SELECT * FROM tadir
          INTO TABLE jtab
          WHERE pgmid    = 'R3TR'
            AND object   = 'SMOD'
            AND devclass = v_devclass.
        SELECT SINGLE * FROM tstct
          WHERE sprsl EQ sy-langu
            AND tcode EQ p_tcode.
        FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
        WRITE:/(19) 'Transaction Code - ',
        20(20) p_tcode,
        45(50) tstct-ttext.
        SKIP.
        IF NOT jtab[] IS INITIAL.
          WRITE:/(95) sy-uline.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
          WRITE:/1 sy-vline,
          2 'Exit Name',
          21 sy-vline ,
          22 'Description',
          95 sy-vline.
          WRITE:/(95) sy-uline.
          LOOP AT jtab.
            SELECT SINGLE * FROM modsapt
            WHERE sprsl = sy-langu AND
            name = jtab-obj_name.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
            WRITE:/1 sy-vline,
            2 jtab-obj_name HOTSPOT ON,
            21 sy-vline ,
            22 modsapt-modtext,
            95 sy-vline.
          ENDLOOP.
          WRITE:/(95) sy-uline.
          DESCRIBE TABLE jtab.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No of Exits:' , sy-tfill.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(95) 'No User Exit exists'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'Transaction Code Does Not Exist'.
      ENDIF.
    Take the user to SMOD for the Exit that was selected.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    Then u can use the function CONVERT_TO_LOCAL_CURRENCY to change the amount from INR to EUR.
    Regards,
    Himanshu

  • Need BADI or USER EXIT for VT02n

    HI Friends,
    I'm writing a driver program for a ouptput type ZET1 (interface) the tcode is VT02N .
    In menu bar: goto--> output here i've give the output type and save.
    My Problem is, if there is any error on the driver program, it should be displayed the error msg while pressing  the save button.
    is there any BADI or User Exit.
    Thanks & Regards,
    Vallamuthu.M

    Hi,
       Check the below BADI's
       BADI_LE_SHIPMENT                        BadI: Shipment Processing
       BADI_V56N                                     User Exit Transport - Message Determination
    Regards,
    Srini.

  • BADI or User Exit for Txn : CRMD_ORDER

    Hi Experts,
    Is there any badi or user-exits for the transaction crmd_order.
    regrads,
    arul jtohi a

    Dear Arul Jothi,
    BAPI_ACTIVITYCRM_CREATEMULTI
    BAPI_BUSPROCESSND_CREATEMULTI
    CRM_BUSPROCESSND_BAPI
    CRM_LEADCRM_BAPI
    BAPI_LEAD_CREATEMULTI
    CRM_OPPORTUNITYCRM_BAPI
    BAPI_OPPORTUNITY_CREATEMULTI
    CRM_SLSTRANSACTCRM_BAPI
    BAPI_SLSTRANSACT_CREATEMULTI
    Also, visit the following thread:
    Change status for sales order in crmd_order
    BAdi/Enhancement:
    /people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
    Regards,
    Naveen.

Maybe you are looking for

  • Manually Adding Track Numbers Doesn't Work!

    I would like to make a "custom album" for an artist, a greatest hits designed by me, if you will. The songs are all by a single artist, but come from various sources. Some were purchased from iTunes Music Store, some were imported directly from CDs,

  • Extremely Urgent - Excel reports in Oracle9i

    I need to output several of my existing reports PDF reports to MS Excel. The excel report must look close to the PDF output. How can I accomplish this ? We currently use reports 6i but the 'delimited' option and the 'delimiteddata' (data model driven

  • Editing String in a ArrayList String

    I want to edit the Strings in a ArrayList<String> However, after running my code, the Strings remain the same. Here is the code. ArrayList<String> test = new ArrayList<String>(); test.add("abc"); test.add("cde"); for(String s : test)      s.concat("1

  • Problem about F5 and F6 keys

    I was trying to screenshot but sth wrong happen to my backlit F5 and F6 keys and I cant use it ...like i might accidently press command+shift+f5 ...and somehow the backlit keys stop working...  , what should I do? Thank you

  • Can't connect windows xp using airport extreme to internet

    Hi i just purchased my airport extreme base station. I tried connecting it to my windows xp for internet and so i can have wireless connection to my macbook. Im using timewarner cable as my ISP connected through ethernet. I choose DHCP in the configu