on 02-19-2008 10:19 AM
hello everyone,
plz. tell me what type of data are defined in Form interface and Global Definition in smartforms.
Hi Vishal,
To make the values printed on the forms, either you can fetch the values for the fields inside the smartforms or else the values will be passed from the print program.
FORM INTERFACE:
So for all the values that need to be passed from the print program, the declaration will be done in the FORM INTERFACE. first step you have to do after creating the smartform is give the variables in the form interface. See the below example for clear idea:
Suppose u need some item details related to purchase order say suppose IT_ITEMS which is already fetched in the print program.
So declare the IT_ITEMS in the form interface and type which u assign to the internal table should be Dictionary data type.
Now activate the form. As soon as after the first activation of the form, Function module will be created.
Call that function module in the print program, where the name of the internal table which you have declared in the form interface will be displayed. Just pass the items internal table.
This is how the values are being passed from the print program to the smartform
To summarize, the values that need to be passed from the Print program need to be declared in the FORM INTERFACE.
GLOBAL DEFINITIONS:
Suppose sometimes its not necessary that all the fetching should be done in the print program and need to be passed to the smartform. Fetching can be done inside the smartform in the Program lines. So whatever variables which are used in the smartform for processing need to be declared in the GLOBAL DEFINITION.
plz award points if useful.
Thanks,
Karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
In the interface u can define the import and export parameters tables and exceptions
NOTE:
U must know the type of the corresponding variables
In global definations u can declare any variable which will be used thruogh out the program
Ex.
For calculation of TOTAL
Total type va ( any data element)
Reward if useful
Thanks
Krushna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Global Data Declarations : The Data defined here can be used throughout the smartform for coding purposes as u define data in your report programin SE38.
Form Interface : Here all the data which will be passed to the smartform from the Print program is defined as the case in Function modules in SE37.
REWARD POINTS IF USEFUL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.