Need BADI for IW31

Hi All,
I am looking for a BADI or userexit for IW31, service order.  when entering a component, (ex. material AAA), click on availability check,  if the qty committed < qty required, then update the component with different material (ex.  material ABC instead of AAA).
your help is greatly appreciated.

Hi,
Try BADI
IWO1_TL_INTEGRATION
IWO1_ORDER_BADI
Hope it helps...
Lokesh
pls. reward appropriate points

Similar Messages

  • BADI for IW31/32 (work order)

    Hi,
    I have to find BADI for IW31/32 (work order). The requirement is to update delivery address on automatic PR created from non-stock items of the work order.
    Please suggest. Points will be rewarded for appropriate suggestions.
    Thanks,
    Parvati

    Hi
    Execute the below program . It will give you all exits and badis for a transaction.
    You can excute this by giving IW31 in the selection screen and you will get the badis and exits related to it.
    REPORT Z_FIND_BADI .
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    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 EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    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:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.
    do 2 times.
    enddo.

  • User exit / Badi for iw31

    Dear all,
    When i create a maintenance order(iw31) with reference to equipment it defualts teh equipment cost center, in the location tab.
    I have a requirement to change the cost center based on the workcenter / priority, when i save the order.
    Is there is any user exit / Badi available for my requirement?
    Regards
    Murali

    Hi
    Enhancement/ Business Add-in            Description
    Enhancement
    IWO10012                                Maintenance order: Priority handling on central header
    Business Add-in
    IWO_UI_USEFLEX                          BAdI for Calling Up an Alternative UI
    No.of Exits:          1
    No.of BADis:          1
    Arunima

  • Need BADI for PV34

    Hi,
    I am working on HR ESS and i need a BADI for tcode pv34 to restrict the user to make his own appraisal not the others.
    And the main thing is it shud be only ESS side the check shud not be  there at R/3 side . We are using R/3 Iview on ESS side.
    Waiting for ur reply.....
    Thanks &Regards,
    Srinath

    Hi
    check this:
    [http://wiki.sdn.sap.com/wiki/display/ABAP/FindaBADI]
    Regards
    Markus

  • I need Badi for PO Before save.

    Hi Abappers,
    i want Badi name for PO Before save.
    Regards,
    vani.

    Hi,
    To find the badi for a particular transaction goto TCode SE24 and give the class name as CL_EXITHANDLER and then display it. now double-click on GET_INSTANCE you will get some source code , put a break point on class name and give TCode on command field then debug . double click on class name and go on pressing F5, you willl get list of BADI's and according to your requirement choose the right one.
    Second procedure:
    Go to SE84, Enhancements< Business-addin< definition(double click) and give package name of particular transaction then you will get BADI's. Read documentation by going to SE18 or SPRO and choose the right one according to your requirement
    I think ME_PROCESS_PO_CUST may satify your requirement.

  • Need User exit or BADI for IW31/IW32 transactions

    Hi all,
    Is there any user exit OR BADI availble for transactions IW31 and IW32. I need to restrict some Activity types and work centres(Error message should come when we give wrong combination of these 2 and press on save button).
    Thank you very much in advance.
    Thanks,
    Venu

    Hi,
    Check the BADI
    WORKORDER_UPDATE  - Business Add-In PM/PP/PS/PI Orders  Operation: UPDATE
    This is multiple use Badi , hope this is the one you are looking for.check by implementing and placing the breakpoint in appropriate methods.
    Alos check the below
    IWO1_SCREEN_MODIFY
    IWO1_PREQ_BADI
    WOC_FL_DETERMINE
    Regards,
    Raj.

  • Badi for IW31

    hi,
    i need to modify the basic finish date in transaction IW31. Any BADIs (and it's method ) through which i can access that field and update it ?
    thks

    Go to Transaction SE24
    Enter the Object Type CL_EXITHANDLER and click on Display.
    Double Click on method "GET_INSTANCE".
    Put a Break-point on 
    Call method cl_exithandler=>get_class_name_by_interface
    Run any Transaction for which you need enhancements.
    The execution will stop at the break point. Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    This way you will find all the BADIs called on click of any button in any transaction.
    Thanks
    Kiran

  • User Exit or BADI for IW31

    I would like to populate the cost center in work order to PR. Is there any user exit or BADI ? I had try IWO10009, it doesn't work.
    Please help on this. Thanks.

    Hi all
    I am from FICO but I have quite the same issue. I would really appreciate if PM gurus can help me in this. From FICO point of view, the Cost Center from t/code iw31 needs to be populated so that later, auto-created PR then PO followed by GR, will be reflected in Cost Center Reports such as Cost Center:Actual/Plan/Variance. This is important for accurate management reporting. In addition, t/code FBL3n Display Line Items for that G/L account, will show which Cost Center expenses are posted into.
    Eva
    Does this why you need the Cost Center to be populated?
    Thanks & regards
    Fauzi

  • User Exit or BADI for IW31 when Saving the Service Order

    Dear ABAPers,
            I would like to add one more line in Service order item when saving the Service order in (IW31) at runtime.Is there User Exit or BAdI.It is very Urgent Please help me.
    Thanks & Regards,
    Ashok.

    Hi
    U can go through the tansaction.
      System/ Status
      Double click on program name.
    For badis:
    Search for the Phrase:
      cl_exithandler=>get_instance.
    U will the badi definitions.
    For User exits:
      search for the phrase: CALL CUSTOMER-FUNCTION
      u will get the user exits.
    If it is helpful rewards points.
    Regards
    Pratap.M

  • BADI for IW31 which has values of Plant,Fundcenter,cost center

    Hi,
    My requirement is that While running IW31,if the first four characters of Settlement Rule(Cost Center) and FundsCenter is not equal to Planning Plant then an error message should be raised . Can you suggest any appropriate BADI or User Exit for this?
    Path for Funds Center-->Go to>Assignment--->Funds Management
    Thanks
    K Srinivas

    Hi Srinivas,
       In order to find Badi or User Exit, you can put a STOP point at class CL_EXITHANDLER and in method GET_INSTANCE, CALL METHOD cl_exithandler=>get_class_name_by_interface and then you can execute the Tcode and then at every click it will stop in debugging & give the name of the Exit or Badi.
    Hope it Helps...
    Regards,
    Shailesh Jadhav

  • Badi for IW31 to keep check on Funds Center and Settlement rule

    Hi,
    My requirement is that While running IW31,if the first four characters of Settlement Rule(Cost Center) and FundsCenter is not equal to Planning Plant then an error message should be raised . Can you suggest any appropriate BADI or User Exit for this?
    Path for Funds Center-->Go to>Assignment--->Funds Management
    Thanks
    K Srinivas

    Hii Srinivas,
    Did you find any solution for this, i am also encountering the same problem.
    Regards,
    meenakshi

  • Need BADI for MRI7 Tcode.

    Hi,
    Please help me in getting BADI or Screen Exit for MIR7 Tcode where in I need to add new field at Item level.
    Thanx for your help.

    Hi,
    Check from the following
    Exits:
    MRMH0001                                Logistics Invoice Verification: ERS procedure
    MRMH0002                                Logistics Invoice Verification: EDI inbound
    MRMH0003                                Logistics Invoice Verification: Revaluation/RAP
    MRMN0001                                Message output and creation: Logistics Invoice Verifica
    LMR1M001                                User exits in Logistics Invoice Verification
    LMR1M002                                Account grouping for GR/IR account maintenance
    LMR1M003                                Number assignment in Logistics Invoice Verification
    LMR1M004                                Logistics Invoice Verification: item text for follow-on
    LMR1M005                                Logistics Inv. Verification: Release Parked Doc. for Po
    LMR1M006                                Logistics Invoice Verification: Process XML Invoice
    Business Add-in
    INVOICE_UPDATE                          Business Add-In: Logistics Invoice Verification
    Regards,
    Surinder

  • Need badi for this scenario

    Dear Experts,
    My requirement is in the VA01 transaction after the entering data in to sold-to-party(KUAGV-KUNNR) it has to display one pop-up ,
    In that have to maintain transport analysis i.e plant,dist,cost,mode of transportation.when ever user click the mode of transport that value has to insert in ROUTE(VBAP-ROUTE)
           program name:SAPMV45A
           screen number :4452.
    i am displaying the pop-up using badi ADDR_PRINTFORM_SHORT, but unable to insert the value into ROUTE.
    So please help me to resolve this issue.
    Regards,
    Raghavendra Gowd.Y

    Hi,
    use USEREXIT_MOVE_FIELD_TO_VBAK   in  MV45AFZZ ...and write the code for pop-up display ....
    calling function module 'POPUP_GET_VALUES'...
    pass the entered values to memory id ....through
    EXPORT < > TO MEMORY ID <>.
    Use USEREXIT_MOVE_FIELD_TO_VBAP IN MV45AFZZ ....and get the exported values from memory id through IMPORT < > FROM MEMORY ID < > ..
    update the value of VBAP-ROUTE field value ....here ...
    Thanks,
    Shailaja Ainala.

  • Need badi for Order Create

    Hi All,
    I have arequirement to update a Ztable with some data when we create a new OPPORTUNITY using CRMD_ORDER tcode.
    so please let me know the name of BADI whcih will be triggered when we create a new OPPORTUNITY.
    I tried using order_save method prepare it did not work because for a new transaction a GUI id will not be created until we save once.
    Please help ..
    Regards,
    Suresh.

    For opportunity you can use badi CRM_OPPORT_H_BADI.
    Regards.

  • Need BADI for checking customers visiting hours in activity

    Hi all,
    I'm looking for a BAdI where I can check the visiting hours of the related customer in an appointment. I've found BAdI CRM_ACTIVITY_H_BADI but it doesn't give me the data about the related customer.
    I would like to write a message when the time of the appointment is not in range of the customer's visiting hours.
    Does anybody have an idea?
    Thanks,
    Diana

    Hi
    you can do this check while saving in badi ORDER_SAVE. method eg check_befor_save.
    i don't think that in any of documents badis you will have customer no, but you will have docs guid.
    then you can do crm_order_read to read partners.
    Regards
    Radek

Maybe you are looking for

  • No signal from HDMI...

    Hello, I just got a pavilion HPE, 2nd hand from a trusted source  The device came with a Geforce GT 260 (comes with a DVI and HDMI connection). I was trying to connect 2 screens, and there seems to be no signal from the HDMI connection.Is there any c

  • XY graph cursor won't snap to plot when dragged

    I haven't used XY graphs much and have a need to have several plots on the graph and be able to find the value at points on the plot using cursors.  Everything works fine except that I can't drag the cursor along the plot.  Even though Snap to is on

  • JSF page fails to reflect saved changes to model

    How do I refresh the info kept in the JSF backing bean in order to reflect changes saved to the model? My JSF page contains rows of data. Depending on the user’s choices, one or more rows may be eliminated from the model. My problem is the change in

  • Migration failure to new MacBook Pro

    have tried using Migration Assistant to transfer content from old MacBook pro to a new 13 inch i5. Seems to go smoothly via Firewire cable and get completion message with all transferred successfully etc. But I get no content for iPhoto, iCal, Addres

  • Automating Photoshop Actions

    Hi:-) I need a script which takes a folder of images and gets them ready for a website by 1) opening each image and saving it for the web 2) checking if any of its dimensions are above 500 - if not moving on to the next image and, if so, 3) proportio