on 2008 May 18 8:01 PM
Hi All,
I am using the BADI ORDER_SAVE.. what i want to know is there is a parameter called CV_OWN_MESSAGE
in the method CHECK_BEFORE_SAVE.
Can anyone please tell me what exactly that variable does i.e. the functionality of the same?
Regards,
Riya.
Edited by: riya riya on May 18, 2008 9:01 PM
Hi Riya,
MESSAGE...RAISING or MESSAGE...INTO variations.
Both of these will fill all the relevant SY-MSGxx fields but will not try to issue a message to the SAPGUI.
Normally you use the CRM_MESSAGE_COLLECT statement to collect messages to the transaction's message log. The particular UI looks after displaying the most severe one to the user.
Try using MESSAGE...INTO instead, and raising the ERROR_OCCURED exception or CV_OWN_MESSAGE flag (depending on which method you are using).
The calling program then looks after taking your message and storing it via CRM_MESSAGE_COLLECT.
This should then work in any UI.
Regards
Manohar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Riya,
Honestly, I don't know the purpose of CV_OWN_MESSAGE flag. We don't used.
We raise messages in IC Webclient such as the code snippet available in my last reply on thread:
If you're trying to display error or warning messages in IC Webclient, this can be very useful to you. If not, just ignore this response
Regards.
Hello Ryia,
That depends on your logic.
I, for example, use a error flag variable that is filled if at least one error message is launched into the application (you can launch more than one error message).
Then at the end of CHECK_BEFORE_SAVE method, I see if this error flag variable is filled.
If filled then I raise the exception.
Regards,
Bruno
Hi Riya,
in the method "CHECK_BEFORE_SAVE"of "ORDER_SAVE " badi if you want to raise own massage then you will have to set this variable "CV_OWN_MESSAGE" to "X".
eg.
cv_own_message = 'X'.
MESSAGE 'Enter Event End Date' TYPE 'E' RAISING do_not_save.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
31 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.