BADI - Error messages
Hi
method ME_PROCESS_REQ_CUST~check.
READ TABLE t_mereq_item_exkn_cj40 INTO w_mereq_item_exkn_cj40 INDEX sy-tabix.
IF w_mereq_item_exkn_cj40-menge GT w_mereq_item_exkn_cj40-result.
IF sy-subrc = 0.
MESSAGE e210(zgea) WITH w_mereq_item_exkn_cj40-bnfpo w_mereq_item_exkn_cj40-psp_pnr w_mereq_item_exkn_cj40-result.
ENDIF.
ENDIF.
endmethod.
the above loop if satisfies the condition displayes an error messages.
but If the loop come with three items , in the message popup it should show three errors with the line items.
It works fine with one line item.
multiple line item errors are not pupulating the in the error box.
How to achieve?
I have isplayed the Error messages in Message class.
Nop pravin
i have tried
not working
READ TABLE t_mereq_item_exkn_cj40 INTO w_mereq_item_exkn_cj40 INDEX sy-tabix.
IF w_mereq_item_exkn_cj40-menge GT w_mereq_item_exkn_cj40-result.
MESSAGE e210(zgea) WITH w_mereq_item_exkn_cj40-bnfpo w_mereq_item_exkn_cj40-psp_pnr w_mereq_item_exkn_cj40-result.
ENDIF.
ENDIF.
loop at t_mereq_item_exkn_cj40 INTO w_mereq_item_exkn_cj40 INDEX sy-tabix.
IF w_mereq_item_exkn_cj40-menge GT w_mereq_item_exkn_cj40-result.
MESSAGE e210(zgea) WITH w_mereq_item_exkn_cj40-bnfpo w_mereq_item_exkn_cj40-psp_pnr w_mereq_item_exkn_cj40-result.
ENDIF.
ENDIF.
endloop.
tried both the code. But it is not working
Similar Messages
-
Hi,
The Security team has requested that they look over our router and switch configs before we deploy them in production.
One thing they mentioned:
"Bad Error Message Protection"
They recommend "setting icmp ignore bogus error responses to 1". I haven't found any Cisco docs on the subject or any commands to enable this. That being said, I haven't tried to configure any bad error message commands because if this is a real concern I want to make sure I am doing it correctly.
Any advice?
Thank you.ok - it seems problem has been fixed - I was on messenger 3.3 - I downloaded messenger 3.4 and everything seems to work as it should
-
Problem in BADI, error message not getting displayed
Hello Experts,
I am facing a strange problem in BADI.
The requirement is that the user should not be allowed to change the plant field
on the screen of standard MM transctions for PO/PR amendment.
I have written the code in separate BADIs for PO and PR.
I am displaying an error message if the user tries to change the field.
For PO, it is working fine.But for PR, the same code is not working.
The control is going over to the BADI for PR and rest of the code is working fine.
But the error message is not getting displayed for PR amendment.
Can anybody please suggest the possible cause of problem and some solution to it.
Thanks in advance.Hi
See the sample BADI code for PR which raises an exceptions and do accordingly
BAdI Name: ZPUR_RFQ (Implementation name) Purchase Requisitions
Definition Name: ME_REQ_POSTED
Interface Name : IF_EX_ME_REQ_POSTED
Implementing Class: ZCL_IM_PUR_REQ
Method : POSTED
METHOD if_ex_me_req_posted~posted .
DATA : v_mtart TYPE mtart.
DATA l_s_eban TYPE ueban.
LOOP AT im_eban INTO l_s_eban.
IF l_s_eban-estkz NE 'B'.
CLEAR v_mtart.
SELECT SINGLE mtart INTO v_mtart FROM mara WHERE matnr = l_s_eban-matnr.
IF v_mtart EQ 'ZERS' OR v_mtart EQ 'FHMI' OR v_mtart EQ 'UNBW'.
MESSAGE e000(zm_msg) WITH 'You are not allowed' 'to create PR for stock items'.
ENDIF.
ENDIF.
IF l_s_eban-knttp NE 'F' OR l_s_eban-pstyp NE '9'.
IF l_s_eban-knttp NE 'A'.
IF ( l_s_eban-pstyp NE '9' AND l_s_eban-pstyp NE 'D' )
AND l_s_eban-matnr EQ space.
MESSAGE e000(zm_msg) WITH 'You cannot create'
'a PR without material number'.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDMETHOD.
<b>Reward points for useful Answers</b>
Regards
Anji -
Workflows - badi - error message
Hi Experts,
I have a requirement in workflows...where i need to display en error after checking a condition.
Is there any standard BAdI through which we can display error message on the status bar of UI..??
Any pointers shall prove really helpful.
With Best Regards
Kanika Chopra
Edited by: kanika chopra on Oct 8, 2008 1:02 PM
Edited by: kanika chopra on Oct 9, 2008 6:06 AMHi,
I suppose you are talking about the WebClient UI and not the SAPGUI.
For the first question: I do not know how to modify the status bar, but if adding a message to the message area (were all other CRM related information messages are shown) is enough you can use the global message container.
lr_msg_service = cl_bsp_wd_message_service=>get_instance( ).
MESSAGE e<<msg_number>> INTO lv_msg WITH lv_msg_v1.
CALL METHOD lr_msg_service->add_message
EXPORTING
iv_msg_type = sy-msgty
iv_msg_id = sy-msgid
iv_msg_number = sy-msgno
iv_msg_v1 = sy-msgv1.
Changing values of UI fields you got two options:
1. You modify the UI components code to change the field value over the GET/SET methods on some kind of event
2. You modify the underlying data in the BOL object.
Checking is done by simply adding a 'X' to the variable representing the checkbox.
cheers Carsten -
Bad Error (message EK807) on EK96
Hi experts
I'm trying to use EK96 to correct the restricted or Current Difference Amount of BBP.
The underlying issue is to do with the restricted migrated amounts, but until we can get that resolved, I've been using EK96 as a workaround to manually unrestrict the affected amounts.
We have an account where EK96 can't be used, with the following error message:-
No active payment plan exists for contract 300126425 on 08/02/2010
Message no. EK807
EK94C shows an active plan (ie nothing in the de-activated column), the contract start month is 6, and the contract account BBP Proc is 3.
Why does the system think there isn't an active plan for the contract?
Thanks
AstridHi Yuvi
Yes, the account has billed 2 installments of the new plan (12 installments in total). the migrated BPP has been deleted.
There is an accumulated difference, it's the sum of the restricted amount from the migrated plan, and the difference for the 1st 2 installments of the new plan.
The alternate start month is zero.
Thanks
Astrid -
CUP Risk analysis bad error message for TooManyViolationsException
Hello,
We are running CUP GRC-SAC-SAE 5.3_13.0 ( Build ID:04080510 ) with Compliance Calibrator 4.0 in our R/3 systems. We recently had a situation where the number of conflicts identified by CC was too large for CUP to handle. Instead of getting a serious error message that was meaningful, we got "x Access to all actions". The request was approved (manually) for SODs, and the user ended up with an account that was outlandish.
Has anyone else had this problem? Is there some threshhold that we could raise in CC?
Any help or advice would be appreciated.
Thank you.
Jennifer
The log shows the following:
2011-04-25 19:03:15,023 [SAPEngine_Application_Thread[impl:3]_7] ERROR com.virsa.ae.service.TooManyViolationsException: Too many violations found.
com.virsa.ae.service.TooManyViolationsException: Too many violations found.
at com.virsa.ae.service.sap.RiskAnalysisDAO.determineRisks(RiskAnalysisDAO.java:224)
at com.virsa.ae.accessrequests.bo.RiskAnalysisBO.findViolations(RiskAnalysisBO.java:182)
at com.virsa.ae.accessrequests.actions.RiskAnalysisAction.doRiskAnalysis(RiskAnalysisAction.java:1161)
at com.virsa.ae.accessrequests.actions.RiskAnalysisAction.doAnalysis(RiskAnalysisAction.java:381)
at com.virsa.ae.accessrequests.actions.RiskAnalysisAction.execute(RiskAnalysisAction.java:118)
at com.virsa.ae.commons.utils.framework.NavigationEngine.execute(NavigationEngine.java:295)
at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:431)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:461)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:219)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)CUP denies requests with SAP_ALL, the message Access to all actions is typically the one you get when you have a user with SAP_ALL. When you say the request was approved manually do you mean you handeled it out of the CUP system or CUP approved the request despite giving you the error message?
Regards,
Chinmaya -
Hi,
Once the user wants to release an account some validation has to be done and restrict the user to release...
1.I have used one Badi and i put one Error mesage....but Error mesage is producing short dump.
2..I changed the mesage to type 'I' and below that i used
a) exit command --No use,user gets message and he can release the account also..
b) LEAVE TO CURRENT TRANSACTION...This also produce dump as it cannot hold the data to go back..
Please suggest me any other solution..
Cheers,
raViHi Ravi ,
What is the dump you are getting?
During validation you can use POPUP_TO_CONFIRM FM to relase are not.
If you dont want to release use LEAVE PROGRAM.
Regards,
Madhu. -
Hi Experts,
How do I throw errors in web UI. I am enhancing a component/view. I want to display errors if some conditions don't satisfy.
Warm Regards,
AbdullahSolved it this way.
Credit to Fabian Joiris and his reply in this [thread|Show BAdI error message in Web UI]. I could not understand his thread earlier though.
DATA:
lr_global_messages TYPE REF TO cl_crm_genil_global_mess_cont,
lr_core TYPE REF TO cl_crm_bol_core.
lr_core = cl_crm_bol_core=>get_instance( ).
lr_global_messages ?= lr_core->get_global_message_cont( ).
CALL METHOD lr_global_messages->add_message
EXPORTING
iv_msg_type = 'E'
iv_msg_id = 'ZCRM'
iv_msg_number = '000'
iv_msg_text = 'Error Message'
iv_show_only_once = 'X'.
Warm Regards,
Abdullah -
Error message in a BADI getting displayed in a popup instead of status bar
Hello All,
I have implemented a BADI in ECC6 to prevent the change of formula in ERP from transaction O3I8.
The BADI gets called on clicking 'Save' from transaction o3I8.
Within the BADI i am giving an error message using the following command:
Message e000(ZABC) .
However , the message gets displayed in a pop up instead of the status bar .
The same is for information and warning messages.
Any suggestions on how to display them in the status bar ?
TIA
Regards,
VartikaHi Brad,
The checkbox to display messages in pop-up is already switched off.
Still themessages are getting displayed in pop-up.
Regards,
Vartika -
I am using Adobe Reader to render PDF documents as a part of a process and then convert it into TIFF. Some of the documents that come in are corrupt PDF documents and cannot render itself in the reader and hence cannot be converted. This is the error that the reader throws:
ADobe reader could not open "test.PDF" because it is either not a supported file type or because the file has been damaged(for example, it was sent as an email attachment and wasn't correctly decoded)
Now, the process is automated with no human intervention. with the advent of this error message, since there is a modal dialog box waiting for a response from the user, the process is interrupted and needs human intervention.
My question is simply this. Is there an API i could use where i can figure out beforehand if the PDF is bad so i can reject such files early on? research shows that using the adobe forms server which has the PDF utility services, there is a query "Is a PDF document" that is available. I do not want to use a server product.
Is there any other ADOBE product that exposes something similar?I guess i forgot to add that piece of information. WE do not create the PDFs. We receive PDFs from external sources over which we have absolutely no control and that explains why we get such corrupt documents in the first place. I was just wondering if there was a simple API event/method/means attached to any ADOBE product which is compatible with .net that tells me if the PDF is corrupt UPFRONT.
-
Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!
what email service - Yahoo mail have been acting up lately
you can try setting Mail as your email client - it resolves this pfoblem for some people
LN -
How can we trigger error message in BADI PARTNER_UPDATE
Hi All,
I have implemented a BADI PARTNER_UPDATE. In this I have validation ( Error Message ) on saving buisness partner.
It is giving the error message but it freeze all the fields. On pressing enter it goes for short dump.
In short dump it gives error The COMMIT WORK processing must not be interrupted.
Kindly suggest me that how can we pass error message and it also does not freeze the fields.
Regards,
Narendra GoyalHi Narendra,
How are you trying to display message.
Is it using message service class instance of message statement (which should not be used, as that is for GUI messages) or using collect FM or by adding to genil message class container.
Please try different approaches and see what works for you.
Thanks,
Rohit -
How to raise multiple error messages at a time in a BADI
Hi all,
I'm using CHECK method of BADI ME_PROCESS_PO_CUST for some validation in ME21N/ME22N. I want to raise multiple error message at a time, when user clicks on Check button or Save button. Please let me know, is there any function module for this or is there any particular procedure for this?
Thanks in Advance,
Siva Sankar.Hi,
Raising messages from within BAdis is not a good choice and from the look of it , it appears to be causing a dump.
Look if the BAdi interface has any exceptions defined for the method, if so, raise the exception with your message like:
MESSAGE e002(sy) WITH 'Error' RAISING <badi_exception>.
Otherwise call the FM POPUP_TO_CONFIRM To show msgs to user
Regards
Kiran Sure -
How to add error message to return structure of calling BAPI from a BADI
i have a bapi where a badi is triggered.this badi method has just importing and changing parameters.is there any way with which i can add error message to the return structure of calling bapi.please reply at the earliest.High points can be expected.
thanks got it
-
How to trigger error message in PCUI when a BADI is called in SAP Backend
Hi,
I am currently coding some validations in the implementation of BADI, CRM_CUSTOMER_I_BADI.
I know that PCUI will trigger the interface methods, CRM_CUSTOMER_I_CHECK and CRM_CUSTOMER_I_MERGE.
So is there any way I can deliver status or warning or error message to the users in PCUI, by coding in the above 2 methods?? If yes, how do I do it or if anyone has any sample codes, I will appreciate it very much.
Thanks.Hi,
i think you should post a link to this question in the <a href="https://forums.sdn.sap.com/forum.jspa?forumID=126">CRM Development Forum</a> here in SDN.
Regards
Gregor
Maybe you are looking for
-
Does anybody can help me? I have a document in Adobe Illustrator Artwork 12.0 but don't have the program to open it (and don't know which one I need) If I send the document, could you please convert it into .pdf or word. It's a letterhead for the chu
-
I have just enrolled to study and my course is online. in order to view any of the course content, i need macromedia adobe flash paper to be able to read anything. Please help....
-
I can send in hotmail, but not recieve, how do I fix this
# Question I can send in hotmail, but not recieve, how do I fix this I send a test to myself, and it doesn't go through, also links from searches don't arrive
-
How to upload external bank statments.
Hi, How to upload external bank statments in SAP B1 2005 B.and also procedure to do BRS. please guide me. regds, sampath.
-
Oracle indexes that are missing in the SAP Data Dictionary
We have an old SAP SAP system we just shut down, but Oracle is still up. I am trying to put together a query using DBA_INDEXES and a SAP Data dictionary table, that will show me what tables are in Oracle and not in the SAP data dictionary. I cannot b