Skip to Content
0
Former Member
Feb 13, 2008 at 05:20 AM

form interface & global definition

22 Views

Hi

I want to know how to declare variables in Smartform. Kindly refer following code ( Driver program data declaration ) & let me know how should I declare IT_TAB & WA_TAB in Smartform under form interface & global definition.

When I try to declare IT_TAB under form interface->Tables

as

IT_ TAB Type SPFLI

it gives error as

"Only table types may be used as the reference type for a table parameter"**

Same with wa_tab.

Please help me on this & if possible give me detail documentation on Form Interface & Global Definition as I am using smartform for the first time

TYPES : BEGIN OF ty_tab,

carrid TYPE spfli-carrid,

connid TYPE spfli-connid,

countryfr TYPE spfli-countryfr,

countryto TYPE spfli-countryto,

END OF ty_tab.

DATA : it_tab TYPE TABLE OF ty_tab,

wa_tab TYPE ty_tab.

Regards

Harshada