Enhancement point debugging...

Hi Friends,
   I want to enhance the standard function module RV_INVOICE_DOCUMENT_ADD. I have saw some implementations are already made to the function module. I tried to see the spot in debugging but I am not able to see the codings in the enhancement. But the module is in active state and the enhancements are in active state. But I am not able to find them in debugging. How to see those codings in debugging....
  Please help me.
  Thanks

Hi,
In the FM between the lines ENHANCEMENT and ENDENHANCEMENT you can see the code
For eg: in the FM 'RV_INVOICE_DOCUMENT_ADD' there is
a line
"ENHANCEMENT 208  OIC_SAPLV60A."
The coding inside that enhancement is :
    CALL FUNCTION 'RV_INVOICE_REFRESH'
      EXPORTING
        with_posting = 'F'
      TABLES
        XOICQ7       = XOICQ7                      "SO6K009187 AWH
        XOICQ8       = XOICQ8                      "SO6K009187 AWH
        XOICQ9       = XOICQ9                      "SO6K009187 AWH
        XOIUQ9       = XOIUQ9                      "SO6K009187 AWH
        xkomfk       = lt_xkomfk
        xkomv        = xkomv
        xthead       = xthead
        xvbfs        = xvbfs
        xvbpa        = xvbpa
        xvbrk        = xvbrk
        xvbrp        = xvbrp
        xvbss        = xvbss.
ie, the lines b/w enhancement and endenhancement is the coding in it.
Regards,
Soumya.

Similar Messages

  • DEBUG in ENHANCEMENT-POINT

    Hi all,
    Can i use a break-point into ENHANCEMENT-POINT?
    i can't debug into ENHANCEMENT-POINT.
    Anybody help me??
    regards,

    I put a break-point in the code, but the system don't stop.
    See the exemple:
    ENHANCEMENT-POINT WE_AUS_BETS_02 SPOTS ES_SAPLEINR.
    ENHANCEMENT 13  /CWM/APPL_MM_SAPLEINR.    "active version
    INCLUDE /CWM/MOD_LEINRF2B_1. "CWM CWEK000072
      break marcelo_10.
      if sy-tcode = 'MB01'.
        if EKKO-WAERS NE 'BRL'  and
           ( ekko-bsart NE 'ZI' and
             ekko-bsart NE 'IP' ).
      CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
           EXPORTING
                DATE             = I_BLDAT
                FOREIGN_AMOUNT   = XEBEFU-NETWR  "Nettower
                FOREIGN_CURRENCY = EKKO-WAERS
                LOCAL_CURRENCY   = T001-WAERS
                TYPE_OF_RATE     = KURSTYP
           IMPORTING
                LOCAL_AMOUNT     = XEBEFU-NETWR.
        endif.
      endif.
    ENDENHANCEMENT.

  • Enhancement Point in ABAP code

    Hi ,
    I am working on an upgrade from 4.6 to ECC ,so have a  have a standard FM with an enhancement point , how do i know if there is an implementaion for that or not and can i debugg the code in the enhancement point .
    When i click on the enhancement spot it goes to a class and i can see the code in that methods but cant set a breakpoint in it , kindly suggest what should i do.
    Regards
    Arun

    Hi
    double click on the enhancement point. it will take you to the enhancement spot into which it is defined.
    click on the tab "enhancement implementation". it will show you all the existing implementation. I you find nothing than this point is not implemented yet.
    if it is taking you to a class then it is a BADi implemented via new enhancement framework. to find it is implemented or not, repeat the above steps. to debug it:
    in the left section, expand entries under heading BADi definitions.
    double click on "implementations". you will get the existing entries on right side. double click on this entry. on the left side under heading "BADI definitions" you will get the implementing class.
    double click on it to get the class name.
    go into the class and see the method implemented. u try to hard code the break point into the method,
    activate it and then try to debug it.
    Thanks
    Vishal Kapoor

  • ENHANCEMENT-POINT / Enhancement in ECC 6.0

    Hi all!
    I have been searching for an answer.  I have yet to find anything.
    Anyway here's my question:
    I am using an SAP provided enhancement point.  (I think)
    It looks like this in the code:
    ENHANCEMENT-POINT me_print_po_01 SPOTS es_saplmedruck.
    $$-Start: ME_PRINT_PO_01----
    $$
    ENHANCEMENT 16  ISAUTO_SCH_EMM_SAPLMEDRUCK.
    I double click on the 16 and entered my code.  Then I looked at the properties and found the switch AM_SCH_MM was off.
    So I created a business function via sfw2 included the switch AM_SCH_MM and activated the business function.  Since I've been reading the forum.  I activated my new business function in sfw5 as well.
    I put my program into debug.  It is still skipping over the enhancement.   I'm sure I've missed a step somewhere as we are just implmenting from 4.5C.
    Does anyone know why this isn't working?  Or simply how to activate an SAP supplied enhancement.   I've been reading on creating a custom enhacement and using a BADI.   Do I have to do the same thing for the SAP supplied one?
    Thank you,
    Michelle

    Sure.
    I went into the SAP code.  Then I used the menu path:
    Function Module -> Enhanceme source code
    -OR-
    Program -> Enhance.
    I determined where in the source code that I wanted my code to be at then I right clicked.
    Enhancement Implementation -> Create
    Entered the name and text, package.
    Selected the implementation.
    Entered my code.
    Activated the enhancement or Ctrl-F3.

  • Enhancement point is not processed in Q-System

    We are using SAP SCM 7.0, based on NW 7.0 EhP 1.
    In the development system we created a new enhancement point (implicit) where everything works fine.
    After transport to Q system no enhancement point is processed although the coding is there and listed as 'active'.
    BAdI implementations are processed, though.
    Do you have a general advise what could be wrong?
    We don't have a switch for this Z enhancement.
    Thanks,
    Michael

    Hi Michael,<br />
    <br />
    I haven't encountered this problem yet, but there's reports in the forum that another activation helped, e.g. see this thread Implicit Enhancement Code not wrking after transport (and if you do a search you'll find more reports like that). People, who encountered this issue, seem to usually say that during debugging the enhancement code doesn't show up, though in the editor it is visible and marked as active.<br />
    <br />
    Cheers, harald

  • About Enhancement Point

    Hi,
    I want a clarity on enhancement point. Where we can see that a code written under a enhancement point will get trigger.
    For ex,
    ENHANCEMENT-POINT RM07II31_G4 SPOTS ES_RM07II31 STATIC.
    $$-Start: RM07II31_G4----
    $$
    ENHANCEMENT 1  MGV_GENERATED_RM07II31.    "active version
    INITIALIZATION.
    DATA: mgv_matnr_prog LIKE rsvar-report,
          mgv_matnr_selopt_tab like rsldbdfs occurs 0 with header line.
    FIELD-SYMBOLS <mgv_matnr_selopt_conv> TYPE STANDARD TABLE.
    ENDENHANCEMENT.
    This is code from standard tcode MI31. I have put breakpoint in this code. but while i run mi31 the control didnt reach at this breakpoint. So please tell me where we can see that a particular enhancement code will be called?
    Regards,
    Krishan

    >
    Krishan Kumar wrote:
    > Hi,
    >
    > I want a clarity on enhancement point. Where we can see that a code written under a enhancement point will get trigger.
    >
    > For ex,
    >
    >  ENHANCEMENT-POINT RM07II31_G4 SPOTS ES_RM07II31 STATIC.
    > $$-Start: RM07II31_G4----
    $$
    > ENHANCEMENT 1  MGV_GENERATED_RM07II31.    "active version
    > INITIALIZATION.
    > DATA: mgv_matnr_prog LIKE rsvar-report,
    >       mgv_matnr_selopt_tab like rsldbdfs occurs 0 with header line.
    > FIELD-SYMBOLS <mgv_matnr_selopt_conv> TYPE STANDARD TABLE.
    > ENDENHANCEMENT.
    >
    > This is code from standard tcode MI31. I have put breakpoint in this code. but while i run mi31 the control didnt reach at this breakpoint. So please tell me where we can see that a particular enhancement code will be called?
    >
    > Regards,
    >
    > Krishan
    If the related busines function switch for these enhancement points is turned on then you new code writtne in enhancement points will be executed else old code will be executed. Just keep pressing F5 and you will go to the code being executed.
    If you want to debug new code written under enhancment point just put a break point on enahcement point and press F5.
    ENHANCEMENT-POINT RM07II31_G4 SPOTS ES_RM07II31 STATIC.
    $$-Start: RM07II31_G4----
    $$
    ENHANCEMENT 1  MGV_GENERATED_RM07II31001.    "active version
    INITIALIZATION.
    DATA: mgv_matnr_prog LIKE rsvar-report,
          mgv_matnr_selopt_tab like rsldbdfs occurs 0 with header line.
    FIELD-SYMBOLS <mgv_matnr_selopt_conv> TYPE STANDARD TABLE.
    ENDENHANCEMENT.
    If you put a breakpoint inside code in bold it will not reach there if switch is on. In this case program flow will go to new code mentioned by enhancement spot.
    To naviagte to new code wirtten under enhancement spot just double click on 'ES_RM07II31'.
    It will open a tabular display of all 4 spots declared in program, select the first spot which we clicked and click on ABAP editor button in table menue on top to see the new code.
    this is the code which will be executed if switch is on.
    Hope this helps
    Regards
    Manas Dua

  • Sap support for standard prog. w/ custom implem of implicit enhanc.points

    Hello,
    since 1 year I've been confronted to SAP customers which WIDELY implement Implicit Enhancement Points (IEP).
    I have been really surprised that my customers undoubtly think, if a problem occurs in a standard program where there are lots of IEP custom implementations, and if my customers estimate after investigation the problem comes from the standard part and not from the IEPs, they think that SAP support would help them to solve the issue.
    Note: as a consequence, they created much more IEP in ECC 6 than they did in the past with R/3 old releases (via changes of the standard, aka repairs)!
    What I think, is that SAP SUPPORT WOULDN'T HELP them as long as there is custom code (even within IEPs) in the standard program, even if there is only one IEP with one line (because it could change completely the standard algorithm, for example by emptying a global internal table)
    So, I think the only way to get help from SAP is to deactivate these IEP implementations before requesting support. And so, the only solution to deactivate them, customers MUST assign IEP implementations to a package and then to a switch and then to a business function, so that they can deactivate it via switch framework.
    The main concern is that my customers didn't create switch/business function, so they cannot react quickly if a problem happens in production : reproduce in test system, deactivate custom IEPs by switching off business function (it's what they didn't do), reproduce with full standard to determine problem comes from standard, request help from sap).
    Could you share with me what is your approach about implementing IEPs, and maybe, is there somewhere a SAP documentation which explains that officially?
    I hope I was clear.
    Thank you very much for your kind help.
    Best regards,
    sandra rossi

    I played around a bit with this (as I had never done it before) and also from what I have read, the intended option is the switch framework.
    I guess as plan B you could have a virtual system or reliable test environment in which you can disable the enhancement and bring it back again via version management - but from what you have described (IEP deleting gobal variables, etc) this would also remove the "bug" and make the problem difficult to reproduce.
    Perhaps the next best thing (unless someone has a better idea) is to inform your customers about neatly organizing their software developments using packages and switches.
    To my knowledge, the syntax checks are also getting stricter in this area (as you may have noticed) and I hope that (for some of them) will throw errors one day during the development stage already.
    Sorry, that does not help you much (but at least you read "the rules"
    Cheers,
    Julius
    ps: A dirty way of doing it would be to run the program in the new debugger, and skip over the enhancement using the Go-To function. Unlike the classic debugger, the code inbetween does not need to be debugged. Ugly, but effective...
    Edited by: Julius Bussche on Nov 10, 2008 9:13 PM

  • Difference between implicit and explicit enhancement points

    Hi Folks,
    I had learned many documents to findout the difference between explicit and implicit enhancement point.I got the theoritical knowledge on that but losing on the practical side..
    Can anybody help me out with one real time scenario where the explicit enhancement points have been implemented and the step by step procedure to implement it..
    Hoping for the positive response from you..
    Regards,
    Rohan.

    Hi Rohan,
    In implicit they are available at the beginning of subroutines defined in the standard reports.
    Edit-> Enhancement operations->show implicit enhancement options.
    This will highlight all the implicit enhancements in the report.
    In Explicit enhancement we have two different types of enhancements -
    Enhancement point and Enhancement section.
    Enhancement point - SAP has some standard functionality defined for a report , but it may be required that you'll need to add your own code. In this case the code that you'll add will be executed along with the standard code.
    Enhancement section - SAP has its standard functionality defines but it may not suit your requirement, in that case you may need to add your code and you'll need that code to be executed only. By this method the existing code is automatically commented and a copy of the same code is available to edit.
    After executing the report only your code will be executed and the standard code will be bypassed.
    For Practicle implementation, follow this link.
    Link : [http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bb54c452-0801-0010-0e84-a653307fc6fc]
    i hope it will give you some clear picture....
    Thanks.
    Anurag

  • Enhancement points option: Function modules or BADI

    Hi, I am on ECC 6.0 and I need to validate and set some requirement in customer sales area data when user input the document output message in Documents tab strip screen 7003 of sapmf02d  in transaction XD01 or XD02.
      I found that there is function module EXIT_SAPMF02D_001 that I probably can use to create an implicit enhancement point to validate table T_KNVD or  I can use BADI customer_add_data.  Can someone suggest which way is better and why?  I am new to this so could someone show me screen by screen on how to create and implement BADI.
    I am confusing about should I create a ZBADI or using existing BADI customer_add_data.  If I use existing BADI how can I add my own method with my own code. 
    Thanks.

    Thanks. Could you explain to me how does the custom BADI get call to execute my code?  Say
    I have a customer document screen 7326 (Customer Master Subscreen SD Documents in program  SAPMF02D).  What I want is when user click save, I want to do some validation on the output message that they enter and issue some warning or error messages.
      I am on ECC 6.0 so I can create a BADI from Enhancement spot not from SE18.   SAP has a BADI called CUSTOMER_ADD_DATA with class CL_EX_CUSTOMER_ADD_DATA and interface IF_EX_CUSTOMER_ADD_DATA. 
    When I create a ZBADI_CUST, which interface class I put in the IF_EX_CUSTOMER_ADD_DATA
    or a ZIF_EX_XX so that I can create my own method?  How does the BADI get called when I am in transaction XD02 and click the save button?  Could you kindly show me step by step the procedure.
    Thanks.

  • How can I get the Microsoft enhanced Point and Print compatibility driver installed on Win7 LC master?

    We recently migrated from a Windows Server 2003 to Windows Server 2012 print server. When recomposing a linked clone pool with the old 2003 server, drivers were taken care of for the printer when the user printed for the first time after desktop recompose. With 2012, any printer using the Point and Print driver doesn't seem to obtain the driver again from the 2012 server. All of our clients are running Windows 7 which means the Microsoft enhanced Point and Print compatibility driver is not installed in the OS natively.
    I apparently need to figure out a way to get this installed on the host image so it trickles down to snapshots when recomposing the linked clone pool but I haven't been able to dig much information on doing this. Does anyone out there have any insight on how to accomplish this? If I recompose a pool now for a user who is using a new Point and Print driver, they get the following message that is resolved by removing the printer from their account and re-adding it:
    "The 'Microsoft enhanced Point and Print compatibility driver' printer driver is not installed on this computer. Some printer properties will not be accessible unless you install the printer driver. Do you want to install the driver now?"
    I figured the easy solution would be to just install a printer using the Point and Print driver and then remove it...leaving the driver behind (unless it cleaned up after itself). The problem with this is in my testing, even after removing and re-adding a printer that set off installation of this Point and Print driver on the client, any other printer that was using it still required the remove/re-add process in order to work, else I got the same message. That tells me that the driver may be custom for each printer installed?
    Color me a little confused. I do NOT like the way that Server 2012 handles printers. I've come across a few other issues as well (such as duplex capabilities not being remember on the print server for a printer) that I never had with the 2003 server.
    Thanks!!

    I was able to get it to work using your instructions off of here and your other thread
    Thank you!
    Chris
    http://social.technet.microsoft.com/Forums/en-US/864553c2-c8ff-49d2-bd48-eb7b47381111/windows-2012-print-server-problem-with-xp-clients?prof=required

  • EXIT/ BADI/ Enhancement point for User Status change in Order

    Hi all,
    I am looking for an EXIT or a BADI or an enhancement point specifically for user status change in an order thru IW31/IW32.
    I have the exit names for Order PBO, PAI, 'SAVE' event etc. so m not looking for generic answers.
    I have to put some validations for the Order on USER STATUS CHANGE. Let me know if any of u have any pointers on that.
    Thanks and Regards,
    Sonal

    Hi,
    Use this Enhancement IWO10009 and call these function module to change the User Status
    STATUS_TEXT_EDIT --> To Read the existing status.
    STATUS_CHANGE_INTERN_VB --> to change the status.
    Regards,
    Satish

  • User Exit/BADI/Enhancement Point  in VF01 before new document no assignment

    Hi Expert,
       I am looking for a user exit/BADI/Enhancement point which will trigger in VF01 before the new document no (Billing document no assign).
    I need to cross check few things in Billing via VF01 at billing document save and give error message accordingly. The problem is if new number assign and there is error due to my code then when user save the document next he get a new no. its mean a no skip.
    Example: The invoice no is 1000. User start creating a billing document with Vf01 and he get an error message due to my code at exit , at this point of time the next number assign to billing which is 1001 but document not save due to my error message. Now after applying correction user save data and billing document created with no 1002. So there is no skip.
    I tried BADI BADI_SD_ACCOUNTING but this will trigger after no assignment.  Can someone provide me a user exit/BADI/Enhancement point in VF01 which trigger before no range assignment and contain at least Billing header data to use in my code?
    Regards
    Swati
    Edited by: Swati Namdev on Nov 16, 2010 9:55 PM

    HI Brad and team,
       BRED is right. I check few user exit normally all of us have that list or easily available on net.
    BRED: my question is: I need to check the billing date VBRK-FKDAT of document should not be less than the sales order plan billing date VBAP-Oldate.
    If this check fail then won't allow the user to create billing document. The problem is I used one user exit SDVFX001 already define previously that's work fine but issue is that user exit trigger after the billing no assignment. That's why when user get that error message he correct the document and create billing this time he get a new number which is skip of one no.
    That why I need a User Exit/BADI/Enhancement Point  which trigger at save but before document no assignment.
    Please update more about your comment "Why not use a header level copy requirement routine to perform the checks and log the messages? This is the standard process."  .
    Suggest user exit USEREXIT_FILL_VBRK_VBRP  trigger before save. I need at save the reason is VBRK-FKDAT  this can be change.
    Feel free to contact me back if you need more clarification.
    Regards
    Swati
    Edited by: Swati Namdev on Nov 17, 2010 6:22 PM
    Edited by: Swati Namdev on Nov 17, 2010 6:25 PM
    Edited by: Swati Namdev on Nov 17, 2010 6:32 PM
    Edited by: Swati Namdev on Nov 17, 2010 6:47 PM

  • Disable Item Category Field in Va01using Enhancement Point

    Dear Experts,
    I have a requirement to disable the "Item Category" column in VA01 transaction for certain order types.
    I have tried using MV45AFZZ(USEREXIT_FIELD_MODIFICATION), but it does not help me much as it works only if a material is entered in the table.
    I want the field to be disabled even if no material is entered in the item level table, i.e. during the load of the Overview screen.
    I know we can do this using  Implicit Enhancement Points, but i am not able to get the exact include to implement my code.
    Can anyone please help me in finding the exact location to write my code, so that the "Item Category" column will always be disabled for that order type.
    Thanks,
    Praveen

    Go to the screen where you want to disable the column by using system--> status-(click on screen no).
    Identify the perform  statement in PBO before the table control loop.there try implicit enhancement.
    It will definitely work.
    Thank You <Reward request removed by moderator>
    Edited by: Vinod Kumar on Sep 30, 2011 3:01 PM

  • How to avoid displaying date,time using Enhancement point.

    Hi friends,
    i have to work on the standard report.
    stadard report displays date,time ,reportname on the top of the page. my requirement is not to display date ,time,reportname.
    they have used the following code,
    WRITE text-001 TO m_line+d_offset(4). " Time
    WRITE sy-timlo USING EDIT MASK '__:__:__' TO m_line+d_offset(08).
    WRITE text-002 TO m_line+d_offset(05). " Date
    WRITE sy-datlo DD/MM/YYYY TO m_line+d_offset(10).
    BY using Enhancement point how to achieve my task.
    kindly help me

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    basham,
    You didn't mention which type of DBMS you are using (i.e. Oracle, MS SQL, MySQL, etc), but in a nutshell using MS SQL here is the principle.  Your time that is recorded in the records is dependent upon a setting in your RDBMS.  For instance, the RDBMS can use the machine time (which would most likely be local time), or it can use the machine time with an offset (to accomodate GMT, for instance).  GMT is factored differently based upon your time zone (and time of year, i.e. DST or EST, etc).  I'm on the east coast so right now my offset is GMT - 5, so if my time right now is 1457, then GMT is 1957.  To get SQL to compute an offset you must take the number of hours to offset and divide by 24 (24 hours in a day) and add that to the record in the database.  For instance, to get GMT right now I would use:
    select cast(getdate()5/24. as char(12))rtrim(convert(char(12),getdate()5/24.,8))' GMT'
    Hope this helps.  If you're on Oracle, then the mathematical principles remain the same, just the formatting will be different.

  • User Exit/BADI/Enhancement Point in VF01 after generating new billingdocno.

    Hi Experts,
    I am looking for a user exit/BADI/Enhancement point which will trigger in VF01 after generating  the new document no (Billing document no assign).  The Billing document no is generating in the FM  RV_INVOICE_DOCUMENT_ADD ( NUMBER_GET_NEXT).
    Now the Billing document no is generating like '0000152', i want to concatenate 'ECR' to the generated Billing document no and it should be updated like ECR0000152 in Billing tables (VBRK, VBRP).
    Kindly let me know is there any EXIT/BADI to achieve this functionality.
    Regards,
    Venu

    Hi Venu,,
        These are the enhancements and badis for vf01, please check which will be helpful to you,,
    <exit farm removed by moderator>
    <points begging removed by moderator>
           Warm Regards
            Zulfikhar Ali
    Edited by: Thomas Zloch on Oct 1, 2011 3:57 PM

Maybe you are looking for

  • Bold the hard code value in sap-script

    Hi friends,     Could anyone tell me how to display 1st half of hard code text in bold and 2nd half in unbold of a line of hardcode text ? Pls treat it urgent I will reward for every useful responses. Thx in Adv. Bobby

  • VHD file placement on an iSCSI SAN.

    I am wondering about VHD file placement when creating a virtual machine. I had created my 3 VHD OS files on the SAN itself and then created and added Pass Through disks to the virtual machines once I logged into each vm. Recently I was told that I sh

  • I got os mavericks and i lost my imovie?

    Hi, I had downloaded OS Mavericks 10.9.3 and I was about to make myself a movie.... Except that when I looked in my Launchpad and Finder, I couldn't find iMovie! I looked in the App store to find that the new version cost $15. Does anybody know how I

  • Illustrator doesn't open

    I installed Yosemite but now I can't open my illustrator CS6 I already used before with Mavericks. It tells me to install an old Java SE 6-Runtime-Version. InDesing and Photoshop work fine.

  • Adobe not responding after installing upgrade to Windows 8

    Im having  a problem since upgrading operating system to Windows 8 (pro).  Since the upgrade whenever I use Adobe the system goes extremely slow to launch and sits on not responding for a period of time.  Eventually it will load but am still uanble t