Skip to Content
-3

I have a requirement in my project for adding validation for tcode VA01

I have a requirement in my project..For the tcode = VA01 or VA02, for sales org = 'mxco',distribution channel = 20, division = tv,order type = zsf2 and order reason = zar,

as I click on the save button, I have to check that order field (aufnr) in account assignment tab at item level is blank or not, if it is blank then I have to display the error. I am new to user exits and I am not able to find the correct userexit where I can write my code. Any help will be appreciated.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 07, 2017 at 06:57 AM

    On top of what Raymond said, you really need to get back to your functional consultant for clarifications to understand what is the idea behind, because AUFNR is on header and on item level.

    From the details that you provided I would say that the solution design is rather poor and it would not work well in real life situations.

    Seriously, validation for AUFNR on order type+sales area+order reason is not very intuitive and once the users figure out that the easiest way to get rid of the the error is by changing the order reason you can imagine what will be the end result. Raising an error in the exit that Raymond suggested may be right from technical perspective, but it is not immensely helpful to business users, who would be more willing to comply with rules if they were presented with a screen where they can correct their mistake - like standard document incompletion is designed. #justmy2cents

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 07, 2017 at 06:29 AM

    During your search didn't you find the good old SD user-exit (USEREXIT_SAVE_DOCUMENT_PREPARE) there are already so many threads on this kind of question?

    Add comment
    10|10000 characters needed characters exceeded