on 06-11-2009 6:55 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.