Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Using USEREXIT_FIELD_MODIFICATION

itabhishek9
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

7 REPLIES 7

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

itabhishek9
Participant
0 Kudos

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?

0 Kudos

U need to get access key to make changes in userexit

0 Kudos

Hi

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

Regards

Eduardo

Former Member
0 Kudos

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.

petra_just
Active Participant
0 Kudos
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