‎2005 Jul 04 10:06 AM
Hi,All,
In Tcode AS01,I use user exit AISA0001 to check the value of ANLA-SERNR,if the value did not fit the rule,raised an error through "message ... type 'E' or message exxx with ...", now the problem occured, although I enter new value for the field SERNR,in the user exit, I got the old value,It seemed that the PAI did not trigged again.
Does anybody can help?
Thanks very much!
Pole
Message was edited by: gw gw
‎2005 Jul 04 10:20 AM
Hi,
1) have you debugged your exit ?
2) alternative for user exit is validation (TA OACV)
regards Andreas
‎2005 Jul 04 10:20 AM
Hi,
1) have you debugged your exit ?
2) alternative for user exit is validation (TA OACV)
regards Andreas
‎2005 Jul 04 2:06 PM
Hi there,
Not sure if this will help as im not sure at what point the user exit is called, but there is a method to access field values available in the main SAP program from within the user exit using field symbols. The code for this is as follows:
field symbol declaration
FIELD-SYMBOLS: <status>.
Assign value of variable from calling prog to field
symbol
ASSIGN ('(SAPMM06E)RM06E-BSART') TO <status>.
The value will now be contained in the field symbol
<status> which can be used as usual i.e.
message exxx with <status>.
Hope this helps
regards
Mart
‎2005 Jul 05 10:24 AM
Hi Mart,
I know the method you said, and I used it.
I wonder why the system can not get the new value,the user exit is called before saving the document.
Any way,thanks for all your help.
Pole