Exception handling in Web Ui SAP CRM

Hi Experts,
I have a request as whenever there is some Exception in CRM UI, we get a short dump on screen. We want to avoid that and try putting something better for user to understand the issue.
Your input is really appreciated.
Thanks & regards,
Rajwant Mishra

Hi,
In addition to what raj has said earlier...
Its definite that you would have to put your code in try - catch block..
there are many other exceptions those can occur depending on the action you are performing...
there can be initial reference, there can be incorrect parameter request etc.  If you look any of the on_new_focus( it would be in context _CNxx node class) method you would find few of exceptions those should to be handled.
After yout catch statement and before end try statement you can define an action that has to be performed. You might think of exiting the method or you can raise an error message there (refer other forums for raising messages ).
thanks,
BJ

Similar Messages

  • Creating support notification (Solution Manager) from Web UI SAP CRM

    Hi,
    We have integrated Solution Manager (SM) with SAP CRM.
    Does SAP support has solution with support notification ?
    How we can create support notification from Web UI SAP CRM ?
    Denis.

    Hi
    There is a major change of inclusion of CRM ITSM in solman 7.1 that is why you might be confused.
    Anyway let me explain
    enter the tcode solman_workcenter in solman choose the incident management tab
    now  on the left side you can see an action for Create support message
    thus clicking on it will open the browser for posting messages
    (the same can be shared with end user for message posting )
    further once posted it is accessible in this incident management tab for further processing and you get the status wise queries in overview.
    hope its clear now
    regards
    prakhar

  • How to handle special character in SAP CRM

    Hi all,
    I am facing a problem on SAP CRM Web UI - Contact Creation - When a special character is inserted on address fields of Business
    Partner (e.g. ` ~ ^ etc.), the interface does not understand this character and changes it to a TRIANGLE on pressing enter key.
    Kindly guide as how to handle it or something is missing in terms of (note or patch).
    I am running on SAP CRM 7.0
    Thanks,
    Pradeep Singh Dhadwal

    Hi Pradeep.
    At the end of the day, a character is stored as a byte sequence on disk, and a code page defines the mapping between the byte sequence and any given character.The code page determines what character you can see and enter, therefore different code pages map different characters to the same byte sequence.
    I suggest you to first check if your system is a Unicode system by checking the System menu->Status option->Unicode system field. I'll assume it is.
    Then, please run report RSCP0018 (optionally also RSCPINST and then select Current NLS config pushbutton).
    These reports will show you the actual configuration of languages and code pages of your Application Server. Please check that the correct languages and code pages are configured. If you need to know more about code pages configuration, please check Note 42305, which explains pretty well the whole process.
    Kind regards, and good luck.
    Federico

  • Exception Handling in Web Center for UI related Errors not working.

    Hi Guys,
    I have implemented Error Handling in ADF Application with Custom Model Exception Handler ( which is "CustomExceptionHandler extends DCErrorHandlerImpl") to catch all Model Layer Exception and to customize those error messages.
    I have implemented Error Handling in ADF Application with Custom View Exception Handler ( which is "CustomViewErrorHandler extends oracle.adf.view.rich.context.ExceptionHandler";) to catch all View Layer Exception and to customize those error messages.
    The design for this is , in Model Custom Exception Handler i find the exception message in "public String getDisplayMessage(BindingContext bindingContext,Exception exception) " method and throw RuntimeException to pass this exception to Custom View Layer Exception , so that i can handle all the exception @ View Layer it self .
    In the View Layer Exception Handler i am navigating to specific error page using
    String contextPath = ((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getContextPath();
    ExternalContext ectx = facesContext.getExternalContext();
    ectx.redirect.
    All these things absolutly working in ADF Application for all the exception ( Model , View ) and i am successfully navigating to error page.
    Problem  :
    When i implement the same thing in Webcenter Application ( Model Custom Exception Handler and View Custom Exception Handler), Model Part is working as expected , but View Custom Exception Handler is not all calling .
    i am assuming that ,this View Custom Exception Handler (CustomViewErrorHandler extends oracle.adf.view.rich.context.ExceptionHandler) works only for JSF Life cycle
    "Allows frameworks to intercept otherwise unhandled exceptions thrown during the JSF lifecycle. ExceptionHandlers can be registered by adding a service file with a class name at META-INF/services/oracle.adf.view.rich.context.ExceptionHandler." from http://jdevadf.oracle.com/adf-richclient-demo/docs/apidocs/oracle/adf/view/rich/context/ExceptionHandler.html";
    As Webcenter Portal uses ADF Life Cycle this Exception Handler is not calling , i am not sure.
    if any one has any idea please let me know .
    Thanks
    Annapareddy Srinivasrao
    Edited by: Srinivasrao Annapareddy on May 22, 2013 12:06 PM

    i used runtime exception along with the wdwsmodel exception

  • Exception handling in Web Services

    Hi all,
    I am exposing ejb2-based webservices and am unable to find a way to throw checked Exceptions.
    Could anyone provide resources about how to leverage SOAP/WSDL features of exception handling (i.e. wsdl:fault tag)?
    Thanks, regards
    Vincenzo

    Hi, thanks for replying
    actually on saphelp I found that supported Exceptions are:
    java.lang.Exception -> no fault generated
    java.rmi.RemoteException -> deploy refused with explicit error (RemoteException not allowed in ejb business method signature)
    java.lang.Throwable -> doesn't seem very appropriate to use such a root class
    Any suggestion?
    Thanks, regards
    Vincenzo

  • Active Event handler in Web Survey SAP-BI.

    I am creating web survey in survey transaction. In change questionnaire section, when I insert event handler in the question for example TO POSTING the right mach code show u201CNO FUNCTION SELECTu201D.
    I need programming o check the input field value of the question. I load application library and assigning an application library to a Survey the implementation badi UWS_FORM_RUNTIME , how explicate Sap Library u2013 Web Survey http://help.sap.com/saphelp_nw04/helpdata/en/02/739fe7a80746caa668958d558993ae/frameset.htm, but not function.
    I have a question, As can I implement Exit, BADI, BTE  or other way for checking the value in input field the question in the questionnaire the web survey and active the event handler.
    Thanks and Regards
    Emely

    Hi Emily,
    did you solve the issue?
    I have exactly the same issue. I have created the class, I have assign the application library to the class via UBDS and the message appears with the error "no function selected".
    Could you give me any clue?
    Thanks, have a great weeknd.

  • Exception handling for a standard SAP Function Module - the OO way

    Hello,
    I was wondering what is the correct way to call a standard SAP function module inside a method of global class.
    I want to display the error via the:
    get_text( ) and get_longtext( ) methods.
    I don't want to use the sy-subrc check. Is this possible?
    My example doesn't seem to work...
    See example bellow:
    DATA: ex_object_cx_root TYPE REF TO cx_root,
          ex_text TYPE string,
          ex_text_long TYPE string.
    TRY.
          CALL FUNCTION 'L_TO_CONFIRM'
            EXPORTING
              i_lgnum                        = i_lgnum      " Warehouse number
              i_tanum                        = i_tanum      " Transfer order number
              i_quknz                        = '1'          " '1' - confirm withdrawal only (picking )
              i_commit_work                  = 'X'          " Indicator whether COMMIT WORK in function module
            TABLES
              t_ltap_conf                    = it_ltap_conf " Table of items to be confirmed
            EXCEPTIONS
              to_confirmed                   = 1    " Transfer order already confirmed
              to_doesnt_exist                = 2
              item_confirmed                 = 3
              item_subsystem                 = 4
              to_item_split_not_allowed      = 51
              input_wrong                    = 52
              OTHERS                         = 53.
        CATCH cx_root INTO ex_object_cx_root.
          ex_text = ex_object_cx_root->get_text( ).
          ex_text_long = ex_object_cx_root->get_longtext( ).
          " Error:
          RAISE EXCEPTION TYPE zcx_transfer_order
            EXPORTING textid = zcx_transfer_order=>zcx_transfer_order
                 err_class = 'ZCL_WM_TRANSFER_ORDER'
                 err_method = 'CONFIRM_TO_2STEP_PICKING'
                 err_message_text = ex_text
                 err_message_text_long = ex_text_long.
      ENDTRY.
    Thank you very much in advance

    Hello Marko,
    If i understand correctly you've enclosed the call to the FM 'L_TO_CONFIRM' inside the TRY ... CATCH ... ENDTRY block.
    CATCH cx_root INTO ex_object_cx_root.
          ex_text = ex_object_cx_root->get_text( ).
          ex_text_long = ex_object_cx_root->get_longtext( ).
    You can't do this because the FM 'L_TO_CONFIRM' doesn't propagate OO exceptions!
    Your approach is almost correct, what you've to do is goes like this:
    CALL FUNCTION 'L_TO_CONFIRM'
      EXPORTING
        i_lgnum                        = i_lgnum      " Warehouse number
        i_tanum                        = i_tanum      " Transfer order number
        i_quknz                        = '1'          " '1' - confirm withdrawal only (picking )
        i_commit_work                  = 'X'          " Indicator whether COMMIT WORK in function module
      TABLES
        t_ltap_conf                    = it_ltap_conf " Table of items to be confirmed
      EXCEPTIONS
        to_confirmed                   = 1    " Transfer order already confirmed
        to_doesnt_exist                = 2
        item_confirmed                 = 3
        item_subsystem                 = 4
        to_item_split_not_allowed      = 51
        input_wrong                    = 52
        OTHERS                         = 53.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
              INTO ex_text. "Get the ex_text by this technique & not by CX_ROOT->GET_TEXT()
    ENDIF.
    I'll have to check how to fetch the long text of the message
    BR,
    Suhas

  • Exceptional Handling in Web Dynpro ABAP

    Hi,
    I have enhaced the std WDA component FITV_VC_COST_ASSIGNMENT, to check if user has selected a valid company code on the screen, if not then I need to display a error message as "Invalid Company code", thought I am able to do so but the message that pop ups on the screen as "WebDynpro Exception: Invalid Company Code", and I just want "Invalid Comapny Code".
    How to remove this "WebDynpro Exception" from the message.
    It is possible to do so ,if yes please provide me some valuable help and if not then let me know as well.
    My code snippet is
    if lv_bukrs ne lv_comp_code.
      RAISE EXCEPTION TYPE cx_wd_general
    EXPORTING
    textid = cx_wd_general=>cx_wd_general
    msg = lv_mesg.
    endif.
    where lv_mesg is my custom message to display.lv_bkrs is company code of the employee and lv_comp_code is the company code he has selected on the screen.
    Thanks
    Pooja

    Hi,
    I am sure that exception that is coming "webdynpro Exception: invalid company code" should be coming from the standard WD framework, i mean some kind of data validation for the domain you have chosen, as it is normal with some date data types we see!!!!
    so if this is coming from the standard domain checks then you should use if_wd_validaton interface and its methods to suppress that standard message and then raise your own messages as it is suggested in earlier replies, even i am not sure what is the dump you are talking here.
    Thanks,
    Kranthi.

  • Web Services of SAP CRM ABAP 7.0 not show up

    Hello Experts,
    We are testing SAP CRM 7.0.
    In T-cd:sproxy in CRM system, the Software Component Version SAP CRM ABAP 7.0 doesn't show up.
    We'd like to see the web service definitions for CRM Service Processing,
    but can't find them such as "ServiceOrderCRMCreateRequestConfirmation_In"(described in ES Workplace)
    to create Service Order in T-cd:sproxy nor T-cd:SE80 Repository Information System>Enterprise Services>Service Definitions.
    (We found the web service definitions of SAP CRM ABAP 5.1 there, but not SAP CRM ABAP 7.0)
    The support package versions are as follows:
    - SAP_ABA : SAPKA70106
    - SAP_BASIS :  SAPKB70106
    - PI_BASIS : SAPK-70106INPIBASIS
    - BBPCRM : SAPKU70006
    Could you please advise us what's required to find Web Services SAP CRM ABAP 7.0?
    Thank you in advance for your help.
    Best regards,
    F.T.

    Hi,
    You need to download SWCV "SAP CRM ABAP 7.0" in your CRM system from service market place. Also download PI content for SWCV: "SAP CRM ABAP 7.0" and import them in ESR.
    Regards,
    Gourav
    PS: Similar questions are answered several time on this forum, so please do search before posting.
    Edited by: Gourav Khare on Dec 13, 2010 11:56 AM

  • Can Web Service Consumption in SAP CRM 7.0 handle multiple records

    Hi All,
    I have a requirement where in I need to Consume a web service in SAP CRM. The response of the web service will have multiple records.
    My questions is will Web Service Consumption in SAP CRM 7.0 be able to handle these records in a popup or not.
    I would like to know whether it is feasible or not.
    Thanks,
    Deepika

    Hi Kavita,
    There is a standard column in UWL with name 'Sent Date'. Other functionalities in UWL for example deadline monitoring (Due date column) are based on this sent date. This shows an employee what was the date workitem was created (sent date) and when it will get escalated (due date). Displaying forwarding date in Sent date will not give clear picture to employee as the deadline will be calculated based on sent date only not based on forwarding date. this was just an example.
    even though if your client is insisting, i dont think it can be done without any enhancement in UWL web dynpro com sort of thing. you can check with your portal consultant too.
    Regards,
    Ibrahim

  • How to send Email to customer when clicked on hyperlink on SAP CRM web UI

    Hi all,
    I am working with SAP CRM 7.0 EHP1. I have one field named Email on Complaint description page on Web client UI. I have made the field a hyperlink by using the setter getter methods of attribute in component workbench for the component -BT120H_CPL. Now I want to send one mail to customer who have raised the complaint when clicked on the hyperlink Email through SAP CRM if possible or by using Microsoft  outlook(Microsoft outlook is default mailing server on the system).
    Please help !
    Thanks and regards,
    Kavita Chaudhary
    Mobile: 8800222151

    Hi kavitha Chaudhary,
    if you wan to send any details to outside mail id first you should get that person mail id. based on that you can send data to that mail id by using this code...
    just fallow this code in your event..
    DATA: send_request       TYPE REF TO cl_bcs.
    DATA: text               TYPE bcsy_text.
    DATA: document           TYPE REF TO cl_document_bcs.
    DATA: sender             TYPE REF TO cl_sapuser_bcs.
    DATA: recipient          TYPE REF TO if_recipient_bcs.
    DATA: bcs_exception      TYPE REF TO cx_bcs.
    DATA: sent_to_all        TYPE os_boolean.
    TRY.
    *     -------- create persistent send request ------------------------
           send_request = cl_bcs=>create_persistent( ).
    *     -------- create and set document -------------------------------
    *     create document from internal table with text
           APPEND 'Hi to all' TO text.
           document = cl_document_bcs=>create_document(
                           i_type    = 'RAW'
                           i_text    = text
                           i_length  = '12'
                           i_subject = 'test created by srinivas' ).
    *     add document to send request
           CALL METHOD send_request->set_document( document ).
            sender = cl_sapuser_bcs=>create( sy-uname ).
           CALL METHOD send_request->set_sender
             EXPORTING
               i_sender = sender.
    * hardcoded value im passing here u should capture customer mail id here..
    data : lv_email type string.
    lv_email = '[email protected]'.
    *     --------- add recipient (e-mail address) -----------------------
    *     create recipient - please replace e-mail address !!!
           recipient = cl_cam_address_bcs=>create_internet_address(
                                             lv_email ).
    *     add recipient with its respective attributes to send request
           CALL METHOD send_request->add_recipient
             EXPORTING
               i_recipient = recipient
               i_express   = 'X'.
    *     ---------- send document ---------------------------------------
           CALL METHOD send_request->send(
             EXPORTING
               i_with_error_screen = 'X'
             RECEIVING
               result              = sent_to_all ).
           IF sent_to_all = 'X'.
             WRITE text-003.
           ENDIF.
           COMMIT WORK.
    * *                     exception handling
    * * replace this very rudimentary exception handling
    * * with your own one !!!
         CATCH cx_bcs INTO bcs_exception.
           WRITE: text-001.
           WRITE: text-002, bcs_exception->error_type.
           EXIT.
       ENDTRY.
    after this go to sost transaction.
    first you can see first mail.. select your recent mail id execute then you will get email..
    try this and let me know..
    if this is not working then see this link too this might be help full to you.
    Hyperlink in Email using Send Mail Activity
    Thanks & Regards,
    Srinivask.

  • SAP-CRM - Auto Confirmation of Contract Account from IVRS to SAP-CRM IC Web

    Hello Experts,
    In Our Projects we are Using SAP-CRM Web Client for Call Center Processes. AVAYA is a Third Part agency which have developed the IVR system for handling the Consumer Calls. We have Developed BAPIs which will fetched data from SAP based on Contract Account entered by Consumer on IVRS. AVAYA have developed the CTI Pop-Up also which have several Consumer Details along with CA. Now Client wants that CA , entered by Consumer on IVRS, will be autoconfirm to CRM - Web Client. If anyone have any document for doing all these setting please share with us & Provide us guidelines...
    Regards,
    Abhishek Chopra

    Hello Abhishek.
    You can refer to [Note 707104 - Account identification from attached data|https://service.sap.com/sap/support/notes/707104]. It describes how to set autoconfirmation based on CAD.

  • S_DEVELOP authorization needed for CRM Web Client in SAP CRM 7.0?

    We implemented an own WebUI component in SAP CRM 2007 and use it in others components (with USAGE).
    After we transport the component in SAP CRM 7.0 we always got an error CX_BSP_DLC_CONFIG_GENERAL_ERR at loading the component. But if we set the permission to SAP_ALL all thing work fine.
    In SAP Note Nr. 1367944 we read:
    "It is not possible to run the CRM Web Client without the S_DEVELOP, activity=03
    authorization because it is needed by the Web Client Framework.
    The S_DEVELOP authorizatin is part of the SAP_CRM_UIU_FRAMEWORK PFCG role, which must
    be assigned to every user."
    "This dependency has been removed in CRM 7.0."
    Do we need to install some other SAP Notes at SAP CRM 7.0?
    Many thanks for advices!
    Handri Gunawan

    Hi Handri,
    I asked my collegue here, who created the note.
    The note is correct, in CRM 7.0 you do not need S_DEVELOP anymomre.
    The error that you have might occur because of another reason.
    Could you track the call stack of this exception?
    And send me back the call stack?
    Regards,
    Steve

  • Course WUS581 - Technical Details of SAP CRM Web UI

    I had the opportunity to attend 'WUS581 - Technical Details of SAP CRM Web UI' last month in Atlanta.  I understand it to have been the first time the course was offered in the US. 
    The course was great - here's a link to the official [description|https://training.sap.com/ca/en/course/wus581-wus581-tech-details-of-sap-crm-web-ui-classroom-095-us-en/] . I believe this was an adaptation of the material from the Deep Dive Series. I have to say, that it was pretty fast paced as well - you really need to keep up as much of the material built upon what was already taught. 
    The materials from the class are invaluable.  The labs were well done, and offered detailed solutions.  The labs were numerous, appropriate, and clean.  Most of the twenty exercises were cumulative.  I have since gone back to review some of the concepts, and the material stands well even outside of the classroom.
    This course has given me a much better understanding of the bigger picture.  While I have not come from a CRM or BSP background, I have been working with webUI on a CRM 7.0 based SAP Custom Development Solution, [Fund Raising Management|http://www.sap.com/services/portfolio/customdev/brochures/index.epx] for about half a year.  So, I had at least been exposed to the workbench and some concepts over the previous six months.  This course really helped me tie some things together.
    I just wanted to share my experience with the group...
    ...Mike

    Mike,
    I'm curious to find out how did you find out that the course you took was scheduled. The reason why I'm asking is that I didn't even know that SAP even offered the course in the US, so I would have tried to attend myself if I found out about in advance.
    Glad to see you recommended the course.  There isn't going to be much CRM related technical content at SAP Teched in Las Vegas this year,  however there may be at least one session attending (wink-wink), that's not listed yet.  I would still recommend that CRM development folks still attend teched, because there is plenty of great technical content that we can use regardless.
    Take care,
    Stephen

  • Pop-up screen not showing while accessing transactions in SAP CRM WEB-UI

    When we are logging on SAP CRM WEB UI, for transactions like Lead, Complaints and Activities-
    Sometimes Pop up screen is showing for selecting transaction types, but sometimes it is not showing.
    We have tried it on different work stations with same user id and standard business roles , but we are not able to trace the problem. Also with same id sometimes error shows, "No business roles attached, not allowed to logon,
    after that when we tried on other workstation with same id we were able to access all transactions.
    Please suggest what would be the problem. 
    Rishikesh

    This is sporadically occurring issue hence I cannot pin point one single reason. Since sometimes you are able to logon and some time not certainly it could not be a Role authorization issue.
    Just check if your business role is properly configured. Thats all i can say.
    Regards
    Kavindra

Maybe you are looking for

  • Report on Total U/R stock and Open PO quantity

    Dear Friends, Is there any standard report or table which gives the present unrestricted usage stock and Open purchase order stock for all materials in a storage location or material group as selection instead of single material. If we can have open

  • Output type PO - NEU spool request

    Dear Experts, In my scenario, PO determined standard output type NEU which is in yellow symbol. when i investigate output determination, system updated output found however, spool request is not created when i i click on processing log. Any specific

  • Drop partition without disabling foreign key

    Hi All, I have parent and child table. Parent table create table parent_1 (id number, create_date date, constraint parent_1_pk001 PRIMARY KEY (id)) PARTITION BY RANGE (create_date) INTERVAL (NUMTODSINTERVAL(1,'DAY')) (PARTITION parent_1_part VALUES L

  • 3rd party process using product allocation for ATP-check

    Hi all, is there anybody out there who can share experience in setting up the 3rd party process using product allocation on APO for ATP-check? As the documentation is not that impressive any help is higly appreceated. Thanks Michael

  • Each window that I open stays open on the screen. How can I get rid of this "tiling"?

    On an iMac G4 with OS 10.4.11, recently each window I open stays on the screen when I open files within them. This creates what I think is called "tiling." I must have given an erroneous command, and I don't know how to get rid of it.  I hope someone