cancel
Showing results for 
Search instead for 
Did you mean: 

Performance wise Code In smartform

Former Member
0 Kudos

Hello,

I have one doubt for performance issue in smartform.

While creating 'Z' smartform data fetching can be done by two ways,

Which one is better out of two mentioned -

1. Code in smartform itself.

2. Code in driver program and pass that data to smartform via form interface.

In SAP standard smartforms it is always done in Smartform itself.

Also please suggest which one is easy to debug?

Regards

Vishal

Edited by: Vishal Chavan on Jun 11, 2009 7:55 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

It is always recommended to write the maximum code in main/driver program of the Smartform, because due to performance issues.

Regarding Debugging, we can debugg either way depends on ur requiement. if u want regarding the values populating we debugg the program, if u have problem with printing debugg the smartform.

U can debugg the smartform in 2 ways.

1. Hard Coding Break Point in smarform (always its preferred to put the breka point on user specific, i.e., BREAK SY-UNAME not BREAK-POINT).

2. once u activate the smartform it generates a Function Module, go to SE37 and open that FM and place the break point at required..

Hope it helps!!

Rgds,

Pavan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vishal,

As far as i am concerned it is always better to separate the data selection from the data used in the smartform.

Having your code in a driver program has better advantage over the code in smartform.

1.It is easy to change and maintain the code.

2.You can use the driver program for different smartforms with minimal changes.

Performance and debugging doesn't differ much either you code it smartform or in the driver program.

For more information please go through the below link.

Link: [http://help.sap.com/saphelp_nw70/helpdata/EN/16/a369b1800e4bdda978ee0fe3b7bd2c/frameset.htm]

Regards,

Babul.