Application Development and Automation 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: 
Read only

Using USEREXIT_FIELD_MODIFICATION

itabhishek9
Participant
0 Likes
7,821

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
Read only

Former Member
0 Likes
4,357

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.

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

7 REPLIES 7
Read only

Former Member
0 Likes
4,357

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.

Read only

Former Member
0 Likes
4,358

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.

Read only

itabhishek9
Participant
0 Likes
4,357

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?

Read only

0 Likes
4,357

U need to get access key to make changes in userexit

Read only

0 Likes
4,357

Hi

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

Regards

Eduardo

Read only

Former Member
0 Likes
4,357

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.

Read only

petra_just
Active Participant
0 Likes
4,357
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