on 10-16-2015 7:50 AM
Hi,
I wrote a scripted view for testing the concatenation of columns (String_AGG). The view should also retrieve the description for code values. I used the "$$language$$" construct but it is not working.
Hard coding the language returns any data. But using the language doesn't return any data:
Thanks,
Ingo
Hello Ingo,
what is $$language$$ in your opinion? A system variable? No such system variable exists to my knowledge.
You can determine the language of your session context using following statements:
select session_context('LOCALE') from dummy; -- e.g. en_EN
select session_context('LOCALE_SAP') from dummy; -- e.g. E
So you could select the language into a variable and use the variable in your statement:
declare lv_language nvarchar(1);
select session_context('LOCALE_SAP') into lv_language from dummy;
Best Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.