cancel
Showing results for 
Search instead for 
Did you mean: 

Headers in smartforms

Former Member
0 Kudos

Hi all,

I want to print the header detail (in a secondary window) from the internal table of my driver program. Is this possible . How should i do this.

Where should i declare my internal table.

Regards,

Priya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

When i am declaring the form interface --> internal table type similar to the structure created in se11. It is giving an error " Only table types may be used as the reference type for a table parameter"

How to overcome this

Former Member
0 Kudos

Hi

You should create a dictionary structure as that of your internal table structure.

In the form interface in the smartform, under import tab, you should give internal table name and the type as the dictionary structure type.

Then from your driver program you should pass the internal table to the smartform function module and use the same in the smartform.

Regards,

Jayanth

Former Member
0 Kudos

I have done similar to what u have told.

In my driver program

i have written as

call function fm_name

exporting

itab = itab

In the smart form, I have declared as u told

I create a secondory window and a text element

in the text element i am prinitng as &itab-field&.

But in the ouput screen it is showing as blank,.

What could be the problem

Former Member
0 Kudos

Priya,

If your requirement is just to print the header before printing the table, then you don't have to print it in the secondary window, just create a table under your main window, create a line type and fill out the header node under the 'table' node. Let me know if this works out for you.

Vinod.