‎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:47 PM
That should work. Please see if you have passed all conditions correctly - like screen no, screen group etc.
Also check these threads for some ideas -
http://sapsdforum.wordpress.com/2007/08/24/supressing-fields-in-sale-order/
ashish
‎2007 Oct 15 5:26 PM
hi,
I wrote the following code only in include MV45AFZZ and not anywhere else.
IF SY-TCODE = 'VA02'.
CASE SCREEN-NAME.
WHEN 'LV70T-SPRAS'.
SCREEN-INPUT = 0.
ENDCASE.
ENDIF.
It doesnt seem to work. Do i have to add code somewhere else.
‎2007 Oct 15 5:30 PM
Keep a breakpoint in your code and see if the control comes to the specified place. Also you need to add check for which screen it should happen?
Debug should help you to understand if you are correct.
ashish
‎2007 Oct 15 5:41 PM
I don't see a MODIFY SCREEN in your code. If it is not there, please add it and see.
‎2007 Oct 15 5:44 PM
Hi Ashish,
Thanks for ur patience. Control comes there but my code doesnt seem to work. If you go to the item text screen, you will find a 'language' field below the text editor. Lets say I want to remove it from the screen. This exit doesnt seem to work. I think it doesnot work for screen 4003 (SAPMV45A) or 2100 (SAPLV70T). Please let me if i have got it wrong
‎2007 Oct 15 5:45 PM
I did put modify screen Srini. Even otherwise Modify screen is present in include MV45AO0F_FELDAUSWAHL after PERFORM USEREXIT_FIELD_MODIFICATION.