Maintenance view subset P = S in combination with a non-key.

We are trying to create a maintenance view with subset selection based
on a non-key field. However no dialog screen will be created in order to
select the right data (subset) for list display. We found a referenced
note of this problem: sap note nr 624459 "subset field is not
transferred" which is already available in the L7D system.
-> Does the subset P = S only work in combination with a key field?

Hi,
I presume the P = S works for only Primary Key combinations. For eg: If you create maintenance view on MARD table and give values P= S to say only MATNR and WERKS fields. You generate the Table Maintenance. You get the filter for Material and Plant but there is a button F7 new selection .. if you press that you can select the third key field Storage Location as well. Presumably it works for the key fields alone.
Cordially,
Shankar Narayanan.

Similar Messages

  • Maintenance View with Subset Fields

    Hi All,
    I have created a maintenance view based on a single DB table. Two key fields are defined to be as subset fields. No selection conditions are added to the view. I have used table maintenance genrator to define the screen (one step) along with the events.
    In SM30, i get the popup to fill the subset fields.
    I have created an event for AA (to replace default read). I am filling total attribute here.
    a) Is there some other attribute that i need to fill apart from total?
    I receive following dump
    " Exception condition "NO_VALUE_FOR_SUBSET_IDENT" is raised"
    When i set <status>-sbsid_rcvd = 'R' in read routine along with total, then the above exception doesn't appear.
    But filtering based on the subset values doesn't happen automatically.
    b) I also need have to have routines to perform insert, copy and validation.
    c) Would the contents displayed be automatically filtered based on the subset values or we need to process this in user routines for read and so on?
    As i find very limited documentation available for maintenance views with subset fields, could you suggest me some example to do the above?
    Thanks in Advance,
    Regards,
    Rekha

    Hello Rekha,
    Yes I've same idea, documentation for maintenance screens is inadequate.
    But there is way to find examples for all events,
    table TVIMF is storing the Table name - Event - Form name columns.
    For example when u want to  do something about  "creating a new entry"
    Just go se11 > Table maintenance generator and find related event : 05
    - Then go to TVIMF and display a record for event = 05
    - than go to function group of  maintenance screen of the TABLE in that record
    - find the subroutine form ( TVIMF-FORMNAME) in that function group
    This is a working example for that event, try or copy & use.
    I hope it helps you for the coding for all the events.
    Bulent
    Edited by: Bulent Balci on Aug 5, 2010 11:28 PM
    Edited by: Bulent Balci on Aug 5, 2010 11:29 PM

  • Add button to a maintenance view

    I am working with maintenance views and user-defined events in maintenance views at the moment.
    Now I'd like to add a button to the maintenance view that will show a popup with recent changes to the selected line of the database table.
    Is that possible with user-defined events or should I modify the generated dynpros manually. But then, will the modifications be deleted if I will have to regenerate the maintenance view in the future (e.g. when I might add a field to the database table)?

    If you are talking SE54 and Maintenance Views, when I do an SM30 on the Maintenance View and do SYSTEM->STATUS, I see GUI STATUS ZULG on program SAPLSVIM.  If you look at that status, I see two buttons with dynamic text.  The first one is call GPRF and has dynamic text VIM_PR_STAT_TXT_CH.  You can find a suitable PBO event to set the text of that function code and if that works, find a suitable PAI event to respond to that function.
    I recall finding some documentation on customizing the GUI STATUS but no luck today trying to find it.
    Let us know how it goes.

  • Horizontal scroll bar in maintenance view

    Hi all,
             i have a ztable  which has ony two fields id and description. Maintenance view exists for same.
    Can anybody suggest me how to set 'HORIZONTAL SCROLL BAR' for this view as sometimes description is too large and not able to see the description. plz suggest me.
    plz help.
    thnks n Regards,
    Ashmita Singh

    You can do one of two things:
    1. When you are at the maintenance view, manually drag the right edge of the columns to make them narrower.
    2. If you can change the maintenance view, go to the function group with the same name as the maintenance view (which should be the one automatically generated, such as from SE54), and then find the screen in the function group. Open the screen, click "Layout", and the SAP GUI painter will display the screen layout. Over there, click the upper-left corner of the table, and the control TCTRL_<your_view_name> will be selected. Open the "attribute window" or press F2, and then you can set the number of Fixed Columns. Try reducing the number and re-test the effect.

  • Maintenance view of two tables

    I need to update two tables Header and Item with the hepl of maintenance view.There structure is as follows :
    Header - GRPKEY (Pr. Key)
                  Printchk
    Items :- GRPKEY ( Foreign key - check table Header-GRPKEY)
                fieldname ( Key)
               descr type char255
    Now i am creating maintenance view using header as base table. In this case its not showing fields of items in View fields tab and i can't have those fields for data entry.
    If i use items table as base table when i create data through this view header table doesn't get updated.
    Please suggest.
    Thanks

    Hi,
    My real question is, Will a maintenance view really enables me to enter data into two tables simultaneously?
    OR
    Is it just one table that I can enter data into and the fields from other table will appear based on the join condition?
    All SAP documentations talk about entering data into multiple tables using a maintenance view. But it was not practically possible for me when I tried.
    Regards,
    Mahesh

  • Key not typing letter, but working with Apple key in combination with lette

    I have an Indigo iBook. Just today the "f" key has stopped working - at least for tying the letter itself. When I press it in combination with the Apple key however, I get the "find" box to come up, so in some way the key is working on the keyboard. We have removed the cap and directly pressed the plastic underneath; no difference. Slso hooked up an external keyboard - still no f!!!!!
    After searching the forums, we have found that many people have had luck removing their keyboard and checking the ribbon cable or the airport spring - do not want to do something so drastic if there is an easier fix.
    Thanks very much!
    iBook Indigo   Mac OS X (10.0.x)  

    Just an update if anyone has any more ideas - (troy enn - thanks, but nothing was assigned in my Universal Access to the f key).
    The f letter works in upper case, just not lower case. So, for now, I am just using the character palette, and inserting an f if I need it - thankfully, for some reason I don't seem to use it all that much!

  • Validating non key fields in table maintenance generator

    Hi,
    I ma using events for table maintenance generator event 05 ,there i want to validate non key fields ......i am throwing error message ....all the non key fields are getting in display mode ...i need them to enable to enter values ....
    please suggest
    Thanks,
    Shailaja Ainala.

    Hi Shailaja,
    Its property of error message, which makes it as non-editable.
    You can display either status or info message after validation check.
    And finally before saving (before save event) display error message, so that it invalid entries doesnt get saved.
    Thanks,
    Nisha Vengal.

  • Using DYNP_VALUES_UPDATE with a Maintenance View

    Hi,
    I am using a maintenance view to insert values into a table. When user creates a new entry, based on the value provided for a field,I need to fill a read-only field. In PAI, when user enters a value for one field, I am using FM 'DYNP_GET_STEPL' to  get the current line and then DYNP_VALUES_UPDATE to fill the contents to the read-only field. But this does not seem to work. Any idea?
    Regards
    Rachana

    Hi Tamas,
    I tried both the options suggested by you.
    I am updating the underlying structure, still its not visible when the screen loads again. But if you see the same field gets filled with DYNP_VALUES_UPDATE if an F4 help is used for teh first(editable) field and then my read-only field is also filled in the PROCESS ON VALUE REQUEST module.
    So my guess is that, since it is a table control, it loops through the rest of the table control which is empty and my underlying structure gets cleared. So the problem could be where I am actually filling the field.
    Is it possible to somehow fill the <EXTRACT> table so that teh value is not lost?
    Regards
    Rachana

  • Maintenance View issues with an ABAP program

    Hi,
    I need to update a Maintenance view(V_JURIC) from a txt file. I created an ABAP module to do this and when I update the tables that compose the view(TABLE_A and TABLE_B), the view is not completely getting updated in the last field. Any suggestions? Here is  sample of the code:
    REPORT zbr_loc_mast_data_1 MESSAGE-ID fb.
    TABLES: j_1btxjurt,
            j_1btxjur.
    DATA wa_j_1btxjurv TYPE j_1btxjurv.
    DATA wa_j_1btxjurt TYPE j_1btxjurt.
    DATA wa_j_1btxjur TYPE j_1btxjur.
    DATA: BEGIN OF i_j_1btxjurt OCCURS 2000.
            INCLUDE STRUCTURE j_1btxjurt.
    DATA: END OF i_j_1btxjurt.
    DATA: i_j_1btxjurv LIKE j_1btxjurv OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF rec OCCURS 0,
          tbl_name(10)     TYPE c,        " Table name(Constant 'J_1BTXJURV')
          field_2(1)       TYPE c,        " Constant "X"
          jur_code(10)     TYPE c,        " Jurisdiction code
          municip(60)      TYPE c,        " Municipality Name
    END OF rec.
    DATA: w_num_recs TYPE i.
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
    PARAMETERS: in_file TYPE localfile OBLIGATORY
                DEFAULT 'C:\lista de municipios.txt'.
    SELECTION-SCREEN END OF BLOCK block1.
    START-OF-SELECTION.
      PERFORM read_file.
      IF sy-subrc = 0.
        PERFORM update_table.
      ENDIF.
    END-OF-SELECTION.
    *Summary
        WRITE: / 'Number of records read: ' COLOR COL_TOTAL INVERSE OFF INTENSIFIED ON,
             32 w_num_recs COLOR COL_POSITIVE INVERSE OFF
                INTENSIFIED ON.
    *       Form  read_file
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM read_file.
      DATA: l_filename TYPE string.
      MOVE in_file TO l_filename.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = l_filename
          filetype                = 'DAT'
    *      HAS_FIELD_SEPARATOR     = SPACE
    *      HEADER_LENGTH           = 0
    *      READ_BY_LINE            = 'X'
    *      DAT_MODE                = SPACE
    *      CODEPAGE                = SPACE
    *      IGNORE_CERR             = ABAP_TRUE
    *      REPLACEMENT             = '#'
    *      VIRUS_SCAN_PROFILE      =
    *    IMPORTING
    *      FILELENGTH              =
    *      HEADER                  =
        CHANGING
          data_tab                = rec[]
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.
      IF sy-subrc <> 0.
        MESSAGE e039 WITH in_file.
      ENDIF.
    ENDFORM.                    " read_file
    *       Form  update_table
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM update_table.
      CLEAR: w_num_recs,
             w_num_recs_btable,
             w_num_recs_atable,
             w_num_recs_inserted.
        LOOP AT rec.
        w_num_recs = w_num_recs + 1.
        MOVE 'BR'          TO wa_j_1btxjur-country.
        MOVE rec-jur_code  TO wa_j_1btxjur-taxjurcode.
        MOVE 'PT'          TO wa_j_1btxjurt-spras.
        MOVE 'BR'          TO wa_j_1btxjurt-country.
        MOVE rec-jur_code  TO wa_j_1btxjurt-taxjurcode.
        MOVE rec-municip   TO wa_j_1btxjurt-text.
        INSERT into j_1btxjurt values wa_j_1btxjurt.
        IF sy-subrc = 0.
          COMMIT WORK.
        ENDIF.
        INSERT into j_1btxjur values wa_j_1btxjur.
        IF sy-subrc = 0.
          COMMIT WORK.
        ENDIF.
      ENDLOOP.
      ENDFORM.                    " update_table
    Edited by: Thomas Zloch on Nov 5, 2010 9:24 AM - please use code tags

    MOVE 'PT'          TO wa_j_1btxjurt-spras.
    maybe change that to:
    MOVE 'P'          TO wa_j_1btxjurt-spras.

  • Maintenance View for custom table with foreign key relationship

    Hi Folks,
         I have created a custom table with foreign key relationship with other check tables. I want to create a maintenance view / tablemaintenance generator. What all things I need to take care for the foreign keys related fields while creating the maintenance view / tablemaintenance generator.
    Regards,
      santosh

    Hi,
    You do not have to do anything explicitely for the foreign key relationships in the table maintainance generator.
    Create the table maintainance generator via SE11 and it will take care of all teh foreign key checks by itself.
    Regards,
    Ankur Parab

  • Maintenance view with MARA joined twice

    Hello,
    I have a Z table which contains 2 fields containing material number, say: MATNR_1 and MATNR_2. Both have foreign keys pointing to MARA table.
    Now I'd like to create a maintenance view for that Z table which will contain texts for both of those matnr fields, taken from MAKT table. So I need a maintenance view which has that Z table as the main table of the view and MARA+MAKT tables joined <u>twice</u>: first for the field MATNR_1 and next for field MATNR_2.
    It looks like it is impossible to achieve by just clicking in SE11 - the system takes only the first matnr field into account (MATNR_1) and joining MARA for the second time (for field MATNR_2) seems not possible.
    Has anyone an idea how to achieve this ?

    I found a solution myself - actually a workaround, here it is if someone is interested:
    You can have data from a secondary table (a table that you cannot join by defining the view) filled "manually" at the screen level. When you generate a maintenance objects with the maintenance generator, modify the generated screen by adding a new field to it (for data that you need to be displayed). In PBO of that screen call your additional PBO module which just reads the data from the db table (or from anywhere you want) and fills that field.
    You can check standard transaction FI12 to have an example: field BNKA-BANKA is filled exactly with this technique (see PBO of that screen).

  • Using user-defined transport recording routine with table maintenance view?

    Hi,
    I have  a table that is maintained through a maintenance view. I need to record the changes to a dedicated transport object (not TABU) with my own recording routine instead of teh standard recording routine.Could someone tell me which/how the events can be used to achieve this?
    Regards
    Rachana

    Hi Rajeev,
    I have changed TMG to choose the option - User defined routine. And I have created a new transport object in SOBJ for the table. Is this enough to record the object to the transport as the object i defined instead of TABU? Do I need to write some subroutine for any view event to achieve this? Do you mean to use the menu option to include the object to a request?
    I have a bigger problem where this view is actually part of a view cluster. Even in that case is teh above steps enough?
    Regards
    Rachana

  • Problem with maintenance view

    Hi All,
    I' am creating a maintenance view. After creating it, I tried to see the data present in the view, it doesn't show and a message is coming which says 'No database view exists for the view'. Is database view need to be created and linked to maintenance view. Can anyone tell me where I went wrong.
    Regards,
    Aravind

    Please have a look at below link. May be helpful to you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/frameset.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Maintenance View - Disable cells

    Hi All,
    This is my requirement for the maintenance view. I am using this view as part of cluster view.
    I have around 6 key fields for this view. 3 of them are subset fields. But 2 key fields have a lot of combination of values. Hence, we want the user to make an entry for these key fields. I set these fields as input fields in the layout.
    One of the remaining key field appears as display only column.
    On load, i get the data from a BAdI and populate the rows with these 2 keys fields as editable.
    On Save, i save all the records (with values in these editable key fields or initial values). But, now i want to disable entry into these key fields for the saved records.
    How can i do this?
    Regards,
    Rekha

    Hi,
    look into this thread
    Re: SM30 - disable certain rows for editing
    in this thread see the reply from Venkat.
    If you want to disable all the previous entries from editing, write the logic in PBo module like in the thread.
    Regards,
    Selva

  • 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

Maybe you are looking for

  • What is difference between struts1.1 and struts1.2?

    hai what is difference between struts1.1 and struts1.2

  • Exception in thread "main" java.lang.NoClassDefFoundError: trial

    hi! i am trying to run a simple java program. i am able to run the code in other machine but not on my machine.when i compile i have no problem. when i execute the 'java trial ' i am getting this message. Exception in thread "main" java.lang.NoClassD

  • Workflow with no agents on tasks

    Hello friends, needing some help pls. I am using a WF combined with the Organizational Structure form HR to get the agents for each task.  There you go the doubts: 1.     What can I do or how could I avoid a task for the workflow with no agents on th

  • How to disable ECM Compensation Plans

    Hi people: We have an issue with the Compensation Planning ECM iView of the our MSS 6.1. We want to hide a couple of Plans (the tabs) from the current iView. We have tried with all the different parameters included on the iView, but we have not been

  • Iphone makes itunes freeze up

      i just updated my iphone and my itunes. so now when i connect my iphone to itunes it causes itunes to freeze. now there is nothing on my phone, and i cant even apply the back-up that itunes saved for my phone when i did the update. how can i fix th