on 02-13-2008 5:20 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Declare in interface as below in table tab
it_itab type table of splfi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.