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

Can i select data from a view

Former Member
0 Likes
2,043

I need to select weight and weight unit for an equipment .

It is in view ITOB -can i select from that or is it in any other table.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,828

Hi,

Yes you can select the data from a view the same way you select it from a table.

There are no implication of selecting data from a view , you will get all the records which satisfy the conditions specified in the view i.e all records based on the mapping done between the fields of the tables used in the view.

Just take a view e.g.ITOB and go to the Table/join conditions , there you can see the tables used and the condition ,i.e. the mapping between the records in the tables , so all the records that satisfy that condition will be in the view.

Select * into table zview from ITOB.

Regards,

Priyanka.

I need to select weight and weight unit for an equipment .

It is in view ITOB -can i select from that or is it in any other table.

Thanks in advance.

6 REPLIES 6
Read only

Former Member
0 Likes
1,828

Hi

Check the table fields that form the view fields (guess its third tab in the display of view in SE11)

Use the underlying tables to get the required data.

Regards

Raj

Read only

Former Member
0 Likes
1,828

Hi Anjali ,

Yes you can select data from the view ITOB as it is a Database view, the process is similar to selecting data from a database table .

Assign points if helpful

Regards

Arun

Read only

Former Member
0 Likes
1,829

Hi,

Yes you can select the data from a view the same way you select it from a table.

There are no implication of selecting data from a view , you will get all the records which satisfy the conditions specified in the view i.e all records based on the mapping done between the fields of the tables used in the view.

Just take a view e.g.ITOB and go to the Table/join conditions , there you can see the tables used and the condition ,i.e. the mapping between the records in the tables , so all the records that satisfy that condition will be in the view.

Select * into table zview from ITOB.

Regards,

Priyanka.

Read only

gopi_narendra
Active Contributor
0 Likes
1,828

You can select data from the VIEW in the same way as from a table.

View contains the logical data that is joined from different table. You can view the relation between tables in SE11 and its join conditions also

Regards

Gopi

Read only

0 Likes
1,828

Hi,

You can select data from any VIEW as the same way as you select data from any table. But some times it may give redundant records if the join conditions produce multiple records even though the table has single records. So, if you get redundant records you can use DISTINCT to avoid getting redundant records.

Regards,

Jashua

Read only

Former Member
0 Likes
1,828

Thanks