Skip to Content
avatar image
Former Member

sf

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Aug 22, 2007 at 09: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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2007 at 09: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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • avatar image
    Former Member
    Aug 22, 2007 at 09: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2007 at 09: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.

    Add comment
    10|10000 characters needed characters exceeded