Vous êtes sur la page 1sur 9

kevin.

wilson2: How to create a cluster view for complex customizing table maintenance
Posted by Kevin Wilson Sep 22, 2009

Overview
We have 3 tables related to each other as shown below. We want to be able to maintain the table in a hierarchical manner. i.e. We create 1 entry in the header table, then we select that entry and create multiple lines underneath the header, then we select one of the lines and add multiple schedules under that This way of creating cluster view maintenance screens is very powerful and allows your users to maintain tables with complex relationships rather easily.

Tables Relationships
The following is a depiction of the data model for our example.

And this is the result we are shooting for

Generated by Jive on 2013-01-17+01:00 1

kevin.wilson2: How to create a cluster view for complex customizing table maintenance

Generated by Jive on 2013-01-17+01:00 2

kevin.wilson2: How to create a cluster view for complex customizing table maintenance

Tables (SE11)
First create the 3 database tables with the fields below. Italics are keys. Easy. 1. a. b. c. d. e. 2. a. b. c. d. 3. a. b. c. d. e. f. g. ZHDR MANDT MANDT VBELN VBELN AUART ERNAM ERDAT ZLIN MANDT MANDT VBELN VBELN POSNR POSNR MATNR ZSCH MANDT MANDT VBELN VBELN POSNR POSNR ETENR ETENR EDATU WMENG VRKME EDATU WMENG VRKME MATNR AUART ERNAM ERDAT

Maintenance Views (SE11)


Next up is creating the Maintenance View for each of the tables. Make sure to put the Maintenance Attribute = S in the fields which you need to have carried over to the next screen. E.g. On the header you select order 100000 and you click the lines. You see 100000 on the lines page as read only (see below). To do this the field VBELN must have an S as its maintenance attribute in the Line View.

Generated by Jive on 2013-01-17+01:00 3

kevin.wilson2: How to create a cluster view for complex customizing table maintenance

(S) = Maintenance attribute 1. a. b. c. ZHDR_V MANDT MANDT VBELN VBELN AUART AUART

Generated by Jive on 2013-01-17+01:00 4

kevin.wilson2: How to create a cluster view for complex customizing table maintenance

d. e. 2. a. b. c. d. 3. a. b. c. d. e. f. g.

ERNAM ERDAT ZLIN_V MANDT VBELN POSNR MATNR ZSCH_V MANDT VBELN POSNR ETENR EDATU WMENG VRKME

ERNAM ERDAT MANDT VBELN (S) POSNR MATNR MANDT VBELN (S) POSNR (S) ETENR EDATU WMENG VRKME

Generate Table Maintenance for Views (SE11)


Now take each of the views and generate your table maintenance as per normal. Easy. 1. 2. 3. ZHDR_V ZLIN_V ZSCH_V

Create View Cluster (SE54)


Now comes the good part. Its time to create the View Cluster. Transaction SE54 Click Edit View Cluster Button Create your cluster. Mine is called ZKEVIN

Generated by Jive on 2013-01-17+01:00 5

kevin.wilson2: How to create a cluster view for complex customizing table maintenance

Double click Object Structure Enter View / Table, Short Text and Predecess., Dep, Pos, Start o R = Header o S = Allowed 1 entry per header

Select the first header View line and double click Field Dependence Enter View / Table and Predecessor as the Header View and leave the field blank

Generated by Jive on 2013-01-17+01:00 6

kevin.wilson2: How to create a cluster view for complex customizing table maintenance

Click Back Select the 2nd line View line and double click Field Dependence Enter View / Table and as the Line View and the Predecessor as the Header View. o Complete for both Line View Key fields MANDT and VBELN

Click Back Select the 3rd schedule View line and double click Field Dependence Enter View / Table and as the Schedule View and the Predecessor as the Line View. o Complete for all 3 Schedule View Key fields MANDT, VBELN and POSNR

Save

Generated by Jive on 2013-01-17+01:00 7

kevin.wilson2: How to create a cluster view for complex customizing table maintenance

Click Back, Back Click Activate Click Back and Test

That wasnt too bad. Now your users can easily update your custom customizing tables.
526 Views Sep 22, 2009 6:22 PM Gregory Misiorek beats the simplistic SM30 and Z table direct update and preserves the relations structure between the tables. i'm bagging it into my virtual toolbox (sunt herewith). Sep 22, 2009 9:56 PM Rainer Hbenthal THanks for this Howto. Bookmarked it. Sep 23, 2009 4:35 AM Srivijaya Gutala I already knew this but nice to see it clearly explained. Jan 21, 2010 8:37 AM Renato Pereira de Souza I always wanted to know how to do this!!! Thank you for this excelent how-to... Jul 11, 2010 4:16 AM Ivan Ivanov Fast and helpful.

Generated by Jive on 2013-01-17+01:00 8

kevin.wilson2: How to create a cluster view for complex customizing table maintenance

Thanks :) Dec 20, 2010 1:10 PM Alessandro Guarneri I always heard of these view cluster "monsters" but always avoided them (read-only and don't touch them approach)... :) Now that I need to build one it's really good to see that somebody out there took some time to blog it. Thanks for this. Cheers Alex Feb 8, 2011 12:30 PM Shyam Alaparthy Nice job. This really is a very good docuemnt which gives a clear idea for guy's like me - who know what the view culster is but never tried to implement it because of lack of such deatils. - Shyam Feb 9, 2011 12:56 AM Kumud Singh This is wonderful for beginning work on View Clusters. I had one of the toughest time while developing one of similar kind few months ago.I think the major challenge lies when we have to code to handle errors, calculations,changing contents of tables like extract, total etc. Just a quick note: Here there is no mention of cardinality factor on views? Isn't that required? Thanks. Kumud.

Generated by Jive on 2013-01-17+01:00 9

Vous aimerez peut-être aussi