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

Create selection conditions for database view

Former Member
0 Likes
1,929

Hi,

I want to create a database view contains table IFLOTX.

In selection conditions for this view I want to add condition as follow:

IFLOTX-SPRAS = sy-langu " system language

My question here is how to define system language in Comparison Value column.

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
893

Hi Khanh,

Can you be little specific do you want to create a db view considering even the sy-lang or is it something different.

Revert with clarity so that I can be able to provide u the solution.

Thanks and Regards

Srikanth.P

4 REPLIES 4
Read only

Former Member
0 Likes
894

Hi Khanh,

Can you be little specific do you want to create a db view considering even the sy-lang or is it something different.

Revert with clarity so that I can be able to provide u the solution.

Thanks and Regards

Srikanth.P

Read only

0 Likes
893

Hi SRIKANTH,

The problem is when creating db view which contains table IFLOTX, it requires all key fields from this table. As my understanding I want to create a selection condition for key field SPRAS (language key) equals the language which the current user log on.

Is this possible? If no pls give me some instructions.

Thanks,

Read only

0 Likes
893

Hi Khanh,

Try decalring a varible which is of type Sy-lang and use this variable in your selection by equating it to the SPRAS field.

Just make a try .

Hope you have understood

Thanks and Regards

Srikanth.P

Read only

0 Likes
893

Hi Srikanth,

Thank you for your postings. After review carefully, I found that table IFLOTX contains a very little records and I will join it with the created view in ABAP code.

Thanks,