Error message in FM exit EXIT_SAPLIMR0_001
Hi
Is it possible to throw an error message from a function module exit which is invoked in update task or invoked from a subroutine on commit.Is there any workaround for this? I am using the FM exit in enhancement IMRC001 and trying to throw an error message when the measuring point of equipment reaches a maximum value. Message is displayed in the screen but after that when I perform some action e.g back or enter it gives a dump stating
SYSTEM_ON_COMMIT_INTERRUPTED
Error analysis
During the COMMIT WORK statement, the following are executed:
- the routines registered with the statement PERFORM .. ON COMMIT,
- the registered methods for the events of the object services
and
- possibly the local update (SET UPDATE TASK LOCAL).
An exception was raised and caught. The normal sequence of the routines
was interrupted by this resulting in the program being continued before
the call of COMMIT WORK. As this can lead to inconsistencies, the
processing cannot be continued in the normal way.
How can I solve this? Thanks in advance
Sudip
Hi All,
I have written code for creating a notification of type 'M1' within the user exit EXIT_SAPLIMR0_001 when the total counter reading exceeds the upper range limit maintained for Measuring point.
When it exceeds, it will trigger a notification and also a measurement document will be created.
Past Reading for Total Counter Reading : 100552
Total Counter Reading : 100601
Upper Range Limit : 100600
Counter Reading which I enter : 1
Difference : 49
While I am trying to create a Mea. Document via IK11, it is creating 2 measurement documents one for the difference reading 49 when we enter the counter reading as 1 and the other document with zero difference reading.
Can anyone suggest me on that??
Earlier response will be appreciated..
Regards,
JK
Similar Messages
-
Error message in customer exit
HI ABAPer's,
I am facing the one problem while giving the error message in customer exit ZXM06U43(POCustomer exit). The scenario is i am looping the tekpo(PO line item) internal tables and doing some validations if any lineitem fail in the validation i need give the error message .I dd the but all ways it showing the error in last line item in the PO.
Thanks,
HarinathHi,
You have to either leave the screen. Also you can try EXIT in place of LEAVE SCREEN as per suitable to your transaction.
SAMPLE CODE:
IF SY-SUBRC <> 0.
MESSAGE E059(ZGO) WITH I_MSEG-MATNR I_MSEG-AUFNR.
LEAVE SCREEN.
ENDIF.
Regds,
Anil
Edited by: Anil Katoch on Sep 3, 2009 7:37 AM -
How to raise error message in substitution exits?
Hello Experts,
How to raise error message in substitution exits. I have tried with normal statement,
Message 'Welcome!!' type E.
But its inot stopped at that error message, Its goes next standard code and picked other messag and shown as error message.
Th exit seems U100, I that I want to stop by using error message based on some condition. Please throw the answer quicklyHI Sanjana,
In the Substitution exits you can create the message in the configuration it self.
You dont't need raise message explicitly.
Thanks, -
Custom error message in user exit is giving Short dump
Hi All,
We have a scenario where in if any user try to create/Change/Delete particular types of contract in SAP system we have to issue error message
saying ZIN/ZIR contract creation/Change/Deletion is blocked in SAP. This has to be done from the web application. So we are putting below code
in user exit MV45AFZZ in the form USEREXIT_SAVE_DOCUMENT_PREPARE.
CONSTANTS: lc_vbcpic01 TYPE sy-uname VALUE u2018VBCPIC01u2019, u201CWeb application user ID
lc_zin TYPE vbak-auart VALUE u2018ZINu2019,
lc_zir TYPE vbak-auart VALUE u2018ZIRu2019,
lc_text(32) TYPE c VALUE u2018Check long text for more detailsu2019.
DATA: l_uname TYPE sy-uname.
CLEAR: l_uname.
MOVE sy-uname TO l_uname.
*If user ID is not the Web application ID then block the creation/Change/Deletion
IF l_uname NE lc_vbcpic01
AND ( vbak-auart EQ lc_zin
OR vbak-auart EQ lc_zir ).
MESSAGE e830(zv) WITH lc_text.
ENDIF.
This code is working fine while creating/Changing the contract i.e. Giving us error message so that user wonu2019t be able to create/change the contract.
But when we delete the contract from VA42, Control is coming to this message statement and is giving Short dump. Below is the error analysis of the dump.
Error Analysis:
During "Exit Command" processing, the program tried to send a " " message.
This is not allowed at this point in processing.
The program had to be terminated.
Screen name.............. "SAPMV45A"
Screen number............ 4001
If any one has come across such scenario/any work around for this problem please let me know your inputs. Your inputs are highly appreciated.
I am working on 4.6C version of SAP.
Note: When i issue information/Warning message contract is getting deleted after displaying the message.
Thanks,
Vinod.I exactly replicated the same in DELETE_DOCUMENT also
I am getting the Dump. I tried with exit also , but it continued and deleted. To avoid deletion we have to use Leave program or LEAVE TO CURRENT TRANSACTION.
Delete Function is Defined as EXIT command. so it is not possible to give error message. To convice you i just copied demo program and raised the error message.
it is also giving the dump.
copy the demo program DEMO_DYNPRO_AT_EXIT_COMMAND and make this change , information to error .
MODULE cancel INPUT.
MESSAGE e888(sabapdocu) WITH text-001 ok_code input1 input2.
IF ok_code = 'CANCEL'.
CLEAR ok_code.
LEAVE PROGRAM.
ENDIF.
ENDMODULE.
and see... -
Hi All,
We have a FM which throws an error message. When that is executed in report, it works fine and the error message is displayed.
We have implemented this FM in FIELD EXIT for PRCTR. But it is not throwing any message. We checked the data, it is fine.
Can any one know how to solve this??
Thanks,
SreedharAlso you need to check whether this is assigned to any program/screen. As you know it will only trigger in the attached program.
See the documentation of RSMODPRF program.
Regds
Manohar -
Error Message in user-exit EXIT_SAPLRRS0_001 in Query
Hi,
ABAP BW Guru's
I got an ABAP type problem with RANGE numeric variables in EXIT_SAPLRRS0_001.
With character or dates iuser-exits worke fine.
My characteristic is CONNID Type NUMC 4
My user-exit variable is named CONNID_EXIT_STEP_2.
My ABAP processing in the exit for the user-exit varibale is quite simple (testcase):
DATA: l_e_t_range TYPE rsr_s_rangesid.
l_e_t_range-low = '17'.
l_e_t_range-opt = 'EQ'.
l_e_t_range-sign = 'I'.
APPEND l_e_t_range TO e_t_range.
My Error message in the BEX Analyser is:
Value "17" for user-exit variable CONNID_EXIT_STEP_2 is inavlid.
What's wrong with the ABAP processing in the exit (testcase) ?
The debugger clearly shows l_e_t_range-low with value 17.
l_e_t_range-low seems is a character.
Anyone can give a tip ?
Thank You !
Martin
ThanXsDear Karthik,
You are right. First time my user exit execute, after that report automatically call message located Function Module LCOPDU13 504th row
IF NOT SY-MSGID IS INITIAL.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
Message number is 806 message id is RU.
Can you help me for fix this situation? I just want to add a data control in ZXCOFU05 user exit. For user fill data (werks based)
Thanks your helpful answer -
Error message from user exit - current screen becomes grayed(non-editable)
I am working on a Sales Order (VA01/VA02) user exit(USEREXIT_SAVE_DOCUMENT_PREPARE) in MV45AFZZ program. I am validating certain values entered by user in this exit. Based on a condition, I issue a error message e.g. "message e001(ZV) with .....". I expect the processing to interrupt and the system control returns to the current screen. When there is an error, error message shows up on the status bar, but the current screen is completely grayed out(non-editable), not able to modify the incorrect entries. I keep hitting ENTER but no change to the grayed screen. Is there anything wrong in the way I issue error message?
I am on ECC6.
Thanks.could you please help me if possible in my senario :-
I am validating a field(serial number while creating delivery) in standard exit ZXQSMU04 and written a code to display an error message. The functionality is working correctly on validation and displaying the error message. But once the error is getting trigger the serial number field is becoming in gray mode i.e non editable.
I tried a lot to overcome this issue but not getting success could anyone help me to make the field editable while triggering the error message.
Please note : Its an exit and not having any message field in export or return table. Also tried with warning and information message.
Thanks in advance.
Regards,
Gautam Kumar -
Display error message in user-exit EXIT_SAPMP56T_002
Hi,
I'm doing a validation in user-exit EXIT_SAPMP56T_002 (include ZXTRVU03), and I want to display a error message. So, I'm using the instructions:
continue_with_update = 'N'.
MESSAGE ID xxx TYPE 'E' NUMBER yyy.
What happens is that in SAP GUI it works fine, but in SAP Portal it gives a lot of java exceptions.
Is there other way to display the error message that it works fine in the portal?
Thanks.
SóniaHi,
I tried with that but it doesn't work.
With the instruction "Message ID..." the portal shows an RFC ERROR SYSTEM FAILURE with all that java exceptions.
With your suggestion it does not retrieve my message, and instead it retrieves a customized message "Trip cannot be saved in this status, check mileage start and end location", that refers to the expense report and does not make any sense when I'm only creating the trip.
Any idea for this?
Thanks.
Sónia -
Display error message in user-exits for ME21n
Hi,
I want to give error message in exit EXIT_SAPMM06E_013
but it is getting displayed as information and gets roll back .
Can anyone help to display error message and stop there itself so that to give corret data and save.
the code in this exit is as below.
IF I_EKKO-BUKRS = '0800'.
CLEAR:V_FLAG.
READ TABLE TEKPA WITH KEY PARVW = 'ZN'.
IF SY-SUBRC NE 0.
MESSAGE E000(ZD)."'XXX' TYPE 'E'.
ENDIF.
ENDIF.
Thanks,
Sureshcheck this
EXIT_SAPMM06E_012 to display error message
especially look at the last post , adding the log. -
Raising error messages in user exit..
hi,
i have my code in sales order user exit FORM USEREXIT_SAVE_DOCUMENT.
the code needs to check for a condition and if that fails i do not want to allow the user to save the sales order, rather do the change as i expect.
i can display the message using my message class, right ? but then how to prevent further action of saving the sales order ?
thksAfter you give the error message, set the FCODE to 'ENT1'.
Like:
message e398(00) with
'Some error occured. Press enter.'.
fcode = 'ENT1'.
Regards,
Naimesh Patel -
If i want to give informative message in an exit like for eg. when the exit fires , i should be able to display information like "Error occurred due to", "Solution" etc. how can i do it. Right now i am able to write a single sentence, but if i want to give information to the user regarding the correctin to avoid the exit how can i do it.
Hi Priti,
If you want an error messge to be issued with detail correction and possible reasons use the below mentioned apporach.
Please maintain the long text for the messaege number in message class.
E.g:
MESSAGE E012(ZMSG) WITH text-001.
GO to message class ZMSG using TCODE SE91 and maintain the long text for message 012.
when you click on the error message a window with the detailed description maintained in the long text will be poped up.
Regards,
Babul. -
Hi friends,
Iam working on sone userexit in tcode Ko01 . actually i have to through the error message ...break point comes to that point it is not throughting that message...the message format i have used is
MESSAGE msgtypemsgnumber(messageid) WITH 'text message'.
the FM in which the include is there does not contain exceptions then can u plz tell me how i should through the error message....
thanks in advace...hi praja,
i m also facing the same problem. have u got any solution for this problem? if u have any solution pls share with me.
regards,
vicky. -
VA01-VA02 : Error message in a user exit / MV45AFZB
I everyone,
i want to add an error message in the exit "USEREXIT_CHECK_VBEP" (MV45AFZB) but when i do so it displays the following abend message :
"Incorrect index structure for table XMVERF_POS
/0000000222 /000030 " (V1322).
just after mine.
do you have any idea ?
Xavier.
PS : I use SAP ECC5Hi Xavier,
Here is the explanation when you get this type of error:
Short Text
Incorrect index structure for table &
Diagnosis
Internal error.
Procedure
Repeat the transaction.
If the error occurs and you have a CRM System connected to your ERP System, the document may have been archived in the CRM System.
If the error occurs again, inform your system administrator. If the error cannot be corrected, call the SAP Hotline directly. Describe which steps preceeded the error.
This is the long text description of that error message, so please let me know what next i mean whether you checked this and took the necessary action as explained above.
let me know if your problem still persists, else kindly close the thread.
Regards,
Yugandhar -
Get error message when exiting premier Pro wont save file
I am getting an error message when I exit adobe premier pro it wont save the file and the program locks up. I even uninstalled an reloaded the program CS5.5 vrs. still get the same error can anyone help?
You have not provided any system information or other technical details, so we can't know anything. Either way, ask in the Premiere Pro forum.
Mylenium -
HI:
I want to write some error messages in PR exit, But while checking the PR ,only one error message would be displayed when many items for this PR could not met the needs of the condition writen in PR exit. Does there a way we can use to display error message per item.
Hope someone can help me.TKS.I'm not sure what exactly do you need, if you set the E message in looping ,then when the system loop and find 1 item and meet the error msg logic,then the system will exit from the looping, in this case if there 10 item in PR, and the 1st item error , then it'll pop out the error msg w/o check another item.Also the error message text is so short to cover all item error message,you should find another workaround ,like you check per item if meet the condition that you store it to table,then in the end of the check you put the error message if the table if filled.so the user can check the error in a report,not on the spot in transaction.
Maybe you are looking for
-
How can i transfer voice memos from iphone 3g to a laptop tha is not a mac???
hi, i recorded preachings in our church and want to share it with friends, but i cant figure out how to. from iphone 3g to a pc "i.e not mac"
-
I'm trying to create a new ichat Acc because for some reason the old one is not working, so I go to Create an Apple ID and start creating a new apple ID, when I submit the Acc it tells me that my Email address is already verified for another Apple ID
-
Z2 suddenly Not recognizing the SIM and no signal.
When I'm using data for straight for like 2 or 3 hours, the phone suddenly stops recognizing the SIM and it shows no coverage. I have to restart the phone all the time :/
-
Print Adobe form pages on different printers based on the condition
Hi All, I am new in Adobe forms. We have requirement to print first 5 line items in adobe form (which are printing on first page) on one printer and remaining pages on another printer. What solution I was thinking was, in print program call the adobe
-
How do I retrieve my purchased songs and playlists from my iTunes account? I have just had to replace my hard drive and have lost pretty much everything!