Table maintenance view not saving changes

Hi experts
  I have created a Z table with corresponding maintenance view (with transaction). Also, there is a Z program to insert records into the table from xls file.
  When accesing the maintenance view, I can add and remove entries, but the problem is:
       when I update a record, if the records has been created using the maintenance view, then changes are saved to database, but if I try to modify a record added by using the Z program, none of the modifications are saved to DB.
  I have re-created maintenance view, and table properties (delivery class A, display/maintenance allowed ...) seem to be OK.
Can someone provide some help with this?.
Many thanks in advance for your help.
Best  regards,
Carlos.

HI
  Thanks for your answer, but didn't work.
  Below my program (
  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
      filename                = p_fin
      i_begin_col             = 1
      i_begin_row             = 2
      i_end_col               = 9
      i_end_row               = 9999
    TABLES
      intern                  = gt_fichero
    EXCEPTIONS
      inconsistent_parameters = 1
      upload_ole              = 2
      OTHERS                  = 3.
  LOOP AT gt_fichero INTO gs_fichero.
    CASE gs_fichero-col.
      WHEN 1. "Proyecto
        "Validaciones
        gs_unidades-proyecto = gs_fichero-value.
      WHEN 2. "Tipología
        "Validaciones
        gs_unidades-tipologia = gs_fichero-value.
      WHEN 3. "Alias
        "Validaciones
        gs_unidades-identificador = gs_fichero-value.
      WHEN 4. "Superficie
        "Validaciones
        TRANSLATE gs_fichero-value USING ',.'.
        gs_unidades-superficie = gs_fichero-value.
      WHEN 5. "Estado
        "Validaciones
        gs_unidades-estado = gs_fichero-value.
      WHEN 6. "Entrega
        "Validaciones
        gs_unidades-entrega = gs_fichero-value.
      WHEN 7. "PVPCoste
        "Validaciones
        TRANSLATE gs_fichero-value USING ',.'.
        gs_unidades-pvpcoste = gs_fichero-value.
        "Se añade el registro a la tabla de datos maestros
        INSERT ztt_fi_unidades FROM gs_unidades.
        CLEAR gs_unidades.
        IF sy-subrc EQ 0.
          gv_total_correctos = gv_total_correctos + 1.
        ELSE.
          gv_total_erroneos = gv_total_erroneos + 1.
        ENDIF.
        gv_total_registros = gv_total_registros + 1.
      WHEN OTHERS.
    ENDCASE.
  ENDLOOP.

Similar Messages

  • Table maintenance view Events

    Hi
    In My Z Table maintenance view i  had implemented a new event 01- Before save. But my table entry's are not getting saved now and also i am not getting any error message.
    Please help me on this.
    Regards,
    Naidu Vecahalapu.

    Hi Naidu,
    In the event code of the table maintenance view, please ensure that the SY-SUBRC is ZERO before exiting the sub-routine. Otherwise your changes (insert, update or delete) won't get updated and also you won't get any error message.
    Regards
    Suresh

  • Using an event in table maintenance view to populate a field

    I have a table maintenance view, and I would like to populate one field of the table with derived data. I am trying to do this by coding a routine for one of the events, but so far no luck. I have been able to chege the data in the TOTAL table, but still it does not populate the field on the screen.
    Note this is not for one row as it is entered, but I want all rows of the table displayed to show this field with derived data.
    So the question is: what is the correct event to use, and what is the correct internal table to update? Can I make changes to EXTRACT or TOTAL to do this?
    Kind Regards,
    Tony.

    Hi Rob,
    Sorry for being lazy; I'll close this and off and search :-}
    BR,
    Tony.

  • Refresh data in Table Maintenance view

    Hi,
    I have created a table maintenance view for db table A and added my function button to this view. When I click the button I append  a few records to the table A from table B. But this recoreds are not displaied in the view.
    If I rerun the view I can see added records.
    How I have to refresh the view to display added records?
    Regards,
    Ilya

    Hi Jesus,
    COMMIT WORK isn't help me.
    I found that I have to use TOTAL and EXTRACT structures to modify data in maintenance view.
    It's fine. I do something like this in my FM
    MODULE 9CUSTOM_PF_BUTTON INPUT.
    lt_total[] = total[].
    lt_extract[] = extract[].
    CASE function.
          WHEN '9DOWNSH'.
             modify lt_total from wa_total.
             modify lt_extract from wa_extract
    ENDCASE.
    total[]   = lt_total[].
    extract[] = lt_extract[].
    ENDMODULE.                 " 9CUSTOM_PF_BUTTON  INPUT
    But TOTL and EXTRACT tables contain data of  the current maintenance view.
    I work with a view cluster and I have to append or delete records from one view if I do something in other view.
    How I can modify data one view from another maintenance view?
    If I have modified database tables directly I don't see changes in the view cluster.
    Regards,
    Malnor
    Edited by: Malnor on Nov 23, 2010 9:19 AM
    Edited by: Malnor on Nov 23, 2010 9:38 AM

  • Table maintenance view - tcode

    Hi experts,
    We have a tcode (already in production) created for table maintenace view of z-table.
    Everything is working fine.
    Now I added one new field to the z-table and changed the table maintenance view accordingly. In SM30 I can maintain the table without difficulties - the new field is visible and maintenable. However, when I call the transaction code created for this view, it doesn't have the new field yet.  I tried a lot but without success to update the tcode accordingly.
    How can I get the tcode adjusted with the new field?
    Thanks for your advise and help in advance!
    Your feedback will be << appreciated >>.
    Regards,
    Sally
    Please do not offer rewards.
    Edited by: Rob Burbank on Dec 6, 2009 5:22 PM

    It's about one week you asked the question, but I answer in case you didn't understand what happened:
    First, screens 1000-1010 can't be used in a table maintenance dialog (an error is mentioned by SAP when you try to use these numbers). So, I really don't understand how you can get 1000 in your table view!
    So, I think that your transaction is linked to a custom program (not the SM30 view). So you just need to adapt manually the custom program. Note: maybe the program is a partial copy of the SM30 function group, so maybe you may just copy the dynpro 1000 of the SM30 function group  to the dynpro 1001 of your custom program...
    Note: when you want to create a transaction which is linked to a table maintenance view (SM30), you must define a Z* transaction of type parameter, with reference to SM30 transaction, select "skip initial screen", do not choose any dynpro, and choose VIEWNAME = your view and UPDATE = X as parameter values.

  • Table Maintenance & View Clusters

    Hi,
    I am trying to generate table maintenance views and group them using a view cluster. The following is what I have done so far.
    I created 2 tables. TAB_A is the primary table with TAB_B the description by language table. They are not linked to each other in any way (even though they probably should).
    TAB_A - FLD_A (key, char2)
                  FLD_B (date)
                  FLD_C (time)
                  FLD_D (fltp16)
    TAB_B - FLD_E (key, char2, same type as FLD_A)
                  FLD_F (key, char3, language field)
                  FLD_G (char50)
                  FLD_H (date)
                  FLD_I (time)
                  FLD_J (fltp16)
    I then created 2 maintenance views based on the tables above.
    VIEW_A - FLD_A
              FLD_B (hidden)
              FLD_C (hidden)
              FLD_D (hidden)
    VIEW_B - FLD_E
              FLD_F (hidden)
              FLD_G
              FLD_H (hidden)
              FLD_I (hidden)
              FLD_J (hidden)
    I've then used the table maintenance generator to create the screens as well as the unique events to populate the hidden fields.
    Using SE54, I've created a view cluster. I have added both of my views to the view cluster as follows:
    View/table       TAB_A          TAB_B
    Predecess.       TAB_A          TAB_B
    Dep              R              R
    Pos              1              2
    Start            true
    I have clicked the field-dependence button and generated the dependencies successfully.
    So far everything is okay.
    I now need to change the hierarchy in the cluster, so that TAB_B is dependent on TAB_A.
    What I have tried so far is to add a foriegn key to TAB_B (this worked but is not an ideal solution).
    I also changed the dependency type in the cluster to 'S' (only worked in conjunction with FK)
    The documentation indicates that what I am trying to do is possible, but I'm not sure how.
    So do any of you bright people out there have any ideas?
    Be gentle I'm new to both the forum and SAP in general (hence being given table maintenance).
    Kind regards
    Chris

    In my experience, cluster maintenance view Table 1 keys where always used as foreign keys in Table 2. Then these common fields were used in dependencies and subset.
    - Creation of maintenance view on table 1
    - Then generation of maintenance dialog on Table 1
    - Creation of maintenance view on table 2 defining the keys of Table 1 as subset fields (test the dialog, a popup should appear with the subset fields)
    - Then generation of maintenance dialog on Table 2
    - Creation of the cluster generating the dependency between Table 1 and itself (without specifying any field) and between Table 1 and table 2 using the subset fields (should work automatically)
    Look also at [Create a View Cluster|http://help.sap.com/saphelp_nw04/helpdata/en/d0/999249b2aa11d1a5700000e82deaaa/frameset.htm]
    Regards

  • Table Maintenance View Generator - 46C to 60 compatibility

    Table Maintenance View Generator - 46C to 60 compatibility
    I think SAP changed the way it generated its View Maintenance Screens some time after release 46C such that view maintenance dialogs in 46C are maintainable in subsequent releases but that view dialogs created in subsequent releases are not compatible in 46C.  <u>This is my hypothesis.</u>
    <b>Can someone confirm?  Is there a way to revert 60 code to the way the dialog was generated in 46C?</b>
    The error in the transport log from a 60 system to a 46C system is:
    "Field '<VIM_TOTAL_STRUC>' is unknown. It is neither in one of the specified"

    Hi April,
    You can use standard program <b>RSWBO052</b> to change the package. Enter the object and mark the checkbox -> Execute -> Place the cursor in the object -> Right click mouse -> Reassign -> Enter new package -> Save.
    or you can go to transaction SE80 -> Select Package -> Enter &TMP -> Hit Enter -> Find your object -> put the cursor and right click -> Other functions -> Object Directory Entry -> Change -> Change the package -> Save.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward point if helpful.

  • How to hide a field from table maintenance view?

    Hi,
    How to hide a field from table maintenance view? 
    The field is used for data created date. I need to hide it from display.
    Thanks

    Chk this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/33f52010dd11d6999300508b5d5211/frameset.htm
    Maintenance Attributes
    You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be  H (hidden)
    H (hidden)
    A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
    The system writes R and H fields to the database like all other fields when a new data record is saved.

  • Problem in Table maintenance view

    Hi all,
    i am getting some problem in table maintenance view.
    In my table i have some fields and when i created my table maintenance view , it is created , but when i try  to see it in SM30 its not showing my fields and even i am unable to create a  new entry. when i click
    new entries its going back to the sm30 screen..
    How to go abt it
    please help me

    Hello,
    Have you created the table maintanence view the right way.
    You can get good help from below link: [[http://www.****************/Tutorials/ABAP/TableMaintenance/demo.htm]]
    Also, please check the Delivery Class and Data Browser/Table View Maint. in the Delivery and Maintanence tab of the table.
    Thanks,
    Jayant
    Edited by: Jayant Sahu on Nov 24, 2008 3:00 PM

  • Reg :-maintain a table maintenance view for the z table.suggest me the code

    i have question.i have created a z table related to pp module.the requirement is to maintain {table maintenance view} for this z table.how could this be done.can any one suggest me the code for this?

    Hi ,
    We have a lots of queries on table maintainance creation in the forum posted and replied to.Pls have a look at it first.
    In se11 -> change mode of the ztable -> goto -> utilities -> table maintainance generator -> click on it...
    it will give a new screen-> enter the required details like function group , authorisation(use &NC& or leave it blank if you dont know)  and screens
    2 step and 1 step means=> number of screens displayed in maintainace
    if step1 is selected then we have a screen which will be like a table control for data entry.........
    for step2 we have a table control screen and a more detailed individual field display as second screen
    click on the button 'find screen numbers' so that system automatically proposes the screen numbers
    after which click on the "create" button and follow the required instructions/messages
    once done go to SM30 enter the table name to check if maintainance has been created properly
    Hope it helps,Pls check and revert
    Regards
    Byju

  • Table maintenance view -user exit

    Hello, as you all know, there is a program generated behind the table maintenance view. I want to add certain validation on the values entered in the table maintenance.
    I know that modifying the program is not the best practice.
    Is there any user exit which will permit me to do this?
    thx.

    Hi Antish,
        Try to go with the table events. For this goto the Table Maintenance Generator Screen --> Environment --> Modification --> Events. Here you can handle some events according to your requirement. Validations can be done only in this way.
    Regards,
    Swapna.

  • Table maintenance view problem

    Hi. I'm trying to generate a table maintenance view for a custom table, and I keep getting an error message.  I go into the table maintenance view generator and fill out the fields.  I'm selecting a function group that has ZHR0 as the development class (which is correct).  Then when I click on the create button a screen pops up with the workbench request number.  When I click on the continue button, I get the following error message: "The maintenance object description has no transportable class." If I click for more information, this is what it says to do: "Either assign the maintenance object description for object ZTS_ADJST_REAS to acorrectable development class, or assign the table forthe generation of the maintenance module to a function group with non-correctable development classes."  Apparently the maintenance object description somehow got assigned to temporary class $TMP.  Where do I go to change this? 
    Thanks,
      April King

    Hi April,
    You can use standard program <b>RSWBO052</b> to change the package. Enter the object and mark the checkbox -> Execute -> Place the cursor in the object -> Right click mouse -> Reassign -> Enter new package -> Save.
    or you can go to transaction SE80 -> Select Package -> Enter &TMP -> Hit Enter -> Find your object -> put the cursor and right click -> Other functions -> Object Directory Entry -> Change -> Change the package -> Save.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward point if helpful.

  • Table or view not exists error from procedure - occurs randomly

    I have a procedure used in a website, it works fine until recently we occationaly getting an error said Table or View not exists, the error will go away if refresh the page which will re-execute the procedure.
    This procedure uses an table object as temp table and just a select statement form several tables. The table object is used in other procedures as well. I can't find out what cause this error because it's not always repeatable and the error message didn't give out the exact table that cause the error.
    Any idea what might cause this or how to trace the reason that cause the error?
    We don't have a good DBA here so really need some help, any advice are welcome.
    Cheers

    I don't think it's possible that any previlege changes are made or the tables in used in the procedure are droped because after we run our db scripts to build the db, then we testing the website which can only execute procedures, and no procedures execute DDL script to make such changes.
    It's worth to mention that we have a Table Type called EntityIDTable() which is used in many of our other procedures, but I think table type is initialise as local variable in each procedure so shouldn't conflict to each other, am I right? Also, the same script are running several times a day to generate same db but with different schema names so we can test on different site templates. One change script did drop one of the table and recreate it, but it use the &DB_Schema_Name.Tablename to drop a table so shouldn't affect the table in other schema I think. (I enclosed the procedure below)
    Also, any event log in Oracle I can enabled and trace the problem to find out what table is not exists at that point that this problem occurs?
    Cheers
    Below is the sample code of the procedure:
    aEntityIDSet varchar2,
    aCount out int
    as
    L_KeyID Category.CategoryID%type:=null;
    l_strEntityIDSet varchar2(255);
    l_strPipeSepValsInput varchar2(255);
    l_UserEntityID varchar2(255);
    l_EndPointInput int;
    l_Strlength integer;
    l_UserKey NUMBER;
    l_UserOriginalKey NUMBER;
    l_RREntityData ENTITYIDTABLE:= ENTITYIDTABLE(); /*creating on object from a table type to store entity values in*/
    -- end of Local variables used for Category Security
    begin
    -- Category Security
    -- Split up the EntityIDSet
    l_strEntityIDSet:= aEntityIDSet;
    l_strPipeSepValsInput:= l_strEntityIDSet || '|';
    l_EndPointInput:= instr(l_strPipeSepValsInput,'|',1,1);
    l_UserEntityID:= SUBSTR(l_strPipeSepValsInput, 1, l_EndPointInput - 1);
    l_UserKey:= To_Number(l_UserEntityID);
    l_UserOriginalKey:=l_UserKey;
    l_strPipeSepValsInput:= SUBSTR(l_strPipeSepValsInput,l_EndPointInput+1);
    l_Strlength:=LENGTH(l_strPipeSepValsInput);
    While ( l_Strlength > 0) loop
    <<get_entityId>>
    l_EndPointInput:= instr(l_strPipeSepValsInput,'|',1,1);
    l_UserEntityID:= SUBSTR(l_strPipeSepValsInput, 1, l_EndPointInput - 1);
    l_UserKey:= To_Number(l_UserEntityID);
    l_RREntityData.extend;
    l_RREntityData(l_RREntityData.COUNT):= Entityidtype(l_UserKey);
    l_strPipeSepValsInput:= SUBSTR(l_strPipeSepValsInput,l_EndPointInput+1);
    l_Strlength:=LENGTH(l_strPipeSepValsInput);
    end loop get_entityId;
    -- the block above used in many other procedures to get the entityID
    select Count(Distinct ri.ID) into aCount From
    -- here joint to other 6 tables
    -- the inner join below use the ENTITYIDTABLE
    inner join
    (SELECT distinct KC.KnowledgeGeneID FROM Category Cat
         inner join KnowledgeGeneCategory KC on KC.CategoryID=Cat.CategoryID
         where EXISTS (SELECT EntityID FROM TABLE(cast (l_RREntityData as ENTITYIDTABLE)) ET
         INNER JOIN (SELECT EntityID, EntityTypeID, CategoryID FROM CategoryRowLevelSecurity CRLS
         WHERE CRLS.EntityTypeID=1) S ON ET.USERENTITYKEY=S.EntityID
         where S.CategoryID=Cat.CategoryID
         UNION
    SELECT EntityID FROM CategoryRowLevelSecurity CRLS
         WHERE EntityID=l_UserOriginalKey
         AND EntityTypeID=0
         AND CRLS.CategoryID=Cat.CategoryID)
         OR NOT EXISTS (SELECT CategoryID FROM CategoryRowLevelSecurity CRLS
         WHERE CRLS.CategoryID=Cat.CategoryID)
    ) CS ON CS.KnowledgeGeneID = k.KGID
    where ri.ProcessID = riPro.ProcessID)
    end QueryNotifications;

  • How to use table maintenance view in module pool screen

    hi ,
    want to use table maintenance view in a module pool screen so that i can edit, insert, delete and update date in to the ztable.please help.

    You can simply call it via SM30.   Or you can call the table maintence view from any program(report or module pool) using a function module.
      call function 'VIEW_MAINTENANCE_CALL'
           exporting
                action                       = 'U'
                view_name                    = 'Z_Table_Name'
           exceptions
                client_reference             = 1
                foreign_lock                 = 2
                invalid_action               = 3
                no_clientindependent_auth    = 4
                no_database_function         = 5
                no_editor_function           = 6
                no_show_auth                 = 7
                no_tvdir_entry               = 8
                no_upd_auth                  = 9
                only_show_allowed            = 10
                system_failure               = 11
                unknown_field_in_dba_sellist = 12
                view_not_found               = 13
                others                       = 14.
    Regards,
    RIch Heilman

  • Aotu numbering in table maintenance view

    Hi experts,
    Can anybody help me in auto genereating serial number in table maintenance view. I have created table maintanance view for a z table for which first field is serial no. The requirement is this serial number should be auto genereted. increment by 1. I have writeen the code for the same in PAI event, but it getting incremented by number of rows. e.g for secind row counter is incremented by +2. for thrid row it is +3 and so on....
    plz help to achieve consistency .
    Thnks n regards,
    Ashmita Singh

    What happens if the user deletes a recird from the table?
    Suhas,
    Happy New Year
    Disable delete function and provide a deletion indicator. This should be fine right.
    The problem would be when the maintenance dialog is regenerated.
    @OP - So as suggesgted use events.
    Similar threads were discussed before many times. May be you culd search it once.

Maybe you are looking for

  • Mass role risk analysis issue

    Hello GRC Community, I have a following issue: When I use mass risk analysis the deactivated authorization objects in the role are displayed as result. At the same time, when I use Role Level Risk Analysis the role with deactivated critical authoriza

  • Validating the Program Run Date on selection screen

    Hi , REGUH-LAUFD field has to be validate on selection screen parameter, for this filed no check table available in REGUH. Finally date should be validate through any table as per my concern. Could please anyone tell me that which table i have to go

  • Camera raw is selective in operation.

    Camera raw 2.4 only opens when opening an image using the Photoshop CS file browser. In the past i have been able to open the image from whatever folder location outside of the browser and Photoshop CS would open then opening the image in camera raw.

  • How to run a .jar application via the web

    I have a java application called up.jar which runs a gui application when run via the command line: javaw com.vignette.integrate.runtime.ZipFileRuntime up.jar I want to run this in a web browser but am just starting to learn html and java. Can anyone

  • Interactive Adobe Form and Search Helps

    Does anyone know how to implement a Search Help in an Interactive Adobe Form?  I have a requirement to fill a field with a manager and I have 17500 of them to choose from!  Tried a Dropdown list, but it is not really appropriate, unless theres a way