2012 Aug 08 7:56 AM
Dear All, I have a requirement that to validate a condition type on Quatation entry VA21. I did in a User Exit. However, I want to put a message with type E there and want to remain in same session. But it thrown out of the session so user lost all their entries. I want to remain in same session and force the user to correct it unless he want to exit by himself.
Example, I put the message as
Message 'Discount Percentage not allowed' type 'E'.
OR
Message 'Discount Percentage not allowed' type 'E' display like 'S'...
So, whenever such conidtion occurs, it displays message correctly, however, upon enter it thrown out the session. I want to remain in same session.
I did search but not able to get the accurate result.
Can someone help me,
Regards,
Venkat
2012 Aug 08 8:11 AM
Depends upon the place where the "user exit" is called. The message behavior in different events is explained in program DEMO_MESSAGES.
Which exit you are using ?
2012 Aug 08 8:08 AM
Hi,
Message 'Discount Percentage not allowed' type 'I' display like 'E'...
will helpful I think.
2012 Aug 08 8:11 AM
Depends upon the place where the "user exit" is called. The message behavior in different events is explained in program DEMO_MESSAGES.
Which exit you are using ?
2012 Aug 08 8:18 AM
Dear Kesav,
In MV45AFZZ
FORM USEREXIT_PRICING_PREPARE_TKOMP.
FORM USEREXIT_SAVE_DOCUMENT.
Regards,
Venkat
2012 Aug 08 9:05 AM
Try moving your check and error message to USEREXIT_SAVE_DOCUMENT_PREPARE.
Che
2012 Aug 08 9:25 AM
Hi Che,
It is also in USEREXIT_SAVE_DOCUMENT_PREPARE as well. Still the same result..
Regards,
Venkat
2012 Aug 08 9:27 AM
hello sir,
Message 'Discount Percentage not allowed' type 'I' display like 'E'...
this one is not working?
Gourav
2012 Aug 08 9:40 AM
Dear Gourav,
Sorry I did not reply you...
Yes, it is not working too..
Regards,
Venkat
2012 Aug 08 9:41 AM
2012 Aug 08 10:23 AM
Venkat,
The following should work, place it in USEREXIT_SAVE_DOCUMENT_PREPARE:
MESSAGE s000(z001) WITH 'Discount Percentage not allowed' DISPLAY LIKE 'E'.
PERFORM FOLGE_GLEICHSETZEN(SAPLV00F).
FCODE = 'ENT1'.
SET SCREEN SYST-DYNNR.
LEAVE SCREEN.
Take a look at the following thread for more information:
http://scn.sap.com/message/8058301
Che
2012 Aug 08 1:52 PM
Hi Venkat,
put those codes in USEREXIT_SAVE_DOCUMENT_PREPARE only not (USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT )
2012 Aug 08 8:14 AM
Hello Venkat ,
Even i too had the same problem.
And i posted a similar kinda Problem in the below mentioned post.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |