Error message in a table (not ALV)

Hi there,
i know that in ALV an error-message appears and the cell is marked if an user puts a not allowed value in the cell.
Now i want to achieve the same in my non-alv-table. If a user enters a value in a specific cell, i want to output a message and mark the specific cell as "wrong". Can anyone provide me with a code-example?
Best regards
David

HI,
Even in table cell if a value is entered that is not permitted ,system issues an error message and highlights the cell after some action is performed.
Case1:  Suppose you enter a character value in date field and perform some action system performs the checks, issues an error message an higlights the cell.
Case 2: If validation of the entered value needs to be done programatically after an action is performed the use the below logici in the WDOBEFOREACTION method.
a) Get the node binded to the table( lo_node = wd_context->get_child_node('Node Name").
b) Using the node reference get alll the elements using the method GET_ELEMENTS of IF_WD_CONTEXT_NODE i.e lo_node.
c) Now loop at list of elements and for each element use the method GET_STATIC_ATTRIBUTES to get the attribute values
d) Do the required validation if some error is found use REPORT_ATTRIBUTE_ERROR_MESSAGE using the attribute name and element refernece.
Hope this helps.
Regards,
Madhu.

Similar Messages

  • Error messages in a table

    Hi everyone,
    I have a problem when displaying error messages in a table (with values, not based on a model)
    In a column I have an inputText and a validation that checks valuechangelistener. If not true, throw an error message for that component.
    facesContext.addMessage (client, message);
    The table is a DropTarget so each time dragging the dragsource to the table renders the table and missed the error message.
    I had thought to save the id of the components in a list and the dragDropEndListener force to be redisplayed.
    The problem is that the IDs of the components varies each time the table is rendered so even save the id of the components is worthless because they are not the same.
    Anybody can help me?How I can re-display the errors of the components?
    I can not use validator instead of valuechangelistener

    I am not sure if you want something like highlighting the components which have errors -
    If yes , then try this code bit
    public void addMessage(UIComponent component, FacesMessage.Severity type,
    String message) {
    FacesContext fctx = FacesContext.getCurrentInstance();
    FacesMessage fm = new FacesMessage(type, message, null);
    fctx.addMessage(component.getClientId(fctx), fm);
    You can call the method like this addMessage(this.componentName,FacesMessage.SEVERITY_ERROR,ErroMessage)
    -Sudipto

  • Transfer Purchase Order - Error message "Field selection ZTR not defined"

    Hi all,
    I've customized a new transfer purchase order type : TRA.
    When I go to ME21N and choose TRA type, SAP displays this error message :
    "Field selection ZTR not defined
    Message no. ME028
    The field selection required by the system is not defined in table 162.
    Further processing is currently not possible."
    How can I fix that please ?
    Regards,
    Bahia.

    Hello,
    Check in IMG - MM - Purchasing - Purchase order -define screen layout - Check any field selction ZTR has been configured. And also check in Purchasing - purchase order - define document types - your PO doc type has reference to field selection group ZTR - if yes change it..
    Regards
    Mahesh Naik

  • Getting idoc error - Entry in outbound table not found- in outbound scenari

    hi,
    while generating idoc for outbound idoc to file scenario - i am getting error
    "Entry in outbound table not found" (29 - error in ALE service)
    Diagnosis
    No partner profile (outbound parameter) could be found using the following key:
    /C100/KU//WP_EAN////
    This refers to the key fields in table EDP13:
    RCVPRN  Partner number
    RCVPRT  Partner type
    RCVPFC  Partner function
    MESTYP  Logical message
    MESTYP  Message code
    but already entry has been maintained in partner profiles for the corresponding message.
    same setup is working for other message types. pls let me know what might be the problem

    Hi,
    Check whether partner name is correct or not in WE20/outbound parameters undoer Logical System.
    Regards,
    Sreenivas.

  • "Error in function: Add Table not found [131-183]" - TDS Addon Version 3.16

    While loading TDS Addon Version: 3.16 I am getting the undermentioned error:
    "Error in function: Add Table not found [131-183]"
    SAP B1, 2005B, PL 39.
    It also shows the message that it is successfully installed. When I try to access any of the screen the above messge pops up.
    This is very urgent kindly help me out.
    Edited by: Philip Eller on May 16, 2008 8:50 AM
    Edited by: Philip Eller on May 30, 2008 8:41 AM*

    Dear,
    The addon is a third party addon which was developed by CitiXSys. so the support is provided by the partner who developed the addon.
    Go to the vendor Citixys for further support will give you a quick reply.
    Regards
    Apple

  • IDOC Error - Entry in outbound table not found - Status 37

    Hello,
    we try to generate the IDOC in a Test Tool WE19. I always get the same error "Entry in outbound table not found" - Status 37. I tried already many config changes (Partner, Ports, Distribution Modell...).
    The thing is that the IDOC should be sent on external system (non-SAP System) but also the IDOC should be write to file. The external system should later on catch the IDOC and process the data.
    I suppose the problem is the fact that we send it to external non-SAP System. I add as Port Data and the source where the IDOC shoud be generated. The Partner that I choose is logical system. However I dont specify the RFC Connection because the file should only be saved and not send directly on the external system. Is it possible or maybe I need to specify the IP-Adress of the external system?
    When it works I need to generate the IDOC as service management IW32. I try it with TA IORD. I get the message "rejected". Probably because of the error in the test tool WE19.
    I am already fighting on it for many hours...
    Thank you in advance
    Michael

    Hi
    In we 19
    Receiver
    Port: A port created in R/3 referencing RFC dest pointing to XI.
    Partner no: LS of XI (CLNT100)
    Partner Type: LS
    Sender
    Partner no: LS of R/3 (RD1CLNT500)
    Partner Type: LS
    Message Type is DESADV
    Basic DELVRY05
    and i am sending blank idoc for testing.
    Regards
    Monika

  • Getting error message ORA-01034: Oracle Not available

    Hi
    I have a VM Machine with OEL 4.5 and have oracle 11g release 2 installed but do not have database created.
    on the command prompt I am getting error message
    ORA-01034: Oracle Not available
    Process ID: 0
    Session ID: 0 Serial Number: 0
    is it because I have not created the database... ?
    if yes can some one please guide me how I can create database...
    **** Sorry for asking these silly questions however I am new to oracle, just want to kick start my carrier in oracle...**** :-)

    ParikshitBhandari wrote:
    Hi
    Welcome to the forum.
    Before proceeding, please read the forum FAQ. The link is in the upper right corner of this very page.
    I have a VM Machine with OEL 4.5 and have oracle 11g release 2 installed but do not have database created.
    on the command prompt I am getting error message
    ORA-01034: Oracle Not available
    Process ID: 0
    Session ID: 0 Serial Number: 0
    is it because I have not created the database... ?Yes, it is because you have not created a database.
    It is A Good Thing (tm) that you actually copied and pasted the entire error message. Some here seem to think "it doesn't work" is an actionable error message. However, for future reference, error messages are the result of something happening. They are far more meaningful if you were to also copy and paste the command that triggered the error.
    if yes can some one please guide me how I can create database...
    Easiest way is to use the utility 'dbca' (database configuration assistant).
    **** Sorry for asking these silly questions however I am new to oracle, just want to kick start my carrier in oracle...**** :-)=================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to tahiti.oracle.com.
    Drill down to your product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • Upload Error message: HTTPS protocol is not supported

    Hi,
       Whenever I do a quick par upload i'm getting an 'Operation failed' message to check sap-plugin.log.
       Log says
    Upload Error message: HTTPS protocol is not supported, please ensure this server is not using HTTPS. My webdynpro applications are getting deployed without any issues.
         How to resolve this?
    Thanks
    Sumathi

    Hi Sumathi,
    As there are often problems with the Quick PAR Upload reported, I would suggest to use the "normal" PAR upload from the icon tray (you have to activate the portal icons in the icon tray). That is almost that "quick" (one or two clicks more needed, we don't talk about more than a second) and - it works (it least it should, and at least it works in most cases even if the Quick PAR Upload fails).
    Hope it helps
    Detlev

  • I have just purchased a lightning to 30 pin adaptor to use on an iPad mini and a gen5 iPod touch both devices are running iOS 8.1.3 and come up with The error message "this accessory is not supported by this device "

    I have just purchased a lightning to 30 pin adaptor to use on an iPad mini and a gen5 iPod touch both devices are running iOS 8.1.3 and come up with The error message "this accessory is not supported by this device "
    THis is means they are not charging on a 30 pin cable and the touch won't work in my Apple iPod dock - no audio out or charge. Have re powered both devices to no avail am wondering if the iOS version is the problem
    Help!

    If it is a lightning to 30 pin adaptor, and you have a 7th Generation Nano it has to fit the Nano.
    This is lightning to 30 pin adapter: http://www.bestbuy.com/site/Apple%26%23174%3B---Lightning-to-30-Pin-Adapter/6651 936.p?id=1218803450821&skuId=6651936#tab=overview
    Is this what you bought?
    You need to contact Sony and see if they model you have is compatible with the docking adapter. It may not be.

  • I purchased Elements 13.  When I tried to install I get the error message that it is not supported by Vista.  Now what do I do?

    I purchased Elements 13.  When I tried to install it I get the error message that it is not supported by Vista.  What do I do now?

    If you can't install Windows 7 or higher or get a new computer with Windows 7 or higher, you won't be able to run Photoshop Elements 13.
    There are many inexpensive refurbished or "off lease" computers available at very reasonable cost.  Here is one example (scroll down):
    Computers & Tablets, Desktop PCs, All Desktop PCs, Refurbished - Newegg.com

  • HT4623 When I plug my ipad to itunes i get the error message that it is not supported and I have to go to itunes and get itunes re-installed?  i never had this problem before.  if i do this will i loose all my files, music, etc?

    When I plug me ipad to itunes i get the error message that it is not supported and that i have to go to itunes and get "itunes installer" and re-install.  if i do this will i loose my files and music?

    No, you should not lose anything.

  • Fidelity active trader give me an error message your browser is not supported. Can you fix.

    I use active trader pro and have an error message that browser is not supported in when I do research and some other areas.
    How can I fix this is there an up grade?

    hello kmore, you'd have to contact fidelity's support about that issue...

  • Error message: this computer is not supported by the system recovery media.

    I replaced a bad samasung hard drive in my Pavilion dv6z 3200 with a Seagate Momentus XT 750 GB 7200RPM SATA 6Gb/s 32 MB Cache 2.5 Inch Solid State Hybrid Drive ST750LX003 and when trying to restore Windows 7 64 bit OS get the error message "this computer is not supported by the system recovery media"

    Is the new hdd at least as large a capacity as the original? Can be larger capacity, but sometimes smaller will cause error.
    Enter BIOS by tapping F10 key. Is all system info intact/complete?
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Error message "iTunes Helper Resources not available" and saving to wrong Drive

    I am trying to upgrade iTunes to 10.7 on my PC but I keep getting the error message "iTunes Helper Resources not available". Diagnostics take me a support page which talks about not being able to see the device in iTunes - but I can see the device without problems.
    I thought I would try reinstalling iTunes from the webpage and it downloaded to my PC fine but when I went to setup, it showed me it is saving to a DVD drive - not my Hard drive. It also won't let me change the location for the file. I have no idea how that's happened as I obviously don't use the DVD drive as a USB (although the PC see's it as one) and I've never chosen it as the location for iTunes in the 7-8 years that I've been using it.
    I then thought I'd try uninstalling it and reinstalling it (to the correct drive) but again, it comes up that the DVD drive is invalid and won't uninstall iTunes.
    So I'm stuck and haven't been able to find anything helpful on the support pages or in iTunes Help.
    Please someone help ...
    Thanks.

    Try the following user tip. (Probably, the section on clearing the installation database might be best given that you've currently got a drive on the problematic letter at the moment.)
    "Invalid drive X:\" install errors

  • I have recently bought a macbook and am using outlook 2011 as email. i am getting an error message 4.7.0 not allowed when sending emails how do I fix?

    i have a macbook and am using outlook 2011 as email.   receiving okay.   sending okay sometimes.  am now getting error message 4.7.0 not allowed when sending.  what is the cause? how do I fix please?

    I have discovered that the emails have in fact been sent but much later, maybe it's a network problem with the people i am sending it to.  so i checked my sent items and they are there, but at the time the email doesn't go straight into the sent box or drafts so i'm assuming it's disappeared and type it again.  i'll keep going with it, until someone can give me a possible solution or explanation as to what is happening.

Maybe you are looking for

  • X100e - partial keyboard no longer working

    bought my x100e 6 months ago. today random parts of the keyboard stopped working. Bksp, tab, Lshift, t, y, [, ], Caps. tried reboot and all updates with no success. using on-screen keboard to write this. noticed this to be common problem on other for

  • Issue with clearing internal table

    Hi Gurus, I am working on an issue, where when we run a std. report we see social number of the employee on the output screen, when I debugged the program I found that there are 2 internal tables where we are putting this SSN. I tried to clear the SS

  • Trouble Opening Up Adobe Photoshop Lightroom 3 with current user permission

    Hi, I recently purchased LR3 and downloaded it on my Mac, long story short, I have had issues and I called Adobe and they had to create a test/new user and it was able to open up through that user, but not my original user id. They told me that I wou

  • Can a click box be used if multiple options to a questions?

    I was trying to have the student need to click on multiple options for a question. The situation called for the student to have to click on four different items that were correct out of a group of six items.  I put success captions on the four correc

  • HP w2207 monitor issue no input

    Is HP ever going to rectify the issue with no dvi or no input?  The hp user community has been reporting this problem for years, over and over.  It is so frustrating to have this msg in the middle of an important document such as taxes or a spreadshe