Table maintainence

Hello guys,
I have a requirement here. Please help me.
I had created a custom table and had developed a custom program for creating new entries in that table.
Basically the functionality of this program is similar to SM30.
When I click NEW ENTRIES tab (table maintainence screen) for this table, 24 empty rows will be displayed with some default value say 'ABCD'in one of the columns for all 24 rows(pulling ABCD value from domain assigned to that field/column).
Now my requirement is I have to change that default value 'ABCD' to some other value say 'PQRS' with out changing domain value range when I clicked NEW ENTRIES tab.
How should I add this in PBO event of my program??
Any suggestions???
Thanks in advance.

Hi,
Do the following :
In PBO 
  LOOP .
  assign new value here.
    MODULE test.
  update data from internal table to table control .
    MODULE update_data.
  ENDLOOP.
MODULE test OUTPUT.
  zztest2-zztest = 'CDEF'.
ENDMODULE.                 " test  OUTPUT
MODULE update_data OUTPUT.
  DATA : lin TYPE i.
  lin = tc1-current_line + tc1-top_line.
  READ TABLE itab1 INDEX lin.
  IF sy-subrc = 0.
    zztest2-vbeln =   itab1-vbeln.
    zztest2-zztest = itab1-zztest.
  ENDIF.
  tc1-lines = sy-loopc.
ENDMODULE.                 " update_data  OUTPUT
Here ZZTEST are the screen fields ( zztest2-zztest change the default value ) and data is in ITAB1.
Hope this work for you.
regards,
Gagan

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

  • 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

  • Restriction for table maintainence

    Hello Gurus,
    I am working on a SLO project, where i had merged 5 source systems to one system.
    In few roles in source systems for table maintainence the authorization groups is maintained as '*' in production.
    In source systems if they maintain * they would be able to display/change the data related to that system only.
    But now in target system , if we maintain * in authorization group they are able to display/change the data related to all the 5 systems.
    This need to restricted, Please provide some pointers on how this can be done.
    This restriction should be in such a way that they should be able to change data related to the system they belong to .
    Thanks,
    Sanketh.

    >
    Sanketh Teegala wrote:
    > Thanks for the reply prashanth.
    >
    > But , suppose consider users are maintaining table T001B. ( they are maintaining it through parameter transactions).
    > as it is a standard table it has been assigned to same authorization group in both source and target systems.
    > In source system , user is able to view data related only that system.
    > But in target system user is able to view other system data also.
    >
    > How can i restrict this data ?
    >
    > Thanks,
    > Sanketh.
    Hi Sanketh,
    I hope you are progressing with your SLO task.  Once you have finished this project, most things will be simple in comparison
    Unfortunately your requirement is not a simple one
    You could use line item auths (nasty to set up IMO).  Have a search for info on auth object S_TABU_LIN
    Alternatively you could introduce auth checks on key auth fields (e.g. BUKRS, WERKS etc) into the method that you use to display table data.  This would likely require new transactions with validation code that is performed before data is displayed or limits what can be updated.  Another messy approach would be to use parameter transactions that pass in an org unit into the table selection criteria.  You would need one for each org unit so will likely not be practicable.
    What I would say is that focus on what is legally required.  If none of it is required by law then focus on getting the rest of your consolidation done first and then address this in partnership with your project development team.

  • Tracking User Defined  Table Maintainence

    Hi ,
    I have a requirement where i have provided a table maintainence generator for a user defined table .
    My user needs the track of all the users who edit the table .
    Please advice as soon as possible

    Hi,
    in transaction SE11 -> Goto -> Technical settings there is a checkbox at the bottom  (log data changes). See F1 help for it.
       Reward points if useful.
             Regards, Marina

  • Drop down in Table Maintainence Gen

    Hi all,
    I'm facing a problem in table maintainence generator main view screen...i've got two fields in my db table and i've created search help for both the fields for drop down option for both the fields in main view screen.....but the first field shows up drop down option were in the other does'nt....i've changed the layout of the screen and lenght of the text element as well, even altered or changed the length of the view screen but its not working out....what i'm i suppose to do to get show up the drop down option for the other field too so as to make the the end user find the list of entries in the field..............any suggestion or changes would be really appreciated and correct answers would be surely rewarded....
    Answer need urgenlty..........

    Check whether in the attributes of the field, whether you have put the "Dropdown" value for your field as "Listbox" or "Listbox with key".
    Also check whether you have referenced the field directly to the data element.
    HOpe this helps.
    Thanks
    Balaji

  • Sorting in table maintainence

    hi
    i need to have sorting icon in a table maintainece i have crated
    a table maintainece tcod in se93 for a table but when i execure teh tcode and go to table maintianece
    no sorting icons are shown
    my requirment is that user is able to sort on basis or the fields in the table also
    pls suggest how to do it.
    regards
    Arora

    first u need to go to /nse11->give the table ->table maintainence generator->click on the Maintain screen-> ..it will take u to a module pool program.
    then go to screen .place a button for sort and then write logic for sort in the PAI of the module pool.This should work...
    Revert back if any doubt
    Reema

  • Will values move if maintained in table maintainence sm30

    hi,
    i have one doubt , i have created a table maintainence sm30, and maintained some values, now if i moved it in to production, will values also move or i have to maintain values in productiona also,
    cheers,
    vijay

    It depends ,but most of the time we maintain data separately i mean system wise.
    You can maintain values in production by using SM30 Transaction.
    If your client needs transfer data from one system to other system,then you need to create transport request.
    Search in forum like " How to transport database records''
    Thanks
    Seshu

  • Delete Table Maintainence View

    I need to delete a table maintainence view. How can I go about doing so, please be specific. Thanks.

    hi,
    If the few values are required to be deleted,and if the data base maintainence is allowed... then you can go to SE11 and can selected those field and delete it....
    Otherwise if the value sets are large in number it has to be done programatically, using ABAP....
    Hope it helps....
    Regards
    Priyanka.P

  • Obligatory fields in table maintainence

    Hi,
    I have a table with a maintainence, when i fill with data the line i fill one of the key fields,but there are 5 key fields, when i fill one and give enter he blocks the other key fields, there is anyway to not block any field until all key fields are filled with data?

    Hi,
      GOTO SE51 and enter the program and screen number that is created for the table maintenance..
      For the key fields in the attributes make it as mandatory..
      That way it will make sure the user will enter values in all the key fields..
    THanks,
    Naren

  • 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

  • Table maintainence in Production in ECC

    Hello Gurus,
    We have recently done an upgrade from 4.6c to ECC 6.0. currently in UAT phase.
    I have an issue in maintaining tables.
    In pevious version i.e R3 4.6c  even the client setting are " NO changes to repository and customizing objects" they are able to maintain some tables through some parameter transactions.
    But in ECC , we are not able to maintain the tables.
    Please let me know what settings needs to be done, for tables to be maaintainable in ECC.
    Thanks,
    Sanketh.
    Edited by: Sanketh Teegala on May 28, 2010 6:33 AM

    Hi Saketh,
    You need to get two things checked from an ABAPer/developer:
    1 - Get the properties of the table checked(SE11) in both the versions(ECC and 4.6c).
    For ECC6 - Check out the "Delivery and Maintenance" tab and check for the values of "Data Browser/Table View Maint".  Ideally as per your requirement it should be " Display/Maintenance Allowed".
    For 4.6C - There is flag of "Table Maintenance Allowed" in "Attributes"which I guess would be "checked" .
    2 - Also check if the table maintenance view is generated in ECC and 4.6C.
    Note: Compare above two points for production landscape only, i.e 4.6c production to ECC production.

  • Table maintainence for almost 50 tables are to be changed

    Hi All,
      Please advice on what have to be done for this issue.
    I got a requirement to change the Settings for some custom tables/views  & regenerated in the development system so that the tables can be updated in Quality and Production systems.
       The current setting of these tables/views is "Standard Recording Routine", which needs to be modified to "no, or user, recording routine".
    As the production system is (should be) in "not modifiable" state, the maintenance of these Z* tables/views will not be possible with the current attributes of  tables/views.
    Please advice on how to move further,
    Thanks & Regards,
    Sam

    Hi,
    I don't see any issue in doing so...
    I think you are getting confused with those radio button...you may refer F1 on both buttons and you can get idea what it talk..
    If you tick Standard Recording routine, SAP will ask for Transport Request Number when you try to add / Edit data in your system....So if you want data changes to get recorded in Transport Request when user changes or add data in system you tick this checkbox...You can thereafter transport this Request to Quality or production and changes will get transported..
    If you want that system should not record it in Standard Way, or you have some Custom code defined to handle such changes you ticket No. or user recording routine..In such case, generally modifications are directly done in Quality and Production systems..
    Regards,
    Mohaiyuddin
    Edited by: Mohaiyuddin Soniwala on Feb 18, 2010 12:46 PM

Maybe you are looking for

  • Change the useful life of an asset

    Hi everyone, I'm using Oracle 11i Asset module. currently I have an asset whose useful life is 4 years. But we realise that this asset can only last for 3.5 years (3 years and 6 months). I tried to go into the Book of this asset and changed the life

  • In Export module, Simple watermark does not appear in my photos

    I make it a habit to always place a simple watermark on all my photos during Export. When i was using LR3 this always worked, but when I recently updated to LR5.2 the Copyright watermark does not show in my photos. I tried several repetitions exporti

  • The easiest ways to mark topics as read

    Just like a big email inbox, the way to stay organized on the Community is to know what's old and what's new. You can manually mark messages as read or, even better, you can let the system do it for you. To automatically mark topics as read: Sign in

  • Combining PDF Files

    Hi - I subscribe to the Create PDF (Adobe PDF Pack) I have been trying to use the 'Combine Files' but it keeps failing and telling me to try again later. I have tried using different machines but it does not make any difference. Can you please advise

  • Coding error using measurement studio

    hello.. can somebody tell me where can i get help on coding the measurement studio using VB.i'm doing an interface programing with a dc servo motor.i'm using a fuzzy logic controller(FLC) to make the output of the servomotor to follow the input, whic