Handling error in data entry screen

Dear experts,
I developed a module pool program which is an entry screen capturing some fields such as matnr,lifnr.
Incase there is a failure to store data on to mseg table  using BAPI for movement, i have set a
custom message by using the command as given below :
message id 'ZMB' type 'E' number '002' with  errmsg-message.
But when this statement executes ,everything turns grey and user is not able to edit the wrong entry done.
How should i resolve this in way user cannot specify wrong entry and at the same time be able to correct his mistakes.

Hi,
To solve this problem, you have to use the concept of:-
CHAIN.
  FIELD : <field_name1>,
          <field_name2>,
          <field_name3>,
          <...and so on>.
    MODULE <module_name>.
ENDCHAIN.
Now when any error message is encountered then the group of fields between the chain-endchain block, are enabled to user (not greyed out). User can now change the enteries in the field.
Use the module <module_name> to write the code initially written in your module.
Revert in case of any queries.
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir

Similar Messages

  • How to add a new filed of Personnel number in FB60 data entry screen

    Hello SAP Gurus,
    We want to have a field to populate the Personnel number in all of the posting document entries via FB60. Besides the existing fields such as the "Doc.header text", "reference", "short text", "text" and "assignment" fields etc, are there any other fields that can be used to enter the Personnel number in the document entries? Maybe there're some fields are ready but the fields have been hidden on the data entry screen currently?
    Personnel number is there in the Vendor master data in CoCd data, Accounting Info.
    I checked the Field status group of the Vendor Recon A/c in OBC4 and made the personnel number as Optional from suppressed mode in FSG BS41 under Additional Account Assignment.
    After doing the above, I am still not able to see the personnel number filed in FB60.
    Am I missing anything else due to which I am not able to get the additional filed of personnel number in FB60 screen.
    Any help would be greatly appreciated.

    Hello Dear
    Look FB60 screen has two parts :
    The one in which you enter information related to vendor is Header Level, in this case you already assign Personnel No. in Vendor Master so no field is required as Personnel no. will be picked up from Vendor Master level.
    The Other is line item level is bottom half part, if you want to assign personnel no. at Expense G/L level then if you scroll right you will find a field for Personnel no. If you can't see the field check your setting at OBVV for the field status group you assign to particular Expense G/L.
    Hope you Understood
    Cheers
    IMK

  • Searchable Data Entry Screen in Apex

    Similar to Oracle Forms, how can I make a searchable data entry screen in Oracle Apex, where user can query the data on any field.

    Hi Debraj,
    The simplest method would be to create an Interactive Report page. Have a look at: [http://download.oracle.com/docs/cd/E14373_01/appdev.32/e13367/build_app.htm#insertedID4]. There is no special setup that you need to do to get the search functionality - it's all part of the Interactive Report.
    If you wish to use a standard report, the search functionality would have to be created from scratch - this is possible to do but would require you to create individual page items for each field you want to allow searching on and you would also have to manually update the report's SQL statement to apply the filters. This is relatively easy to do, if that is what you require.
    Andy

  • Hide CATS lines in data entry screen

    Hi,
    Does anyone know if it is possible to keep certain approved CATS records in the data entry screen (transaction CAT2) from being displayed, while other approved records are still displayed? Suppose we have the customer field ZSTATUS to decide whether the line is to be displayed or not. So far I have been looking for a user exit where we can hide lines without physically removing them from the CATS database, without succes.
    Thanks in advance!
    Jürgen

    Thx for your answer
    I tried, but if I change the contents of the lines I don't want to display in the enrich_table, CATS also inserts these changes in the CATS database.
    I'm looking for some hide functionality only on display level, we want to keep the lines in the database for costing purposes later on.
    I suppose I can delete certain lines from the internal table at the beginning of the CAT2 routine, but this would mean a modification to standard SAP.
    Jürgen

  • Issues with dates not storing correctly on a data entry screen

    We are using Application Express 3.0.1.00.08
    I have a table which I have written a data entry screen for, the user enters most of the fields on theentry screen, howevere there are some fields that I would like to populate when a biutton is pressed e.g last_updated_date and creation_date.
    I have a on submit after computations and validation process with the following code to set the last updated date:
    begin
    :P1_LAST_UPDATED := to_date(sysdate,'DD-MON-RRRR HH24:MI');
    end;
    I am setting the creation date at the same time as getting the primary key as follows:
    declare
    function get_pk return varchar2
    is
    begin
    for c1 in (select XX_SVS_SEQ.nextval next_val
    from dual)
    loop
    return c1.next_val;
    end loop;
    end;
    begin
    :P1_ID := get_pk;
    :P1_CREATION_DATE := sysdate;
    :P1_CREATED_BY := :F380_OSS_USER_ID;
    end;
    However the dates are being written to the database incorrectly they are being written with a year 0009 instead of 2009.
    Does anyone know how I can get hidden dates in a data entry form to write correctly to the database.
    Regards
    Kay

    It could be done as a database trigger but surely APEX should be capable of saving the correct date format of an item.
    Since my original post I have managed to get the dates stored with the correct year in the hidden fileds by doing the following in my process:
    :P1_LAST_UPDATED := to_date(sysdate,'DD-MON-RRRR HH24:MI');
    however for some reason the date is being stored with the correct year now as 2009 , but the time element is not being stored any ideas?

  • How to handle errors in data templates

    Hi
    What is the recommended way to handle errors for example if one of your SQL statement in a data template returned no data how and where would you be able to create an error message for the user to find and read.
    Thanks,
    Mark

    The closest I have come to doing this is to put conditional statements into the format template. If a value matches an expected (ex. is null) you can return a message (in the report) via the format template (ex. "No Data Found").
    I am not sure this really answers your question as this is in the format template, but I generally view them as a matched pair that work together. I try to stick with data extraction in the data define, and do all my conditional stuff in the format templates.
    Scott

  • JTable as a data entry screen

    I am trying to use JTable for data entry. I assign few columns to contain
    Integer class type and others with Float. Now, the problem that arise is
    that Objects of Integer and Float are sub-classes class Number and JTable
    has by default a Cell Editor defined to handle this Class type. The problem
    arises only when a float type is handled. Floats which i use carry either a 3
    decimals or 2 (basically quantity is represented in 3 decimals and amounts in
    2 decimals). But for eg if i have a float 3456.78 i want that to displayed as
    3456.780 and if 987.6 then 987.60. I can manipulate them in the required form
    as a String but not as Number. (then its not right aligned). I have no clues how to do this and its very much important that i finish this asap.
    Gurus out here please pour all the help you can .
    Thanks in advance
    Shomal

    You talked about editors, but it seems like you are able to edit just fine. It seems that displaying a previously edited Float is your real problem. If that is the case, you just need to add a specialized cell renderer for displaying your Float objects.
    First create an implementation of TableCellRenderer (it's easy, there is only one method) that returns your Float object rendered correctly.
    Then just add the following code:
    TableCellRenderer renderer = new MyFloatRenderer().
    table.setDefaultRenderer(Float.class, renderer);
    From now on Integers will use the regular Number Cell Renderer and Floats will use your custom renderer.
    If you have a problem with the editor also, the steps are similar.
    Implement TableCellEditor (only one method again) then add the following code:
    TableCellEditor editor = new MyFloatEditor();
    table.setDefaultEditor(Float.class, editor);
    Offer duke dollars next time, you'll probably get a more timely response.

  • Generating data entry screens from entity

    Hi all. am new to visual studio. I am creating a small app that connects to a database. i have added an EDM. What i wanted is to write a piece of code that can generate screens, just as in the case with lightswitch. I do not want to use the lightswitch,
    i just want to learn how this is done. What are the approaches to this?
    Thanks in advance.

    One, this post is in the wrong forum.
    Secondly there is no forum from Microsoft as your question pertains to "How to Design" which is not really specific to any Microsoft Product (the fact that you use Visual Studio as your dev environment is incidental).
    Thirdly, your basic approach should be to read the table, use the field name, data type, etc. and dynamic control creation in Visual Studio to generate the form. This portion is relatively easy, factoring in proper data validation, data entry formats, etc.
    which are not stored as part of the data definition would be more difficult.
    Have fun.
    Regards.

  • CAT2 Data Entry Screen

    In CAT2 sheet 3 columns are in Display mode. Column names are namely 1. Project  2. Project Description  3. Project Subobject
    I tried field selection through CAC2 (1 of the SPRO setting) through Data Entry Section and kept the filed as "Input", eventhough i cannot see it editable.
    Anybody having idea ?
    Regards
    Ashish

    Hi Ashish,
    The project definition field cannot be an input field....since we cannot post our hours there.
    Use the WBS field ..this can be a input field. and you can keep the Project definition field as a display field. When you enter your Wbs element , this project definition also would get filled.
    regards
    Sandeep

  • Old fashion data entry screens in Java/solaris

    I need to build screens in Java running at the server in text mode. Do you know of any tool that will help me to speed up development?
    We do heavy batch processing and want to do peform it from the server.

    Hi!
    I have a same problem, please if you found the solution email me ([email protected])...
    Thanks!!
    René

  • Modification of error flagging on time entry screen

    Hi,
    When an employee has more than one line and error on Time Entry Screen . Is there any possibility to get the line that contains the error only can be flagged .
    Please help me.
    Thanks.

    This is a generic error and mostly happens due to some missing or invalid objects. Check with your DBA.
    --Shiv                                                                                                                                                                                                                                   

  • Multiple page data entry form

    Hello,
    I need to build a multiple page data entry screen for users
    to enter information into the DB table. There are many fields I
    need to capture and store in a table. Some of the fields are multi
    line text field for the users to enter a few lines of text in a
    textbox. But right now, I wasn’t sure which approach I should
    take.
    1. Use session variables to capture the data as the users are
    completing the multiple page data entry then store all the values
    at the end when the user finish entering all the data.
    2. Create a temporary table in a DB to capture the data until
    the user is finished then store the values in the temporary table
    back to the real table.
    I hope someone can provide me with some suggestions on this.
    Thank you in advance for any assistance.

    It depends on how you want to handle:
    User fills out first couple of pages only. He may or may not
    come back.
    User fills out a couple of pages and then uses browser to go
    back to page 1, which he changes and resubmits.

  • Mixed Data Type Table Control for Data Entry

    Hi Guys --
    I'm attempting to do error-checked data entry,
    My data is mixed: path, boolean, and numeric.  The natural organization is an array of clusters.  For instance, the cluster element would look like "path, boolean, numeric, numeric"  and I would have many rows of this data cluster.  To further complicate things I have to dynamically define the number of numeric elements in the cluster (tricky already) and also dynamically define the length of the array.
    I find the table control to be ideal to handle the dynamic nature of the data for editing.  I can easily use scroll bars to navigate to the appropriate part of the data.  I can delete rows and columns etc.
    On the other hand, the table can only handle string data.  I find that doing data checking and type conversion on the table elements to be extremely cumbersome. 
    I think what I'm looking for is a Table Control with ability to handle controls as elements.  From what I've read in this list and personally experienced, that functionality doesn't exist.
    Does LV have in-built functionality that I'm overlooking to resolve this problem?  Is there a third-party library that would do the job?
    Thanks,
    John

    Hi Ben --
    I think perhaps that I wasn't clear in my description. 
    As I pointed out, my data is organized naturally as an Array of Clusters.  More descriptively, my data looks like spreadsheet data; some text, some numbers.  I need to add rows and columns dynamically.  I need to be able to resize column widths dynamically... and while the program is executing.
    The Table Control does all of this.  The intuitive way that the Table Control permits a user to enter data is also good for my user.  The Array of Cluster data looks like spreadsheet data and a Table looks close enough to a spreadsheet.  A Table permits one to insert and delete rows, resize columns widths, and scroll around.
    I don't see that I get these features with an Array of Clusters Control.
    The issue with the Table Control is the lack of in-built data types, so I spend an inordinate amount of time doing type-conversion and range-checking. 
    At this point I'm pretty much convinced that LV doesn't have the in-built capability that I'm looking for. 
    I am curious if there are any LV libraries or Active-X controls somewhere that would implement the functionality that I require?

  • How to change the entry screen for Fast entry

    Hi,
    My scenario is that I want to allow my user to enter the cost assignment as well for infotype 14, 15 and 2010 in the fast entry. I noticed that there is actually a screen in the module pool mp001400, mp001500 and mp200000 which include those 'cost assignment'  fields.
    For example, in mp001500, screen 2000 is the standard one while screen 5100 is the one with the 'cost assignment' fields. So I created an entry for mp001500 screen 5100 in table T588M and saved it. However, when I try to use the transaction PA70 to create it0015 records again, it still use the standard screen 2000.
    What else I have to do so that when I use PA70, screen 5100 will be called up.
    Thanks,
    Francis

    Hi there. Go into the IMG through transaction SPRO and follow this path:
    Personnel management -> Personnel administration -> Customizing procedures -> Infotype Menus -> Set up infotype menu for fast data entry.  Then select "screen types for fast data entry" and click the "choose" button.  You can now see each infotype that is included in fast entry, the default screen, and the fast data entry screen.  We use screen 5100 in certain cases for infotypes 0014 and 0015, so we have two entries in this table for each of those infotypes.  Here are the values we have:
    infotype, screen control, default value, fast data entry, selection report
    0014 (blank) 4000 5000 RPLFST00
    0014 01 4100 5100 RPLFST00
    0015 (blank) 4000 5000 RPLFST00
    0015 01 4100 5100 RPLFST00
    We are on ERP2005.  I hope this helps.
    - April King
    Message was edited by:
            April King

  • "Correct" way to do data entry form?

    I have a situation where I want to build a page that will accept input for a number of fields. The data entered will be passed to a PL/SQL procedure that will then be sent to another application. There are no database tables being read, nor are any being updated. This is just a simple data entry screen. I created a separate HTML region for each field so that I can make them so they are not right up against each other. But I am unhappy with what I have created. Is there a "best practice" method for creating a data entry screen so that I can have data fields that I control location on the screen (or at least horiz and vert spacing between fields)? I want to put text at various places, etc.
    Most of what I have coded has been some kind of interactive report pulling data from a table. That formatting is controlled by APEX. But here I really want to do more free-form work. I know I can code the HTML itself but I need to take the data values entered and use them in a process as parameters. Maybe I am over-complicating this? Would be fine if I had a pointer to an example that I could work with.

    The data entered will be passed to a PL/SQL procedure that will then be sent to another application. There are no database tables being read, nor are any being updated.Sounds like it would best to start with a wizard-generated Form on a Procedure based on the procedure.
    Is there a "best practice" method for creating a data entry screen so that I can have data fields that I control location on the screen (or at least horiz and vert spacing between fields)?Use item attributes to control the structure of the HTML table used to layout the form, or try using the Drag and Drop Layout tool. The appearance can then be customized using CSS&mdash;such as margin and/or padding properties to provide more generous item spacing, e.g.
    .formlayout td {
      padding-bottom: 1em;
    }

Maybe you are looking for

  • Problems with the iPod Touch (sound)

    Hey, I was wondering (more like desperately hoping) someone can help me with my problem. I've had my iPod touch for almost 2 years now but lately I've been getting problems with the sound. When I bought the iPod, I bought some decent sennheiser plug-

  • Want to use my voice recorder with my MacBook Pro

    I have Olympus Voice-Trek V-11 and want to use it. The problem is that it's no longer supported by Mac. I use MacBook Pro with OS X 10.8.5. I appreciate it very much if anyone knows what should I do to make my voice recorder usable with my MacBook Pr

  • Use of password file?

    good day ! i am confused and still cannot digest the need to use a password file! can anyone provide me with links or any explaination on why we need a password file! i need the password file so that i can setup dataguard! thnx

  • [AS IDCS3] copy frame from one document to  another doc

    Hi- I have a document with a text frame labeled "code". I want to copy that frame and paste it into another document. How do I do that? I am using applescript. Thanks, Karen

  • RE connecting my wireless printer

    Hi Guys I have used my HP Desljet 3050A for years, both by cable and wirelessly, but mainly wirelessly. I recently had a problem concerning an error message telling me my printer was in error state. I solved that problem by deleting my printer from p