Validate the records in table maintainence generator

hi to all experts,
this is raj.............
i have query to ask to all experts...
"i have to validate the records or entries before populating
into the table using table maintainence generator"
can anybody help out in this...
regards,
raj
Edited by: Julius Bussche on Oct 24, 2008 11:52 AM

hi...
write u r code in the screen number spicefied ...in PAI
MODULE CHECK_BEFORE_INSERT  ON CHAIN-REQUEST.
in this module u can write code for validation
thanks
sam

Similar Messages

  • Error while creating table maintainence generator !

    Hi All ,
    I want to create a table maintainence generator for table ZZFTLPNT . However I am getting the following error :
    Typ Message text                                                           LTxt
        Field ZZZFTLPNT-RRCTY shortened (new visible length: 000015)
        Field ZZZFTLPNT-DRCRK shortened (new visible length: 000015)
        Field ZZZFTLPNT-ROBJNR shortened (new visible length: 000009)
        Field ZZZFTLPNT-SOBJNR shortened (new visible length: 000009)
        Field ZZZFTLPNT-RRCTY shortened (new visible length: 000007)
        Field ZZZFTLPNT-DRCRK shortened (new visible length: 000007)
        Field ZZZFTLPNT-ROBJNR shortened (new visible length: 000004)
        Field ZZZFTLPNT-SOBJNR shortened (new visible length: 000004)
        Field ZZZFTLPNT-RRCTY shortened (new visible length: 000003)
        Screen SAPLZZZFTLPNT                           0001 could not be gene
        Memory for screen LOAD   is used up. bytes) is not
    Please advise .

    Hi Pankaj
    it is "Display/Maintenace allowed" and delivery class is 'A' .
    Edited by: Ambar  Patil on Dec 9, 2008 11:59 AM
    Edited by: Ambar  Patil on Dec 9, 2008 12:01 PM

  • Table Maintainence generator Error Special Character '_' in generic key

    Hello,
    I have created a Table which contain 6 fields. All the fields of the table are primary key. The combined length of all the primary key is 163 characters. In the activation Log of the table we have a warning message which states "Key length > 120 (Restricted functionality)". Initially we are able maintain the entries using SM30. BUt now when we are making the entreis in the table an error message comes. The error is Special character "_" in generic key.and we are not able to save the entries.
    I have deleted the table maintainence generator and have regenerated it. But the same error is coming.
    Please provide your suggestion.
    Thanks,
    Mohit

    Please provide your suggestions
    Thanks,
    Mohit

  • Creation of Table Maintainence Generator for Standard table

    Hi,
    I need to create a table maintainence generator for  a standard SAP table.
    The end user need  have to delete certain entries from the table.
    Is it viable to go for a table maintaninence  generator or go for program which will delete the entry from the standard SAP table.
    Which is the best method to go.
    Thanks in Advance,
    Irfan Hussain

    Hi,
    But i think there is a differtent procedure to create a table maintainenece generator for the standard SAP tables than normal Ztables.
    I thinl we need to take access key  and do the modification.
    Thanks in Advance,
    Irfan Hussain

  • What is the purpose of TABLE MAINTENANCE GENERATOR IN ABAP DDIC

    CAN ANY EXPLAIN ME
    1.what is the purpose of TABLE MAINTENANCE GENERATOR IN ABAP DDIC?
    2. AND THE CONTENTS IN ITS TABS.
    KINDLY LET ME KNOW.IT IS URGENT
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 28, 2008 11:42 AM

    Go to SE11, give the table name and click on change. Then Go to utilities--> Table maintenance generator.
    In the table maintenance generator screen, we should give Authorization Group, Function Group name (Function Group name can be same as table name), Maintenance type can be one step or two step, usually we will create with one step. we should give maintenance screen number. After clicking on create button, a table maintenance generator will be created.
    To check it go to SM30 . In SM30, we find display, Maintain options.
    We can view the table contents by choosing Display and we can create table entries by choosing Maintain.
    Why we have to go for Table maintenance generator, when we can edit the table by SE16 or SE11, utilities->create entries?
    In the production system, end-users will not be having access to transaction codes like SE11 and SE16. Developers will not be having access to many transaction codes including the above two.
    To view the contents of the database table, we will use SE16n in Production system. Please find out the difference between SE16 and SE16n.All these authorizations will be maintained by BASIS team, by creating access profiles.
    So in order to edit or create the contents of a database table, we should go for table maintenance generator. In real time, authorizations will be maintained in production system. (even in development and Test systems to some extent).
    There is an audit like Sarbanes-Oxley Act for American clients, where every thing will be audited by government agency. To know more about SOX, use the links on the right hand side of this page.
    The second reason is, we can edit or create multiple entries at a time, using table maintenance generator.
    Apart from that we have options like 'Enter conditions' in table maintenance screen SM30. Please try to find out the use of those, by creating an example.Table Maintenance generator: Difference between one step and two steps.
    While creating table maintenance generator, we find below options:
    1. When we choose one step, we have to give the screen number in Overview Screen field.
    2. When we choose two step, we have to give both overview screen number and single screen number.
    You can give any number for screen. Don’t give 1000 screen number. As this number is reserved for selection screen.
    When we choose two step, two screens will be created for table maintenance. For single step only one screen will be created.
    When we choose two step, table maintenance will work as follows:
    Go to SM30, give the table name for which you have created table maintenance-
    Overview screen will be displayed. To create entries, when you click on ‘new entries’.
    Another screen will be displayed, where you give input and save.
    You can enter one record at a time.
    We use single step generally, as it is user friendly.
    To completely understand the difference and above points please do exercise by creating table maintenance generator in both ways (using single step and two step).
    <REMOVED BY MODERATOR>
    regards,
    Balaji
    Edited by: Alvaro Tejada Galindo on Feb 28, 2008 11:42 AM

  • Table maintainence generator

    what is the need of table maintanace generator? is it reqired maintain for every table.? plz give me detaailed explanation on this??

    Hello Pavan,
    Table Maintenance is used to maintain the values of a custom table.It is not required for all the tables.It is required only in those tables where you give the option to the end user to maintain the table data.Based on your requirements,you may want to change or add/delete the contents of your table.The procedure for table maintenance is:
    1)Go to se11 and type the table name in Display or change mode.
    2)Using the menu path Utilities -> Table Maintenance Generator .Table maintenance is generated.
    3)To be able to maintain your table using a transaction(using a transaction for table maintenance dialog),you need to do the following.
    •Create a new transaction of the type “Parameter Transaction” from SE93, specifying SM31 as the transaction.
    •The VIEWNAME parameter is set to your table name with the option ‘Skip initial Screen’ set.
    •The UPDATE parameter is set to value ‘X’.
    Check this blog:
    <b>/people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance
    http://help.sap.com//saphelp_470/helpdata/EN/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm
    Importance of table maintenance
    Regards,
    Beejal
    **Reward all helpful answers

  • Validate the record while uploading into table

    Hi,
    I am uploading records into the table, and it so happened that an incorrect record full of text data was there in theinput file, it got uploaded along with the records,
    hence I need to modify the code to check for such data -it is text data.
    I have an 'empid' field (only numbers). I used that field to check for numeric data some thing like this...
    if itab-empid+0(1) between '0' and '1'.
    move-corresponding itab to DTABLE.
    APPEND DTABLE.
    else.
    continue.
    endif.
    it is not working, throwing a short dump.
    is there a better way to validate this? All I am doing is if empid field has any text data do not read into the internal table.
    Thanks,
    SK

    Hi,
    Check this, It will work.
    if itab-empid CO '12345 67890'.
    move-corresponding itab to DTABLE.
    APPEND DTABLE.
    else.
    endif.
    Regards
    L Appana

  • What is the use of table maintance generator and how it is used ddic

    hi dear friends
      i would like to know about how the table maintaience generator is used in ddic .i have the step by step processor of that but i would like to know importance and advantages of it .

    Nani,
      With the help of the table maintenance generator, you are able to maintain the ENTRIES of the table in SM30 transaction.
    It can be set in transaction SE11 - Tools - Table maintenance generator.
    Table maintanance Generator is used to manually input values using transaction sm30
    follow below steps
    1) go to se11 check table maintanance check box under attributes tab
    2) utilities-table maintanance Generator-> create function group and assign it under
    function group input box. Also assign authorization group default &NC& .
    3) select standard recording routine radio in table table mainitainence generator to move table
    contents to quality and production by assigning it to request.
    4) select maintaience type as single step.
    5) maintainence screen as system generated numbers this dialog box appears when you click on create button
    6) save and activate table
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    SM30 is used for table maintenance(addition or deletion of records),
    For all the tables in SE11 for which Table maintenance is selected , they can be maintained in SM30
    Sm30 is used to maintain the table ,i.e to delete ,insert or modify the field values and all..
    It creates the maintenance screen for u for the aprticular table as the maintenance is not allowed for the table..
    In the SE11 delivery and maintenance tab, keep the maintenance allowed..
    Then come to the SM30 and then enter the table name and press maintain..,
    Give the authorization group if necessary and give the function group and then select maintenance type as one step and give the screen numbers as system specified..
    Then create,,,
    Then u will able to see the maintenance view for the table in which u can able to insert and delete the table values...
    We use SM30 transaction for entering values into any DB table.
    First we create a table in SE11 and create the table maintenance generator for that Table using (utilities-> table maintenance generator) and create it.
    Then it will create a View.
    After that from SM30, enter the table name and Maintain, create new entries, change the existing entries for that table.
    For further help look into these links
    http://help.sap.com/saphelp_46c/helpdata/EN/cf/21eb6e446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_bw30b/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm
    Table
    Don't forget to reward if useful.....

  • How to delete the record in Table

    Hi Guru's,
    i have Table which contain no.of Records.
    i want to deleted one record. if i go to Table maint.Generator....from table itself..
    how to do that... when we deleting the record. can we create new TR for that?
    can anybody tell me.
    Thanks in Advance,
    venkat

    Hi,
    it is answered, here for my table there is no Table Maint.Generator.
    i just explained how i have done it.
    i just simply gone into Debug mode. there
    code = Dele.
    i have given. then i came out from debug mode to Table. there i just got Delete button on application tool bar.
    i selected the record then icliked on Delete button.
    it is got deleted.
    But it is not asking for any new Transport Request.
    Regards,
    Venkat

  • How to proces the record in Table with multiple threads using Pl/Sql & Java

    I have a table containing millions of records in it; and numbers of records also keep on increasing because of a high speed process populating this table.
    I want to process this table using multiple threads of java. But the condition is that each records should process only once by any of the thread. And after processing I need to delete that record from the table.
    Here is what I am thinking. I will put the code to process the records in PL/SQL procedure and call it by multiple threads of Java to make the processing concurrent.
    Java Thread.1 }
    Java Thread.2 }
    .....................} -------------> PL/SQL Procedure to process and delete Records ------> <<<Table >>>
    Java Thread.n }
    But the problem is how can I restrict a record not to pick by another thread while processing(So it should not processed multiple times) ?
    I am very much familiar with PL/SQL code. Only issue I am facing is How to fetch/process/delete the record only once.
    I can change the structure of table to add any new column if needed.
    Thanks in advance.
    Edited by: abhisheak123 on Aug 2, 2009 11:29 PM

    Check if you can use the bucket logic in your PLSQL code..
    By bucket I mean if you can make multiple buckets of your data to be processed so that each bucket contains the different rows and then call the PLSQL process in parallel.
    Lets say there is a column create_date and processed_flag in your table.
    Your PLSQL code should take 2 parameters start_date and end_date.
    Now if you want to process data say between 01-Jan to 06-Jan, a wrapper program should first create 6 buckets each of one day and then call PLSQL proc in parallel for these 6 different buckets.
    Regards
    Arun

  • Lead Selection to be disabled for some of the records in Table

    Hi ,
    I have 5 records in table .User shouldn't be allowed to select four rows thosse four rows should be in disable mode just for display purpose.Only one Row must be allowed to select(lead select).
    How can I Achieve above Functionality.
    Thanks & Regards
        Kiran

    Hi Kiran,
    Probably you might have tried the following.
    Bind OnLeadSelect event to some action.
    And in that action method write the code to fetch selected lead and check if it is 0(first row) else set leadselection to 0
    int selectedRow = wdContext.node<node name>().getLeadSelection();
    if(selectedRow!=0)
        wdContext.node<node name>().setLeadSelection(0);
    With this code the user can not select any of the rows other than first.
    If this is not what u require please let me know
    Regards,
    Santhosh

  • Reg : Find the records  in Table control

    Dear all
    Im having one requirement in table control .  In my table control totally 100 records contains sales documents
    for Example
    100010
    100020
    100030
    In that Records how to find particluar sale document in table control. How to build find option in table control.
    If possible or not
    Thanks & regards
    Sri

    Hi Sridhar,
    You need to implement amodal screen for this and a Find button above the table control.
    or you can use POPUP_GET_VALUES FM
    after you enter a value in the POP up screen.
    " You need to put some effort to implement this, wish you to implement it successfully as this is possible
    READ TABLE ITAB WITH KEY VBELN = FIND_VBELN. " FIND_VBELN is the field on your find screen.
    if sy-subrc = 0.
    tc-top_line = sy-tabix. " this makes the record visible in the First position
    endif.
    PROCESS AFTER INPUT.
      LOOP AT itab.
        MODULE find.
      ENDLOOP.
    In Program
    MODULE find INPUT.
      DATA : tab TYPE STANDARD TABLE OF sval WITH HEADER LINE.
      REFRESH tab.
      CASE ok_code.
        WHEN 'FIND'.
          clear ok_code.
          tab-tabname = 'VBAK'.
          tab-fieldname = 'VBELN'.
          APPEND tab.
          CALL FUNCTION 'POPUP_GET_VALUES'
            EXPORTING
    *   NO_VALUE_CHECK        = ' '
              popup_title           = 'Find Sales Order'
       start_column          = '5'
       start_row             = '5'
    * IMPORTING
    *   RETURNCODE            =
            TABLES
              fields                = tab
    EXCEPTIONS
       error_in_fields       = 1
       OTHERS                = 2
          IF sy-subrc = 0.
            READ TABLE itab WITH KEY vbeln = tab-value.
            IF sy-subrc = 0.
              tc-top_line = sy-tabix.
            ENDIF.
          ENDIF.
      ENDCASE.
    ENDMODULE.                 " find  INPUT
    Cheerz
    Ram

  • Putting Validations in the event of table maintainance generator

    Hi All,
    I have one table with 4 fields. 3 are key fields. Now requirement is to put a perticular error message in the maintainance screen, when the combination of field1, and field2 is used more than once .
    Currently I am getting the inbuilt error message that entry already present with the same key value.
    I want to put my own error message instead.
    I tried to put the code in event 05--(Creating new entry) . But the problem is  that here it doesnot differentiate between, new , entry, changed entry and unchanged entry. So what ever thing I do...the error message is coming .This is to state that , in this case in the event 05, <action> is not having any value...that we can use for differentiation.
    Is there any way...thru which we can put this error message only for new entries...?
    Hope the above explanation is clear....or else please get back....
    Kindly suggest the needful...
    Regards
    Rudra

    hi
    u need to loop the generic table TOTAL and chek which kind of action is aasigned to certain record:
    LOOP AT TOTAL.
        CHECK <ACTION> = NEUER_EINTRAG.
    *-------> New record
        READ TABLE EXTRACT WITH KEY TOTAL.
      ENDLOOP.
    The value stored in <ACTION> indicates if the record is new or changed
    Max

  • Unselecting the records of table

    Hi,
    We have an OAF page. We have a classic table which has multiple selection property. When we click on search button, this table gets populated and by default all the records gets selected.
    Our requirement is, when we click on search button, all the records to which are displayed on the table should be "unselected".
    Please let me know, if we can achieve this.
    Thanks
    Saurabh

    Associate an attribute to the Select checkbox and make sure that the Search Query includes something like this:
    null as Select_Attribute
    This would make sure that the select attribute is always null when returned from the query.
    Regards
    Sumit

  • Function module which sort the entries in Table maintance generator

    hi
        I want to know the function module which is used to sort the entirs in table maintance genrator.
    Thanks

    Hi,
    Go to the TMG program .You can change the code there.
    Rgds,
    Anversha

Maybe you are looking for