Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Why USEREXIT_FIELD_MODIF not triggering for custom fields?

Hi,

I have a requirement to add a custom field in VA01 item table control. I have added the field in 4900 table control screen and I am able to see the new field and able to save data in the new field. But the problem is, in VA02 the field to be in read only mode for existing items (i.e. once some value has been entered in VA01 that can't be changed in VA02) and for new line items this field should be in ready for input mode.

So I have coded in Userexit_field_modification(MV45afzz) like

if screen-name = xxxx.

screen-input= 0.

When I open an order in VA02 for the first time the existing line item are in read only mode(for new field), but when I add a new item to the list, that time the whole new column becoming input mode. I have debugged this and found, the control is not coming to this point for all the items(for new field), its coming only for the last line item that was added recently. Why like this?, but I can see the control is coming for all other std. fields depends on the no of items.

Please help me out on this.

Regards,

Srikanth

va02_2.JPG (43365 B)
va02_1.JPG (41251 B)
Former Member
Not what you were looking for? View more on this topic or Ask a question