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

message type in user exit

Former Member
0 Likes
889

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

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
669

Hi,

1) have you debugged your exit ?

2) alternative for user exit is validation (TA OACV)

regards Andreas

3 REPLIES 3
Read only

andreas_mann3
Active Contributor
0 Likes
670

Hi,

1) have you debugged your exit ?

2) alternative for user exit is validation (TA OACV)

regards Andreas

Read only

Former Member
0 Likes
669

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

Read only

0 Likes
669

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