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

user exit for VA01

Former Member
0 Likes
1,381

In VA01 when I'm trying to validate customer field ( through user-exit FORM USEREXIT_MOVE_FIELD_TO_VBAK.), the field is getting disabled thereby not allowing to enter the customer number again.....I'm having to go back and come again if i want to re-enter the customer value. how can we enable there itself after displaying an error message if validation fails?

In VA01 when I'm trying to validate customer field ( through user-exit FORM USEREXIT_MOVE_FIELD_TO_VBAK.), the field is getting disabled thereby not allowing to enter the customer number again.....I'm having to go back and come again if i want to re-enter the customer value. how can we enable there itself after displaying an error message if validation fails?

8 REPLIES 8
Read only

Former Member
0 Likes
1,303

or else try using information message with a STOP command so that it gives message but stops there itself unless the correct value is speciifed.

Read only

Former Member
0 Likes
1,303

The only way these fields can be open for input during an error message is if the error message was issued during the processing of MODULE KUNDEN_PRUEFEN of screen 4701. You will have to look for an userexit that is called during this modules processing. If not, you will have to use an ehancement spot (if you are on ECC 6.0) or a modification to standard SAP (if below version ECC 6.0).

Read only

0 Likes
1,303

thanks ken

Read only

0 Likes
1,303

Thanks a lot for ur answer....

Similarly if I want to validate the partners entered in VA01....i.e. if I enter a wrong partner then I'll display a error message but afte this the entire table control for partners is getting disabled, how can we keep it enabled inspite of giving the error message..

Where do u think I should put my logic....

Read only

0 Likes
1,303

Thanks a lot for ur answer....

Similarly if I want to validate the partners entered in VA01....i.e. if I enter a wrong partner then I'll display a error message but afte this the entire table control for partners is getting disabled, how can we keep it enabled inspite of giving the error message..

Where do u think I should put my logic....

Read only

0 Likes
1,303

Some basic questions before I research and answer where to put your validation:

1) Why do you have to validate partners determined and defaulted during sales order processing?

2) Are users allowed to override these default (determined) partner values?

3) If yes, why? - Just curious

Based on these answers, configuration changes might be recommended.

Read only

0 Likes
1,303

1) Users wont be overriding the existing partners, they'll only be adding to the existing partners. So Validation needs to be done for the new entries.

2) We would like to make sure that the partners other than the defaulted exist in DB table KNVP(customer master Partner functions)

Hope this answers your questions.

Thanks you very much for your interest.

Regards,

Harshu

Read only

0 Likes
1,303

You could add an enhancement point in function module SD_PARTNER_EXISTENCY_CHECK to validate the partner or in FORM ON_REQUEST_1000 of program LV09CF66.