Application Development 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: 

setting default value for a custom field in VA01 which user can overwrite

v24_2017
Discoverer
0 Kudos

Hi experts,

I need to default a custom field value during Sales Order creation(VA01) which I am doing using user exit USEREXIT_MOVE_FIELD_TO_VBAK. But, if user overwrites that value, the value entered by user gets overwritten by the value which is defined in the user exit(everytime the user exit gets called).

How to overcome this problem ? Any suggestions ?

Thank you so much for you help in advance !

Regards,

Vini

4 REPLIES 4

v24_2017
Discoverer
0 Kudos

Hi,

Requirement is that the user should be able to overwrite/change the value defaulted by user exit.

Thank you .

Regards,

Vini

0 Kudos

Before giving the default value, check the field is INITIAL or NOT? If it's initial the process it with the default value.

Regards,

Priyanka.

raymond_giuseppi
Active Contributor
0 Kudos

Either check the field value is initial or set a (static) flag in the exit so it won't execute twice.

former_member185537
Participant
0 Kudos

Hello,

Can you adjust the screen layout and check if you can control it