‎2007 Oct 15 4:35 PM
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
‎2007 Oct 15 4:38 PM
‎2007 Oct 15 4:40 PM
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
‎2007 Oct 15 4:48 PM
Hi Vivek,
Do one think, u keep break point inside 'FORM USEREXIT_FIELD_MODIFICATION'
debugg the program.
‎2007 Oct 15 4:55 PM
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.
‎2007 Oct 15 5:14 PM
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
‎2007 Oct 15 5:36 PM
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.