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
1,000

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
876

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

Read only

Former Member
0 Likes
876

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.

Read only

0 Likes
876

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

Read only

0 Likes
876

I don't see a MODIFY SCREEN in your code. If it is not there, please add it and see.

Read only

Former Member
0 Likes
876

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

Read only

Former Member
0 Likes
876

I did put modify screen Srini. Even otherwise Modify screen is present in include MV45AO0F_FELDAUSWAHL after PERFORM USEREXIT_FIELD_MODIFICATION.