Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

generate persistent class of a selfmade table which access to a text table

$
0
0

Hi SCN-Users,

I hope you could help me again .

 

My status quo:

I have a main table ZTRANSLATE_FIELD with the fields CTYPEID and PARENT_CTYPEID.

For this table I defined a text table ZTRANSLATE_TEXT to enable translation for international users. The text table contains the field CTYPEID, SPRAS and the fields CTYPENAME & CTYPEDESC which should be translatable.

 

The text table works fine if I log on f.e. as a english oder a german user.

So, if I start SE11 and show the content of the main table ZTRANSLATE_FIELD, it displays the complete table with the fields CTYPEID, PARENT_CTYPEID, CTYPENAME, CTYPEDESC - in the appropriate language:

[image 1]

 

 

 

Now my problem:

I have to define a persistent class of the table  ZTRANSLATE_FIELD to access all the attributes over ABAP/ Web Dynpro. But this main table only contents two fields CTYPEID & PARENT_CTYPEID in DDIC:

[image 2]

 

For the persistent class I also need to access the translatable fields CTYPENAME and CTYPEDESC, which are defined in the "external" text table ZTRANSLATE_TEXT:

[image 3]

 

 

If I save a new class over SE80 and define its "Persistence" I only could add one table, which should be the required main table ZTANSLATE_FIELD. But then there aren't shown the two fields CTYPENAME & CTYPEDESC of the linked text table, which I also need in this class:

[image 4]

 

 

So, the persistent class should look like the table content which is shown in [image 1].

 

How could I link these two tables, that I could define one persistent class with the fields/methods CTYPEID, PARENT_CTYPEID, CTYPENAME & CTYPEDESC - like it is shown in [image 1]?

 

 

 

I hope someone could help me - I'm thankful about every tip.

 

Greetings,

Andi


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>