Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

mainteinace view

Former Member
0 Likes
546

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

1 ACCEPTED SOLUTION
Read only

former_member378318
Contributor
0 Likes
501

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.

4 REPLIES 4
Read only

Former Member
0 Likes
501

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

Read only

0 Likes
501

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

Read only

0 Likes
501

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.

Read only

former_member378318
Contributor
0 Likes
502

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.