Enhance BADI

Hi ,
I have a requierement to Enhance the standard function module IDOC_INPUT_MBGMCR to perform update to Ztable and to Perform validation to prevent duplicated record (this will handle in PI or need validation to be built within the function module) .
I know the process how to enhance badi steps but i am not getting where should i put the code for update the Ztable.
Please let me know the soln

I don't think any BADI/Enhancement Points available in FM: IDOC_INPUT_MBGMCR.  You may have to look at the enhancements available in BAPI "BAPI_GOODSMVT_CREATE" which is called from this function module (Line No 214).
If you are looking at updating the Z table after the Goods movement is posted, see the Enhancement points available after the subroutine call to "mb_post_goods_movement".
Regards, Vinod

Similar Messages

  • PMS: Creation of new tabs for reference elements of ENHANCE BADis

    Dear Experts,
    I am on a PMS EHP5 implementation (for all practical purposes, it's an EHP4 implementation as we are not using the pre-defined template) and have the below problem.
    I have the ENHANCE_FIX and ENHANCE_FREE BADIs included at the VA level (as the requirement is to create immediate child objects for the template through these BADIs). I have a reference element (VB) defined for these BADIs.
    Example template (L1 = Level 1, L2 = Level 2, L3 = Level 3):
    L1 - VA
    ---- L2 - VB1
    --------- L3 VC1
    --------- L3 VC2
    ---- L2 - VB2
    ---- L2 - VB3
    In the above example template, the ENHANCE* BADIs will add VBs (example: VB4 and VB5) at the L2 level (appearing in the document below VB2 and VB3).
    The requirement is to have separate tabs for each VB at the L2 level (so I will have one tab for VA and 5 tabs for VB from the above example).
    I am unable to specify creation of new tabs for the reference element VB when I carry out my tabs and process configuration.
    I have not been able to find any information on this aspect either. Would appreciate any help that can come my way.
    Thanks.

    Thanks Maurice.
    I still feel that the product should leave that option to the designer of the solution. There are a lot of solutions which can get chaotic. If designed appropriately, I guess this chaos can be controlled.
    At the very least, I am sure that I have not left anything out in configuration. I will raise this with SAP over a CSS.
    Thank you for your input.

  • Enhancement/BAdi/User Exit for ME21N

    Hi
    i am looking for a modification/enhancement/BAdi or userexit that would  be triggered when the document type is changed on purchase order type in transaction ME21N.
    can anyone help?
    i have seen there are lots of many exits available, but i am after something more specific....
    if anyone could help and point me in the right direction it would be much appreciated.
    i found enhancement MEQUERY1, but not sure if i could utilise this for my needs.
    thanks

    i used the BAdi ME_PROCESS_PO_CUST and method PROCESS_ITEM
    with this code:
    METHOD if_ex_me_process_po_cust~process_item.
      DATA: ls_mepoitem   TYPE mepoitem,
            ls_mepoheader TYPE mepoheader.
      DATA: header_obj TYPE REF TO if_purchase_order_mm.
    * get header data
      header_obj = im_item->get_header( ).
      ls_mepoheader = header_obj->get_data( ).
    * get item data
      ls_mepoitem = im_item->get_data( ).
      IF ls_mepoheader-bsart = 'ZPSC' AND ls_mepoitem-umson IS INITIAL.
    * Message: PSC Order requires 'Free' indicator selected
        MESSAGE e017(zenhance_msgcl).
      ENDIF.
    ENDMETHOD.

  • Please provide some important using Enhancements/BADIs in Self service proc

    Hi experts,
    Please provide some important generally using Enhancements/BADIs in Self service procurement with classic Scenario.
    Also pls provide some details regarding those enhancements.
    Also pls. provide some important reports in SAP-SRM
    Thanks
    Reshma

    Not sure what u r trying to do.
    Nornally many requirements are fulfilled with doc change Badi.
    SRM provides very basic reports but if u want good reports u need BI
    Regards,
    NNK

  • Enhancement/ BADI for Planned Order Routings CA01/ CA02

    Hello Experts,
    The reqt. is
               An iDoc should get generated in SAP each time a Planned Order routing is: Created/ Updated/ Cancelled
               The iDoc generated should contain Planned Order attributes plus the routings.
    I am extending Idoc type LOIROU02 adding a custom segment with a field for Work center.
    Now where to populate value for this newly added field?
    Any Userexit/ enhancement/ BADI is available for this?
    PS: There is no Userexit for this as far as I know.
    Please help. Its urgent.

    Hi Sharah,
    Welcome to scn.
    [Extension|http://help.sap.com/saphelp_45b/helpdata/en/35/b0e82c87a62488e10000009b38f9b7/frameset.htm][Process to extend idoc|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80677e5d-dc79-2c10-b7bb-a7e99767c8f6?QuickLink=index&overridelayout=true]
    Regards,
    Madhu.

  • Enhancements & BADI?

    Give the detail deffrence between enhancements , BADI & modification
    regards
    sami

    Exits are basically the hooks whcih SAP has provided to add your own code. There are two types of Exits:
    1. Customer exits: Implemented as Function Modules within z includes. Anybody can change it and no access key is required.
    2. User Exit: Implemented as subroutines within includes (any include except y or z includes). You need access for the specific include and then you can any subroutine (user exit) within that Include.
    BADIs are the enhanced version of user exits where the same logic is implemented via classes and object (OOP)
    Enchancement point is the latest once introduces with ECC6.0 . Not very sure about that but you can change it without any access key.
    Please go through the following link which will help you understand the exits in a much better way:
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec07a25db911d295ae0000e82de14a/content.htm
    http://www.sap-img.com/abap/what-is-the-difference-between-smod-and-cmod.htm
    http://sap.niraj.tripod.com/id21.html
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.sap-img.com/ab038.htm
    User Exits.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    customer exits
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Menu Exit.
    http://www.sappoint.com/abap/spmp.pdf
    http://www.sappoint.com/abap/userexit.pdf
    http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
    http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
    BADI
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40921dd7-d5cf-2910-1894-bb62316afbd1
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
    http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    http://help.sap.com//saphelp_470/helpdata/EN/eb/3e7cee940e11d295df0000e82de14a/frameset.htm
    Rewards if useful........
    Minal

  • Fixed Enhancement BADI in Onjective settings & Appraisals (OSA)

    Hello,
    We are planning to use Fixed Enhancement BADI to prepopulate certain goals such as
    1. Supervisor's goals
    2. Employee Qualifications, etc
    My question is, when these Supervisor goals / employee qualification requirements changes, will they be automatically reflected in the employee's appraisal form?
    Thank you & Regards
    Raghu Kolukuluri

    Hello,
    I found an answer to my Question:
    Any changes to the element text will be reflected in the appraisal. But if new elements are added, that will not get reflected in the appraisal as the Fix Enhancement BADI will be triggered only when the appraisal document is created.
    Regards
    Raghu Kolukuluri

  • USER-EXIT / ENHANCEMENT / BADI -- Material Valuation Class (MBEW-BKLAS)

    Hi,
    I m looking for any user-exit, enhancement or BADI  which is triggered while executing MIGO!!!! .
    For example, for good movement 101related to a purchase order.
    If  MIGO item (material) have batch management we have to inform the batch number (mandatory). When material document is posted system updates material master data with a new valuation type (MBEW-BWTAR) with the same name of the batch number.
    We need to inform the valuation class (MBEW-BKLAS) related to this valuation type (MBEW-BWTAR) but we don´t know where it´s possible.
    Thanks and sorry for my english!!

    Hi Orion,
    You can refer to the following user exits for MIGO:
    Exit Name           Description                                                                               
    MBCF0002            Customer function exit: Segment text in material doc. item   
    MBCF0005            Material document item for goods receipt/issue slip          
    MBCF0006            Customer function for WBS element                            
    MBCF0007            Customer function exit: Updating a reservation               
    MBCF0009            Filling the storage location field                           
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1   
    MBCF0011            Read from RESB and RKPF for print list in  MB26              
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.   
    Hope this will help you...

  • Business object /Enhancement/Badi  for Payment proposal (F110S)

    Hello All
    I need to trigger a workflow when payment proposal(F110S) is executed.
    Is there any BO available or is there any Badi/enhancement available where the workflow can be triggered.
    Thanks

    Hello,
    Your best bet would be to search this forum or the web for F110S and hope someone else asked the same question and got an answer. Otherwise, start looking through the list of BORs in SWO1 to look for some likely names.
    It's also possible that you'll have to make your own BOR or Class. It's not that difficult, but it's preferable to go with an existing one.
    Please let this forum know the result of your search for the benfit of future users with the same question.
    regards
    Rick Bakker
    hanabi technology

  • Enhancement / Badi for MB1B

    Hi Guys,
    I want to know the User Exit/ Badi / Enhancement point  after save the MB1B document. Actually  I want to  run   the background bdc  for MB1C  When I save the  MB1B DOCUMENT.
    <removed by moderator> . Thanks in advance.
    Regards
    Devendra
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on May 26, 2011 12:58 PM

    Hi Sharah,
    Welcome to scn.
    [Extension|http://help.sap.com/saphelp_45b/helpdata/en/35/b0e82c87a62488e10000009b38f9b7/frameset.htm][Process to extend idoc|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80677e5d-dc79-2c10-b7bb-a7e99767c8f6?QuickLink=index&overridelayout=true]
    Regards,
    Madhu.

  • Custom TAB in txn WCOCO using Screen Enhancement(BADI Implementation)

    Hi,
    My requirement is to add a custom  tab with some fields in the Header in transaction WCOCO. I implemented the enhancement spot WCB_CC_VIEW_SPOT and the BAdi WCB_HEADER_DATA_TAB_I_BADI and am able to create the custom tab. All the details for the implementation are given in the BAdi's documentation.
    Now, I need to make this custom tab enable/disbale i.e., make it visible/invisible based on the Condition Contract type. I tried to handle this in the PBO of the subscreen (my custom tab is a subscreen, defined as per the BAdi documentation)... but commands SET/LEAVE Screen cannot be used in a subscreen, so unable to handle it.
    Any help on this is greatly appreciated.
    Thanks,
    Veeru.

    Hi Prosengit,
    I am not aure about u r BADI,
    BUt last week i have custom tab in the PO header data using this enahncement 'MM06E005'.
    IN thi senhancement u have thrre screen exits.In this enhancement
    SAPMM06E        0111 CUSTSCR1 SAPLXM06        0111 Subscreen: PO item
    u can add subscreen and u can add u r own fields here .
    and u can write u r code in 'EXIT_SAPMM06E_006'.
    if u want to change the title of the program.
    Go to program SAPLXM06 then go to text element give text symbol no as '111' and u can change the title of u r tab.
    I hope this solves u r problem.

  • How to enhance BADI and add import parameter

    Hai ABAP gurus,
    I am facing problem and i need your help to sort it out.
    My problem is i am using a standred BADI and implementing it.I want to enhance the standerd method ie i want to add one more import parameter,is it possible to enhance a standerd method?If so how to do it ?
    Please Suggest me?
    Thanks in Advance,
    Kiran

    Hi Kiran
    As Ajay mentioned, it is not possible to add a new parameter to the BAdI method interface. You can do this by a repair and it is not recommended.
    You must be contented with the interface BAdI method bestows. In fact, the developer of the program that the BAdI pertains should have designed it so that program flow can be provided rigorously.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Enhancement, BAdI management with SOLAR02

    Dear all,
    We are managing Transaction&Program List related with processes on SOLAR02 transaction.
    There are several object type we can select.
    WAPA                                BSP Application
    WTAG                                BSP Extension
    CLAS                                  Class/Interface
    BMDD                                 Document
    FUGR                                  Function Group
    FUNC                                  Function Module
    REPS                                  Include
    IASP                                   Internet Service
    WDY_JAVA_SOLMAN         Java Web Dynpro Application in Solution Manager
    DEVC                                  Package
    PROG                                  Program
    TRAN                                  Transaction
    BMTR                                  Transaction Request
    WDY_APPLICATION Web   Dynpro Application
    But, we want to manage the Enhancement(User-exit) and BAdI object list, also.
    So, we will add the new object type "SMOD" and "CMOD".
    (We know how to add the object type already)
    But, I wonder if someone of you is managing this type object already and how to manage enhancement
    and BAdI list. (ex.by adding new object type etc...)
    Please give me good opinions for managing enhancement list.
    Thank you.
    Best regards,
    jihyun cho

    Hi,
    please check this blog Extend SAP Solution Manager to Manage New Object Types
    Regards
    Andreas

  • Enhancement/Badi/Enhancement Spot required for BP at the time of SAVE

    Dear Friends,
    I have a requirement to update the custom field(Created by using EEWB)  in BP transaction at the time of Save, based on the condition Risk Class Category, Could any one help me in finding the solution such as BAdi/Enhancement Spot/User exit where I can find the values of Risk Class category, Credit segment category and the custom field I can change at the time of save.
    Appreciate Ur help Thanks alot in advance.
    Br,
    Naveen

    Hello Selva,
    I tried both the options.
    The SDVFX008 is getting triggered.
    *if cvbrp-netwr is INITIAL and cvbrp-fkimg is NOT INITIAL.
    *  MESSAGE 'Not Valid' TYPE 'S' DISPLAY LIKE 'E'.
    * ENDIF .
    this is my logic but the values are initials.
    Is there nay other method which I can use?

  • What is FormExits how it differ from UserExits/Enhancement/BADI?

    Hi,
    Experts,
    FormExits comes under which Enhancement.
    Thank U.

    Hi Shabeer,
    If you are asking about Function Exits, then Function exits are neither User Exits nor BADI's.
    Function Exits are included under Enhancments which can be viewed using transaction SMOD. These Enhancements can be implemented by assingning them to projects using transaction CMOD.
    Function Exits are Function Modules that are defined by SAP. And their source codes generally contains an include statement. The include is however not created and has to be created by the developer. Any code is written inside these includes.
    These Function modules are called from standard transaction using the syntax *CALL CUSTOMER-FUNCTION 'XXX'.
    Hope the above information helps.
    Regards,
    Abhisek.

Maybe you are looking for