‎2006 Oct 05 9:49 AM
Hi,
I have 2 Z tables, one containing ids (key: id) and the second one containing the descripition in several languages for those ids (key: id, spras).
Is there an easy way to create a manteinance view for both tables at the same time or do we have to create a Z program with table control...?
Rgds,
Jose
‎2006 Oct 05 2:16 PM
Hi
Your second table that holds the description is definately a text table. In this case you would only need to generate a maintenance view for the key table (Z table 1), the generated maintenance dialog would let you maintain the ID and Description from a single view.
Procedure
To use the functions offered by a text table, create Z table 2 in the ABAP Dictionary with the same key as Z table 1 and an extra field with type SPRAS. Define the text fields as non-key fields in this table. Then define a text foreign key from this text table to Z table 1.
‎2006 Oct 05 9:58 AM
Hi Jose
- A) Create a Maintenance View for those two tables by SE11;
- B) Generate for that view the maitenance program for trx SM30
Max
‎2006 Oct 05 12:52 PM
Hi,
I have problems with the maintenance view, it does not let me create new entries unless the id is already in the foreign key table. How can I solve this?.
Rgds,
Jose
‎2006 Oct 05 2:42 PM
Hi
U've have defined in wrong way the foreign key:
If you have two table T1 and T1T where T1T contains the description for T1, if ID is the field key, when u insert the foreing key for field ID in T1T you have specified the foreing key is for text table.
SO the T1T table should have:
FIELD
MANDT foreign key T000-MANDT
SPRAS foreign key T005-SPRAS
ID foreign key T1-ID for TEXT TABLE
So when you define the foreign key for field ID you have to set the option <u><b>Key fields of a text table</b></u>.
Max.
‎2006 Oct 05 2:16 PM
Hi
Your second table that holds the description is definately a text table. In this case you would only need to generate a maintenance view for the key table (Z table 1), the generated maintenance dialog would let you maintain the ID and Description from a single view.
Procedure
To use the functions offered by a text table, create Z table 2 in the ABAP Dictionary with the same key as Z table 1 and an extra field with type SPRAS. Define the text fields as non-key fields in this table. Then define a text foreign key from this text table to Z table 1.