Question on issuing a error message

HI All,
I am new to WDA.   I am developing a WDA application, on the first view I have a table and a button to go to the next view.
When the table is empty i need to issue a error message in the message area and the user should not be able to navigate further using the NEXT button.  
I want to display this message before the user does some action i.e ( before the button trigger ).
Can some one help me how to achieve this.
Thanks,
Krishna

i need to issue a error message in the message area and the user should not be able to navigate further using the NEXT button.
now if ls_cn_input is INITIAL , u need to generate a error message and disable ur NEXT button
//for generating the error message
// this can be done by code wizard ( cntrl +f7) as well by selecting the radio button generate message and select the
// method *report_error_message*
*    DATA lv_message  TYPE string .
**     get message manager
*    DATA lo_api_controller     TYPE REF TO if_wd_controller.
*    DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
*    lo_api_controller ?= wd_this->wd_get_api( ).
*    CALL METHOD lo_api_controller->get_message_manager
*      RECEIVING
*        message_manager = lo_message_manager .
**     report message
*    CALL METHOD lo_message_manager->report_error_message
*      EXPORTING
*        message_text   = 'Please enter data before exit .'.
// ur error message
the user should not be able to navigate further using the NEXT button.
// disable the NEXT button
u procced as follows :
1 create a context attribute of type WDY_BOOLEAN
2 bind this with ur button UI
3 nw using set_attribute method , set its value to ' ' ( ie blank)
again this cn be donr thru code wizrd by selecting read context node/attribute
DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
    DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
    DATA ls_cn_node TYPE wd_this->element_cn_node .
    DATA lv_attr  LIKE ls_city-ca_attr.
*   navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
    lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
*   get element via lead selection
    lo_el_cn_node = lo_nd_cn_node->get_element(  ).
*   set single attribute
    lo_el_cn_node->set_attribute(
      EXPORTING
        name =  `CA_ATTR`
        value = ' '  ).
// I have read ca_attr  attribute under context node cn_node
// this attribute is binded to button UI
I hope it helps
rgds,
amit

Similar Messages

  • Best Practices Question: How to send error message to SSHR web page.

    Best Practices Question: How to send error message to SSHR web page from custom PL\SQL procedure called by SSHR workflow.
    For the Manager Self-Service application we’ve copied various workflows which were modified to meet business needs. Part of this exercise was creating custom PL\SQL Package Procedures that would gather details on the WF using them on custom notification sent by the WF.
    What I’m looking for is if/when the PL\SQL procedure errors, how does one send an failure message back and display it on the SS Page?
    Writing information into a log or table at the database level works for trouble-shooting, but we’re looking for something that will provide the end-user with an intelligent message that the workflow has failed.
    Thanks ahead of time for your responses.
    Rich

    We have implemented the same kind of requirement long back.
    We have defined our PL/SQL procedures with two OUT parameters
    1) Result Type (S:Success, E:Error)
    2) Result Message
    In the PL/SQL procedure we always use below construct when we want to raise any message
    hr_utility.set_message(APPL_NO, 'FND_MESSAGE_NAME');
    hr_utility.raise_error;
    In Exception block we write below( in successful case we just set the p_result_flag := 'S';)
    EXCEPTION
    WHEN APP_EXCEPTION.APPLICATION_EXCEPTION THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    WHEN OTHERS THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    fnd_message.set_name('PER','FFU10_GENERAL_ORACLE_ERROR');
    fnd_message.set_token('2',substr(sqlerrm,1,200));
    fnd_msg_pub.add;
    p_result_message := fnd_msg_pub.get_detail;
    After executing the PL/SQL in java
    We have written some thing similar to
    orclStmt.execute();
    OAExceptionUtils.checkErrors (txn);
    String resultFlag = orclStmt.getString(provide the resultflag bind no);
    if ("E".equalsIgnoreCase(resultFlag)){
    String resultMessage = orclStmt.getString(provide the resultMessage bind no);
    orclStmt.close();
    throw new OAException(resultMessage, OAException.ERROR);
    It safely shows the message to the user with all the data in the page.
    We have been using this construct for a long time for all our projects. They are all working as expected.
    Regards,
    Peddi.

  • Unexpected issue of error message (output 00 001)

    Dear Guru's
    Please help me to come out from this issue , iam getting this massage in VL10b t-code
    Unexpected issue of error message (output 00 001) massage VR555
    Thanks
    Caprin

    Hi Srinath,
    I noticed that you helped with the problem reported above.
    I'm having the same problem and can not find what could be wrong.
    When I try to create a delivery from the transaction VL10B, gives the following message:
    Unexpected issue of error message (output 8B 213)
    Message no. VR555
    Could you help me?
    Tks
    Lucas

  • Unexpected issue of error message at time of STO Delivery

    Hi,
    I am trying to create STO Delivery by transaction by VL10B by I am getting error 'Unexpected issue of error message (Output VL 447).
    Please help in order to solve issue.
    Lait

    Hi,
    We have reuired changes in Note but problem was wrong Partner determonation procedure assigned in delivery type.

  • Authorization issue - repeating error message

    I'd just like to mention that I recently experienced the dreaded authorization loop where iTunes continuously asks for authorization to play certain songs. After exhausting different possibilities to resolve the problem, I tried something different. When iTunes asked for my ID and Password, I reset my password through the "forgot password" button - and then answering the secret question I used when I made my ID. Once that was done, I clicked on the song that activated the authorization error, and entered my new password. This worked for me.
    I should note that the ID that was displayed by the authorization error message (before resolving my issue) did not follow the '[email protected]'. The ID field only displayed everything prior to the '@' symbol. I don't know what to make of this, but as I looked at the songs that I wanted to play, and by utilizing the command+i (get info) function for the songs, I noticed that the purchaser ID did not follow the '[email protected]' format either (though all other music I was able to play DID follow this format).
    So, I would suggest checking the songs that activate the authorization error, and taking note of the user ID that purchase the song. I suggest putting that ID into the ID field of the error message, resetting the password, and seeing where that leads.
    It was a weird situation but I figured it out. Hope this helps someone!

    VicDesotelle wrote:
    repeating error message: "acl found but not expected" during permissions repair
    My iMac is running slow. Processor running all the time. I was told to do permissions repair, so I did that. I get 100's and 100's of "ACL found but not expected" while doing a permissions repair in 'utilities'. It says 1 minute to complete but runs for a half hour. When it finally completes, I can restart the permissions repair again and it starts all over with same endless messages. Even though its says 'repaired', these ACL issues keep coming.
    ACLs are just junk left over from previously installed OSXs. Just ignore. They have no impact.
    Describe your exact issue and computer specs and Linc may run you through a series of tests which may well help you find the problem to your issues. I agree, Permissions repair is rarely required.
    Cheers
    Pete

  • Safari (6.0) issues an error message re extension being disabled.

    Since installing the 'latest' version of Safari - an extension I had running is creating an error when Safari starts up. However, when I got to the Extension tab in Safari Preferences, the extension is NOT there (anymore) so I cannot remove it.
    Where could I find this extension - to remove - and hence stop the error message from coming up?
    The extension was 'Safari OmniBar' which gave Google-like search from the URL field.

    I've been dealing with the exact same omnibar issue since updating Safari. I've tried going to the Safari extensions folder in Finder (Home>Library>Safari>Extensions) but can't locate the actual extension (even though all my other extensions are there).
    Apple? Any thoughts?
    UPDATE: just found this on the author's website: http://hackemist.com/SafariOmnibar/#faq
    How to uninstall?
    Remove the extension by running the following command:
    sudo rm -rf /Library/Application\ Support/SIMBL/Plugins/SafariOmnibar.bundle
    Alternatively you may download this uninstaller and run it. Note that uninstaller won't remove SIMBL Agent as you may use some other SIMBL plugin and we don't want to break them.

  • REVERSE GOODS ISSUE ENCOUNTERED ERROR MESSAGE

    Dear Experts,
         When do the      reverse post goods  issue VL09  the movement type is 601 encountered a error message-'
    "HU ITEMS's   MATERIAL POSTING IS INCONSISTENT " after configuration changed for HU no. from non-unique to unique.
         Could u anyone please advise me solve this issue?
         Thanks in advance
    with regards
    s.anbu

    Hi
    Implement the program correction in function module HU_CONSISTENZ_CHECK
    Do check support package and release
    Please refer
    Note 702800 - Error with reversal, HU inconsistent
    Regards
    Jitesh

  • How to issue an error message in srm using BBP_DOC_CHANGE_BADI implem?

    Subject....
    This can be easily done in BBP_DOC_CHECK_BADI using et_message exporting table. There's no table like that in DOC_CHANGE_BADI. Please Advise.

    Hi
    First, let me one thing like "ET_MESSAGES" is not a database table it is an EXPORTING parameter of BADI (BBP_DOC_CHANGE_BADI).
    This exporting parameter is referred to one TABLE TYPE (BBP_TMESSAGES_BADI) and internally it refers to the structure (BBP_SMESSAGES_BADI).
    So, what you need to do is just capture all the error messages in to some internal table and loop the internal table and populate "ET_MESSAGES" internal table which is a exporting parameter.
    Hope it helps you.
    Thanks
    Siva

  • Firefox 3.6.15 does not load, if automatic upgrade or issues an error message if installed by hand.

    I allowed Firefox 3.6.15 to update my existing Firefox (3.6.13). After the upgrade, Firefox does not load (not in Task Manager). I removed it, downloaded and installed it by hand, and I get a 1.9.15 not compatible with 1.9.13 error message. When I reinstall Firefox 3.6.13, it works fine.

    A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls

  • Some issues regading error messages.

    Error message doesnu2019t take you to the section where the user has to make the entry.  Can this be rectified?
    Not a standard feature of WEB UI to enable the user to navigate to the required field from the error messages box. The respective mandatory fields can be highlighted in the overview or assignment blocks, but if it is across assignment blocks the user needs to scroll and check where it is. Attempting a development to be able to navigate to the field from the error messages box is very complex. WEB UI technical consultant needs to make an assessment of feasibility
    Regards,
    Vishwanatha.N

    hello there...
    Explained in the below link:
    [Error message with a hyperlink attached to it|Error message with a hyperlink attached to it]
    Regards,
    Vinamra

  • How to issue an error message in SRM portal?

    Subject...
    I've tried using FM BBP_PD_MSG_ADD in BADI implementation BBP_DOC_CHANGE_BADI but it's not working. There's always an exception LOG_NOT_FOUND.
    Please advise.

    Hi,
      Any error generated from SRM will be visible in Portal view. No additional configurations or developments are required for that purpose.
    In order for messages to generate, you will ve to use BBP_DOC_CHECK_BADI.
    DOC Change BADI is meant for changing the SRM application documents based on customer's own criteria.
    Regards
    Virender Singh

  • SCOT issue - resending errored messages

    Our SAP 4.6 system crashed and, after it was brought back up, one of my colleagues attempted to resend mail messages that had errored out ("Cannot transfer message to node EMAIL due to RFC error").  He resent them and all are sitting in a wait status with status text "Put in the queue again by".  Subsequent mail messages have been sent successfully but these continue to sit in a wait status.
    I've checked SCOT and see them in a wait status.
    How can I resend these messages?
    Thank you for your assistance.

    Mary,
    SCOT transaction
    Method
    Utilities
    Overview of send orders
    Put in your selection criteria and execute to get a list of transmissions
    Select the transmissions that you want to resend
    Select the u2018Repeat sendu2019 icon from the toolbar or alternatively from the menu u2018Send Processu2019 then select Repeat sendu2019
    But first I would check that the RFC connection is ok
    Select the relevant node, eg INT and select your object like NOTES
    You can double click to view the general node data
    Alternatively from the menu select u201CNodesu2019 then u2018Displayu2019
    Double click on the RFC Destination.  This will take you to RFC destination (SM59) and you can test the connection
    Regards,
    Mike

  • How to solve this Data Configuration issue with error message ORA: 01017

    Bad public user name or password. ORA-01017: invalid username/password; logon denied
    How to solve this?

    I'm using JCreator jdk1.5.0_7.But i don't know how
    to use command prompt. When i execute my program, the
    command prompt showed
    Exception in thread "main"
    java.lang.NoClassDefFoundError: StringManipulation
    Press any key to continue...So you managed to compile your code since now you are running it. This error means that the class StringManipulation was not found. Usually an indicator that your classpath is incorrect.
    What did you do to generate this error? That is, how did you execute your program?
    [edit] if you did not compile your code then there is no class file StringManipulation.class and this error will appear.

  • Tabstrip changes after issue error message in PS

    hello
    I am using an exit FUNCTION EXIT_SAPLCNAU_004 and inside that include I have an error validation for Network activity for project systems.   When i issue the error message that validates the fields in the tab, the tab changes making the current tab that user was on not active anymore.
    Is there a way to make it stay on the current tab when I issue an error message ?  Thanks!

    Hi,
    Try using the Property ACTIVETAB of the Tabstrip Control.
    Just before your Error Message, set the Active Tab as the Tab you are Looking.
    For Eg:
    tabstrip-activetab = 'TAB1'.

  • Error message does not lead to the custom tab me51n

    Hi Experts,
    When I try to to create a PR in me51n and check, a popup with error messges appear when we pick one of the entry and select edit button that leads to the field of that concerned tab.I have a custom tab and cutom field the issue is error message is displayed to fill the custom field but when I check mark that error and select edit that does not take me to the custom tab where custom field exists please suggest I have tried lot of user exits but no use.
    appreciate your help......

    We added some error message checking using Function exit EXIT_SAPLMEREQ_005. How we can bring the screen to Customer Data Tab when there are any errors under the tab. And as long as the error is not fixed, the screen will stay on the tab?
    To eloborate my question - in ME51n/Me52n, the system gives a messages window/subscreen with errors or warnings upon clicking the check button or upon save. On the messages window/subscreen, we can select a particular message and edit will take action to the corresponding tab with the cursor on the field with the issue. I understand this is standard functionality.
    However I'm looking for a way to make this work for a mandatory field on the customer data tab i.e., when I select the error message pertaining to this mandatory field and choose edit, control should jump to the customer data tab with the cursor on the mandatory field.

Maybe you are looking for

  • File Adapter: Different lines in one file

    Hi, I receive a flat file where I have to do content conversion. In this file, I have different structures which could appear unsteady. Means, every could structure appear in a non continuous way: File: struc1 struc2 struc3 struc3 struc3 struc1 struc

  • External monitor for macbook pro

    How do I go about connecting my 2006 MacBook Pro to an external monitor?

  • Problems with output

    I know this has probably been answered before, but after searching for hours, I decided to just ask - I am running Logic Pro 7 and I am try to get output to any speaker, internal or otherwise and can't seem to get Logic to do so. I am fairly new to L

  • My iPad displays on find my iPhone but doesn't locate

    My iPad displays on find my iPhone but doesn't locate

  • Not being Successful..Please help..

    Off late , I've been hardly trying to compile my JSTL code.. I have used JRUN 4.0 Web S/v and i am facing this error.. 500 The path http:/java.sun.com/jsp/jstl/core does not start with '/' then i tried using Tomcat 5.0.16 viz my normal server for dev