AFS Consultants,
As you knpw, in standard AFS the system rejects schedule lines that don't have any availability with the J0 rejection code. Since J0 is always removed during a new ATP check and the business didn't want this, we are changing the code from J0 to a custom code in USEREXIT_SAVE_DOCUMENT_PREPARE. This works fine, except that we have a new requirement and this should only happen in certain scenarios.
What we are looking is a way to change the J0 code earlier in the process, like right after the ATP check and the system comes back with the J0 code. Immediately at that time it should be changed. We considered using USEREXIT_MOVE_FIELD_TO_VBEP but the problem is that the code is not hit when you rerun ATP, so it won't work.
Is there anyone out there with a suggestion?
Thanks!
Barend