08-22-2007 10:54 AM
hi guru's,
wat is the main diffrence between form interface and global definitions.when we define in forminterface and when in global definitions.
explane in brief,
thanks in advance
08-22-2007 10:57 AM
Form Interface is the data you get from the calling program.
Global definitions are what you define inside the smartform itself. You use it to show additional data that you didn't get from the calling program.
08-22-2007 10:57 AM
Form Interface is the data you get from the calling program.
Global definitions are what you define inside the smartform itself. You use it to show additional data that you didn't get from the calling program.
08-22-2007 10:57 AM
Hi Surendra,
To explain in very simple terms....
FORM INTERFACE - This is like the parameters that you would be passing to the function module with which you call the smart form from your driver program....
GLOBAL DEFINITIONS - This is global data declaration. The declaration that you do in this section would be used inside your smartform.
<b>Reward points for informatory answers.</b>
Best Regards,
Ram.
08-22-2007 11:06 AM
dear ram,
plz.. send me one example to show all these things in detail.so that i can get more
08-22-2007 11:39 AM
Hi Surendra,
Iam afraid there is no specific example to show this. Actually any smart form we design will be based on this concept.
For e.g.
In your driver program, you will make a call to the smartform as follows:
******************************************************************************
To get the FM Name
******************************************************************************
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = c_form
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = lv_formname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
**********************************************************************
To call Smart form
**********************************************************************
CALL FUNCTION lv_formname " '/1BCDWB/SF00000012'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
v_year = lv_year
v_month = lv_month
v_day = lv_day
v_hour = lv_hour
v_min = lv_min
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
it_shore = fp_it_shore
it_ship = fp_it_ship
it_output = fp_it_output
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
**********************************************************************
In the above call for smart form what ever you see under EXPORTING, IMPORTING, TABLES etc...
will be defined in the TABS available in FORM INTERFACE of our smartform.
Which in turn means "<b>It acts as an interface between the program and smartform</b>"
Where as, what ever you had defined in the "GLOBAL DEFINITIONS" tab of smart form - those variables will be used in smart form for data processing.
Reward points if helpful.
Best Regards,
Ram.
08-22-2007 10:57 AM
Hi
Form Interface to declare the variables which r global which can be accessec in smartform and printprogram where as global definition to declare variables local to smartform itself can't be used in print program
08-22-2007 10:58 AM
Hi,
In form interface you declare input and output elements which is get from outside or you give to outside. And global defination is use to declare elements which u r using within program.
Rewards points if it is useful.