‎2006 Oct 09 2:13 PM
hi all
i am doing type 'm' programing... and getting Purchase Order and corresponding vendor as input in screen 9001.i do validations for the same in the pai of 9001 and displaying error messages.when error occurs i change the vendor and excecute again but new vendor which i had entered is not reflected and it validates with the old value and throws error again ..
how to capture the vendor entered in the screen 9001 to pai .
is it right validate fields in pai of a screen.
thanks in advance
lokesh
‎2006 Oct 09 2:17 PM
Hi
U should show your code of PAI process, but it should be this:
PROCESS PAI.
CHAIN.
FIELD: EKKO-EBELN,
EKKO-LIFNR.
MODULE VALIDATION.
ENDCHAIN.
In VALIDATION you should insert your code for validation
Max
‎2006 Oct 09 2:17 PM
Hi
U should show your code of PAI process, but it should be this:
PROCESS PAI.
CHAIN.
FIELD: EKKO-EBELN,
EKKO-LIFNR.
MODULE VALIDATION.
ENDCHAIN.
In VALIDATION you should insert your code for validation
Max
‎2006 Oct 09 2:18 PM
Yes you have to validate in the PAI only,
check in debug mode what is the vendor value you are getting
‎2006 Oct 09 2:18 PM
Hi,
You are correct. You ave to do validation in PAI only.
But just before performing your validation, assign the new value.
What is happening in the current situation is, it is no assigning the new value in the error situation.
Thanks,
Ramakrishna
‎2006 Oct 09 2:19 PM
‎2006 Oct 09 2:22 PM
Hi,
validation is in PAI - correct
use this flow-logic:
FIELD xxx MODULE check_abc ON INPUT.
A.