Skip to Content
avatar image
Former Member

How to build a Filed Exit

Hi,

I have to create a filed exit.

Anyoone can tell me the tcode to create it?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    May 12, 2006 at 02:19 PM

    CMOD and from CMOD, PRFB.

    Anohter option is run report RSMODPRF.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 12, 2006 at 02:21 PM

    Hai Salvatore

    1)

    Field exits are branches from a screen field with a data element reference into a function module. Field exits can be selected globally or selectively.

    2)

    When to apply a Field Exit.

    Create a Field Exit.

    3)

    Field Exits are branches from a screen field with data element reference in a function module.

    They are of 2 types

    Global Field Exits

    Local Field Exits.

    4)

    Global Field Exits are not limited to one screen. If you use the data element on multiple screens, you will branch to a function module from all these screens once the exit is activated.

    5)

    Local field exits are valid for one screen only. If you assign the screen of a specific program to the data element, then you will branch to a function module only from this screen after activation.

    6)

    Prefix : FIELD_EXIT_

    Name : <Data element name>_

    Suffix(optional): 0 to 9, A to Z

    7)When Does it Trigger

    Data Entry

    Check Required Fields

    Check Field Format-->Your Function Module Fires Here

    Foreign Keys

    8)The following are not allowed in User Exits

    BREAK-POINT

    CALL SCREEN, CALL DIALOG, CALL TRANSACTION, SUBMIT

    COMMIT WORK, ROLLBACK WORK

    COMMUNICATION RECEIVE

    EXIT FROM STEP-LOOP

    MESSAGE I, MESSAGE W

    external PERFORM

    10)

    We will create a field exit for data element ‘MATNR’.

    We will create a ‘Global Field Exit’. In which we will restrict users from entering a Material No between 125 and 150 and check it using examples 1 & 2..

    In the second instance we will create a ‘Local Field Exit’ so that it triggers only when the material no is 300 and check it using examples 1 & 2. And the filed exit should fire only in the second example.

    Program : SAPLMGMM , Screen No. : 0060

    Note : You can also use ‘MM02’ or ‘MM03’ transaction.

    can you send me your Mail Id I will forward a detaild Document of how to create Field Exits

    Thanks & regards

    Sreenivasulu P

    Add comment
    10|10000 characters needed characters exceeded

  • May 12, 2006 at 02:19 PM

    KNow more about them:

    http://www.sapgenie.com/abap/fieldexits.htm

    Regards,

    Ravi

    Add comment
    10|10000 characters needed characters exceeded