Skip to Content

Using USEREXIT_FIELD_MODIFICATION

Hello SDNites,

Please tell me how to insert code in USEREXIT_FIELD_MODIFICATION and also tell me whether this exit is applicated for Sales Order transaction or can be used with Purchase Order or not?

Please provide me steps for writing the code in USEREXIT_FIELD_MODIFICATION.

Regards,

Abhi

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 02, 2009 at 12:39 PM

    This exit used for SD documents only.

    Path: program SAPMV45A, include MV45AFZZ, form USEREXIT_FIELD_MODIFICATION. For coding here need get modification key by object R3TR PROG MV45AFZZ. It's "basis work".

    Also you can create enhancement implemetation if your SAP system ECC 6.0.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2012 at 10:42 AM

    Dear Abhishek,

    If you do changes in this userexit MV45AFZZ surely it will reflect in the t-code VA01.Moreover screen related changes can be done.For example check the below:

       if screen-name = 'VBAK-LIFSK'.
             screen-input = 0.
    endif.
    if screen-name = 'VBAK-FAKSK'.
             screen-input = 0.
    endif.
    select single * from zsdauth_check where bname = sy-uname.
    if zsdauth_check-delfg = 'X'.
    if screen-name = 'VBAK-LIFSK'.
             screen-input = 1.
    endif.
    endif.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 02, 2009 at 12:25 PM

    FORM userexit_field_modification.

    CHECK vbap-pstyv EQ 'ZTAE' OR " Sub-item Category for COMBO items

    vbap-pstyv EQ 'ZRCI'. " Sub-item Category for Return Orders

    IF screen-name = 'RV45A-MABNR' OR " Material

    screen-name = 'RV45A-KWMENG' OR " Order quantity

    screen-name = 'VBAP-VRKME' OR " Sales Unit

    screen-name = 'VBEP-WMENG' OR " Order qty in Schedule Lines

    screen-name = 'RV45A-KMPMG'. " Order quantity in "Structure" tab

    SCREEN-INPUT = 0.

    ENDIF. " IF screen-name = 'RV45A-...

    ENDFORM.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 03, 2009 at 04:25 AM

    Thanks for replying. Can someone let me know the steps to include the code there as it is not allowing me to insert the code there?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      See SAP Note 178328 - Problems due to incorrect user exits in SD for further information about this type of userexit.

      Regards

      Eduardo

  • Dec 20, 2012 at 03:02 PM
    Hi Abhi, Some info on how u can use the screen fields:     screen - input = 1 "the field can be filled by the user (input field)     screen -invisible = 0 "the field is not invisible
        screen -required = '2' . "screen-required =1 sets the field as mandatory, 2 also, but no error msg
        screen - intensified = '1' . "thats makes the field come out in red, so that user can find it
        hope it helps Petra
    Add comment
    10|10000 characters needed characters exceeded