Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3218

Reading texts based on logon language

$
0
0

Hello All,

   I have a requirement where I need to get short text based on the logon language.

If the text is not maintained in logon language, then I need fetch it from English language.

 

Example

 

In Table MAKT

 

MATNRSPRASMAKTX
1DETest1-DE
1ENTest1-EN
2ENTest2-EN

 

Consider the logon language in DE,

For material 1 there is text in language DE, so the output should to be Test1-DE

For material 2 there is no text in language DE, so the output should be from EN language Test2-EN

 

I tried to use left outer join , but that gives few records with empty text or text in both languages, which we can later delete them.

And there are lot of other ways by which we can refine the internal table after the select is performed.

 

What I am looking for, is there any way we can do it in select query itself, considering new advancements in ABAP open SQL and CDS views.

 

With regards,

Sandeep Akella


Viewing all articles
Browse latest Browse all 3218

Trending Articles



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