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

sf

Former Member
0 Likes
906

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

1 ACCEPTED SOLUTION
Read only

GuyF
Active Participant
0 Likes
871

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.

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

6 REPLIES 6
Read only

GuyF
Active Participant
0 Likes
872

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.

Read only

Former Member
0 Likes
871

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.

Read only

0 Likes
871

dear ram,

plz.. send me one example to show all these things in detail.so that i can get more

Read only

0 Likes
871

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.

Read only

Former Member
0 Likes
871

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

Read only

Former Member
0 Likes
871

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.