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

doubts reg smart forms

Former Member
0 Likes
1,416

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,383

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

13 REPLIES 13
Read only

Former Member
0 Likes
1,384

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.

Read only

Former Member
0 Likes
1,383

Hi kajol,

when calling the function module generated by smartform,

pass the internal table which u have declared in the driver program.

regards,

keerthi.

Read only

0 Likes
1,383

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

Read only

0 Likes
1,383

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.

Read only

0 Likes
1,383
Read only

Former Member
0 Likes
1,383

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

Read only

0 Likes
1,383

Hi varun,

could you plss send that document to following email

<b>[email protected]</b>

Read only

0 Likes
1,383

HI Kajol.

Mail Forwarded .

Thanks ,

Varun .

Read only

0 Likes
1,383

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

Read only

0 Likes
1,383

Hi Kajol,

Have you gone through the doc sent to you ? I guess the doc has that answer .

Regards,

varun .

Read only

0 Likes
1,383

Table:

I_ITEM_DATA TYPE TABLE OF TLINE INITIAL SIZE 0

Work Area:

WA_ITEM_DATA LIKE TLINE

Read only

0 Likes
1,383

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.

Read only

0 Likes
1,383

It should be like this:

Variable Name = ITAB

Type Assignment = TYPE

Ref. Type = TABLE OF MARA INITIAL SIZE 0

Default Value =