Enhancement Spot :

Hi All,
       i have a doubt regarding the Enhancement Spot and Enhancement Point. I have a little idea about this and want to know in detail. please if anyone have any good sites or material please let me know so that i can have a look on that.
Currently i am trying to copy the standard transaction COGI into the ZCOGI transaction with SAP 6.0. and there exists some enhancement points and enhancement spot which are not getting copied into my ZCOGI transaction. What is the reason behind it? Does it affect the original functionality which is there in the standard transaction?Because i want to retain all the satndard fuctionality. I donot have anything to do in the ENHANCEMENT ...... ENDENHANCEMENT.i have to do some additional data fetching based on the additional selection criteria to be added on the selection screen and based on that i want to show some additional fields in the ALV output.
Thanks in advance.
Suchismita

Hi Suchi,
Whats the problem in copying ?
If you want to make any changes in the TCODE , copy the program related to COGI and make changes in it.
here is link for nice weblogs  :
/people/thomas.weiss/blog/2006/01/24/what-the-new-enhancement-framework-is-for-150-its-basic-structure-and-elements-for-beginners
/people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
/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
/people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
We need to be very thankful Thomas Weiss for his excellent blogs.
Regards,
Madhu.

Similar Messages

  • Runtime error in enhancement spot-' mereq_topline does  not exists.'

    Hi all,
    I have implemented an implicit enhancement spot in ME53n.
    When i applied break point in enhancement spot and control goes to ebhancement spot in debugging mode, i got purchse requisition number in mereq_topline.
    When i tried to use this structure value in code i get runtime error-
    ' mereq_topline does  not exists.'
    Can you please guide how to resolve  this runtime error.
    thanks.
    Edited by: Sanjay_lnt on Sep 20, 2010 8:52 AM

    Sanjay,
    try to delete the enhancement and recreate it
    Thanks
    Bala Duvvuri

  • Display custom error message in enhancement spots

    Hi all,
    Is there someone here who've encountered having the need to display custom error message in an enhancement spot? Could you help me please.. I can't find any reference from the net.
    Thanks in advance
    Regards,
    Aris

    Hi,
    The error message can be only displayed in enhancement spots based on thr program flow.
    You have to determine where its getting called for ex: in PBO or PAI etc.....
    You have to find the right place to display the error messages . for ex: using a memory id ......

  • Error message in enhancement spot

    Hi...,
    I want to give error message in enhancement spot.
    I am using FM 'CR_BT_ORDER_POST'.
    wHEN USER WILL TRY TO CHANGE SERVICE ORDER.i WANT TO THROUGH ERROR MESSAGE.AND KEEP THE CURSOR ON SAME SERVICE ORDER SCREEN
    But now it is coming out of IW32.WHEN I AM GIVING ABORT MESSGAE TYPE.ERROR MESSAGE IS NOT ALLOWED IN UPDATE TASK MODE.
    tHANKS,
    aNIL

    Hi,
      I think you have to use the function module 'POPUP_TO_CONFIRM' give the error message what you want to and if the user press any button keep the control on the same screen.
    Regards,
    Himanshu

  • BADI or Enhancement Spot while assigning BP to a Org Unit

    Hi,
    I have a requirement of changing the BP address while assigning the BP to a Org Unit in PPOMA_CRM. Is there any BADI or Enhancement Spot which can be used for this purpose.
    Thanks,
    Ravi G

    Hi Ravi
    Regarding this thread I want a help from your side if you can help me please.
    I have to put some validation for the assigned employee and the position under which the employee is beeing assigned.
    Is there any badi or Enhancement spot that can resolve my problem.
    the validation will be done as soon as we select the employee that will be assigned to the position and press the ENTER.
    It is done before SAVE.
    Best Regards
    Saurabh

  • Implementing Enhancement Spot

    Hi Experts,
               I am looking for an exhancement (Function Exit / Badi ) which will should be trigegred when user presses SAVE button in PO .(Say me22n)
               As I couldn't find suitable exit / badi....I thought of using the enhancement point provided for ME22N in the PAI module.Please correct if there is any issue upto here.
    *&      Module  EVENT_PAI_FINISHED  INPUT
          text
    MODULE event_pai_finished INPUT.
    ENHANCEMENT-POINT EVENT_PAI_FINISHED_01 SPOTS ES_LMEVIEWSF01 INCLUDE BOUND.
      CALL METHOD call_view->handle_event( 'BEFORE_TRANSPORT' ).
      CALL METHOD call_view->handle_event( 'PAI_FINISHED' ).
    ENDMODULE.                             " EVENT_PAI_FINISHED  INPUT
               Then to implement the enhancement point by creating a BADI implemetation ..when we are enetering the enhancement spot name ES_LMEVIEWSF01 under the create implementations section of SE19 transctaion with NEW BADI......and when we pressed cretae implementation button...nothing is happening..I mean neither BADI is getting created...nor thorwing any error message......
           Please suggest me how to follow.......You can find above code in the include
    LMEVIEWSF01 at line no 188........
            Earlier response will be appreciated.....
            Thanks ina dvance and reward points are garunteed....
    Regards,
    Sampath

    Hi Debhasis,
       Thanks for your reply. While saving exit 12 or exit 13 will be triggered ONLY when we make changes in standard PO item TABS.
        Let's say standard PO has 10 TABS at ITEM level. We are adding one more custom TAB there  adding to that our client interest is not to include this TAB fields in EKPO structure.  Hence we have to create the TAB by using screen exit option and we successfully created the TAB.
         Now take a case that we oopen ME22N with a PO no..then user did not make any changes in all the 10 standard TABS but make changes in only custom TAB...in that case exit 12 or exit 13 will not get triggered....Because they will be triggered only when you make changes to the fields which will be in EKKO or EKPO....as we are not supposed to extend EKPO ....those two exits will not be handy for us.......
         We even tried in existing BADI's ....but no BADI or exit will be getting triggering when we do not make any changes which effect EKKO and EKPO structure....
          Please let us know . if you have any idea to counter this unique problem.
           We also request you to please let us know ,if you ahve any idea, about implementing the this particular enhancement spot. Usually we can do it by SE19. But this particular spot is not allowing us to create one...... 
    Anyway Thanks .....Let's flow the discussion...
    Regards,
    Sampath

  • Badi created throught Enhancement Spot,but it is not registered in SXS_ATTR

    Hi All,
    Can anyone please tell me regarding why, When BADI created through Enhancement Spot, it is not registration in the SXS_ATTR table.
    During creation of BADI, Through BADI Definition, the interface and Class is generated by the system itself. Where when I create Badi , by Enhancement Spot I need to enter manually both the interface and Class name.
    BADI Definition:  Z_CUSTOM_BADI
    Implementation name   : Z_CUSTOM_BADI_1
    I hv given a class name as: ZCL_IM_CUSTOM_BADI_1
    But during the debugging, it showing the class name as: ZCL_IM_CUSTOM_BADI
    Thanks in advance.
    Rgds.
    Shaik

    Hi
    I think the request is good for deleting the enhancement, the problem could be if there are other objects there, but if the only object is the enhancement I think It should be ok
    @Max, inside the task when i double clicked the enhancement, its throwing an error the cant be read.
    That's normal if you have delete it
    Max

  • Need Enhancement spot in Business Partner Creation/Change

    Hi all ,
    In Business partner creation/Change screen(Tcode BP),if pressing BACK or CANCEL button without saving data, it will ask for confirmation that Want to save data or not.If we press YES it will save the data,or if we press  NO it won't. Is there any Enhancement spot (User exit or BADi) available after triggering the above confirmation message.If so kindly intimate me the Exit name or BADi name.
    Thanks in Advance..

    Try using Implicit Enhancements .
    I have got implicit enhancements over here for you.
    check out if Useful while dubugging.
    include :LBUS_LOCATORF05
    screen 3000
    prog SAPLBUS_LOCATOR
    form dynpro_pai_begin
    dynpro_pai_end
    create IMPLICIT enhancements here.
    To avoid confusion write your code after IF condition checking for
    GV_OK_CODE which is BUS_MAIN_BACK and dynpro number.
    If you dont know Implicit enhancements try this link
    http://www.sapdev.co.uk/enhance/eframework/eframeworkhome.htm
    checking ok_code is necessay otherwise it will be executed everytime PAIis triggered.

  • Valuation price with user exit/BADI/Enhancement Spot (In valuation variant)

    Hi all,
    i am facing problem finding enhancement when creation of sales order of Valuation price with user exit/BADI/Enhancement Spot  (In valuation variant)
    For refferenece:
    When going to t.code VA03, select one item and go to extras in the menu bar and select costing then you find some amounts calculation i.e valuation price automatically.
    So when creation of sales order i am giving material and that material price automatically takes from material master and creating sales order.
    My customer requirement is to get the valuation price of the input material from Z-table during the sales order cost estimate.
    This Z-table contains the material code, plant , grade  of the material.
    Ex:
    Material         Plant   Grade Price
    A                1000    XYZ     25000
    A                1000    PQR     35000
    A                1000    BCD     45000
    Suppose it depends on sales document type and which grade price i have to take.
    So first of all i am unable to find enhancement where to change this code to get change the valuation price.
    Does anybody have any idea , is there any user exit/BADI/enhancement for this.
    So please help me in this issue.
    Thanks & Regards,
    lokeshgoud

    pls allow me to post the questions

  • Enhancement spots for ME59N

    Hi All,
    Can any one give an idea to find the suitable enhancement spots for any transaction.
    I am working in ECC 6.0.
    In my case i need to find for ME59N, the program name is RM06BB30, and the requirment is for automatic creation of PO for different Tax Classifications.
    There is an user exit ME590001 which is suitable for this application, but we are instructed to avoid user exits so we have to go for enhancement spots.
    Thanks,
    Rama

    Hi,
       refer
    https://forums.sdn.sap.com/click.jspa?searchID=7035836&messageID=3610819
    Regards

  • Unable to use variables of a function module in am enhancement spot

    Hi All,
    I have created an implicit code enhancement spot at the end of a function module. In this enhancement I am unable to access the local variables and the import/export variables of the function module. Is this the expected behavior or I am doing something wrong.
    Thansk & Regards,
    Saurabh

    Hi Saurabh,
    Can you explain your scenario in detail with tcode and function module and all.
    Regards,
    kamalapriya

  • Enhancement spot creation error

    Hi all,
    i tried to create an enhancement spot , in that i troed to give an interface name .
    i am getting an error :
    Interface IF_XXXX_ BADI does not include interface IF_BADI_INTERFACE.
    can anyone let me know what the problem is if possible with some example .
    Regards,
    Ry

    Hi Roby,
    Once the interface for an enhancement spot is created you have to delete it completely as some part of it would still exist if you just delete it from se24 or se18.
    the classes which actually implements the interface or enhancement spot / implementations at times are left and thats why when you create it again it will not ask you for Package assignment if you will observe.
    So i will suggest to try checking the Spot components from se80 transaction and delete it completely. Also check if the entry still exists in tadir table which i am sure will be there even after you delete as i also encountered the same issue once.
    Thats why i suggested you to create it with a new name for E-spot and interface too and check otherwise may be change the tadir entry  as well.
    Hope this helps.
    regards,
    Vikas
    <b>Always reward points to useful suggestions.</b>

  • Enhancement spot in MV45AFZZ.

    Hii All,
    I got a problem when i am writing enhancement spot in MV45AFZZ.
    I have added some new fields in 8459 sub-screen at item level in VA01 transaction
    some of those fields are mandatory for some materials
    Now if the user goes for a save with out entering those fields in addtional tab B, i am rising a error that field is not entered in Additional tab B.
    Now everything is fine i am able to trigger that error message by writing the error message in USEREXIT_SAVE_DOCUMENT. By writing a enhancement spot.
    whenever i trigger this error message if i go and enter the corresponding fields in Additional tab B at item level it is saying that the " Item SOME NO say 00010  does not exist "  and it is going out of the transaction with out saving the sales order .
    If i dont click the save button and going directly to that additional data tab and entering the corresponding field and going for save it is saving.
    I am getting the problem if i click the save button before entering those fields. wht could be the problem?
    please help me.
    Thanks ,
    Ravindra.

    Hii,
    @  Ankesh Saharan :
    If i change the error message to information or warning it will go for a save even though those mandatory fields are missing.
    @  TARAPADA DAN :
    I tried using the exit USEREXIT_SAVE_DOCUMENT_PREPARE.
    But the problem is based on the material number entered in the screen i am fetching part location type from MVKE. using that part location i am triggering error messages.
    when i try to refer the material number as VBAP-MATNR it is blank in the exit USEREXIT_SAVE_DOCUMENT_PREPARE. So i cant use this exit.
    any one please answer my question
    Thanks,
    Ravindra.

  • Enhancement spot is not triggered in Custom Program.

    Dear Experts,
    After saving the sales order i would like to view the print preview.
    For this I found one implicit enhancement spot and i called the print Program for sales order. Then i am able to view the Sales order print preview in VA01 Transaction code. I wrote my logic in the Below mentioned Enhancement implementation.
    Main Program : SAPMV45A
    Include : MV45AF0B_BELEG_SICHERN
    Form : beleg_sichern
    At the endform I am calling the Print program of Sales order so that after saving the sales order i am able to view the print preview of the Sales order.
    The requirement is i have created the Custom program in that i am using the "CALL TRANSACTION 'VA01'". In the custom program i am not able to view the Sales order print preview. The Enhancement spot is not getting triggered.
    Could you please help me to solve this issue.
    Thanks & Regards,
    Ashok.

    Like I said, you must use the parameter RA_COMMIT from BDC_OPTIONS. Like this:
    DATA: bdc_options TYPE ctu_params.
    bdc_options-ra_commit = ' X' .
    bdc_options-dismode = ' N'.
    CALL TRANSACTION 'VA01' OPTIONS FROM bdc_options.
    Everytime you use a CALL TRANSACTION, the called transaction will stop when a COMMIT WORK is found, and you have to pass the parameter RA_COMMIT with 'X' to make the transaction execute any code after COMMIT WORK. This only happens when you call a transaction via CALL TRANSACTION, it will not happen if the user access a transaction directly.
    For further explanation you can use the link from documentation that I posted on my first reply.
    Regards,
    Mauricio

  • Enhancement spot - Function module not getting triggered in background

    Hello Experts,
    I have implemented an explicit enhancement spot. In the code implementation, I am calling a Function Module.
    When I call that FM in background, things are not working as expected. But if I am calling that FM in normal mode, things are working fine.
    I am passing parameter to FM by 'Value'.
    Can anybody please let me know what I am doing wrong?
    Regards,
    Ashish

    Hi,
    Enhancement not getting triggered in BDC
    Regarding on your query, You would go through below link.
    Screen Enhancement of Transaction CO11N
    I hope, it helps to you.
    Regards,
    Sekhar

Maybe you are looking for

  • Leopard a finicky cat?

    After my last post and no responses, I thought to investigate further. Hours of use later, here are some things I am finding in Leopard and I would like to know if anyone else can confirm these behaviors: Using cover flow in finder will considerably

  • CU upgrade plan for very neglected SP/Project environment

    I just inherited (new job) a very patch neglected environment of SharePoint 2010 Enterprise and Project Server 2010. Patch level is currently 14.0.4762.1000. My goal is to roll up to current patch level. I'm looking for best practice recommendations

  • Red Small Symbol keeps appearing on Desktop

    I keep getting a small, red  "<>" in the lower left hand corner of my desktop... anyone know what this is? it keeps appearing and disappearing...  thanks

  • Cannot Paste Image into Photoshop CS4

    I've lost the consistent ability to paste images from otehr applications (e.g. screen captures or web browsers) into Photoshop.It doesn't seem to matter what the source application is (so a screen-cap utility versus alt+prtScrn makes no difference).

  • When I do a repair permissions "ACL found..." keeps showing up. Why?

    2008-03-16 22:22:15 -0400: Repairing permissions for "Macintosh HD" 2008-03-16 22:26:00 -0400: ACL found but not expected on "Applications/Utilities". 2008-03-16 22:26:00 -0400: ACL found but not expected on "Applications". 2008-03-16 22:26:00 -0400: