2013 Sep 10 9:58 AM
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?
2013 Sep 10 10:30 AM
please read the SAP documentation, may be you will get more info,
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,
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.
2013 Sep 11 4:37 AM
SCREEN-GROUP NO WORKING. tHAT PARTCULAR SCEEN ELEMENT OR GROUP NOT TRIGGERING IN USEREXIT_FIELD_MODIFICATION
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |