Message handling for incorrect data

Hi Guru's,
In my WebDynPro form, I have one input field. When the user enters a value and click submit, the details are populated in a table based on RFC call.
I want to perform an error handling which will return an error message (via message manager) when the user enters a wrong value and click submit. In other words, if the user leave the field empty or enters a wrong value in te field and click submit, teh error message gets triggered.
How can i do this?
Thanks

Hi Syed,
Assuming that the value entered in the inputfield is passed as a parameter to the RFC call, In the action method associated with the button write following code.
Say,
inputField context attribute = name
action name = Submit
if(wdThis.wdContext.CurrentContextElement.getname == null)
  wdComponentAPI.getMessageManager.reportException("<error message>",true);
else
  // call your rfc and execute
  // assuming that your rfc return a boolean value as the response for input
  // true for correct input anf false for wrong input
  if(!result)
     wdComponentAPI.getMessageManager.reportException("<error message>",true);
  else
  {// navigate to the next view}
Hope this helps you

Similar Messages

  • Message handler for webservice control

    Hi ,
    I'm new to wli webservice. I managed to invoke webservice using service control but I have requirement to format date as dd-MM-YYYY format in one of the element(calendar type) but i couldn’t by date formatter utilities . I understand this specific requirement can be achieved by wring message handler.
    Could anyone share the easiest steps to implement message handler for web service control ?
    Thanks

    Hi Madhu,
    Could you please provide a example scenario? what kind of error 'Message' you are looking for.
    Regards,
    Lijo Joseph

  • Message Handling for Personal Information application on ESS Portal

    Dear Experts,
    JAVA webdynpro applications are attached on portal for Personal Information, Whenever employee changes his personal Information like personal details, address , Family details after pressing 'SAVE' button I want to display custom message.
    I have gone through this post Personal data changes in ESS portal 
    1) Class CL_HRESS_PER_DETAIL is not triggering.
    2) BADI  HRPAD00INFTYBL is triggering on 'REVIEW' button only & it is only showing error message , I want to show successful message.
    3) BADI  HRPAD00INFTYDB  is triggering on 'SAVE' button but method  IF_EX_HRPAD00INFTYDB~UPDATE_DB don't have any message handling parameter.
        I tried with class cl_hrpa_message_list  in UPDATE_DB  method   its not showing any message.
    Please Help.
    Thanks & Regards,
    Bhushan

    Hi Yugandhar,
    If possible I want to change message as shown in screen shot, If it is not possible to change it I have to show additional success message "The Changes you made were sent for HR approval".
    Thanks & Regards,
    Bhushan

  • Exception Handling for OPEN DATA SET and CLOSE DATA SET

    Hi ppl,
    Can you please let me know what are the exceptions that can be handled for open, read, transfer and close data set ?
    Many Thanks.

    HI,
    try this way....
      DO.
        TRY.
        READ DATASET filename INTO datatab.
          CATCH cx_sy_conversion_codepage cx_sy_codepage_converter_init
                cx_sy_file_authority cx_sy_file_io cx_sy_file_open .
        ENDTRY.
    READ DATASET filename INTO datatab.
    End of changes CHRK941728
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          APPEND datatab.
        ENDIF.
      ENDDO.

  • Error handling for master data with direct update

    Hi guys,
    For master data with flexible update, error handling can be defined in InfoPackege, and if the load is performed via PSA there are several options - clear so far. But what about direct update...
    But my specific question is: If an erroneous record (e.g invalid characters) occur in a master data load using direct update, this will set the request to red. But what does this mean in terms of what happens to the other records of the request (which are correct) are they written to the master data tables, so that they can be present once the masterdata is activated, or are nothing written to masterdata tables if a single record is erroneous???
    Many thanks,
    / Christian

    Hi Christian -
    Difference between flexible upload & Direct upload is that direct upload does not have Update Rules, direct upload will have PSA as usual & you can do testing in PSA.
    second part when you load master data - if error occurs all the records for that request no will be status error so activation will not have any impact on it i.e. no new records from failed load will be available.
    hope it helps
    regards
    Vikash

  • Why we are not using "Message Control" for Master data ?

    Hi friends,
    We are using Message control as output determination for Transactional data, <b>what is the main reason for not using the msg control for Master data.</b>Please explain with details...
    I am very thankful to them...
    Thanks and Regards.
    <i><b>Naveen Kumar. Chamala</b></i>

    Hi Naveen,
       Listing down those I know -
       1. Master data is expected to be changed/created less frequestly.
       2. Transactional data is expected to be chnaged/created more frequestly.
       3. Transactions to create/change/display master data do no have message control integration, since you are not supposed to print/fax/mail master data to your partners.
       4. Distribution of master data in generally supposed to happen within Enterprise boundry and typically you will have one central server maintaining master data which will be distributed to multiple downstream operation system (Some thing where MDM fits). So ideally when distributing master data using ALE you will be sending it to multiple systems.
       5. Distributing transactional data PO/SO etc is same as sending fax/print which fits with the requirement of message control.
    Hope this helps,
    Regards,
    Sanjeev

  • Vacation Message using old/incorrect data

    I have a mail server that refuses to accept a new vacation message. The problem is worse than that because it is sending out a vacation message from over a year ago that had been disabled, even though it shows as disabled in the web interface.
    Here is what I tried to do to clear things up.
    * Turn off email and web server.
    * Remove all scripts from /var/spool/imap/dovecot/sieve-scripts/
    * Remove all scripts and vacationIndex.db from /Library/Emailrules/
    * Turn on email and web server.
    When I return to the user's vacationnotice wiki page it shows the old outgoing email rule. I cannot find where this old rule is stored. When I apply the new rule when a user sends a message to the account they initially receive two vacation replys, the correct one and the 'old' incorrect one as well. Subsequent test messages get a reply of the 'old' message repeatedly, while the new one is properly 'muted' until the following day.
    Does anyone know what I'm missing and how to find this zombie message?
    Thanks in advance.

    Nothing?
    These forums used to be pretty active with a few experts chiming in, but it seems like the enthusiastic pros have left the scene.
    Outside of Apple's mailing lists what forums are active for pro OS X Server admins? Seems like afp548 is dead, too.

  • Error message for Incorrect Reference Asset Class - AA176

    Dear All,
    Users have created AUCs with reference to certain existing assets. While doing so, system given information message AA176 for incorrect  reference.
    We want to convert this into an error message.
    However, this message is hard coded in the standard program.
    Can anyone help me in this regard?
    Dattatray

    hi,
    try t.code oba5
    if it is useful pls assign the points
    Thanks & Regards
    phaneendra

  • Stock for required data does not exist during repack of product

    Hello,
    I have the given situation, during the packing of a product (which is unpacked) in the Work Center I get the following error message:
    "Stock for required data does not exist
    Message no. /SCWM/L3104"
    After a debugging session we have found the cause as being the field FLGAVQ (Indicator: Handling Unit Contains an Available Quantity) in the structure /SCWM/S_HUHDR_INT. My question is if somebody knows from where this mark comes and if you stumbled on the same problem and if so how did you manage?
    All the best,
    Claudiu Maxim

    Hello Sridhar,
    Thanks for the response, the packing operation in our case is done in the SCM EWM environment in the specific Work Center. The transaction with which we pack is /SCWM/PACK - Packing - General. Do you have a solution for this problem with regards to the EWM environment?
    All the best,
    Claudiu Maxim

  • IMovie error 'searching for movie data in file "IMG_4365.MOV"'?

    my iMovie goes into a loop at startup with the message "searching for movie data in file IMG_4365.MOV"?
    I'm on iMovie 09 (version 8.0.6) and it's driving me mad. Help!

    I am also seeing this bug and often work on 400mb+ presentations that use larger screen sizes and have lots of video assets for work.   On large files I find that autosave is not ideal, and would also like a way to turn it off. The computer that was seeing the issue was running 10.7.5.  It was just updated to 10.8.2 so I am keeping my fingers crossed that it works better now.  Time will tell.
    I also really hope that Apple gives us a real refresh on Keynote on the Mac.  As old as it is, it still ahead of Powerpoint.  But it wont stay that way forever standing still and nobody else has a better alternative that is as fast and flexible to work with.  They are squandering somthing special by letting it gather dust.

  • Searching for movie data in file Name-FIN-00000001

    While starting up FCP (6.0.6) gives an error message "Searching for movie data in file Name-FIN-00000001".
    After 10 to 20 min FCP will start up.
    How do I get rid of this annoying error message when starting up?
    Thanks W.

    As Jim says, this is a render file. However, simply rendering it won't fix this. What is causing this error is a QT reference movie in the project. When you export a QT movie, and make don't make it self contained, it is a reference movie that references media files and render files. When a render file is deleted (FCP does this automatically when the render file is no longer needed) then the refrerence movie can no longer function... one file it references is gone. Simply re-rendering won't fix it, because it is referencing that SPECIFIC render file.
    You need to find and delete the QT Reference movie from your project.
    Shane

  • Searching for movie data in file "******.mov"

    The last couple of weeks I've been getting dailog boxes that freeze up Keynote with the following message:
    Searching for movie data in file "******.mov"
    It runs through all the different MOV or MP4 video files I have in that particular Keynote and doesn't allow me to do anything but wait. I've tried moving the file to another HD but this didnt't change anything. Also changing the save settings didn't help.
    It happens a couple of times an hour and is getting annoying. Anyone have any clue how to solve this?

    I am also seeing this bug and often work on 400mb+ presentations that use larger screen sizes and have lots of video assets for work.   On large files I find that autosave is not ideal, and would also like a way to turn it off. The computer that was seeing the issue was running 10.7.5.  It was just updated to 10.8.2 so I am keeping my fingers crossed that it works better now.  Time will tell.
    I also really hope that Apple gives us a real refresh on Keynote on the Mac.  As old as it is, it still ahead of Powerpoint.  But it wont stay that way forever standing still and nobody else has a better alternative that is as fast and flexible to work with.  They are squandering somthing special by letting it gather dust.

  • Frequent "Searching for Movie Data in File ..." errors

    OK, I searched the forums for this but didn't find anything, so don't nobody jump down my throat please ...
    I very often find myself, when trying to export a file through QuickTime conversion, confronted with the error message "Searching for Movie Data in File [XXX - 0000000008]" which FCP invariably cannot find. I go to look in my capture drive myself, and sure enough, no file exists of that name. Without the file in question, FCP won't run the conversion. I get around it by exporting directly to QT, opening that file in QT Pro and re-exporting, but what the he11 is FCP doing in the first place? Why is it making all these files then losing/destroying them?
    Help very much appreciated. Running FCP 4.5 HD; rest of specs in profile.
    Thanks!

    Without being able to see your project's history, I can only surmise you have created some copies of some clips and then tossed the originals. Or used reference movies that point to renamed clips. Or you've renamed some clips but used a differently-named copy of it. You may have copied a clip from one project and placed into another and then later discarded the source media.
    I get around it by exporting directly to QT, opening that file in QT Pro and re-exporting, but what the he11 is FCP doing in the first place? Why is it making all these files then losing/destroying them? < </div>
    That's because the original source media is always required for Compressor's operations. You see copies and renders in the timeline but Compressor will always recreate fresh media so looks for the sources.
    This problem is almost always a user error, though it is not easily debugged from where I'm sitting. It is caused by a few subtle misperceptions about nesting and copying clips from one project to another without taking the source media with them.
    Sorry not to be more definitive, I'd need to have watched you work for several hours to know what's going on with this.
    bogiesan

  • Question about converting to Quicktime: "Searching for movie data"

    Hi All -
    I converted several clips on FCP to Quicktime files onto my MacBook Pro. They play just fine. However, when I send these files to someone else or try to play them when my external hard drive is disconnected from my MacBook, I get the following message: "Searching for movie data in file sequence Sequence1-FIN-0000006".
    The sequence number changes from one movie to the next, of course. Either way, the QT file will not play unless my external hard drive is connected to my laptop.
    Why is this? Am I converting wrong? I'm using the top Convert to Quicktime when exporting the footage.
    Any insight would be very helpful.
    Thanks!!

    Don't mean to disagree David, but that's not it.  What was exported were REFERENCE QT files...not SELF CONTAINED.  Meaning that smaller files were made that reference the media on the Capture Scratch.  They will work fine on your system, as the media being referenced is there.  When someone else tries to open them, they get that error, because they don't have the media being referenced.
    When you export QT Movies, you need to check the SELF CONTAINED box.

  • Outbound BPEL Message Handler

    Guys,
    I am successfull in implementing the Inbound Message Handler for security and other stuff, but the outbound message handler in a similar fashion isn't working...
    Any clue on it....here is the configuration...
    <bpel-message-handlers>
    <message-handler id="out_interception">
    </message-handler>
         <outbound-flow>
              <message-handler id="out_interception" />
         </outbound-flow>
    </bpel-message-handlers>
    I am using Oracle BPEL PM 10.1.2.0.2 on Oracle AS in Windows/AIX platforms.
    Thanks,
    - Soumen.

    Hi Soumen,
    this is not supported. :-(
    But you can use requestHeaderHandlers and responseHeaderHandlers. Disadvantage is that you have to define it for each partnerlink. But is works.
    Have a look here for example http://www.oracle.com/technology/products/ias/bpel/htdocs/callingstatefulwsfrombpel.html
    Peter

Maybe you are looking for

  • Sending a fax

    G'day, how do I send a fax ? Each time I try I receive a 'Print' 'error while printing' message. iMac   Mac OS X (10.4.9)   2 GHz intel Core Duo

  • Massive Disk Speed Improvement Plan

    I am moving forward with a disk storage speed improvement plan using my Dell Precision T5400 workstation as the test bed. Specifically, my goal is to create a super fast 2 TB drive C: from four OCZ Vertex 3 480GB SATA3 SSD drives in RAID 0 configurat

  • Why does Cmd+\ stop working?

    I've been having trouble where a keyboard shortcut in an app - Cmd+\ - gets not response. Or rather it does work on first booting but at some point it stops working. The first thought was another app was grabbing the shortcut association, but I can't

  • Cannot ping localhost - error code 2 on Satellite Pro A200

    Dear IT gurus, I have a Satellite Pro A200 laptop. When i ping the localhost, it says unable to contact ip driver, error code 2. I tried to repair the winsock using microsoft's articles with no luck. Now I want to reapair the operating system using t

  • Exception in thread "main" java.lang.NoClassDefFoundError: Test

    Hi, I have just installed J2SE 1.4.2 on my computer, and I am trying to compile and run a simple test program. public class Test      public static void main (String[] args)      System.out.println("This is the skeleton for a program."); I think it c