Need a document for field exit....urgent

Can any one please send a document for field exit or have a simple document on how to work on a field exit with screen shots. pls send it ...its urgent
Thanks and regards
Nandha kumar R

Hi,
A field exit is a type of user exit.
A user exit is a hook where you can inject your own add-on functionality or behavior to SAP’s standard business applications without having to modify the original applications.
Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field.
Field Exits
Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field.  Example: The data element BBBNR identifies a company’s international location number. You might want to set up your R/3 System so that all international location numbers are larger than 100. 
The field exit concept lets you create a special function module that contains this logic. 
You assign the special function module to the data element BBBNR. You then assign the module to any programs and screens in which users can add new international location numbers. When you activate your field exit, the system automatically triggers your special routine whenever a user enters a company location number. 
In 4.6c, you can use "RSMODPRF" program to create field exits.
An example of a user exits :-
MODULE user_exit_0001 INPUT 
    CASE okcode.
        WHEN 'BACK OR EXIT'.
            CASE sy-dynnr.
                    WHEN '100'.
                         SET SCREEN 0.
                         LEAVE SCREEN.
                    WHEN '200'.
Note that you can write any code that satisfy your needs.                                                     ****
But in this case, this was wrote as a sample code for reference sake.                                    ****
And you can test it.                                                                                ****
                         SET SCREEN 100.
                         LEAVE SCREEN.
             ENDCASE.
      ENDCASE. 
Field exits (SMOD/CMOD) Questions and Answers
1. Field exit was created with CMOD, but is not processed when calling the screen.
-  Since the field exit is not processed until PAI, an action must be triggered on the screen (Return, Save, ...).
-  Set profile parameter abap/fieldexit to YES and restart the system.
-  After activating the function module FIELD_EXIT... and the field exit, leave the transaction on whose screen the field exit is to be executed. The screen is not generated until the transaction is started.
- Do not work on different application servers since there may be some delay before the field exit is activated.
- The profile parameter must be set on all or none of the application servers.
- If the field exit is to only be active on specific screens, check whether you chose the correct program and the correct screen
      number (take care with subscreens).
- Using SE51 -> Field list, check that the screen field does have a reference to a data element. In the name of the field exit use the name of the data element and not the field name.
- After transport, field exits are marked as active but will not be processed. 
   Tip: First try deactivating the field exit once more and then afterwards, activate it again.
2. How is performance affected by setting abap/fieldexit?
- If a screen is generated and the profile parameter is set, a check is run on 2 tables (TDDIR, TDDIRS) to see whether a field exit must be generated for the respective field. In practice, the screen load is not generated until the screen is selected after an
update. The user should not notice any difference because screen generation is very fast.
3. Can you read the contents of other screen fields in the field exit?
- In principle, every field exit can store its value in the global variables of the function group (TOP) and hence make them
available to other field exits. Note here that field exits are always called and not only if an entry is made in the field or if the field is empty. In addition, it is not possible to make any assumptions about the order in which the field exits will be called in the future.
4. How does the field exit behave on step loop fields ?
- After the user has entered data, the field exit is called in PAI as often as there are visible fields in the step loop. The system
variable SY-STEPL is incremented each time. If a new value is assigned to the field, it is displayed in the module between LOOP and ENDLOOP. This module is also called once for each visible step loop line.
5. Can field exits be debugged ?
- No. Field exits must be tested separately in the ABAP/4 Development Workbench. For errors which only occur in the screen environment, it is helpful to write interesting variable to the file system using TRANSFER... . These can then be analysed there.
6. What can you do if the field contents are no longer transported to to ABAP/4.
- Check whether a value is assigned to the field OUTPUT.
7. When is the field exit called if a conversion exit is attached to the
   data element ?
- The field exit is called after the conversion exit. This means that the INPUT field receives the data in the same format as the
ABAP/4 program also receives it.
8. Although a global field exit is inactive, a function module is called which does not exist (for example FIELD_EXIT_PROGRAMM_@)
- This is an error in the kernel which no longer occurs as of 3.0C.  As a temporary measure, it is useful to assign a program and a screen which do not exist to the field exit and then activate the field exit.
9. Field exit is not visible in CMOD, although created.
- If you want to create a field exit for a data element, a function module is proposed with the name FIELD_EXIT_. This
function module must exist for the field exit to work. If you do not create this function module, but do create one with a suffix,
the data element is not displayed in CMOD.
10. Field exit is not executed although it is active.
-  Fields which do not have the 'Input field' attribute usually do not trigger a field exit. The field exit is designed to allow an
extended input check. It is therefore only called for input fields - even if they are not ready for input at runtime of the         application by LOOP AT SCREEN.
This rule does not apply, however, if the field is located within a steploop. Here the field will be always activated, even if it is
invisible.
- Field exits can only be executed for fields that are directly related tothe dictionary. If the relation is indirect, i.e. via an       ABAP declaration (  LIKE ), no field exit can be executed.
11. Field exits on check buttons do not work
-  Field exits are only intended for input fields. As check buttons count as graphical elements, you cannot install field exits on
them.
12. Field exits do not work on selection screens
SAP Field Exits
From 4.6c onwards, Field exits will no more be supported by SAP.  They removed the function of field exit but they had given lot of flexibility through userexit.
However, if you still required it, here is how to activate it :-
First called up transaction  CMOD.
Then called up transaction PRFB.
or
Activation of the field exits and assignment of the dynpros can also be carried out using program RSMODPRF. For this purpose, the program must be started without parameters (input fields remain blank).  If required, new field exits can be created using program RSMODPRF (see the program documentation).
REFER THIS LINK ALSO.
defining screen fields using FIELD-SYMBOL
Thanks,
Shankar

Similar Messages

  • Upgrade for Field-Exits

    Hi there!.
       My customer is asking me to upgrade from 4.6c to ECC 6.0 their field-exits. But I've reading about Enhancement Framework, and for validations made for Field Exits, I would need a SAP Source Key Code to modify the SAP Object and implement the online validations in the screen SAPLCOMD Dynpro 3170.
       Has someone tried to work with this new technology ? what could I do for Upgrade this Field Exits?..
    Thank you very much for any help!.
    Antonio

    Hello,
    There was a recent discussion onthis topic. Here's the link.
    How to reduce input field length
    Apart from the name of the Standard Report, I hope you'll find something else of use , too.
    Regards,
    Anand Mandalika.

  • Alternate solution for Field Exit

    Hi All,
      Is there any other way to get the functionality of Field Exit?
      According to my requirement, I have to populate some values in a table control based on the value entered in a field.
      Please tell me a solution for this.
    Thanks,
    Nandhu.

    Hi,
    As per your requirement you want to populate some values based on the value of some other field.
    You can try for EXITS or if the field from which you want to use the value and the other fields which you want to populate are input fields then you can as well use field exits.
    Variables declared globally for storing values in the top include of the function group for field exits can be accessed in other field exits. So you can make use of this functionality.
    Thanks.

  • Need Refresh Document for APO( SCM 7.0)

    Hi All,
    Need Refresh Document for APO( SCM 7.0) asap,
    we are planning to do refresh of quality system with Production system
    Environemnt is Unix
    Database is Oracle
    Live Cache Max DB

    Hi,
    Please check the upgrade guide in SAP service market place.
    BR

  • Field Exit (Urgent)

    Hi Experts,
    How can I find table or structure name at field exit include.
    I am using a include MV45AFZZ which is for field exit of tcode VA02, Now how can I find table of structure in which data is stored temporarly, so that I can check the same.
    With warm regards.
    Rajiv singh.

    You can get the these tables for another exists while putting a break-point at certain places in the user-exit.
    Before that check out the TOP include for that program, and try to find out the structure and internal tables which are being used in that program.
    When program stops at the break-point check out your internal tables.
    Generally, for SD exists you will find out the transaction data for that perticular transaction in the X structures like XVBAP, XVBRP, XLIPS.
    Regards,
    Naimesh Patel

  • Steps for field Exit

    Hi friends,
    For my requirement, I have to use Field Exit.
    Can u please provide me steps/ notes for field exit.
    Regards.

    Hi,
    Follow this:
    - check data element of your field
    - go to SE37 and create a function group of your choice
    - run the program RSMODPRF
    - type your data element and run it
    - the system has to create FM for the field exit. It already suggests the name. Do not change it, just create that one.
    - assign your previously created Function Group
    - don't change the interface of the FM: input and output must be handled here in order to transport data to/from screen. Here you can check it the field fullfills your requirement
    IF input = ...
      MESSAGE 'Wrong input' TYPE 'E'.   "message type E will restart PAI and field will be input ready again
    ENDIF.
    "at the end you must use this
    output = input.   "to transport data
    - now using menu BACK function go back to program RSMODPRF and activate your field exit (Fieldexit -> Activate).
    - Don't forget to activate your FG and FM too.
    This procedure will activate Global field exit, if you want to create a local one, use the same program but Assing a screen and program to that data element.
    Regards
    Marcin

  • Help for field exit

    hi friends,
      i am new to field exit .i want to know how field exit works,
      can any one send me sample code or step-by-step procedure.
      plz do the needful.
    tnnx.
    sonu

    Exits are basically the hooks whcih SAP has provided to add your own code. There are two types of Exits:
    1. Customer exits: Implemented as Function Modules within z includes. Anybody can change it and no access key is required.
    2. User Exit: Implemented as subroutines within includes (any include except y or z includes). You need access for the specific include and then you can any subroutine (user exit) within that Include.
    BADIs are the enhanced version of user exits where the same logic is implemented via classes and object (OOP)
    Enchancement point is the latest once introduces with ECC6.0 . Not very sure about that but you can change it without any access key.
    Please go through the following link which will help you understand the exits in a much better way:
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec07a25db911d295ae0000e82de14a/content.htm
    http://www.sap-img.com/abap/what-is-the-difference-between-smod-and-cmod.htm
    http://sap.niraj.tripod.com/id21.html
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.sap-img.com/ab038.htm
    User Exits.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    customer exits
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Menu Exit.
    http://www.sappoint.com/abap/spmp.pdf
    http://www.sappoint.com/abap/userexit.pdf
    http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
    http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • Need a code for Customer exit for extractor 0WBS_ELEMT_ATTR

    Hi Guys,
    I need a code for following requirement.
    I have appended some fields to standard extractor 0WBS_ELEMT_ATTR which normally takes data from PRPS table. But the new fields will be getting data from PRTE and PROJ table. with common keys. Following is my code which is not working. Please help me out, I am not good in abap. Please note some lines are commented.
    Thanks,
    H
    CODE:::::
    form 0wbs_elemt_attr  tables i_t_data structure biw_prps.
      data: it_wbs_prps like biw_prps occurs 0.
      data wa_prps like it_wbs_prps.
    data: begin of it_wbs_prps occurs 0,
             PSPNR like prps-pspnr,
             POSID like prps-posid,
             PBUKR like prps-PBUKR,
             IZWEK like prps-IZWEK,
             USR10 like prps-USR10,
             USR00 like prps-USR00,
             USR02 like prps-USR02,
             OBJNR like prps-OBJNR,
           end of it_wbs_prps.
    data wa_prps like it_wbs_prps.
      data: begin of it_wbs_prps1 occurs 0,
              PSPNR like prps-pspnr,
              POSID like prps-posid,
            end of it_wbs_prps1.
      data wa_prps1 like it_wbs_prps1.
      data: begin of it_wbs_prte occurs 0,
              posnr like prte-posnr,
              PSTRT like prte-PSTRT,
              PENDE like prte-PENDE,
              ESTRT like prte-ESTRT,
              EENDE like prte-EENDE,
              ISTRT like prte-ISTRT,
              IENDE like prte-IENDE,
            end of it_wbs_prte.
      data wa_prte like it_wbs_prte.
      data: begin of it_wbs_proj occurs 0,
              PSPNR like proj-pspnr,
              PLFAZ like proj-plfaz,
              PLSEZ like proj-plsez,
            end of it_wbs_proj.
      data wa_proj like it_wbs_proj.
    refresh: it_wbs_prte, it_wbs_proj.
    *it_wbs_jest.
    if i_t_data[] is not initial.
    Get data from PRPS WBS Master Data
         select pspnr posid PBUKR IZWEK USR10 USR00 USR02 objnr
           into corresponding fields of table it_wbs_prps
           from prps
            for all entries in i_t_data
          where POSID = i_t_data-POSID.
         sort it_wbs_prps by posid.
    Get data from PRPS1 WBS Master Data
          select pspnr posid
           into corresponding fields of table it_wbs_prps1
            from prps
            for all entries in i_t_data
         where POSID = i_t_data-POSID.
        sort it_wbs_prps1 by posid.
    Get data from PRTE Scheduling Data for Project Item
         if it_wbs_prps1[] is not initial.
         select posnr PSTRT PENDE ESTRT EENDE ISTRT IENDE
           into corresponding fields of table it_wbs_prte
           from prte
            for all entries in it_wbs_prps1
          where posnr = it_wbs_prps1-pspnr.
         sort it_wbs_prte by posnr.
         endif.
    Get data from PROJ Project Master Data
         if it_wbs_prps1[] is not initial.
         select pspnr PLFAZ PLSEZ
           into corresponding fields of table it_wbs_proj
           from proj
           for all entries in it_wbs_prps
          where pspnr = it_wbs_proj-pspnr.
         sort it_wbs_proj by pspnr.
         endif.
    loop at i_t_data.
       clear: wa_prps1, wa_prte, wa_proj.
       read table it_wbs_prps into wa_prps with key
                  posid = i_t_data-posid binary search.
       read table it_wbs_prte into wa_prte with key
                  posnr = wa_prps1-pspnr.
       read table it_wbs_proj into wa_proj with key
                  pspnr = it_wbs_proj-pspnr.
             i_t_data-zzPBUKR = wa_prps-pbukr.
             i_t_data-zzIZWEK = wa_prps-IZWEK.
             i_t_data-zzUSR10 = wa_prps-USR10.
             i_t_data-zzUSR00 = wa_prps-USR00.
             i_t_data-zzUSR02 = wa_prps-USR02.
              i_t_data-zzPSTRT = wa_prte-PSTRT.
              i_t_data-zzPENDE = wa_prte-PENDE.
              i_t_data-zzESTRT = wa_prte-ESTRT.
              i_t_data-zzEENDE = wa_prte-EENDE.
              i_t_data-zzISTRT = wa_prte-ISTRT.
              i_t_data-zzIENDE = wa_prte-IENDE.
              i_t_data-zzPLFAZ = wa_proj-PLFAZ.
              i_t_data-zzPLSEZ = wa_proj-PLSEZ.
        modify i_t_data.
    endloop.
    endif.
    endform.                    " 0wbs_elemt_attr

    Hi,
    it_wbs_prps1 .
    If you are going to use this internal table to check for a null condition, shouldn't you first assign the data package to it?
    For example,   it_wbs_prps1 = i_t_data[].
    Because you are now using  it_wbs_prps1 to select data from a table and it doesn't have any data.
    Please check.
    -RMP
    Edit : Please ignore this. I didn't see that you are actually filling the internal table. Sorry!
    Edited by: RMP on Oct 18, 2010 12:16 PM

  • Alternative for field exit on select-option

    Good afternoon,
    I know that field exit doesn't work for select-option (SAP Note 29377, point 11) but i want to know if it exists an alternative (I use SAP 4.6, and an update to ECC6 is expected next month).
    The field exit would be the best option because we must add exit in many transaction (approximately 100) in little time.
    Thanks for your answers,
    Best regards,
    Anne.

    Hi
    A) Are there any way for debbuging field exit?
    The trick to debug the field-exit is to download the data to a file on application server;
    B) How run the field exits on field no editable?
    It can't do it, because a field-exit is triggered as soon as a value of the field is changed.
    D) Is used the field exit on version >= 4.6C
    SAP doesn't support the field-exit from realese 4.7: the field-exit still works on the realese 4.7 and, I suppose, 5 and 6.00: but it doesn't work for enjoy transactions.
    Anyway I believe it's better to replace the field-exit with a new solution from realese 4.7
    Max

  • Report name for FIELD EXITS

    Dear Friends,
                          I want to write <b>FIELD EXITS</b>. I know there is a standard report given by SAP for this but i dont know the name so can anybody help me?

    Hello,
    There was a recent discussion onthis topic. Here's the link.
    How to reduce input field length
    Apart from the name of the Standard Report, I hope you'll find something else of use , too.
    Regards,
    Anand Mandalika.

  • Concatenated values used in documents for master data-Urgent

    Hi,
    while trying to activate a master data object, it is not activating and this message appears
    "Concatenated values used in documents for master data"
    Please help me in this regard.

    Hi,
    this forum is about the SAP BusinessObjects BI Solution Architecture. I would suggest you post your questions into the SAP BW forum.
    regards
    Ingo Hilgefort

  • Need test documents for RAC failover Scenarios

    Hello friends...
    By the end of this week i have to produce sum test documents for RAC and Database server including Sun Cluster Failover Scenarios.
    Can sumone guide me to a link where i can get enough help.
    I have already managed to get enough information.. but i want to see to it that i cover most of the topics.
    Thanks, Regards
    Monu Koshy

    Please check the following links.
    http://download-uk.oracle.com/docs/cd/B19306_01/rac.102/b14197/toc.htm
    http://download-uk.oracle.com/docs/cd/B19306_01/install.102/b14205/toc.htm
    -aijaz

  • Need installation document for OEM 11G on windows 2003(32 bit).

    Hi,
    As a part of my project, i need to install the OEM 11G on windows 2003(32 bit) machines and targets also windows 2003. there i need to install again agent 11g(11.1.0.1) and target DB is 10.2.0.4.
    I have done the installation of OMS successfully and installed the agent 11g on target as well. i am facing challeges in configuring the database from OMS. i tried couple of options but nothing is working out. Finally i decided to cross check the installation procedure once again with the previously completed ones. could any body share the same.
    in breif i have done following.
    1) installed RDBMS 11G on OMS server.
    2) insalled java 1.6.18.
    3) installed WLS 10.3.2
    4) installed the OMS 11G(11.1.0.1)
    On agent side i installed agent 11g(11.1.0.1) to monitor a database which is of 10.2.0.4 version.
    agent,listeners are reflecting on OMS with up status but DB is showing as "metric collection error". i tried all the possible options like removing and reconfiguring and agent clearing and agent restart etc...but no use. also i in the Oracle installation document, they mentioned as we need to set user equavelence between OMS and agent server but not sure of this, which i have not done. is this compulsary?
    Sorry for putting all the things in one single thread.
    Thanks in-advance.
    Regards
    DBA.

    Did you check if the database is configured in GC?
    If you can't connect using sqlplus to the user dbsnmp make a connection to the database: alter user dbsnmp identified by <password> account unlock;
    In GC go to Targets, All Targets select the DB concerned and hit Configure. Enter the dbsnmp user password etc. After a while you will see the result: DB shows Up (I hope)
    Eric

  • Need conversion rule for field PACKNR

    Hi all
    I am trying to insert PACKNR field from flat file to Data Base Table KONDP. I am getting the PACKNR field as 75 from flat file in order to upload it to data base table i need to Convert it in internal format IVPHv6g}0MZX08002hqR8m.
    How can i encode PACKNR 75 as  IVPHv6g}0MZX08002hqR8m?
    Regards,
    Aboli.

    Domain of PACKNR has a converion routine.
    Double click in table on dataelement of PACKNR and next double click on domain of this dataelement.
    Now you see exit routine, double click on this and you will get two routines:
    CONVERSION_EXIT_VHUPI_INPUT
    CONVERSION_EXIT_VHUPI_OUTPUT
    Edited by: Micky Oestreich on Jun 18, 2009 1:10 PM

  • How to use the method for field-exit to trigger the workflow?

    Dear all,
         I want the workflow to trigger , when ever the check box for DELIVERY COMPLETED is checked in ME22N .
         I have developed a method in SE18 for the corresponding field and defined function module SWE_EVENT_CREATE with BOR bus2012 and event CHANGED.
        Now how to use this method to make my workflow to trigger?Shall I create an event in delegated bus2012 and can I call this method?
    Thanks and regards,
    S.Suresh

    Hi
    You want to place your method which is defined for particular filed.right?
    For that you can go for BADI. First you check whether any badi is getting called form that tcode ME22N. Then to place your method, implement that BADI.  So whenever that BADI is getting called, it will call your event. Through Event workflow will be getting triggered.
    Regards,
    Hemalatha.

Maybe you are looking for