Table Maintainace generator

Hi Experts,
I have created a tcode which is assinged to table maintaince generator of a table.in that table maintainace generator screen
when i click on new entries and when i enter data in the first field and press enter the cursor should automatically go to the second field and so on and when i enter the value in the last field and press enter the entry should automatically get saved. is there any possibility to implement this requirement because the code is generated automatically when i created the TMG.
Thanks in Advance,
Nishitha Reddy

Hi,
Go to your function assign to the TMG and you can use module LISTE_SHOW_LISTE to jump to the next column
using get cursor and set cursor.
and you can use module LISTE_UPDATE_LISTE to update or save your data on enter.
Thanks,
Anmol.

Similar Messages

  • Table Maintainace generator not showing all the fields in table

    Hello,
    I generate table maintainace genrator for Z-Table and also create Tranaction code for that.
    I have 27 fields in my Z-table but when I run tranaction code for table maintanance generator it shows only 8 fields.
    I want to show all 27 fields in my tranaction code of table maintainace generator.
    How I can Achieve this?
    Please Suggest.
    Thanks,
    Amit

    Hello Ram,
    Thanks for your answer.
    I increases lenght of screen and table control and activate function group.
    But still in program PBO of screen it showing 8 fields as follows:
    CHAIN.
        FIELD ZPROJ_FIN_STATS-PSPID .
        FIELD ZPROJ_FIN_STATS-GJAHR .
        FIELD ZPROJ_FIN_STATS-MONAT .
        FIELD ZPROJ_FIN_STATS-POSID .
        FIELD ZPROJ_FIN_STATS-IS_REL .
        FIELD ZPROJ_FIN_STATS-IS_TECO .
        FIELD ZPROJ_FIN_STATS-IS_CLSD .
        FIELD ZPROJ_FIN_STATS-LEG_STATUS .
        MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
       ENDCHAIN.
    but Iwant total 27 field to show.
    How I can achieve this?
    Thanks,
    Amit

  • I created table maintainace generator but while executing this in SM30.

    I created table maintainace generator but while executing this in SM30 it's giving following error. Error message " Conversion error"
    The program has been interrupted and cannot resume. Program "SAPLZ_DEV_AC_DAT_MOE" attempted to display fields on screen 0001.
    An error occurred during the conversion of this data.
    Table has following fields:
    MANDT          MANDT     CLNT     3     0     Client
    YEAR1          CHAR     4     0     Year
    SOLD_TO_PARTY     KUNRG     CHAR     10     0     Payer
    MATNR          MATNR     CHAR     18     0     Material Number
    JANACP          CURR     15     2     Jan Accural Plus.
    and reference field for JANACP is VBRK-WAERK.
    Can anyone help me on this.

    Hi,
    you have a field of type amount and need a referring currency field. You have chosen a VBRK field, but in SM30 you have no connection to a special VBRK entry because of a missing connection on key field VBELN.
    Either you create a currency field in your table, or (if possible) you have to add a foreign key relation to VBRK with a fixed VBELN (existing on all systems) to get the VBRK currency. But the second way is no good idea!
    You need a currency to get the right decimal point for your amiount.
    Regards
    Klaus

  • Regarding Table maintainace generator

    Frnds,
               Hope all are doing good.
               I am recently working on ECC 6.0 and i want to create table maintainance generator for a ztable. Actually i hav created function grp and passed in sm30 transaction and used single screen. Problem is when i double clicking the screen number its going to se 51 and going to a standard progam named with function grp
    SAPLZNEWFUNCTION. From i m confused but in that already some standard code is maintained. But there i hav created screen comprising our ztable fields..
    From there i m confused .. how to link with ztable and how to create standard transaction for entering data into that screen and updating the ztable.
    Frnds i hav seen so many documents .. i dont need documents ..plzz guide me with proper steps for achieveing target.
    thanking u all for reading my doubt and acting on it.
    regards,
    karan

    Here is the steps for  making table  maintaince generator ...
    Creating Maintenance Views  
    Procedure
    1.Enter an explanatory short text in the field Short text.
    You can for example find the view at a later time using this short text.
    2.Enter the primary table of the view under Tables in the Tables/Join conditions tab page.
    Only those tables that are linked with the primary table (indirectly) with a foreign key can be included in the maintenance view.
    3.If required, include more tables in the view. In a maintenance view you can only insert tables that are linked to one another with foreign keys.
    Place the cursor on the primary table and choose Relationships. All existing foreign key relationships of the primary table are displayed. Select the required foreign key and choose Copy. The secondary table used in such a foreign key is included in the view. The join conditions derived from the foreign keys (see Foreign Key Relationship and Join Condition) are displayed.
    You can also insert tables that are linked by foreign key with one of the secondary tables that was already inserted. To do this, place the cursor on the secondary table and choose Relationships. Then proceed as described above.
    For maintenance and help views, there are certain restrictions on the foreign keys with which the tables can be included in the view (see Restrictions for Maintenance and Help Views). The foreign keys violating these conditions are displayed at the end of the list under the header Relationships with unsuitable cardinality.
    4.On the View fields tab page, select the fields that you want to copy to the view.
    Choose Table fields. All the tables contained in the view are displayed in a dialog box. Select a table. The fields of the table are now displayed in a dialog box. You can copy fields by selecting them in the first column and choosing Copy.
    All key fields of the primary table must be included in a maintenance view. In addition, all key fields of secondary tables that are not involved in the foreign key (that is, which are not linked via a join condition to a key field already included in the view) must be included in the view.
    This ensures that the records inserted with a maintenance view can be written correctly in the tables contained in the view.
    5.On the Selection conditions tab page, you can (optionally) formulate restrictions for the data records that can be displayed with the view (see Maintaining Selection Conditions for Views).
    The selection conditions define the data records that can be selected with the view.
    6.In the Maintenance status tab page, define the maintenance status of the view.
    The maintenance status defines how you can access the view data with the standard maintenance transaction (SM30).
    7.Choose   activate
    8.Go to Transaction SE54 with Environment ® Tab.maint.generator.
    From the view definition you can generate maintenance modules and maintenance interfaces that distribute the data entered with the view to the base tables of the view. You can find more information in Creating a Maintenance Dialog.
    here is the link for creating Tcode  .
    http://www.sapdevelopment.co.uk/tips/tips_tabmaint_tcode.htm
    Girish

  • Transporting table and table maintainance generator

    Hi,
    Can i transport the table and table maintainace generator and function group of the table with in single request or not.
    One more thing is when i transport the table maintainance generator,will the entries also be transport to another system or not.
    Thanks in advance,
    Suresh

    Hi Suresh,
    Go to SE54-> Utilities-> Total Transport. The following things are transported.
    The total transport transports the complete maintenance dialog:
    authorization group
    authorization group assignment
    control entry
    events
    function groups
    maintenance objects
    variants
    Content wont be transported it seems.
    Thanks & Regards,
    Nagaraj Kalbavi

  • Issue with data dictionary -Table maintanance generator

    Hi all,
    I have an issue with Data dictionary, table maintenance generator. I have entered some records in a custom table (ZBCSECROLETOGRP) and changed the delivery class from C to A. When I create the table maintainance generator, I am encountered with the following errors:
    1)Field ZBCSECROLETOGRP-PORTALGROUP shortened (new visible length: 000032)
    2)0012 could not be generated
    3)In TCTRL_ZBCSECROLETOGRP field LENGTH has the invalid value 01
    My main motto is to create the table maintainace generator and transport to the furthur systems .
    Please help.
    ThnX in advance,
    Vishal..

    HI,
    Regenerate the table maintenance by selecting the checkbox of "Modified field structure" => new entry & then save.
    Also ensure that the new changes are not affecting old data bcz of data type changes. If that is the case, then delete the old records, regenerate table maint. & re-enter those records which you had deleted.
    Thanks,
    Best regards,
    Prashant

  • Table maintenence generator events

    Hi experts,
        I am having a table in which I have implemented the table maintenence generator.The requirement is as follows:
    Field A:User enters value 'aaa' using F4 help
    Field B:Automatically gets populated with the short description corresponding to 'aaa'.
    Here the short description depends on the selected value for field A.

    Hi debansu,
    No need to do your coding in events in your case. first of all you understand the internal table used in table Maintainace, The internal tables used are TOTAL and EXTRACT. These table are of string type so you will have to catch your value using offset. To write the logic to popualte the value is very simple in your case. You add one Module in PAI logic of screen of Table maintainance generator in that Module you poupalte the field. for example say for the F4 value of field MATNR you want to populate field MAKTX. then in the one custom PAI moudule you write like this.
    SELECT SINGLE FROM MAKT
                  INTO LF_MAKTX
                  WHERE MATNR = EXTARCT+3(18)(If Material is the 2nd field after MANDT).
    In PAI LOOP is done on EXTARCT internal Table which holds Records in run time.
    This will solve your requirment If you are not having F4 help then you can create it by adding one event PROCESS ON VALUE-REQUEST writeen in Flow logic of screen.
    We use event where we want to do some validation based on some reasons like Before saving the data in database or before displaying to do the validation of records from table TOTAL. there are diffrent events in Table maintaince but in your case it's not required..
    Let me know if you have any more issue.
    <b>Kindly reward points for helpfull answers..</b>
    Regards
    Tanweer Zaki
    Message was edited by:
            Tanweer Zaki

  • What is table maintainace ?

    Hi
    what is table maintainace ?
    what is the use ?
    and how to create a table maintainace ?
    can any body tell me u r own words.
    thanks,
    sap-abap.

    Hai
    Go through the following Document
    1. specially function group.. what is its significance
    When we generate table maintenance,
    the system , based upon the table fields,
    automatically,
    generates
    PROGRAM CODE, SCREEN FOR ENTERING DATA,
    LOGIC FOR SAVING DATA, LOGIC FOR DISPLAYING DATA
    ETC.
    2. All this are BUNCHED under
    a FUNCTION GROUP
    (if you open that function group in se80, after
    creatting table maintenacne,
    u will see the program code, screens, gui status etc)
    3. Hence, to BUNCH all these various objects,
    SAP uses the concept of function group.
    4. And also why do we need to give two screens there
    Its not necessary to have to screens.
    5. ONE SCREEN MEANS:
    only one screen with table control to enter data
    TWO SCREEN means :
    first screen : only primary key fields will appear
    second screen : rest of the fields will appear to enter data
    6. When the table consists of many fields,
    its practically more convenient to have two screens,
    so that all fields come vertically downwards.
    (instead of scrolling horizontally in the table
    control, in case of one screen concept)
    The use of the FG is only this the Table Maintainance Generator part. Neednt be declared anywhere else.
    yes u need to create a FG and the use it in Table maint. gen.
    http://help.sap.com/saphelp_erp2005/helpdata/en/a7/513520407a11d1893b0000e8323c4f/frameset.htm - a link for basics on Table Maintenance.
    Also, Check out this weblog on table maintenance:
    /people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance
    Regards
    Sreeni

  • All fields are not found in Table Maitainence Generator

    Hi all,
    I have create a table with ZPFT_TRAY with 6 fields and created table maitainence generator for the table.
    But when i check in SM30 i can see only 5 fields in Table maitainence generator.
    will anybody let me know why it is showing only five fields.
    Regards,
    Madhavi

    Hi madhavi,
    do one thing delete your old table maintenance generator and again create a new TMG , generate it properly and save it and then check in sm30. and if u have defined your own data element then fill the field label of that data element and activate ur table. because when ever you do any modification in your Ztable then you have to create again table maintenance generator othervise your modification will not reflect in sm30.
    hope this will help you.
    Regards
    Saurabh

  • Fetch data from table and generate attachment than mail it.

    Hello Experts,
    From couple of day I am searching on Google for a better database procedure that will help me to get data from tables and generate attachment and mail it but i fail.
    My Scenario is:
    I have a query that will fetch almost 5000 records from database tables. Each record has almost 75 characters
    select a.location_code,
                   a.item_code,
                   b.description item_desc,
                   to_char(a.manufact_date,'ddMonyy')mfg,
                   to_char((a.manufact_date + nvl(b.expiry_period,0)),'ddMonyy')expr,
                   to_char((a.manufact_date + nvl(b.qurantine_period,0)),'ddMonyy')qrtn,
                   round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) days_elapsed,
                   a.closing_balance_posted quantity
              from wms_stock_current_balance_v a, wms_item_setup_mast b
             where a.closing_balance > 0
               and a.item_code = b.item_code
               and a.loc_type in ('RACKING','PICKING','QUICKA','BUNDLED')
               and nvl(b.qurantine_period,0) > 0
               and round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) <= 0
          order by a.item_code, a.location_code;
    Sample data of above query is
    LOCATION_CODE
    ITEM_CODE
    ITEM_DESC
    MFG
    Expiry
    Quarantine
    Days Elapse
    Quantity
    13DL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    14DL0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    134
    14DL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    160
    14DR2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    20
    14LL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    17ER2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    17GL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    17SL0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    17-Feb-10
    28-Mar-14
    1-Jun-13
    -125
    64
    18QL0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    160
    19AR5
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    17-Feb-10
    28-Mar-14
    1-Jun-13
    -125
    160
    19DL1
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    19JR0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    17-Feb-10
    28-Mar-14
    1-Jun-13
    -125
    60
    19TL1
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    20GR2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    40
    36FL3
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    18-Feb-10
    29-Mar-14
    2-Jun-13
    -124
    65
    19UR0
    000000000000000F0591
    COMFORT WHITE 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    1
    12SL1
    000000000000000F0593
    COMFORT PINK 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    42
    12SR1
    000000000000000F0593
    COMFORT PINK 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    42
    14OR1
    000000000000000F0593
    COMFORT PINK 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    8
    36EL4
    000000000000000F0594
    CLEAR HF DECRASE 5M*360
    14-Feb-10
    14-Feb-11
    12-Oct-10
    -1088
    14
    13VL1
    000000000000000F0595
    CLEAR COM SFT CRE 5*360
    8-Feb-10
    8-Feb-11
    6-Oct-10
    -1094
    160
    14ER0
    000000000000000F0595
    CLEAR COM SFT CRE 5*360
    8-Feb-10
    8-Feb-11
    6-Oct-10
    -1094
    105
    Database Info
    Oracle 10g
    Version 10.2.0.1.0

    Look at the sample code for generating a CSV file that I've just posted in response to a similar question:
    Re: How to execute a proc and spool files in a database job
    And the use the search button in this forum to find sample code for sending a CLOB as a plain/text e-mail attachment using UTL_SMTP.

  • How to create event in table maintenance generator

    Hi guys,
    I need to create an event for my table maintenace generator such that when the field land1 is filled, the landx field should take its data from t005t table. and the ladnx field should be display only, it can not be modified in table maintenance.
    How can i create an event in table maint. gen? How am i going to do it?
    thanks always,
    mark

    Hi,
    As mentioned in the last post go to the event screen by
    Environment --> Modifications --> Events.
    There you click on new entries and try writing your logic for event 21 i.e. after selecting 21 give some name of your event and write down the logic how you want to do this.
    If event number 21 does not work then try 1. One of these two should work.
    Hope this helps!!!
    Regards,
    Lalit

  • EVENTS in table maintenance Generator

    Hi, can u people help me while using EVENTS in Table Maintenance Generator. Means how can I perform different task using events.

    Hi,
    Using events in table maintenace generator, you can validate the fields, update the fields etc..There are events(01-New Entry), (02-Before Save); (03-After Save) etc... The respective events trigger on the action performed.
    To create events : Goto table maintenace generator screen->Enviorement->Modifications->Events.
    Select the from the list of events and peform based on ur requirement
    Regards
    Shiva

  • Events in table maintenance generator 01

    Hi all,
           I have an urgent requirement regarding the events in table maintenance generator.The requirement is i have a qty field in table i want to change the existing value it should allow only a lesser value.How to use TOTAL and EXTRACT structures.
    it is urgent.please help me out.
    Thanks & regards,
    Kranthi

    Follow the example below:
    form get_vendor_name.
      data w_extract type z_table.
      data begin of w_total.
              include structure z_table.
      data: action,
            mark,
      end of w_total.
      loop at extract into w_extract.
        check not w_extract-z_vend_no is initial.
        select single name1 from lfa1
                           into  w_extract-z_vend_name
                           where lifnr = w_extract-z_vend_no.
        modify extract from w_extract.
      endloop.
      loop at total into w_total.
        check not w_total-z_vend_no is initial.
        select single name1 from lfa1
                           into  w_total-z_vend_name
                           where lifnr eq w_total-z_vend_no.
        modify total from w_total.
      endloop.
    endform.
    Reward points if useful.
    Regards.

  • Disable delete button in Table Maintainance Generator

    Hello all,
      How to disable delete button in Table maintainance generator???

    Hi Maya,
    It is very interesting question. If you debug your table maintenance screen, the program of table maintenance screen will not have statically defined pf status. So you cannot exclude delete functionalities using the below statement.
    SET PF-STATUS <the GUI status> EXCLUDING 'DELE'.
    For viewing pf status SAP has programmed in dynamic manner using this FM VIEW_SET_PF_STATUS.
    Before calling above FM you need to exclude delete function. Follow the following step for achieving this
    Go to sm30. Put your table name and press on maintain push button. It will display table entries in maintenance screen.
    Go to system->status
    Click on program name.
    Go to your flow logic of you table maintenance screen number.
    It will have following code in flow logic
    PROCESS BEFORE OUTPUT.
    MODULE LISTE_INITIALISIEREN.
    LOOP AT EXTRACT WITH CONTROL
      TCTRL_ZMAINTAIN CURSOR NEXTLINE.
       MODULE LISTE_SHOW_LISTE.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.
    MODULE LISTE_BEFORE_LOOP.
    LOOP AT EXTRACT.
       MODULE LISTE_INIT_WORKAREA.
       CHAIN.
        FIELD ZMAINTAIN-MATNR .
        FIELD ZMAINTAIN-KUNNR .
        FIELD ZMAINTAIN-LIFNR .
        MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
       ENDCHAIN.
       FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
       CHAIN.
        FIELD ZMAINTAIN-MATNR .
        MODULE LISTE_UPDATE_LISTE.
       ENDCHAIN.
    ENDLOOP.
    MODULE LISTE_AFTER_LOOP.
    Add new module in PBO for excluding delete function. ex  module set_pf.
    PROCESS BEFORE OUTPUT.
    ****here I added my own code for excluding delete function
    ****begin of addion
    module set_pf.
    ****end of addition
    MODULE LISTE_INITIALISIEREN.
    LOOP AT EXTRACT WITH CONTROL
      TCTRL_ZMAINTAIN CURSOR NEXTLINE.
       MODULE LISTE_SHOW_LISTE.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.
    MODULE LISTE_BEFORE_LOOP.
    LOOP AT EXTRACT.
       MODULE LISTE_INIT_WORKAREA.
       CHAIN.
        FIELD ZMAINTAIN-MATNR .
        FIELD ZMAINTAIN-KUNNR .
        FIELD ZMAINTAIN-LIFNR .
        MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
       ENDCHAIN.
       FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
       CHAIN.
        FIELD ZMAINTAIN-MATNR .
        MODULE LISTE_UPDATE_LISTE.
       ENDCHAIN.
    ENDLOOP.
    MODULE LISTE_AFTER_LOOP.
    *****inclule one line of code for excluding delete fucion
    module set_pf output.
          MOVE 'DELE' TO excl_cua_funct-function. COLLECT excl_cua_funct.
    endmodule.
    Basically sap fetching status dynamically from program SAPLSVIM using FM VIEW_SET_PF_STATUS. Status name is EULG.
    Please donu2019t hardcode anything by using set pf status statment, you just add one line of code the PBO by creating new module.
    Let me know if you need any help .
    Cheers.
    Regards,
    Peranandam

  • Table Maintenance Generator - Function Group regeneration issue

    I have table maintenance genertor in a function group that contains lot of tables . I by mistable regenerate the whole function group using table mainteance generator.
    Now i want to check which of the programs changed during the regenerator. I am looking for some sap table that contains all the changed objects and their transport number.
    Please rememebr i have still not released the transport,
    I have checked E071, E071, VRSD . That contains the entry for function group and does not contains the programs inside the function group changed
    Thanks

    Thomas,
    Thanks for your reply. Currently I don't want to release the transport.
    Is there any table i can check which are programs changed without releasing transport
    a®s
    Edited by: a®s on Jul 13, 2009 12:42 PM

Maybe you are looking for

  • How many ALSA applications can play sound at once?

    I ran into a strange issue where I had Counter-Strike:GO running (sound working fine in the game itself) but when I alt-tabbed, no other application could play sound.  VLC would complain my device was busy and Chromium didn't show an error but sound

  • Reconcilation of data

    hi Xperts,    Can any body give me the step by step Procedure To check the Data in Inventory Cube OIC_C03?. I am presently checking the data with the Extractor checker data in the source system. is it correct?. Any Ideas ?. Plz help me in this Aspect

  • MDM schema questions

    I am using MDM Version 5.5 SP4 (5.5.33.13) on Windows XP Please help me with the following 1. "Create Repository from Schema" option is not available in MDM console 2. How do I use the Business Content that comes with MDM to create schemas and import

  • ABAP WD application -Adobe form -Cache problem

    Hi, I have an WD application where -in user enters order number  and clicks search button then it displays order as adobe form. I am having problem with cache! at first if there is a order which has all item data it displays that order properly but i

  • State Machine SubVI

    Can the attached VI statemachine be converted to a subvi ?  I have tried several variations but unsuccessful so far.  Would like to have a subvi icon with external connections SP, RO, and Overide.  I am creating other applications that will use multi