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

Additional Data B- USEREXIT_FIELD_MODIFICATION not triggering for custom fields

Rushikesh_Yeole
Contributor
0 Likes
1,057

I have added custom field in VA01 at line item level. Code in PBO of screen is working fine.  BUT it will work when I go to that particlular screen.

But the custom field is not populating in USEREXIT_FIELD_MODIFICATION; which is required for validation..

Standard scrren layout and customd field attributes are same.

I need to change attributes in user exit. Error message on save is not advisable.

Is I am missing something? DO I need to write additional in other user exit?

I have added custom field in VA01 at line item level. Code in PBO of screen is working fine.  BUT it will work when I go to that particlular screen.

But the custom field is not populating in USEREXIT_FIELD_MODIFICATION; which is required for validation..

Standard scrren layout and customd field attributes are same.

I need to change attributes in user exit. Error message on save is not advisable.

Is I am missing something? DO I need to write additional in other user exit?

2 REPLIES 2
Read only

Former Member
0 Likes
755

please read the SAP documentation, may be you will get more info,

  • USEREXIT_FIELD_MODIFICATION

This user exit can be used to modify the attributes of the screen fields.To do this, the screen fields are allocated to so-called modification groups 1 - 4 and can be edited together during a modification in ABAP. If a field has no field name, it cannot be allocated to a group.The usage of the field groups (modification group 1-4) is as follows:

Modification group 1: Automatic modification with transaction MFAW

Modification group 2: It contains 'LOO' for step loop fields

Modification group 3: For modifications which depend on check tables or on other fixed information

Modification group 4: is not used

The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit.

This FORM routine is called up by the module FELDAUSWAHL.

See the Screen Painter manual for further information on structuring the interface.

You may also try the below user exit whether it meets your requirement as you want to process data at item level,

  • USEREXIT_MOVE_FIELD_TO_VBAP

Use this user exit to assign values to new fields at sales document item level. It is described in the section "Copy customer master fields into the sales document".

The user exit is called up at the end of the FORM routine VBAP_FUELLEN.


Read only

0 Likes
755

SCREEN-GROUP NO WORKING. tHAT PARTCULAR SCEEN ELEMENT OR GROUP NOT TRIGGERING IN USEREXIT_FIELD_MODIFICATION