2006 Aug 07 4:02 PM
Hi all,
i need to declare a n internal table for smart form.
q1)
I need to declare it in form interface -tables or in global data of global definations.
q2)Can anyone tell what should be declared in form interface and what shouldn't be declared and same with global definations
I have my select statement in my smart form itself.
q3)
when iam calling the fm module generated by smartform ,i need to mention which internal table.
what should be passed to fm in driver or print prgm for script
2006 Aug 07 4:05 PM
If you are passing the table from the print program to the form, then you need to declare it in the interface. If you are not passing the table from the print program, but are using the table in the form, declare it in the global definitions.
Hi all,
i need to declare a n internal table for smart form.
q1)
I need to declare it in form interface -tables or in global data of global definations.
q2)Can anyone tell what should be declared in form interface and what shouldn't be declared and same with global definations
I have my select statement in my smart form itself.
q3)
when iam calling the fm module generated by smartform ,i need to mention which internal table.
what should be passed to fm in driver or print prgm for script
2006 Aug 07 4:05 PM
If you are passing the table from the print program to the form, then you need to declare it in the interface. If you are not passing the table from the print program, but are using the table in the form, declare it in the global definitions.
2006 Aug 07 4:08 PM
Hi kajol,
when calling the function module generated by smartform,
pass the internal table which u have declared in the driver program.
regards,
keerthi.
2006 Aug 07 4:13 PM
Hi keerthi,
I haven't declared any internal table in my print program, because iam retrieving data in the smart form itself.
Than what i have to fm generated by smart form
Thanks
2006 Aug 07 4:17 PM
If you don't need to pass any data to the form, then don't. However, you may need to pass CONTROL_PARAMETERS or OUTPUT_OPTIONS based on your requirements.
2006 Aug 07 4:30 PM
2006 Aug 07 4:09 PM
Hi Kajol,
q1)
I need to declare it in form interface -tables or in global data of global definations.
<b>If you are passing the entire filled internal table you can declare it in the form interface . If you are passing some variabel and getting data into internal table you can define those variables alone in the form interface and and internal table in the global declarations .</b>
q2)Can anyone tell what should be declared in form interface and what shouldn't be declared and same with global definations
<b>Any variables or internal tables which you are passing from the print program to smartforms have to be declared in the smrtform and any variables or table which you want to use in the smartforms you have to define them in the global definitions .</b>
I have my select statement in my smart form itself.
q3)
when iam calling the fm module generated by smartform ,i need to mention which internal table.
Any internal table which you are trying to display or the one which you use for further manipulations .
Regards,
Varun .
Message was edited by: varun sonu
2006 Aug 07 4:11 PM
2006 Aug 07 4:17 PM
2006 Aug 07 4:40 PM
Hi all,
If i want to declare an internal table in smart form itself.
I need to declare it in global definations under global data tab right.
q1)how do i need to declare internal table and how do i need to declare work area
any help would be appreciated
2006 Aug 07 4:41 PM
Hi Kajol,
Have you gone through the doc sent to you ? I guess the doc has that answer .
Regards,
varun .
2006 Aug 07 4:43 PM
Table:
I_ITEM_DATA TYPE TABLE OF TLINE INITIAL SIZE 0
Work Area:
WA_ITEM_DATA LIKE TLINE
2006 Aug 07 4:55 PM
Hi matt,
WHEN I DECLARED LIKE
VARAIBLE NAME TYPE ASSIG REF TYPE DEF VALUE
ITAB TYPE TABLE OF MARA INITILA SIZE 0
IT GIVES AN ERROR SAYING
GLOBAL DEFINIATIONS VALUE NOT EXPECTED.
fOR vARUN,
IN THE DOCUMENT ALL THE INTERNAL TABLES ARE FROM PRINT PROGRAM,BUT I HAVE TO RETRIEVE DATA IN SMART FORM ITSELF.
2006 Aug 07 5:03 PM
It should be like this:
Variable Name = ITAB
Type Assignment = TYPE
Ref. Type = TABLE OF MARA INITIAL SIZE 0
Default Value =
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |