Trouble hitting breakpoint in User Exit Include

Greetings,
I am having a problem where I cannot get a transaction to stop at a breakpoint that I have set in a user exit include program (<b>ZXEDFU02</b> starting from transaction <b>VF04</b>) and I cannot figure out why.  I am sure that the exit code is being executed because of the results, and if I put a syntax error in this include and activate and execute, i receive a short dump at the syntax error - evidence that the program is in the include code. 
I have even tried switching on system and update debugging just to be sure, but no matter what I cannot hit this exit.  The exit for those unfamiliar allows the addition of additional data to segments of the INVOICE02 IDOC in SD.
Thank you in advance for any help you can provide.
Geoff

Hi Geoff,
The problem most probably lies with the fact that in default mode VF04 does not perform the update logic synchronously (for performance reasons).  The only thing that is performed synchronously is the selection of the data, the bundling of the data into work packets, and the submission of these work packets for execution. 
Thus, you do not hit your break point for debugging (the actual code gets executed either in a background or update work process).  You will, however, get short dumps if the synchronous section of the program uses any function module in the function group in which you have introduced syntax errors (hence how you can get short dumps but still not stop at the break point).
The way to solve this is right down the bottom of the VF04 transaction you have an option for Update:
Asynchronous
Synchronous via VB log
Synchronous w/o VB log
By default it is set to the first option.  If you choose either option 2 or 3, you should then run the update logic synchronously and stop at your breakpoint.
If this still doesn't work, you have still another thing to try.  Before hitting execute, put in /H at the okcode.  When you hit execute it will throw you into debug mode.  Hit the settings button (far right) and flag the option 'In background task: do not process', and then continue.  Any background processes started will be thrown up into another session in debug mode.  Go to this other session and hit continue.  You SHOULD stop at your breakpoint if it is being processed as a background job.
If this still doesn't work then you have some options for update debugging.  Let me know and I'll see if I can help.
Cheers,
Brad

Similar Messages

  • User Exit - Include for delivery document?

    Can anyone please tell me the user exit / include details that control creation / mofiication of outbound delivery document
    I need to figure out a solution to create a split delivery if the country of origin of material is different in the stock
    Say, if the SD order line item requires 76 units, and the stock has 50 units from one country and 26 from another, then it should result in split deliveries - each with line item of a unique country of origin

    SM,
    If the origin country is different (say US for line item 1 for Qty 75, and GB for line item 2, qty 25 wouldn't you have different plants & shipping points for each line item?
    Scenario: At the time the sales order is created, there are 100 on a single line all for the same country (because as you say, it is not known during Order create). Then, when it comes time to create the delivery, you know that 75 come from US and 25 from GB. So, reduce qty on line item to 75 (US plant & Shipping Point), and create a new line item for 25 (GB Plant & shipping point). Then, your copy routines from Sales Order to Delivery would force you to split between different deliveries.
    A sales order can have different shipping points - one for each line, but the delivery holds the shipping point at the header, so you cannot mix them.

  • User-exit include

    Hi
    when i double click on user-exit include following message is coming but not able to go inside the include
    message "Program names ZX... are reserved for includes of exit function groups"
    thanks,
    Anji

    The idea is, in the FM, when you double-click on the include....
    if it exists, it will directly navigate into the include.
    If the include doesnt exist, it throws up the warning-message you mentioned, and then proceeds to ask if you want to create the include.

  • ATC not checking code in user exit includes

    Dear Friends,
    I'm not sure if you have faced this issue, but I have not found anyone or any post or any document or any OSS note talking about it.
    I've recently have realized than when using ATC for checking the custom code of an Z include it was finding cero errors when it was actually full of them.
    In fact using code inspector, the errors where found. It was not an issue of using a different variant, this was checked, CI and ATC are using the same,
    The issue itself was clear: When the ATC checks a parent object its checks the code of its includes. If you try to check an include directly with ATC, it is ignored with message "No checks are available for the objects types", giving the chance to "add master program" so it will be checked when the master program is checked with all its includes. Last, ATC neither Code Inspector checks custom code.
    The end result is that when trying to check the code in a user exit include with ATC it does not find any error.
    I can think about encapsulating the code found in a user exits but this is a titanic task.
    The main problem is that the jobs for getting in CCLM the quality required massive ATC runs that will not catch the errors in these kind of objects.
    Have you face this issue? do you have any recommendation?
    I would like your opinion before raising this as customer message, as from my point of this this may require a SAP correction.
    Thanks
    Aubin

    Hello Aubin,
    to be perfectely honest I have not started with the indeep analysis yet. One reason is that the behaviour regarding exit techniques has got improoved recently so it is important to do the analysis on a SP level close / identical to yours.
    If I am not mistaken CMOD function exits yield into 2 TADIR keys:
    - 'R3TR' 'FUGX' .... - referring to the definition of the function group - typically provided by SAP - residing in a SAP package
    - 'R3TR' 'FUGS' .... - referring to the implementation - typically custom code - residing in a Z-Package
    My initial assumpution was that mapping partobjects always return FUGX but shall return FUGS. And also I was assuming the custom package shall contain the 'FUGS' implementation which shall enable checking out of the box.
    But it seems these assumptions are not valid. I am not sure wether I would be able to analyse this issue this week. In any case I will update this thread as soon as the analysis has been done.
    Best Regards
      Klaus

  • How to find all the user exits includes ,

    Hi All ,
    I need to find all the includes which are created for purpose of implementing user exits , I know they all start with ZX* but where to get the list .
    THank you all
    Vinay Kolla

    Hi Vinay....
    Just excute following program in your ABAP Edter....
    ( Input parameters: T'CODE and User exit type.)
    >TABLES: MODSAP, MODACT, TSTC.
    >
    >PARAMETERS: INPUT1 LIKE TSTC-TCODE DEFAULT ' ',
    >           INPUT2 LIKE MODSAP-TYP DEFAULT ' '.
    >
    >DATA: SEARCH1(6),
    >      SEARCH2(3),
    >      SEARCH3 LIKE MODSAP-MEMBER.
    >DATA : FIRST_ROW VALUE 'Y'.
    >
    >CONCATENATE: '%' INPUT1 '%' INTO SEARCH1,
    >             '%' INPUT2     INTO SEARCH2.
    >
    >SELECT * FROM TSTC WHERE TCODE LIKE SEARCH1.
    >  FIRST_ROW = 'Y'.
    >  CHECK TSTC-PGMNA NE SPACE.
    >  CONCATENATE '%' TSTC-PGMNA '%' INTO SEARCH3.
    >  SELECT * FROM MODSAP WHERE TYP LIKE SEARCH2
    >                       AND MEMBER LIKE SEARCH3.
    >    SELECT SINGLE * FROM MODACT WHERE MEMBER = MODSAP-NAME.
    >    IF FIRST_ROW EQ 'Y'.
    >      WRITE: /0 TSTC-TCODE, 6 TSTC-PGMNA, 16 MODSAP-NAME, 32 MODSAP-TYP,
    >                                       45 MODSAP-MEMBER, 70 MODACT-NAME.
    >      FIRST_ROW = 'N'.
    >    ELSE.
    >WRITE: /16 MODSAP-NAME, 32 MODSAP-TYP, 45 MODSAP-MEMBER, 70 MODACT-NAME.
    >    ENDIF.
    >    CLEAR : MODSAP, MODACT.
    >  ENDSELECT.
    >  IF SY-SUBRC NE 0.
    >    WRITE : /0 TSTC-TCODE, 6 TSTC-PGMNA, 30 'No exits found'.
    >  ENDIF.
    >  CLEAR TSTC.
    >ENDSELECT.
    >
    >END-OF-SELECTION.
    >  CLEAR: SEARCH1, SEARCH2, SEARCH3.
    Thanks,
    Naveen Inuganti.

  • User Exit---Include problem

    Hi all
    am creating a user exit ZFF67 and in the the enhancement assignment am giving as F40K0001.But when i go back and after saving and activating am going to the function module and there in the source code am double clicking on   INCLUDE ZXF40U01 but am getting a warning meessage
    Program names ZX... are reserved for includes of exit function group.Am getting the same error even if am trying to create some other user exit.If its a BASIS issue and if you know the solution.Please do help me
    with regards
    Vijay.

    Hi
    Press ENTER..
    That should be only warning: the system are saying to you you're creating an abap object reserved for enhancement, but it's what you have to do.
    The system can't know you want to create an include for an exit, because you're in abap editor while doing the doubleclick.
    So you can go on.
    Regards
    Kiran Sure
    *P.S--Close the Duplicate Postings..

  • F110 User Exit: Include ZXTDAU01

    Before a refresh I added code to the Include mentioned.However, I cannot find the User Exit in SMOD to activate the code in CMOD. I know to run the Find User exit utility for F110, but I do not see this user Exit listed. Is there a way, table?, I can find the User Exit I re-coded EXIT_SAPMFDTA_001(ZXTDAU01), in a table that would link me to the SMOD or other data so I can activate the User Exit?
       Thank-You.

    go to t-code Se15-->expand the enhacement tab-->enter userexit                
                                 (EXIT_SAPMFDTA_001) or Include ZXTDAU01 ..under exit name and
                               execute you will get the list of Implementataions...
    All the User exits are stored in Table MODSAP..
    Prabhudas

  • IS_U_METER_READING_DOWNLOAD  --- User Exit Include

    Hi,
    i have copied the IS_U_METER_READING_DOWNLOAD into ZIS_U_METER_READING_DOWNLOAD.
    Here i want to write some logic on User Exit. But How to find User Exit in IS_U_METER_READING_DOWNLOAD?
    Please give me way how to find the User Exit for any application form in EFRM Transaction.
    Regards
    Balu

    Hi,
    You can add user exit to any of the nodes in Hierarchy.
    There are maximum of three user exit, that you can add to any node.
    1. Before Exit
    2. During Exit
    3. After Exit
    Just double click on any node in hierarchy in which you want to add the user exit. For the window, you will be provided with the option to add the user exit.
    Define the exit you want to add and save it. Automatically, the exit will be added for the code logic, in the main include defined in the Attributes of the application form. (If not defined, please create the include and add it in the attribute).
    Use of User Exit -
    1. Exit Before Loop is called only once per entire execution, before processing of form level.  It can be used for making additional selection and pre sorting arrangement.
    2. Exit During loop is called once for each line item. (It is called in loop).
    3. Exit After Loop is also called only once at the end of processiong of form level.

  • Incorrect nesting error in user exit include

    Hi,
    In one of my requirement I had to add an additional screen using EXIT_SAPMM06E_016, this Function module exists in XM06 Function group, this exit holds an include ZXM06U41.
    This function group holds screens, so when I implement a screen and create the PBO module in this particular include, it by default includes
    MODULE STATUS_XXX OUTPUT.
    ENDMODULE.
    When i check this include it says:
    Incorrect nesting: Before the statement "MODULE", the structure introduced by "FUNCTION" must be concluded with "ENDFUNCTION".
    I have no clue where the open function is?
    Your help will be very much appreciated.
    Please help.
    Thanks,
    -Sandeep

    You cannot define a screen module in a function module code.
    Refer to available documentation how to properly implement enhancements of this kind. Enhancement name is MM06E005 (in SMOD). Screen definitions and the corresponding modules will happen in function group XM06, not in the exit function module.
    Edit: To elaborate, your PBO module will go into include ZXM06ZZZ, or better yet, into new include ZXM06O01 which should be part of ZXM06ZZZ (just to keep the usual naming convention).
    Edited by: Tamas Hoznek on Feb 28, 2012 2:51 PM

  • How to work with user-exit include?

    Hi,
    I want to change the field 'No of packages' (LIKP-ANZPK) in VL02N.
    I have a func module EXIT_SAPLV50R_001 with an include ZXV50U08, when I double click it's not creating but it says 'Program names ZX... are reserved for includes of exit function groups'.
    What should I do?
    Thanks!
    Tarick.

    Hi,
    Its just a warning message. Just click enter. It will go inside the FM
    Cheers,
    Kothand

  • User Exit :Include ZXDEU02

    Hello everyone ,
    Can anyone please give me the logic or code to write in this include to populate VBAP.PRODH into ORDERS05 E1EDP19 segment please. with qualifier 999
    thanks in advance

    Thank you

  • Include with form in user-exit

    Hello everyone,
    I am trying to put an include which contains a form routine into a user-exit include . My include source activates normally by itself but when i try to activate the user-exit include which contains my custom include i am getting the error " Incorrect nesting: Before the statement "FORM", the structure introduced by "FUNCTION' must be concluded by "ENDFUNCTION"  "
    Any ideas on how i can fix that?
    Regards,
    Huseyin

    Hi Huseyin,
    userexits are done by filling an include which itself is source code of the function module. If you want to do some structurized programming, you should copy the EXIT function to customer name space and to your own function group. Then, in  the include, you call your own function passing exactly the parameters of the EXIT function.
    Then you are free to create includes, forms, data, objects,... whatever you want to achieve structured functionality.
    Sample code:
    *& Include.: ZXTRKU12                                                  *
    * new functionality sourced out to new function module
      call function 'Z_EXIT_SAPLV55K_004'
        importing
          processing_protocol = processing_protocol
        tables
          idoc_data           = idoc_data
        changing
          idoc_control        = idoc_control
        exceptions
          idoc_error          = 1
          do_not_process_idoc = 2
          others              = 3.
      case sy-subrc .
        when 0.
          exit.
        when 1.
          raise idoc_error.
        when others.
    * Can't raise OTHERS -> 2 AND Others handled in common
          raise do_not_process_idoc.
      endcase.
    Here we created a new function group ZXTRK for the exit function group XTRK. We copied function EXIT_SAPLV55K_004 to function z_exit_saplv55k_004. In our case, we created 22 form includes and one top include because our programming guidelines require an include for each form.
    The rest shoud be crystal-clear. If not, feel fre to ask for details.
    Regards,
    Clemens

  • VL02N user exit

    Hi guys
    I need to debug a workflow. When I hit PGI on VL02N on an outbound delivery, there is a certain Z Fm i need to go to in the debug mode, when I set the breakpoint there using the set breakpoint at facility of the new ecc6 debugger it shows me as breakpoint set, but wen I hit f8 to go there it dosent take me there. Can some one tell me the popular user exits includes used here?
    Rgds
    Sameer

    Transaction Code - VL02N                    Change Outbound Delivery
    Exit Name           Description
    V02V0001            Sales area determination for stock transport order
    V02V0002            User exit for storage location determination
    V02V0003            User exit for gate + matl staging area determination (headr)
    V02V0004            User Exit for Staging Area Determination (Item)
    V50PSTAT            Delivery: Item Status Calculation
    V50Q0001            Delivery Monitor: User Exits for Filling Display Fields
    V50R0001            Collective processing for delivery creation
    V50R0002            Collective processing for delivery creation
    V50R0004            Calculation of Stock for POs for Shipping Due Date List
    V50S0001            User Exits for Delivery Processing
    V53C0001            Rough workload calculation in time per item
    V53C0002            W&S: RWE enhancement - shipping material type/time slot
    V53W0001            User exits for creating picking waves
    VMDE0001            Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002            Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003            Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004            Shipping Interface: Message SDPACK (Packing, Inbound)
    No of Exits:         17
    Rewards if useful.............
    Minal

  • User exit not being called

    Hi,
    We have implemented user exit EXIT_SAPLMRMH_015, include ZXM08U26.
    Problem 1:
    When we tested in development system by processing a Idoc in debug, mode this user exit got called and the code in the user exit (include ZXM08U26) was executed.
    Now we moved our changes to the quality system. Again we tested in quality by processing a idoc in debug mode. The user exit is getting called, but the code is not getting executed ( its not going inside include ZXM08U26). Why?
    Problem 2:
    In quality when I try to put break points in include ZXM08U26, a message pops up saying "The position of a breakpoint could not be ascertained". Why cant I put breakpoints?
    The project (in CMOD) and the include (ZXM08U26) are all active in quality.
    Thanks in advance.
    Mick

    When you create/change a project, you must create a correction. This correction contains only the attributes and the SAP enhancements associated with a project, as well as a program that is automatically started with the transport and activates the project in the target system.  Since activating a project affects all components, you should transport all components associated with a project at the same time, in other words with the same transport request. To ensure that the project is activated automatically in the target system, the correction that contains the program concerned must also be in the same transport request. If this is not the case, or the project has not been activated in the target system for other reaons, you can also activate it by manually starting the program (RSMODACT).

  • How to find out appropriate user exit

    Hi,
    I want to know how to find out the user exit that matches to the requirement. Suppose for a material master program, there are so many include programs hence im unable to find call custer-function and even unable to debug an appropriate include. Please help me out how to learn user exits in a rightious way.
    Thanks
    Basu

    Look for program SAPICSS_ in your system and run it. This program can also be found under CMOD menu:  Utilities -> SAP enhancements.
    This will only give you the CMOD user exits.
    There is a program someone made that searches for all sorts of user-exits (including BADI's etc.). I remember that it was posted on sapfans.com
    Edited by: Maen Anachronos on Apr 6, 2009 3:22 PM

Maybe you are looking for

  • Netbean 5.5.1 + VWP is too slow when big project.

    I have a project contains around 180(up) pages. This project is upgraded from Createor2 to Netbeans 5.5.1+VWP. In Creator2, It's very hard to maintain this project, waste much time in waiting. I heard many people say VWP is better then Creator2. In V

  • Best solutions for my imac?

    Ok so, recently my imac has been messing about. its decided it doesnt want to read any discs at all. Luckily, i had to have it sent into apple due to the recall of the seagate harddrives, and so i asked them to check my disc drive for me, to see if i

  • Data Validation in OBIA

    Hi, We have sucessfully loaded the data.Now we need to validate the EBS data with Mart.How can we do this? Thanks

  • Dw8 and dw CS3

    hi everyone! i d like to ask you if the dreamweaver 8 and dw cs3 are different versions. i ve already installed dw8 on my computer. i d like to download and print the documentation for dw8 but i only find the dw cs3 documentation here. do you know wh

  • App World 4.0

    After updating my Curve 9300 with BB App World, my phone doesnt show the App World icon in apps folder. can someone help.