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

Select Statement in Smartform

Former Member
0 Likes
569

hi all,

I am running VF03 to get the output of Invoice and i am writing Select query inside the Smartform. Is there any performance issue and also is it mandatory to use select querey only in the driver program.

Let me know based on the performance analysis.

3 REPLIES 3
Read only

Former Member
0 Likes
392

Hi,

Should be okay to have SELECT statement in Smartforms..

Performance depends on which table you are accessing and how many records it will be fetching..

Thanks,

Naren

Read only

christian_wohlfahrt
Active Contributor
0 Likes
392

Hi!

A select in smartforms is as fast (or slow) as in the driver program. As long as you didn't add the select in a bad place like inside a loop, there is no principal performance disadvantage.

Also from philosophical point of view both is possible: some like smartforms which have only NAST-key as input and make all selects in the smartform (very easy testing!), other prefer the selection logic in the driver program. Again: both is possible and good.

Regards,

Christian

Read only

Former Member
0 Likes
392

Hi

You can use select statements in Smartform. See that you are:

1. Not having select statements in loops.

2. No select...endselect stmnts...

3. No redundant selections on same tables.

As far as possible try get all required data at one go...

Qualify to the maximum extent your select stmnts (giving all possible key fields in where clause)

Regards,

Raj