cancel
Showing results for 
Search instead for 
Did you mean: 

fetching of fields from a view

Former Member
0 Kudos

Hi All,

Can we fetch the value of the fields from a view directly as we fetch from a database table in teh script?

Or is there any other way to be follwoed?

Pl help me out...

Regards,

Priya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Done

Vijay
Active Contributor
0 Kudos

hi

the same way as we do in case of table.

infact in case of view also data is fetched from the table itself in the background.

regards

vijay

reward points if helpful

Former Member
0 Kudos

Hey Vijay,

Thanks for the help but i have done the same as i fetched from a table..

suppose i have a field from view V_024-TELFX , I have written the code in teh script as

&V_024-TELFX&. But still even though there is the value in the view, itis not at all getting fetched in the script...

What can i dofurther? pl reply..

Regards,

Priya

Former Member
0 Kudos

hi

write ur selectg query from VIEW put fatched data in any internal table then now put fields of this internal table on SAP script.

this may help u .

we can make same select query on VIEW as we do with DB Tables.

reward if helpful.

Former Member
0 Kudos

Hi Priya,

It would help if you use the table T024 instead of the view.

Thanks,

Dishant.

Former Member
0 Kudos

Hi

Selection conditions that are used as a filter can be defined for a view.

Specifying these conditions under the Selection conditions tab when creating a view in the dictionary would have an effect which is similar to specifying a where clause when writing a select query to restrict data.