cancel
Showing results for 
Search instead for 
Did you mean: 

Diff. btwn Form Interface & Global definations?

Former Member
0 Kudos

Hi Guys,

Wat r the differences between Form Interface and Global definations(if possible with example)? Pls. list out.

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

When you create a SmartForm and activate it creates a function module which has same interface as the Form Interface of the smartform. Smartforms are always called by calling the corresponding function module. There is 1 fm for each smartform. The form interface has the IMPORT, EXPORT, TABLES and EXCEPTION, same like in a fm

Global definitions in smartforms is used to define data variables, type definitions, field symbols, form routines etc which are used globally withing the smartform. Every part of SmartForm can access these objects defined in Global definitions.

<a href="http://img483.imageshack.us/img483/297/globaldefinitionsqa4.jpg">SmartForms Global Definitions</a>

<a href="http://img390.imageshack.us/img390/2193/forminterfacebo2.jpg">Form Interface of a Smartform</a>

Former Member
0 Kudos

ThanQ. So, under Table node, for Data tab, in Loop, Which internal table shuld b used, either its itab, which is declared in Form interface or itab, which is declared in Global definations?(hope my question is meaningful).

ThanQ.

Former Member
0 Kudos

You can use tables from both Form Interface as well as tables from Global Definitions in the internal table for Loop Node. The only difference is Form Interface tables come ready with data (as they are passed from the calling program to the SmartForm function), where as for any table that is defined in Global Definitions you need to fill in using some FORM-ENDFORM in Global Definitions

Former Member
0 Kudos

ThanQ Vishnu.

Answers (0)