Skip to Content
avatar image
Former Member

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 (43.4 kB)
va02_1.JPG (41.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 11, 2015 at 02:03 PM

    You don't need any user exit for this. That is why it is not availablešŸ˜Š.

    You can do the same thing in the PBO of your screen in this case it 4900

    R

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I tried this but not working....

      The user exit call is also exists in 4900 PBO module inside a loop screen statement. so we no need to write the same logic here.

  • avatar image
    Former Member
    Aug 11, 2015 at 02:07 PM

    This user exit is designed to be called only for standard fields and not custom fields. As a matter of fact this exit will not even be called for BAPIs until you apply an OSS note.

    You should use the PBO to control this field.

    V.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I tried this but not working....

      The user exit call is also exists in 4900 PBO module inside a loop screen statement. so we no need to write the same logic here.