User exit work with small example

will someone show how to make user exit work with small example and sceenshot? i do not want legthy explanation /hard examples,only a stepwise example.
points will get reward
email:[email protected]

Go to transaction CMOD
Create a project called ZVA01
Choose the Enhancement assign radio button and press the Change button
In the first column enter V45A0002 Predefine sold-to party in sales document . Note that an
enhancement can only be used i 1 project. If the enhancement is allready in use, and error message
will be displayed
Press Save
Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002.
Double click on the exit.
Now the function module is displayed. Double click on include ZXVVAU04 in the function module
Insert the following code into the include: E_KUNNR = '2155'.
Activate the include program. Go back to CMOD and activate the project.
Goto transaction VA01 and craete a salesorder. Note that Sold-to-party now automatically is "2155"

Similar Messages

  • Explain User exit concept with simple example

    Hi friends
    I am new member of this forum & i am learning ABAP.
    Kindly send me user exit concept with simple example to my mail ID so i can able to use it.
    mail ID  [email protected]
    thanks in advance
    Thanks & Regards

    Code SE18 is used to Identify the BADI available.
    Look for the string 'CL_EXITHANDLER' in the standard program. This is a class which has a method 'GET_INSTANCE' which is used to trigger BADI's from the Standard Program. The interface parameter for this static method 'EXIT_NAME' is used to pass the BADI to the method.
    Open Standard Program and do a global search 'CL_EXITHANDLER'.
    SE18 > give the BADI name found through above search.
    CUSTOMER_ADD_DATA > which has a method SAVE_DATA.
    T.Code SE19 is used to Implement BADI.
    SE19 > give the implementation name > Give the Definition name as CUSTOMER_ADD_DATA and the Short Text.
    Intro.....
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    Check these links for info about badi..
    BADI's
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    BADI's
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    http://www.esnips.com/web/BAdI
    http://www.allsaplinks.com/badi.html
    New to Badi
    check any fo the below links. this will def help u.
    http://www.allsaplinks.com/badi.html
    And also download this file....
    http://www.savefile.com/files.php?fid=8913854
    There are other tutorials on this site...
    http://sapbrain.com/Tutorials/tuto_download.html
    What are BAdIs?
    -> is an anticipated point of extension – these points act like sockets and exist in the original source code
    -> based on ABAP Objects. BAdI defines an interface that can be implemented by BAdI-implementations that are transport objects of their own
    ->Important! There are 2 roles: Enhancement Option-provider & Implementer.
    -> In the above context, Enhancement Implementation can be done only if option (hook) is provided by the Option-provider. In simple words there are no implicit BAdIs.
    Note: In the following slides, Definitions are created so as to understand the method of BAdI definition & for example purpose. As stated above this is the role of Enhancement Option-Provider.
    Classic BAdIs already exist since SAP Release 4.6
    BAdIs have been Re-implemented in ECC7.0 under the new Enhancement Framework & Switch Framework
    Classic BAdIs
    To understand what a powerful pattern a BAdI is, we will now define & then implement a BAdI
    BADI Class is created automatically.
    The various options are described below in detail:
    1. Enhanceable: Enhanceability of filter types can only be specified for filter-dependent BADI definitions under very special conditions. For example, the domain belonging to the filter type must be linked with a value table that is of the type E or G. A BADI implementation can then be created in one step by creating a new filter value that is automatically entered into the value table at save and also copied into the transport order of the BADI implementation. In addition, it is also possible to create a new filter value and, at the same time, a BADI implementation with the same name. Naturally, you can also specify existing filter values.
    You should select this feature if there is a prerequisite that a new filter value is created together with a new BADI implementation - that is, that BADI implementations are not created solely with existing filter values, although this, too, is possible.
    2. Multiple-Use
    3. Filter-Dependent
    Instance Methods can access all of the attributes of a class and can trigger all events of a class. Static Methods can only access static attributes and static events.
    Exceptions:
    Events:
    Events can be defined in classes or in interfaces. Corresponding methods can trigger these events with the RAISE EVENT statement. Each class (or interface) that is going to handle the corresponding event must implement a relevant handler method, and register it using the SET HANDLER statement. When an event occurs, the system calls all of the handler methods registered for that event.
    Like method definitions, events have a parameter interface. The only difference is that events may only have EXPORTING parameters.
    BADI : Businees Add IN's
    Business Add-Ins are SAP enhancement technique based on ABAP Objects.
    Where the SAP standard program is not going to fullfill the client requirement , we are going to add our own program to SAP standard program, without changing the standard prog.
    Each Business Add-In has
    – at least one Business Add-In definition
    – a Business Add-In interface
    – a Business Add-In class that implements the interface
    Each BADI has two different Views.
    1.Definition view
    2.Implementation view
    T.C for BADI Definition is SE18.
    T.C for BADI Implementation is SE19.
    There are multiple ways of searching for BADI.
    • Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    Set flag field "Buffer trace"
    Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
    Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
    Push the button "Deactivate Trace".
    Push the button "Display Trace".
    The popup screen "Set Restrictions for Displaying Trace" appears.
    Now, filter the trace on Objects:
    • V_EXT_IMP
    • V_EXT_ACT
    Push button "Multiple selections" button behind field Objects
    Fill: V_EXT_IMP and V_EXT_ACT
    All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
    So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    Go to TCode: SE84->Enhancements->Business Add-inns->Definition
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    Have a look at http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    How to develop BADI
    Rewards if useful.

  • Map the user exit variables with the queries/cubes using them

    Hello Friends,
    What are the post unicode conversion tests that you can perform on front end/existing queries?
    is there any added advantage for queries due to unicode?
    is testing the working of variable  enough? is there any table to map the user exit variables with the queries/cubes using them?
    Thanks
    Tanya

    Guys, any clue about this? Answer are appreciated.
    Thanks
    Tanya

  • Populate user exit Variable with User Authorizations using ABAP?

    Hi, Does anyone know of a way to populate a user exit variable (with ABAP) with the Authorization Values for a user running a report?  I am turning off authorizations for our InfoProvider using RSSM and want to populate a variable instead and use the variable as a filter.

    Hi Kenneth ,
    You need dynamic authorization in your report .This can be done at query runtime by using exit variable and writing cmod code for the same .
    This code will read authorization maintained at runtime of query in i_step = 1 and will pass input var values accordingly .
    For step by step information you can access this document .
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0f9f33c-0f17-2d10-d3a2-ae52ccd00780?quicklink=index&overridelayout=true
    Hope this will be helpful .
    Regards,
    Jaya Tiwari

  • Need info regd User exits use with examples

    Hi!
    I'm SD consultant and I need some user exits info along with some examples. They are as follows
    USEREXIT_FIELD_MODiFICATION
    USEREXIT_MOVE_FIELD_TO_VBAK
    USEREXIT_MOVE_FIELD_TO_VBAP
    USEREXIT_PRICING_PREPARE_TKOMK
    USEREXIT_ACCOUNT_PREP_KOMPCV
    USEREXIT_FILL_VBRK_VBRP
    Thank you in advance

    Hi,
    Please check this link
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/automatically-populating-the-sales-order-field-in-va01-1623468
    http://help.sap.com/saphelp_40b/helpdata/pt/ff/f52c7dd435d1118b3f0060b03ca329/content.htm
    http://help.sap.com/saphelp_46c/helpdata/en/08/f62c7dd435d1118b3f0060b03ca329/content.htm
    Best regards,
    raam

  • CIF user exit works for Integration Model only when we De-Activate

    Hi Friends,
    I have enhanced the CIF User Exit [EXIT_SAPLMEAP_001] and populated the code in Include ZXCIFU14 for calculating the value of Open Order Quantities[OOQ] with respect to Material, Plant and Contracts, PO's then It transfer the OOQ from R/3 to APO.
    Here it is Triggering the User Exit and working fine only when we De-Actrivate and Activate the Integration Model thru CFM3.
    But In case of PO changes it is automatically calling the User Exit and Trasfer the OOQ from R/3 to APO.
    When we change the Master Data it is not triggering the User Exit Automatically.
    Could you someone suggest why we required to De-Activate the User Exit when we run the Integration Model every time.
    Please suggest if we need to follow any pre required steps and why this behaviour for User Exit [EXIT_SAPLMEAP_001].
    Waiting for your answer......Thanks in advance.......
    Regards,
    M N Kumar

    Hello,
    Could you please provide details about the master data you mentioned in your query. This exit is called for PO, PR ,confirmation, shipping notificatoin objects.
    Rgs- Vikas

  • Can User Exit works for Settlement Rule in Maintenance Order creation?

    Dear Experts,
    I have this situation where I tried to create an Internal Maintenance Order via IW31 for multiple equipments from different functional location (different cost centers) using the Object List.  However, the settlement rule has a problem to pull out as there's no Equipment in the reference object. That's the reason, I'm looking at the User Exit which I understand the IWO10027, can do the work.  Since I'm new to User Exit, can I enhance the settlement rule by the following condition.
    The costs spent on each equipment will be used as a basis of calculating the weightage (via equivalence no) for the settlement rule.
    Can it be done that way?
    regards,
    Abraham

    Sanjay,
    This data can be checked in the following user-exits:
    COZF0001: Change purchase req. for externally processed operation
    COZF0002: Change purchase req. for externally procured component
    PeteA

  • Mac mini late 2012 not working with small VGA monitor

    I got a mac mini (late 2012 10.8.4 all updates installed) and it is working fine with samsung b2230 via VGA adapter. There is a small VGA monitor (PL8006 max at 1024*768) which works fine when connected  to a PC.
    When I connect the small VGA monitor to mac mini it is not displaying anything (monitor shows blue screen with letters VGA so I assue it is not getting any signal). Mac's resolution is set to 1024*768 with 60Hz (even tried with 800*600 without any success). Monitor is also not working with win 7 installed in mac mini using bootcamp.
    Any thoughts?

    i just found that when the VGA cable of the small monitor is slightly inserted into the VGA adaptor it works fine (this is not usable because there is no way to keep the pins at that level) and when the pins inserted fully / moved little it is not working. Since this happens only between these two devices can't find which one is faulty.

  • KDE4.X - Does it work with small res?

    Hello,
    Installing Arch on a friends laptop. He has a laptop with 1280x800. How well does this resolution work with KDE4.2? Or do the icons and menus not "fit" well?
    Thanks.
    -Ghosty

    toasty_ghosty wrote:
    Hello,
    Installing Arch on a friends laptop. He has a laptop with 1280x800. How well does this resolution work with KDE4.2? Or do the icons and menus not "fit" well?
    Thanks.
    -Ghosty
    Since when is it a small resolution ? No problem at all.

  • User exit vriable with several values

    Hi,
    I need to use a user exit defined variable containing several values; as of now I have only used single values and plain ranges... any tips on which values to assign to the E_T_RANGE table line ?
    many thanks

    Hi Thibault,
       You can do this as multiple single values.
    Create an internal table and fill with required values. Loop from this internal table and append values one by one as multiple single values into E_T_Range.
    Sample code.
    Loop at lt_data.
    e_t_range-sign = 'I'.
    e_t_range-option = 'EQ'.
    e_t_range-low = Lt_data-<field1> .
    append e_t_range.
    endloop.
    Hope it Helps
    Srini

  • Looking for Fireworks users that work with Flash in Manhattan!

    If you live in Manhattan and work with Fireworks and Flash
    and do not mind making some extra cash, then check this out:
    http://weblogs.macromedia.com/amusselman/archives/2006/07/nyc_usability_s.cfm
    Good luck!

    We are starting a Computer Management course in our school district where the students will basically be doing a tier 1 helpdesk. Does anyone have this type of thing going on at your school? Im looking for ideas as to how to handle these kids' user rights as well as what they do. Im worried things can get messy by giving the students too many permissions. 
    This topic first appeared in the Spiceworks Community

  • Mobile User doesnt work with user directory set on external drive

    i'm in the progress of migrating some users from local user accounts to mobile user accounts.
    unfunny thing is that creating the local copy of the mobile user accounts works perfect if the user directory is set on the internal drive of leopard server, however if I move the directory to an external drive no more locale login is possible, just "an error has occured" is reported.
    I suspect a problem with user rights on the acl, however I havnt got an idea how to set them properly.

    I'm having the same problem with Network Homes. When I create then in Workgroup Manager on the main drive with Mac OS X Server it all works great. When I create and share a folder on the second internal disk the client get "an error occurred" message.
    Does the name of the folder matter?
    Server HD/Users/glimonez - Works like a charm
    Same Xserve second drive
    Data/Users/glimonez - an error has occurred"
    What should the permissions be for the Users folder on Data? What should I use to change them?
    Also, is there a way to apply the default permissions to a users home folder? Desktop, Downloads etc for them only, and Public and sites to whatever they should be? I've only seen "apply permissions to folder and everything enclosed" options.
    Sorry for long post
    Gabe

  • How to execute Struts program in jdeveloer(Oracle) with small example

    Hi,
    I want a small example on struts in Jdeveloper & how to diploy there.
    Thanks & Regards
    Rama Krishna

    Hi
    Check the link below for using jdeveloper with struts:
    http://www.oracle.com/technology/products/jdev/howtos/jsp/StrutsHowTo.html.
    I am not aware whether Jdeveloper can be used with SAP web AS , if that's  what you are looking at?
    hope this helps , <b>please mark points for helpful answers</b>
    regards
    rajeshkr

  • Change Schedule Line category through user exit - Issue with transfer of requirements

    Dear All,
    There is a user exit in Sales Order program MV45AZZ - PREPARE_TO_SAVE . It is currently being used to implement code to change schedule line category based on the status of the sales order.
    When Blocked , category is set to ZP, and when Released then it is set to CP.
    Now, when we change ZP to CP manually through VA02, I am able to see the requirements transferred in tcode MD50.
    The problem is, when user changes status of sales order from blocked to released, the userexit changes categories from ZP to CP, but the requirements are not transferred ( cannot see it in MD50 ).
    I tried searching the SCN, tried googling it, its been a week now and I havent found any clear solution.
    So, far what I understood is Availability Check needs to be carried out again. But I am not clear how to trigger it again.
    Are there any indicators that need to be set or any internal tables to be updated or any FM to call or any other user exit to place the code in.

    ?? Any suggestion friends ?

  • Working with small timing (ms)

    Is it possible with TestStand to create sequence to check a change state of a signal within 1 ms ?
    What is the minimum timebase to work with TestStand without having disturbation by Windows or something like that ?
    Thanks. 

    Although you can typically execute steps in substantially less than a millisecond, Windows is not a real-time OS. Any program you write can be suspended for unpredictable durations at unpredictable times. Thus you might usually be able to monitor at a certain rate, but occasionally, you'll get a performance hiccup. You can use the Step Insert Menu>>Synchronization>>Advanced>>Thread Priority step type to raise the priority of your critical thread. You can also kill unneeded programs and services. Both will improve your chances of maintaining a constant throughput and it is possible that you might empirically determine that you can get "reliable enough" timing for your application. However, if you want a guarantee, you'll need to either perform your operation in hardware, or use a real-time OS.

Maybe you are looking for