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

VA02 Modification

Former Member
0 Likes
877

Hi,

I need to make the Item text input disabled when the transaction code is VA02. user should not be able to edit Item text in VA02 Transaction. I tried writting code in Include MV45AFZZ (FORM USEREXIT_FIELD_MODIFICATION.) but doesnt seem to work. Can anyone help. Quick response will be much appreciated.

Thanks,

Vivek.T

6 REPLIES 6
Read only

Former Member
0 Likes
828

This is a duplicate post. Please close.

Rob

Read only

Former Member
0 Likes
828

Hi

It should be easy:

FORM USEREXIT_FIELD_MODIFICATION.
  IF SY-TCODE = 'VA02'.
     LOOP AT SCREEN.
        IF SCREEN-NAME = <FIELD NAME>.
           SCREEN-INPUT = 0.
            MODIFY SCREEN.
        ENDIF.
     ENDLOOP.
  ENDIF.
ENDFORM.

But you make sure this exit is called in the dynpro where your field is

Max

Read only

Former Member
0 Likes
828

Hi Vivek,

Do one think, u keep break point inside 'FORM USEREXIT_FIELD_MODIFICATION'

debugg the program.

Read only

Former Member
0 Likes
828

I tried to disable a field Say Delivery date and it works fine when I code in MV45AFZZ include but doesnt seem to work for Item text. I do not want the user to input text when the TCODE is VA02.

Read only

0 Likes
828

Hi

If you mean the field RV45A-KETDAT in dynpro SAPMV45A 4440, here the user exit is triggered.

I've tried this code and it works fine:

FORM USEREXIT_FIELD_MODIFICATION.
  IF SY-TCODE = 'VA02'.
     LOOP AT SCREEN.
        IF SCREEN-NAME = 'RV45A-KETDAT'.
           SCREEN-INPUT = 0.
            MODIFY SCREEN.
        ENDIF.
     ENDLOOP.
  ENDIF.
ENDFORM.

Max

Read only

Former Member
0 Likes
828

Hi,

Lets say I want to remove the field 'Language' which is present in the Item text(Language field is present below the item text editor). Can you please tell me how to do it.