Stop processing user exit

Hi,
I am using EXIT_SAPLCOIH_009 which gets triggerred at the time of saving a work order in IW32. In this exit, I have coded to generate a popup box at the time of saving. If the user presse the cancel button, the control has to go to back to the work order screen rather than saving the work order. Can somebody tell me how i can stop the order from being saved

thanx for the reply
Ihave created a message class z001 and maintained a message(001)
but when i am trying to activate it says
Field "Z001" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement . . . . . . . . . .          
whether i need to include anything  in the program for message class
senthil

Similar Messages

  • VT01n(shipment Processing) User Exit

    hi experts,
    requirement:
    to check the Plate number(VTTK-EXTI1) field if it is maintained in the customize table .
    question: is there any user exit that will check the input PLate number ?
    thanks all.

    Hi
    Check with BAdi BADI_LE_SHIPMENT
    Take a look at the following list ( for VT01N) :
    MV56AINI            Initialization of transaction control for transportation          
    V56AFCCH            Shipment processing: Check function code allowed                  
    V56AGTAR            User Exit for Filtering Shipping Unit Calculation                 
    V56ARCHV            Customer-spec. checks for archiving shipments                     
    V56ATKTX            Change the number of lines for text input in shipment             
    V56BMOD             Transportation processing: Field modification                     
    V56DISTZ            Shipment Processing: Determine Distance                           
    V56FCOPY            Shipment processing: Copy delivery data                           
    V56FSTAT            Shipment processing: Activities when setting a status             
    V56L0001            Status of Shipments for a Delivery                                
    V56LDELI            Read Delivery Data for Shipment Processing                        
    V56LOCID            Shipment Processing: Determine Location Identification            
    V56MVT04            Extensions for Collective Processing of Shipments                 
    V56SLDET            Shipment processing: Leg determination                            
    V56TDLIF            Filter Delivery Items for Shipment                                
    V56UCHCH            Shipment processing: Check whether changes were made              
    V56UCHCO            Check shipments are complete                                      
    V56UDLUP            Obsolete as of 4.6C: Delivery Update on Delivery Routines         
    V56UNUMB            Shipment number allocation                                        
    V56USTAT            User-individual definition of transportation planning status      
    V56USVDO            Update new objects for transport                                  
    V56USVDP            Preparation for updating new objects for transport?    
    <b>Reward points</b>
    Regards

  • Brief about enhancements and user exits

    hai,
    can any  one tell me what are enhancements and user exits in sap sd,
    their  signifcance & configuration
    regards
    sriram

    hi,
    an example of user exit
    In case of Inbound DELINS IDOC (830 type) once there was a requirement of taking the “Target *** Qty required” and the “Target *** Date” for a specific customer who was not sending “*** Qty Received” by him.
    So for that specific customer we used the search term and added the same in the “Data 4” field of the IDOC under segment E1EDK09.
    There was one user exit available in IDOC_INPUT_DELINS_START Function module of SAP. We triggered this logic by the search term of customer and reached the user exit where we had made some code changes. (User Exits are used to make code changes when we are running standard programs or reports or function modules). With this we were able to reach the desired point of calculating “*** Issued” and then find out the difference from “Target *** Qty” and get “*** Qty Received” for the scheduling agreement. We did not copy the standard function module into Z . Instead the same was done using a user exit.
    <b>User exits in SD</b>
    Menu Path:
    SPRO- IMG- SD- System Modification- User Exists. User Exists are available in SD for the following processes:
    • User exits for price determination
    • User exits for partner determination
    • User exits for credit check & risk management
    • User exits in sales:
    o User exits in sales doc processing
    o User exits for contract processing
    o User exits for product allocation processing
    o User exits for availability checking
    o User exits for component supply processing
    o User exits for product selection
    o User exits for billing plan
    • User exits for shipping
    • User exits for transportation
    • User exits for billing
    • User exits for general billing interface
    • User exits for sales support
    • User exits for lists.
    The topic of user exits is a subject that concerns ABAP development & extensive experience in ABAP is required to understand and use the user exits.
    A customer user exit is essentially a function module using a unique naming convention, in which set import and export parameters are defined to limit the data that can be manipulated. This is to protect certain data from being changed. This function module is attached to an enhancement that may contain other function modules. A user exit should only be used if the possibilities for customizing or application-specific user exits are inadequate.
    NEW FIELDS IN PRICING:
    To use a field in pricing, one creates a cond table. This cond table is created using the allowed fields from the field catalog. Should the fields one requires not be included in the list of allowed fields, one can add the fields from the list of available fields. However, one may find that a new field may not be in the list of available fields. For this reason, one must create new fields for pricing. The document & item data in SD is stored in data tables such as VBAK & VBAP (for the order transaction). Many of the fields from these tables are available in the field catalog.
    The field catalog is a structure (KOMG) that consists of 2 tables (KOMK & KOMP). These tables contain the header & item data for pricing respectively. They are called KOM”x” because they are communications structures used to communicate the transaction data with the pricing procedure. Table KOMG contains the field KOMK & KOMP.
    If you require a field that is not in KOMG, it means that it is not in KOMK or KOMP. This means that the field you require cannot be used in pricing because there is no communication of this field from the transaction to the pricing procedure via the communication structures.
    To use a field not defined in the field catalog, you need to add this field to KOMK or KOMP structures, and then write the ABAP code to transfer the data in the field from the transaction tables to the communication structure. Follow these steps:
    Create the field in the KOMK (header data) & KOMP (item data) tables using the standard includes provided for this requirement.
    Write the code in the user exit to read the transaction data & transfer it to the KOM”x” structures.
    Menu Path:
    SPRO- IMG- SD- System Modification- Create New Fields (using the cond tech)- New fields for Pricing.
    Adding the field to KOMK & KOMP:
    This process requires some knowledge of the ABAP dictionary & how to use the ABAP dictionary to create & change fields & tables. If the field is from the header table (for e.g. the order table: VBAK), you will need to add it to the include table KOMKAZ in the table KOMK. If the field is from the item table (for e.g. the order item table: VBAP), you will need to add it to the include table KOMPAZ in table KOMP.
    Let’s say you need to use the ‘base material’ to define a price & the base material is no in the pricing field catalog. The base material is a field on the MMR basic data screen & is defined as MARA-WRKST. Since this relates to the material, it is at the item level, so you would add the field to KOMKAZ include table.
    • When you add a field to these tables, it must start with ‘ZZ’. Therefore, the field you add would be ZZWRKST. In ABAP, when you add the field, use the same domain as in the field in the original table MARA-WRKST.
    • After adding the field, generate the structure KOMP. This field is not available in the field catalog & can be used in condition tables.
    Menu Path:
    SPRO- IMG- SD- System Modification- User Exists. User Exists are available in SD for the following processes:
    • User exits for price determination
    • User exits for partner determination
    • User exits for credit check & risk management
    • User exits in sales:
    o User exits in sales doc processing
    o User exits for contract processing
    o User exits for product allocation processing
    o User exits for availability checking
    o User exits for component supply processing
    o User exits for product selection
    o User exits for billing plan
    • User exits for shipping
    • User exits for transportation
    • User exits for billing
    • User exits for general billing interface
    • User exits for sales support
    • User exits for lists.
    The topic of user exits is a subject that concerns ABAP development & extensive experience in ABAP is required to understand and use the user exits.
    A customer user exit is essentially a function module using a unique naming convention, in which set import and export parameters are defined to limit the data that can be manipulated. This is to protect certain data from being changed. This function module is attached to an enhancement that may contain other function modules. A user exit should only be used if the possibilities for customizing or application-specific user exits are inadequate.
    NEW FIELDS IN PRICING:
    To use a field in pricing, one creates a cond table. This cond table is created using the allowed fields from the field catalog. Should the fields one requires not be included in the list of allowed fields, one can add the fields from the list of available fields. However, one may find that a new field may not be in the list of available fields. For this reason, one must create new fields for pricing. The document & item data in SD is stored in data tables such as VBAK & VBAP (for the order transaction). Many of the fields from these tables are available in the field catalog.
    The field catalog is a structure (KOMG) that consists of 2 tables (KOMK & KOMP). These tables contain the header & item data for pricing respectively. They are called KOM”x” because they are communications structures used to communicate the transaction data with the pricing procedure. Table KOMG contains the field KOMK & KOMP.
    If you require a field that is not in KOMG, it means that it is not in KOMK or KOMP. This means that the field you require cannot be used in pricing because there is no communication of this field from the transaction to the pricing procedure via the communication structures.
    To use a field not defined in the field catalog, you need to add this field to KOMK or KOMP structures, and then write the ABAP code to transfer the data in the field from the transaction tables to the communication structure. Follow these steps:
    Create the field in the KOMK (header data) & KOMP (item data) tables using the standard includes provided for this requirement.
    Write the code in the user exit to read the transaction data & transfer it to the KOM”x” structures.
    Menu Path:
    SPRO- IMG- SD- System Modification- Create New Fields (using the cond tech)- New fields for Pricing.
    Adding the field to KOMK & KOMP:
    This process requires some knowledge of the ABAP dictionary & how to use the ABAP dictionary to create & change fields & tables. If the field is from the header table (for e.g. the order table: VBAK), you will need to add it to the include table KOMKAZ in the table KOMK. If the field is from the item table (for e.g. the order item table: VBAP), you will need to add it to the include table KOMPAZ in table KOMP.
    Let’s say you need to use the ‘base material’ to define a price & the base material is no in the pricing field catalog. The base material is a field on the MMR basic data screen & is defined as MARA-WRKST. Since this relates to the material, it is at the item level, so you would add the field to KOMKAZ include table.
    • When you add a field to these tables, it must start with ‘ZZ’. Therefore, the field you add would be ZZWRKST. In ABAP, when you add the field, use the same domain as in the field in the original table MARA-WRKST.
    • After adding the field, generate the structure KOMP. This field is not available in the field catalog & can be used in condition tables.
    Pl reward if helpful.
    Thanks
    Sadhu Kishore

  • User exit not work in bdc background mode

    i have bdc program for creating sales order. I also use some user-exits.  When i run the program in foreground, user-exit works fine, but in background, the program can't stop in user-exit. Do you have any idea about what kind of problem can cause to this?

    Call transactions with bdc tables in Sales Orders execute the user exit code!  I've never seen user exit code excluded, unless by program code.  What do you mean by "stop" in background.  Of course, you can't make it stop there in background.
    Post relevant code and we'll see what we can tell you.  What does the code do?

  • User exit wanted for transaction FLB1

    Hi,
    I want to do some changes in the program code of transaction FLB1. Can you suggest some user exits for that. I searched for them but didn't get any.
    Thanks in advance.
    Hemant.

    Check the below user exit's:
    FEB00003            Customer exit for Finnish bank statement TITO format     
    FEB00004            Raw data processing, user exit SWIFT MT940               
    FEB00005            Electronic Banking - Account Statement Object Generation 
    FEDI0005            Function exists for EDI-ICODS in FI - Elec.bk stmt/lockbox
    Prakash.

  • Stop standard process in user exit (or badi) for ME21N.

    Hello,
    I have implemented a user exit (and also a BADI) for transaction code ME21N.
    The user exit is executed before saving the purchase order.
    In my user exit, I just check data and if they are wrong, I just want to stop the process displaying an error message.
    So, I've just used  'MESSAGE Exxx(xxxx)'.
    The problem is that the standard process catch the error and treat it in stead of stopping. The standard process treats the error and proposes the user to chose if he(she) wants to continue or to stop (within a popup).
    I just want to stop the process, displaying a error message.
    If someone has a idea about how I can realise that, please let me know.
    Giuseppe,

    Which Exit/Badi did you implement? And Error message should normally stop the process. Maybe you have implemented the wrong exit.

  • Process to find out a USER EXIT/ BADI

    Hi All,
          Can you please help me out with the typical process of finding a user exit and BADI for a particular requirement in the system?
    Win full points for the detailed answer !
    Best Regards,
    Chandan DUbey

    Hi Chandan,
            Below can follow the below steps to find the badi:
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction
    Regards,
    Siva.

  • Stoping process of saving purchase order(ME21/ME21N) in the user exit.

    Hi,
    I am using user exit "EXIT_SAPMM06E_016" of purchase order. While creating PO and after user enters 1st line item or more items and presses save button, then this user exit will be called.
    Now my requirement is I have to check "item delivery date" , if it is more than 300 days from creation date then I have to show popup for warning the user for the same and if user want to make the changes then this user exit should stops the process of saving the PO and returns and allows to change the PO.
    Please help me in this.
    how I can stop the saving process.
    Thanks,
    Deepak

    Hi Deepak,
    You can do it in IM_ITEM method
    DATA: ls_mepoitem TYPE mepoitem.
    ls_mepoitem = im_item->get_data( ).
    if you check ls_mepoitem-quantity field it will give your required value....pls Go through the documentation below for the method
    Documentation for the method
    Processing of Item Data
    Functionality
    The PROCESS_ITEM method enables you to change the item data and check it
    for correctness.
    Parameters
    The following parameters are available:
    o IM_ITEM - Document item
    The interface reference is of the category
    IF_PURCHASE_ORDER_ITEM_MM. You can use all methods defined there.
    Note
    Please note the general hints on Error Handling.
    If you wish to mark the document item as invalid, use the
    INVALIDATE() method of the IF_PURCHASE_ORDER_ITEM_MM interface.
    Regards
    Byju

  • Debug CIF - ECC inbound - User exit CIFORD03 - Planned order to process ord

    Hi
    While Converting planned orders to process orders from APO to ECC, queues are not getting stop in Inbound ECC.. even after setting CIF user as dialog user and maintaining both CIF user and my user ids in /sapapo/c4 to block queues. maintained the same in ECC CIFGPARAMV table.  Outbound queues are stopping in APO, but not able to debug APO outbound queues...
    I want to debug user exit CIFORD03 (EXIT_SAPLCORD_005 ) in ECC . Please reply.
    Thanks
    Sreeni

    Hi Sreeni,
    The setting in /sapapo/c4 against your user ID would be relevant in this case.
    Debugging should be on, and use detailed logging. Also, your RFC user ID should be a dialog user ID or a Service user ID.
    Did you make sure that your user ID and the RFC user ID 'in R/3 for APO' have sufficient debug authorizations (including queue debug authorizations)?
    (You can find out the RFC user in SM59 in APO against the RFC connection that you have for R/3. )
    You should then see a queue stuck in R/3 inbound, where you could enter in debug mode.
    If you go to SMQR in R/3, and see a queue called CF, then it's also possible to deregister this CF queue, and then queues will get stuck in R/3 inbound. You could then use this queue for debug if you have sufficient debug authorizations including queue debug.
    Thanks - Pawan
    Edited by: Pawan Pathak on Feb 16, 2012 1:32 PM

  • User Exit at process order release or save

    Dear experts,
    Can any one help me which user exit will be useful at the time of process order release or save (t code COR1/COR2).
    My requirement is to stop the process order release if there is any maintenance order is already released on that date.
    Process order should not get released in between the start and finish date of PM order for the same equipment.
    I could acheive this for PM side by using a user exit IWO10002, here if any process order is released for an equipment PM order cannot be released for the same equipment in between start n finish date of the process order.
    Please help me out in finding the user exit for process order release / save.
    Thanks in advence,
    Regards,
    Praveen.

    Hi,
    The following enhancements are available for process order management:
    For order maintenance:
    o   PPCO0006 to predefine entries for order header fields when creating
        an order
    o   PPCO0001 to provide information at the time of saving (for
        production orders and process orders)
    o   PPCO0007 to check or change header data when saving
    o   PPCO0002 to add additional checks that are to take place when
        setting the deletion flag or deletion indicator
    o   PPCO0003 to prevent changes in sales order items that would cause
        changes in the process order for static assembly processing
    o   STATTEXT to format the status line
    o   PPCO0008 to check components that have been changed or added
    o   PPCO0005 to change the storage location and the 'backflush'
        indicator in the reservation
    o   PPCO0013 to change the priority of the selection criteria for batch
        determination in production orders or process orders
    o   PPCO0014 to restrict the selection of process orders that are
        offered when creating external relationships
    o   PPCO0020 to display additional information for another tab page in
        the process order header
    Regards,
    Dhaval

  • User Exit/ Enahancement/BADI in the sales order creation process

    Hi,
    We have an EDI  process for creating a sales order, we want to change one of the partners on some of the lines according to the document type,
    We know how to do it using the MV45AFZZ user exits but we want to do it using a BADI or an Enhancement,
    Can anyone help us find a User Exit/ Enahancement/BADI ?
    Thanks,
    Mickey

    Hi,
    Thanks for the quick  answer,
    i created an implementation for this BADI and put a break point there but it didnt stop there,
    i also tried a break point on FM "SXV_GET_CLIF_BY_NAME" to see if this BADI is on the list but i didnt find it,
    i tried creating the sales order via VA01 and via the IDOC process,
    Thanks,
    Mickey

  • Process to find user exit for transactions /sapapo/snptlb or /sapapo/sdp94

    Hi All,
         Can you help me out with the approach to find out user exits for transactions /sapapo/snptlb or /sapapo/sdp94?
    What I am looking for is the approach, i mean how to proceed with?
    Win full points for detailed answer !!
    Thanks a lot - Chandan

    Hi Chandan - this is the same as in any module of SAP:
    1) check SPRO
    If nothing is found then do the following:
    1) Goto SE24 and display class cl_exithandler
    2) Enter method GET_INSTANCE and create a break point at Line 25 (CASE sy-subrc)
    3) Execute SAP standard transaction and invoke the process for which you need to create custom coding
    4) Your break point will stop the process in debug mode - check the values of variable 'exit_name', it will contian the name of the BADI currently being executed.
    5) Continue to debug by pressing F8 to see other BADI's
    6) Repeat steps 3 thru 5 for each process that you want to find a BADI for
    Regards
    Andy

  • User Exit to stop the creation of PO

    Dear All,
    I have a typical problem , we have 2 servers both running on ECC 6.0.
    I tried creating a PO and I kept a break point in the exit EXIT_SAPMM06E_013 (INCLUDE ZXM06U44 ) in server1 and the control stops here and I can check all the values from the table EKKO .
    I implemented my user exit in server 2 in the same exit EXIT_SAPMM06E_013 (INCLUDE ZXM06U44 ) , when I tried to debug , I was suprised to see that the control never comes in this FM EXIT_SAPMM06E_013 , but server 1 and server 2 are both ECC6.0
    Is there any customization which I had to check from my end , so that the control can go through this user exit.
    Even if I don't implement this user exit , shouldn't the flow be going the way it was in server 1 ( I mean control going through EXIT_SAPMM06E_013 (INCLUDE ZXM06U44 ) Kindly advise..
    Best Regards,
    Srinivas Gummadi.

    Hi Srinivas,
    You need to create a project in CMOD and assign the enhancement to the project.
    The project should be activated otherwise the user exit will not be triggered.
    Regards,
    Vinod

  • User Exit/BADI to modify MCHA-HSDAT while saving a process order

    Dear all,
    I would like to know if there are any user-exits or BADI's to modify MCHA-HSDAT field, while saving process order.
    Scenario: There are two material types ZBUL and ZFDF. After releasing the process order and when I save, an entry in MCHA table for material with material type ZFDF is created.I should make a check if MCHA-HSDAT of this ZFDF material is equal to MCHA-HSDAT of ZBUL.
    If not, I should replace MCHA-HSDAT of ZFDF material with the HSDAT of ZBUL material.
    I have checked user exits 'PPCO0007' and PPCO0014 and PPCO0020 but I could not find MCHA structure to update.
    Do, I need to create an implicit enhancement for this?
    Thanks in advance!
    Aravind

    Aravind,
    Do the following steps in order to find the best exit for you.
    for e.g. using enhancemnt PPCO0020 FM EXIT_SAPLCOKO_005. Use the "Where used list" to get the point where this FM has been called. So in this case you can use "(SAPLCOKO)MCHA" as field symbol.
    Any question, let me know.
    Alex

  • User Exit or BADI for Blocking process orders from R/3 to APO?

    Dear Experts,
    I am looking for a user exit or badi to block the process orders from R/3 to APO. As per standard it is not transferring orders which are clsd(closed status). Means that it is not updating live cache but its reading from R3.
    We are facing some problems in cif queues which are not correctly maintained in R3 side. We dont want to touch those orders bcoz its very old data which is not required for planning.
    There will be huge data which needs to be deleted while transferring through cif.
    Please give any user exit (outbound intial transfer) from R/3.
    Or any sugg. I apprecite your inputs...
    Thanks
    Cris

    Hi Cris,
    You can use user exit APOCF004 - Inbound Processing: Production Order/Planned Order in APO to prevent orders coming to APO by deleting orders which are not intended to goto APO from internal tables IT_ORD and IT_OUT.
    Hope this helps.
    Best Regards,
    Ramesh M

Maybe you are looking for

  • Apple Mail : Move emails from one account to another

    Good Day, I please need help with Apple Mail. A client of mine recently changed her email address from her webhost to online exchange. I setup her new email in Apple Mail and that is all working and nice. Her Apple mail now shows 2 accounts: - the ol

  • How to add a custom field to Ship-to address screen

    Hi all, I have to add a custom field for Plant in the Ship-To address subscreen(BBPSC01). I have added the field in the program saplbbp_sc_ui_its in screen 310. But I think need to write the HTML code/Java script in HTML template to trigger the code

  • How can i switch account from U.S. store in Romania store?

    How can i switch account from U.S. store in Romania store?

  • Webservice to JDBC to SAP System to webservice using BPM

    Hi Frnz My requirement is i need to get data from webservice....... and i need to push that data to some Database... and the response from the Database to SAP system......and from that SAP system  the respone should come to the Webservie which is the

  • JSTL in WL 9

    I'm trying to run a web app (WAR) in WL 9. I'm trying to use JSTL tags, so I have the following directives at the top on the JSP page: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"