cancel
Showing results for 
Search instead for 
Did you mean: 

form interface & global definition

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

the best way is to make a structure in SE11 as ur internal table , having similar sequence as ur internal table have in driver prg.

and put that in as the reference type .

u can't give intarnal table as reference type , only DB Tables or Structure can be given .

reward if helpful.

Former Member
0 Kudos

Declare in interface as below in table tab

it_itab type table of splfi.