11-02-2009 12:22 PM
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
11-02-2009 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.
11-02-2009 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.
11-02-2009 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.
11-03-2009 4: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?
03-27-2012 10:53 AM
03-27-2012 11:29 AM
03-27-2012 11: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.
12-20-2012 3:02 PM