‎2006 Sep 26 10:13 AM
Hi friendz,
could u plz explain me the difference between <b>form interface and global definition in the smartform </b> and how to use them.
regards,
siri.
‎2006 Sep 26 10:16 AM
Hi
Form Interface is like the interface through which any prg can interact with this smartform.
i.e for passing values, internal tables, and getting the desired output.
Global definitions are like Top declarations in reports etc.. where the defined vaiables, constants, ranges, internal tables etc...can be used anywhere in the smartform.
For eg:
CALL FUNCTION fname
EXPORTING
control_parameters = control_parameters
output_options = output_options
user_settings = ' '
matnr = x_ltap-matnr
charg = x_ltap-charg
ivnum = x_ltap-ivnum
IMPORTING
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
The exporting / importing parameters of the above call to SF form the <b>Form Interface</b>.
Regards,
Raj
Message was edited by: Rajasekhar Dinavahi
‎2006 Sep 26 10:27 AM
hi,
<b>Form interface</b>
The parameters which are specified in form interface are parameters that are passed to the function module that is generated when we activate smartform.
A <b>form interface</b> to transfer application data to the form definition. When you activate the Smart Form, the system generates a function module that encapsulates all attributes of the Smart Form. As soon as the application program calls the function module, the Smart Form uses the modules interface (which corresponds to the form interface) to transfer any table data previously selected and to print the form according to the form description.
<b>Global definitions</b>
The parameters that are declared in global definitions can be accessed in teh smartform but not in the driver program.
<b>Use</b>
Global definitions apply for the entire form. You can use any objects defined there in all nodes of the tree.
<b>Features</b>
The following global definitions are possible:
Variables or constants whose types are stored in the ABAP Dictionary
Types as free ABAP coding, provided there is no type in the ABAP Dictionary
Field symbols [Extern]
You can initialize the global data before you start processing the start page. Usage examples are: conversion of selected application data, optimizing form logic by previously reorganizing internal tables, and so on.
On the Form routines tab you enter routines that you want to use in the form via the program lines node. Within these form routines you cannot access any global data unless you explicitly pass them to the form routine interface.
Regards,
Sailaja.
‎2006 Sep 26 10:28 AM
hi
good
form interface->
You define a form interface to send data from your application to a form.
The form interface is a part of the Interface form object and is defined in the Form Builder. The form interface of a form is structured in the same way as the interface of a function module in the system. However, form interfaces do not support Changing parameters.
http://help.sap.com/saphelp_nw2004s/helpdata/en/da/8fcc44d98b4e8bac6f102aa1fc69cc/content.htm
global definition in the smartform->
. In Global definition we can define the all the global variables which can be used in Smartforms. Initialization
can be used for initializing the variables and even for retrieving the data.
thanks
mrutyun^
‎2006 Sep 26 11:38 AM
hi Sireesha,
check out the thread.
Also check
http://help.sap.com/saphelp_470/helpdata/en/1c/f40c61ddf311d3b574006094192fe3/frameset.htm
Regards,
Richa.