Error messages in BSP

Hi,
I have a requirement in BSP which consists of 2 pages.the first page has 5 checkboxes with 2 input parameters and my reqiurement is that i need to get the error message if the user executes the first page without selecting any of the checkboxes.
Kindly advice on this.
Thanks & Regards,
Mani

Hi Manikandan,
I guess you have a button on first page , which when clicked takes the user to second page.So you can use the onClientClick event of the button .
Something like:
<htmlb:button id = "BTN"
text = "continue"
on C l i e ntCli c k = "c h e c kDa t a();
o n C lick  =  "some_event">
<s cript>
function checkData()
if( (d ocument.getElementById('cbox1').value='')|| ( (d ocument.getElementById('cbox12).value='')|| ( (d ocument.getElementById('cbox3').value='')|| ( (d ocument.getElementById('cbox4).value='')|| ( (d ocument.getElementById('cbox15).value='')|| )
a lert('Your error message');
htmlbCancelSubmit = true ;
</s cript>
Regards,
Anubhav

Similar Messages

  • Triggerring error messages in bsp

    Hi,
    I have 2 screens in bsp,first screen with 2 input fields and 5 checkbox,if the user doesn't select any of the checkbox and excute ,the error message should trigger in the same page .
    please provide me the code on javascript with bsp application as example.
    Thanks & Regards,
    Naveen

    Hi Naveen,
    Exactly similar issue is discussed in [THIS|Error messages in BSP; thread.
    Please search before posting.
    Regards,
    Anubhav

  • How to display error message in BSP

    Hi,
    I am working on a BSP application where I want to display some error messages if a particular validation fails.
    I have written the code for adding the message using CL_BSP_MESSAGES->ADD_MESSAGE in event DO_HANDLE_EVENT. The message passed is added successfully in table M_MESSAGES in method ADD_MESSAGE . But I want to know what code should be written in the layout to display this error message.

    Hi,
    In javascript you have to do validation(Eror Message) below is the sample code for message
    var yourwords = "Enter Carrid"    !';
    vae speed = 500;
    var control = 1;
    function flash()       
    if  ( control == 1 )
    windows.status = yourwords ;   
    control = 0;    
    regards
    krishnakiran
    Edited by: Krishna KiranN on Dec 12, 2011 11:53 AM

  • Error message in bsp application

    hi
    Im tamil selvan .....this is my first bsp application i created .. but i cant view the output..the default html code itself not executing... i copied the same code in text and saved in html its executing there... i dont know what is the issue..is any system files are missing...plz guide me im new to bsp....first what should i learn ...  the below is the error i pasted...
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    Die URL enthält keine vollständige Domainangabe (isys-ecc statt isys-ecc.).
    Exception Class CX_FQDN
    Error Name 
    Program CX_FQDN=======================CP
    Include CX_FQDN=======================CM002
    ABAP Class CX_FQDN
    Method CHECK
    Line 10 
    Long text -
    Error type: Exception
    Your SAP Business Server Pages Team

    Hi Tamil,
    welcome to the SAP Community Network. You will find lots of great resources, tips, and examples here.
    Of course to find them you have to look for them. You will find most people more than happy to help you with problems if you first try and help yourself by searching for the solution yourself.
    So please, search the forums for the solution to your problem before you post.
    Cheers
    Graham Robbo

  • Display error message on the user profile modification page identity system

    HI All,
    I have created a workflow for chang attribute for email id. I have associated an external action to th workflow id which will check the emailid uniqueness in OID.
    When an end user login to OAM user manager and clicks on update my profile, use can see a button with modify request beside email id. when user modifies email id and save the changes, we are able to display email id already exist message in the next page of user profile. but we need to display the message on the same page.
    Can any one help us.
    Thanks in Advance.

    You can do this using java script throwing an alert popup or you can check if the fields are initial in oninputprocessing and fill a variable like gv_error = 'Enter values of mandatory fields.' and display the same in layout using
    <phtmlb:messageBar id = "messageBar"
    type = "<%= gv_severity_str %>"
    text = "error"/>
    See this thread for more..
    How to display error messages in bsp page
    search the forum before posting a new thread....

  • Internet Sales B2C - Display error message on the basket

    Hi, I am working on developments on the Internet Sales B2C scenario. I am trying to add new checks that are to be performed after the user has clicked the "Order" button on the basket.jsp page.
    I have already created the action and the BO, BOM, and Backend object and I changed the action flow so after b2c/basketcheckout.do instead of calling b2c/maintaincheckout.do the system calls my own action, and if I have an error what I am doing is calling the addMessage() on the Basket object, and then sending the action flow to b2c/basketdisplay.do.
    Everything is working fine except that the messages that I add to the basket are not shown when basket.jsp is displayed and I think this is because somewhere after the b2c/basketdisplay.do action is called and before the basket.jsp page is displayed the standard deletes any messages on the basket.
    Should I change my program so instead of calling b2c/basketdisplay.do I call a different action to display the basket but keep my messages?
    Does anyone has any better idea than what I am doing rigth now? I would gladly appreciate any help.
    The config.xml that I have looks like this:
    <action path="/b2c/basketcheckout" type="com.sapmarkets.isa.isacore.action.b2c.order.MaintainBasketB2CCheckoutAction">
                   <forward name="login" path="/b2c/login.jsp"/>
                   <forward name="basketEmpty" path="/b2c/order/basketEmpty.jsp"/>
                   <forward name="checkout" path="/b2c/basketchecktopes.do"/>
                   <forward name="ordersplit" path="/b2c/busy.jsp"/>
              </action>
              <action path="/b2c/basketchecktopes" type="com.orbitel.isa.action.CheckTopes">
                   <forward name="checkout" path="/b2c/maintainCheckout.do"/>
                   <forward name="basket" path="/b2c/basketdisplay.do"/>
              </action>
    And the coding in my action is:
    UserSessionData userSessionData = UserSessionData.getUserSessionData(request.getSession());
    BusinessObjectManager bom = (BusinessObjectManager)userSessionData. getBOM(BusinessObjectManager.ISACORE_BOM);
    SalesDocument miOrden = bom.getBasket();
    if(miResp.equals("A"))
         return mapping.findForward("checkout");
    else
         miOrden.addMessage(new Message(Message.ERROR, "system.forward.info", new String[]{"Ha superado el tope de sesion"}, null));
         return mapping.findForward("basket");
    Thanks
    Juan

    You can do this using java script throwing an alert popup or you can check if the fields are initial in oninputprocessing and fill a variable like gv_error = 'Enter values of mandatory fields.' and display the same in layout using
    <phtmlb:messageBar id = "messageBar"
    type = "<%= gv_severity_str %>"
    text = "error"/>
    See this thread for more..
    How to display error messages in bsp page
    search the forum before posting a new thread....

  • Collect Error Message from SAP program to BSP Page

    Hi Experts,
    I am displaying an error message in the form of pop-up Message  in a Screen based on a condition using BADI on R/3 screen , but when i am calling the screen from Portal (BSP PAge) I am unable to see the Error Message which is being displayed as a pop-up in r/3..
    How to catch the error and display in BSP Page.....
    I have searched the forum but didnt find any suitable replies....
    Plz help
    Regards,
    Srikar

    Hi Srikar,
    It depends.
    Generally though you display a message in SAPGUI it does not display automatically in BSP.
    Some times you have to manually write some code to populate and display a message in BSP.
    First you need to find the BSP page and write some code to display error messages in the same..
    Regards,
    Sreekanth

  • BSP Application exists but is Inactive - Error Message

    Hello,
    The Web Interface builder is giving  "BSP Application exists but is Inactive " this error message when we try to generate the interface after changes in BPS_WB transaction. As a result the changes are not reflecting in the application. I activated this BSP application from SE80 and also from SICF but still the same error is encountered.Any one experienced the same before? Any help would be greatly appreciated with points

    Hi SJ,
    try to copy the web interface to a new one. The generate and check if everything has been activated correctly (SICF, BSP app). Everything should be automatically active.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Web-UI error message "Access via 'NULL' object reference not possible"

    I need some help, I'm not a Basis person but I need to get this connection problem resolve.
    This problem is in our DEV ICWeb system.  After logging in to Web-UI, I got a error message "Access via 'NULL' object reference not possible".  We have 3 clients (100, 220, & 310) in DEV and all 3 clients are giving me the same error message.
    From the help.sap.com, I found this topic http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
    but in the document it asked to go to SM59 to check the ESH_APPL_WS_TEMPLATEENGINE destination.  But we don't have that destination setup in all our systems.
    Here is the complete error message:
    Error when processing your request
    What has happened?
    The URL http://crm-dev.staff.copa:8000/sap/bc/bsp/sap/crm_ui_frame/BSPWDApplication.do was not called due to an error.
    Note
    ■The following error text was processed in the system CD1 : Access via 'NULL' object reference not possible.
    ■The error occurred on the application server CRM-DEV_CD1_00 and in the work process 0 .
    ■The termination type was: RABAX_STATE
    ■The ABAP call stack was:
    Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: EH_TRIGGER_NAVIGATION of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: SET_WORKAREA_CONTENT of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
    Method: PROCESS_NAV_QUEUE of program CL_BSP_WD_VIEW_MANAGER========CP
    Method: DO_INIT of program CL_CRM_UI_FRAME_APP_CONTROLLERCP
    Method: DO_INIT of program CL_BSP_CTRL_ADAPTER===========CP
    Method: GET_PAGE_CONTEXT_CURRENT of program CL_BSP_CONTEXT================CP
    Method: ON_REQUEST_ENTER of program CL_BSP_RUNTIME================CP
    Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
    What can I do?
    ■If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system CD1 in transaction ST22.
    ■If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server CRM-DEV_CD1_00 in transaction SM21.

    Hi Michael,
    Refer to the link below and check the procedure.
    http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
    Regards,
    Arjun

  • Error message from originating program when clicking on weblink to open FF4

    FF4 is now my default browser on my WinXP netbook. (Instead of FF3.6.)
    If FF is not open and I click on a weblink in Outlook or other programs, FF4 opens the webpage but I also get an error message in the originating program saying the system cannot find the file. If FF4 is already open I do not get the error message. FF3.6 did not generate this error message even though it took significantly longer to open than FF4.

    Hi Srikar,
    It depends.
    Generally though you display a message in SAPGUI it does not display automatically in BSP.
    Some times you have to manually write some code to populate and display a message in BSP.
    First you need to find the BSP page and write some code to display error messages in the same..
    Regards,
    Sreekanth

  • Error message in Web UI

    Greetings
    I am getting the following error message and ive tried numerous attempts to debug but i am not finding the problem. This message is displayed on the web page after i log in.
    An error occurred during initialization of the application
    An exception occurred during the internal HTTP communication
    Exception Class     CX_BSP_WD_HTTP_RESPONSE_ERROR
    Text:     HTTP answer has status 404
    Additional Info:     Business Server Page (BSP) Error
    Program:     CL_BSP_WD_STREAM_LOADER=======CP
    Include:     CL_BSP_WD_STREAM_LOADER=======CM002
    Source Text Row:     73
    Any suggestions?

    Hi,
    I also experience this scenario. It prompts me with this error.
    The runtime repository could not be interpreted
    An exception occurred during the internal HTTP communicationException Class CX_BSP_WD_HTTP_RESPONSE_ERROR
    Text: The HTTP Response Had the Status 403.
    Additional Info: Forbidden
    Program: CL_BSP_WD_STREAM_LOADER=======CP
    Include: CL_BSP_WD_STREAM_LOADER=======CM002
    Source Text Row: 61
    Ive checked the authorization in SU01 but my account has SAP_ALL authorization.
    Please help.
    Thank you,
    Ice

  • Error Message ME 083, "Please enter plant" while creating PR or PO

    Hi,
    I have one problem in my SAP system. Eventhough i maintained everything in IMG customization relevent settings to create PR or PO and Org str well defined with comany, plant etc, assignments of org str well done, while creating PR or PO, system throughs error message "Please enter plant". Eventhough i manually enter the plant number in PR or PO, again i get the same error.  The error message number is ME 083. Please guide me how to overcome this error?
    Thank you.

    Hi
    Did you create the plant form scratch or did you copy it from an existing one.
    If it is the last, check the assignments again.
    See [626252|https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=626252] or [580164|https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=580164]
    regards
    Sidi

  • Displaying error messages in table...

    Hi All,
    How can we display error messages in a table in a bsp page.
    I am filling an internal table in OnInputProcessing on some event with all the error messages to be displayed.
    Table sould have two columns
    1)Graphic depending on error type.
    2)Error message.
    Thanks,
    Anubhav.

    Hi Graham,
    The solution is perfect!
    One more thing...when the page is displayed with errors table , i need to set focus on the table.
    My code is:
    <htmlb:gridLayoutCell columnIndex="1" rowIndex="1" id="fourthmain">
    <% if itab_message is not initial .%>
      <table class=""urGridLayout" border="1" cellpadding="2" id="err_tab">
        <%
      loop at itab_message into wa_message.
        %>
        <tr>
        <td class="urCoB2Whl">
        <% case wa_message-typ.
          when 'S'. %>
          <htmlb:image src = "ICON_MESSAGE_INFORMATION" />
          <% when 'error'. %>
          <htmlb:image src = "ICON_MESSAGE_ERROR" tooltip="Error" />
          <% when 'W'. %>
          <htmlb:image src = "ICON_MESSAGE_WARNING" />
          <% when 'I'. %>
          <htmlb:image src = "ICON_MESSAGE_INFORMATION" />
          <% when 'A'. %>
          <htmlb:image src = "ICON_MESSAGE_CRITICAL" />
          <% endcase. %>
        </td>
        <td><font size="2" face="Times">
        <%= wa_message-msg%>
        </font>
        </td >
        </tr>
        <%
      endloop.
        %>
        </table>
    <% refresh itab_message. %>
    <% endif. %>
          </htmlb:gridLayoutCell>
    I tried using
    <phtmlb:focusRect focusElementId="err_tab"/>
    and also:
    <s cript="text/javascript">
    daument.farm.elementid.focus();
    </s cript>
    But failed...pls help me out.
    Thanks,
    Anubhav.

  • E-Recruitment error message :Page cannot be displayed

    Hi E u2013Recruitment Experts,
    While testing the E rec BSP pages from SE80 I am getting the error message:
    Page cannot be displayed.
    What I have done is as follows:
    Step 1:defined the context in table V77RCF_CONTEXT
    Step 2:defined the element of container sequence in table V77RCF_CS_ITEMC  by copyin the data from table V77RCF_CS_ITEM
    Step3. defined the container sequence in table V77RCF_CS_SEQC and defined the element.
    Step 4.defined link for start pages in table V77RCF_SP_LINKC while copying the data from table V77RCF_SP_LINK
    Step 5.Define Start page groups in table V77RCF_SP_GROUPC while copying the enteries from V77RCF_SP_GROUP
    Step 6;Defined Start pages in table V77RCF_SP_ASIDC while copying enteries from table V77RCF_SP_ASID
    Step 8:I generated the url using the program RCF_GENERATE_URLS using Https protocol
    Apart from above setting I have also made entries in the following customer tables:
    T77RCF_SP_ID(C) - Startpages
    T77RCF_SP_ID(C)T - Startpages texttable
    T77RCF_SP_GROUP(C) - Startpage groups (the blocks with a number of links)
    T77RCF_SP_GROUPT/GRPCT - Startpage groups texttable
    T77RCF_SP_LINK(C) - Links
    T77RCF_SP_LINK(C)T - Links texttable
    T77RCF_SP_ASID(C) - assignment of groups to startpages
    T77RCF_SP_ASGRP(C)
    But still I am getting the error message that the page cannot be displayed
    Can any body tell me where I have missed out
    Thanks and best regards
    Rajeev chhabra

    Hi Naddy,
    I could not find the error log in the given T code.Is there anything else where I should look at.
    Cheers
    Rajeev

  • Error message when doing SUBMIT

    Hello there,
    i am just working on BSP pages that call ABAP Reports with "Submit" and display the Results within the BSP.
    My Problem now is that some reports may come up with an Error message (type 'E') that stops the report and the processing of the BSP Page. The page displays then a "500 internal SAP Error".
    I found a good weblog here: /people/mark.finnern/blog/2003/09/16/bsp-in-depth-message-statement-handling but also to encapsulate the Submit by a function call does not help here. The page stops when calling the submit.
    Is it somehow possible to prevent the BSP-Page from terminating and catch the error message from the Report? I can not modify the Reports that are called.
    Thanks for any help,
    Stefan
    6.20 SP49

    Hi Stefan,
    If your report returns the error message or message id, you could pass this on as an export parameter in your wrapping function back to your BSP event.
    To display the error message on the same BSP page, include the following code in the event where err_msg is the error message from your report passed on to the function:
    page->messages->add_message(
    condition = 'REPORTERROR'
    message = err_msg
    severity = page->messages->CO_SEVERITY_ERROR ).
    In the layout of the BSP page include the following code where you want the error message to be displayed:
    <font color="red"><%= page->messages->assert_message( 'REPORTERROR' ) %></font>
    Make sure the condition has exactly the same name in the event and the layout.
    Additionally you could also use the SY-SUBRC after your SUBMIT statement and display a generic message for an internal error if the SUBMIT statement itself fails.
    Regards,
    Rohini.

Maybe you are looking for

  • Data sometimes doesn't display

    When I load data into level 0 members the data doesn't appear on upper intersections. I run a calc all to make sure the numbers roll up, but I only see the data when I expand all dimensions down to level 0. How do I see data at the first intersection

  • Mail with two users logged in

    I'm having a problem in which if I have two users logged into my Mini and one of the two users launches Mail, the other user has mail launch as well. Now this wouldn't be a big deal except when my wife gets on the mini and my user is logged in and I'

  • How to disable/activate Triggers after/before Runtime

    Hi All, D/b having triggers say all triggers running on day 25th of every month. Is there any way so that i can disable all the triggers when it is not in use/running except on the day 25th of every month and activate it before run time. Thanks in Ad

  • Scrollable content (pan option) with hyperlink doesn't work

    Hello, I'm trying to layout a page to scroll horizontaly with an hyperlink to a web site. I've followed the steps given in the digitalpubsuite_help.pdf (Page 51 - Last updated 1/25/2012). After grouping the image and the hyperlink, I cut it and I pas

  • HELP with PHP Mobile Detection

    I have built a mobile site and woudl like my desktop site to detect mobile devices and auto redirect. I'm new to PHP and really don't know where to go from here. I have this code: <?php require_once('mobile_device_detect.php'); mobile_device_detect('