ENHANCEMENT SPOT ERROR- INTERESTING !!!

Dear All,
I am Enhancing the standard PR05 Tcode inside an include MP56TF90(Which updates the cluster and creates the Trip number) in a subroutine FORM update_cluster.
I have to insert some lines of code before the statement : DATA: p_return TYPE i.(Which means before  update_te_cluster.)
And, Some lines of code after the cluster is updated, trip created ie after  MESSAGE s185 WITH te-key-reinr.
Thanks to SAP that it has provided implicit enhancement points at both these points.
I successfully created 2 enhancement implementations at these 2 points are included my code at the 2 respective positions.
Now, I have an IF condition in the upper part_.If the condition is met, then the cluster should not be updated_ and hence before   DATA: p_return TYPE i.  I am putting an ELSE statement and the first enhancement implementation end here after ELSE.
If the condition is not met, then the cluster needs to be updated after ELSE statement and thereyby I am putting the ENDIF statement at the ned of the 2nd enhacement implementation ie., before     ENDFORM.   "update_cluster.
As the IF and ENDIF are present in 2 different enhancement implemetations, the system gives an error as follows:-
+In the coding for a non-static enhancement and for a non-static ENHANCEMENT-SECTION, the control structures (IF, CASE) must be closed...+
*And, I have no Option but to do it as above to meet the customer requirement ...ie., If SUPPOSE I do ENDIF in the first part only and remove the endif from 2nd part, then the condition is ofcourse being met but the control comes down and updates the cluster as well (WHICH SHOULD NOT HAPPEN !)*
Any comments on this piece ?
I hope my Q is clear .. If not I will post the code next time.. (As the Question is too big )
-Anwar ...
Edited by: Sameer Anwar on Feb 8, 2011 8:05 AM
Edited by: Sameer Anwar on Feb 8, 2011 8:08 AM
Edited by: Sameer Anwar on Feb 8, 2011 8:09 AM

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>

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

  • 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>

  • Error While creating enhancement Spot

    Hello all,
    I am doing some enhancement code using new enhancement framework for SAP HR infotype 0002 and 0006. I am searching the enhancement spot in relevant program screen, but while enhancing (Shift+F4), it is showing me a message saying "Object still in upgrade mode. Finish the upgrade first".
    My basic requirement is to change the screen values before display.
    Is anybody gone through such error?? Please help.
    Thanks,
    Prashant

    Please Share the answer.
    Regards.
    Mariano Billinghurst

  • 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

  • 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 implementation for enhancement spot DPR_EVENTS

    Hi. SAP Export.
    I created an enhancement implementation for enhancement spot DPR_EVENTS, and set the filter value equal to ON_TTO_IN_PROCESS, it means the code executed when user set system status to u2018IN PROCESSu2019.
    I added my code to do some logical check in the method IF_EX_DPR_EVENTS~ON_EVENT, if the check failed. I can show an error message on the cProjects, BUT I CAN STILL SAVE THE DATA with ERROR. It looks like the error message is not useful.
    Could some one please kindly help with provide a solution to solve this issue?

    Can you please elaborate, what exactly is the requirement? Do you want that the message should be displayed as warning & processing should continue or something else?

  • Re: enhancement spot

    Hi techies,
       I am interested in updating myself in the new concept enhancement spots.
      Suppose i have inserted a source code plug within the enhancement spot (Dynamic)
    (i.e) ENHANCEMENT.......
    if ...
    write:/ 'enhancement1'. (or)
    message 'enhancement 1' type 'I'.
    endif.
    END-ENHANCEMENT
    After i have included this code within the enhancement spot and activate it. my code gets changed as follows.
    (i.e) ENHANCEMENT.......
    if ...
    endif.
    END-ENHANCEMENT
    Whereas if i include any other codes (e.g) rmmg1-lgort = '0001'. within the if statement then that code is getting activated.
    Can anyone tell me the reason why the write statement and message statement is not accepted.
    Thanks in advance,
    P. Chithra.

    Hi harini shankar ,
    The reason behind this is you need a have a switch attached to it and which needs to be activated.
    For more information refer Switch Framework
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/af/e8b540afc87c2ae10000000a155106/frameset.htm]
    Refer to the following video regarding the reason why its not activated.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/988fcbe9-0a01-0010-dbb0-a633829a1e82
    Reward points if helpful.
    Thanks ,
    Surya Pydikondala.

  • Enhancement Spot(ES_CRM_RF_Q1O_FILTER )

    Hi Everyone,
    i need to implement ES_CRM_RF_Q1O_FILTER (enhancement spot) and the BADI within this enhancement spot- CRM_BADI_RF_Q1O_FILTER.
    After implementing the badi need to implement the interface method u2013 FILTER_RESULT .
    But unable to proceed with that as it is giving error can anyone help me regarding this, with a stepwise method if possible so that i can proceed with my requirement.
    Thanks and Regards,
    Sharad

    Hello,
    partner re-determination is only available since crm 6.0.
    Please see the online documentation which explains this at:
    http://help.sap.com/saphelp_crm60/helpdata/en/d4/a8f6967c4b46b2bc2c20283a245199/frameset.htm
    Normally it works only for BUS - types which are maintained in table (these entries are also supported)
    COMS_PARTNER_DET:
    BUS2000108
    BUS2000111
    BUS2000230
    BUS2000231
    BUS2000311
    BUS2000312
    Hence at least you have to maintain the BUS2000223 in the table, but I am not sure if it will work.
    Regards
    Rene

  • Enhancement spot for shipping point in VL10G tcode

    Hi All,
    we have created enhancement spot for shipping point in VL10G tcode & tested its working fine in foreground(Dialog) but didn't worked in BACKGROUND, its showing error log. 
    when we opened this error message its not having any error message in log. its coming blank in error field.
    so pls let me know your thoughts, why its happening?
    Thanks & Regards
    Nagendra / Biswa

    hi yogendra,
    I have created an enhancement in RV_INVOICE_DOCUMENT_ADD but my code is not getting appeared in debugging mode and  nothing is working. can u please guide me on this.
    following the spot where i have written my code
    NHANCEMENT-POINT rv_invoice_document_add_14 SPOTS es_saplv60a.
    ENHANCEMENT 51  OIC_SAPLV60A.    "active version
    BREAK-POINT.
    WAIT UP TO 2 SECONDS.
    DATA: lv_name TYPE thead-tdname,
             lt_line TYPE STANDARD TABLE OF tline,
             lw_line TYPE tline.
         CLEAR: lv_name , lv_sgtxt.
           lv_name = bkpf-xblnr.
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
           id                      = 'A002'
           language                = sy-langu
           name                    = lv_name
           object                  = 'VBBK'
         TABLES
           lines                   = lt_line[]
         EXCEPTIONS
           id                      = 1
           language                = 2
           name                    = 3
           not_found               = 4
           object                  = 5
           reference_check         = 6
           wrong_access_to_archive = 7
           OTHERS                  = 8.
       IF sy-subrc EQ 0.
         READ TABLE lt_line
           INTO lw_line
           INDEX 1.
          REPLACE ALL OCCURRENCES OF '<)>' IN lw_line-tdline WITH space.
         lv_sgtxt = lw_line-tdline.
       ENDIF.
    ENHANCEMENT 1  ZNARRATION_UPDATE.    "active version
    ENDENHANCEMENT.
    Regards
    satish

  • Reg: How to Create Enhancement spot in $TMP Package

    Hi All,
    i had seen so many eLearning concepts which sap provided to demonstrate the ENHANCEMENTS Topic,But in that they are using the Enhancement Spots which already created in $TMP Package,So To learn this concept i am trying to create the Enhancement Spots in $TMP , But it is not allowing me to create in $TMP and it's showing the error message like Enhancements can create in only 'SAP' Packages only,So  if i will create in SAP Packages it is allowing,
    But i would like to create Enhancement Spots in $TMP Package,So it would be appriciable any one could help me regarding this.
    Thanks in Advance
    Srihasa...

    Thanks Rasheed for your quick response, i tried from the SE 38 To create Enhancement Spots in the $TMP Package,But it's not allowed me,Can you tell the way how to create the Enhancement Spots in the $TMP Package i mean is there any other Tcodes are available to create the Enhancement Spots.
    Thank you..
    Srihasa

  • Enhancement spot PT_ABS_REQ - BADi not being called

    Hi,
    I wondered if anyone can help. I need to change colours in the team calendar viewable in MSS.
    In SPRO under Personnel Management>employee self service>service specific settings>working time>team calendar>BADi.controlprocessing of leave requests -  I have created a BADi that I have called "ZPT_ABS_REQ".
    In SE18 under the enhancement spot ZPT_ABS_REQ - (enhancement implementation tab) I can see my BADI and if i double click on the enhancement implementation I get taken to the enhancement implementation ZPT_ABS_REQ and it lists the BADI implementation as being ZBADI_PT_ABS_REQ.
    So in SE24 editting ZBADI_PT_ABS_REQ, I have some code to the method IF_EX_PT_ABS_REQ~TEAM_CALE_ENRICHMENT - the code is very simple and just inserts a record into a test table (I can run the badi separately and a record gets created). I also copied/pasted the code in this method from the standard BADi (CL_PT_ARQ_REQ also listed in the enhancement implementation tab) just to see what happens.
    What i had hoped is that when in MSS I view/process the Team Calendar I would get a record in my table but I dont. Ultimately I want to change legends in one of the other methods but this is for later once i can be sure the BADi is being executed.
    Everything is active. Any ideas anyone? I would also welcome ideas on how this can be debugged to see if the BAdi is actually being called (which clearly it is not!) - incidently i'm not an java/mss developer.
    many thanks Neil

    Hello,
    I have implemented this BADI & can see my implementation active in IMG.
    But when executing leave request from ESS i am getting error saying An exception occurred that was not caught., error key: RFC_ERROR_SYSTEM_FAILURE.
    Can anybody tell how to solve this?
    Also how to set calendor color & legend color?
    Edited by: Sachin Thigale on Aug 19, 2010 3:34 PM
    Edited by: Sachin Thigale on Sep 4, 2010 10:48 PM

Maybe you are looking for

  • I purchased and own photoshop elements 11 and have a serial number how can I download it provide me with steps

    I purchased and own photoshop elements 11 and have a serial number how can I download it provide me with steps

  • Move a complete page/section in a document

    Hi! In the pervious version of pages, it was possible to move complete sections from one position to another. Like you can move slides in keynote. In the new version of pages 5.0 I didn´t find this function. Best regards Thomas

  • Graph values are plotted in float

    hi 1) When i try to display the graph the x and y axis are displayed in float 100.0 i need to display in integer value like 100. 2) i am trying to display a line graph now sure how many points i add when the value x axis increases the graph extends i

  • Iphone 5 screen brightness

    Hi . iPhone 5 does not decrease the brightness of my screen.help me please

  • Querying 2 tables

    Hi, I have 2 tables "users" and "events" in one query I want to return profilePic, firstname, surname from clients and eventName from events The tables both have clientID which is passed via the URL. This is what i have so far. <cfquery name="qGetUse