Why USEREXIT_FIELD_MODIF not triggering for custom fields?
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.
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.